-
-
Notifications
You must be signed in to change notification settings - Fork 776
add Dell Pro 14 PA14250 #1534
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
dmivankov
wants to merge
4
commits into
NixOS:master
Choose a base branch
from
dmivankov:add_dell_pa14250
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
add Dell Pro 14 PA14250 #1534
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
{ lib, ... }: | ||
|
||
# Xe module fails to load on 6.12.x starting 6.12.35 | ||
# tested to work on 6.13.4 or newer | ||
# | ||
# Bisect points at d42b44736ea29fa6d0c3cb9c75569314134b7732 but | ||
# 6.13 series 30d105577a3319094f8ae5ff1ceea670f1931487 looks identical | ||
# so it has to be not just that commit but its interactions with 6.12 | ||
# driver version | ||
# | ||
# https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/5373 | ||
let | ||
brokenXeModule = version: lib.versionAtLeast version "6.12.35" && lib.versionOlder version "6.13.4"; | ||
in | ||
{ | ||
dmivankov marked this conversation as resolved.
Show resolved
Hide resolved
|
||
imports = [ | ||
../../../common/cpu/intel/lunar-lake | ||
../../../common/pc/laptop | ||
../../../common/pc/ssd | ||
]; | ||
|
||
hardware.intelgpu.driver = "xe"; | ||
|
||
boot = lib.mkMerge [ | ||
{ | ||
# use xe graphics module, i915 doesn't seem to work well | ||
# just selecting xe seems to be not enough | ||
blacklistedKernelModules = [ "i915" ]; | ||
|
||
kernelParams = [ | ||
# makes external display more stable | ||
"xe.psr_safest_params=1" | ||
# extra debug logs just in case something breaks | ||
"xe.verbose_state_checks=true" | ||
]; | ||
} | ||
|
||
# we can't inspect config.boot.kernelPackages.kernel.version to override kernelPackages as it's create a loop | ||
# instead let's auto-apply latest kernel if linux_default is broken | ||
# | ||
# TODO: this may unnecessarily bump kernel to latest if say 6.13 is manually selected in configuration | ||
# maybe we need extra parameter to this module? Though should still already be possible to overrule module kernel selection. | ||
# Looking at linux_default version is also less restrictive than always setting latest, | ||
# once 6.12 is fixed we can update brokenXeModule expression and only do override on old nixpkgs versions that haven't yet | ||
# upgraded to a fixed kernel | ||
(lib.mkIf (brokenXeModule pkgs.linuxKernel.packageAliases.linux_default.kernel.version) { | ||
kernelPackages = pkgs.linuxPackages_latest; | ||
}) | ||
]; | ||
|
||
assertions = lib.optionals (config.hardware.intelgpu.driver == "xe") [ | ||
{ | ||
assertion = !(brokenXeModule config.boot.kernelPackages.kernel.version); | ||
message = "xe driver would fail with 'probe with driver xe failed with error -110'"; | ||
} | ||
]; | ||
|
||
# Recommended in NixOS/nixos-hardware#127 | ||
services.thermald.enable = lib.mkDefault true; | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
6.12 fix is on the way https://lore.kernel.org/stable/[email protected]/T/#t once a new version is available I'll update the condition here