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
nixos/amdgpu: add option for Display Core support #107400
Conversation
Add NixOS option hardware.amdgpu.enableDisplayCore that enables display core for all supported chipsets. Newer gpus might require DC to function normally.
hardware.amdgpu.displayCore = "default" will behave exactly like before.
@wakira |
For 5700XT display core is enabled by default. I'm afraid DC might not be the problem here but you can try adding |
No I haven't. I'll create a different issue for that. |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/amdgpu-and-display-stream-compression-non-working-monitor/10820/1 |
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.
I dont know why I was tagged here. The code looks clean and understandable (except the kernel options themselves, they're like Latin to me - but it doesn't look like defaults are changing, so it's backwards compatible)
I'll stamp an LGTM here but with a big caveat - I'm a noob when it comes to display drivers, I literally nuked my GPU driver on Windows last time I tried to make my discrete GPU work in my laptop. Also I don't have merge rights - and probably for a good reason for now 🤣
I've got a similar issue with my 6800XT. Outputs break when amdgpu loads. Will see if I can try out this patch. |
Didn't try this full patch, ended up just throwing this in my config for now. But it worked and made my computer usable again. Copied the configs from https://bugzilla.kernel.org/show_bug.cgi?id=210479
Which is mostly to say that anyone with a modern amdgpu is going to need this. And here's my vote that this OP's PR gets in. |
6800XT works by default on arch but not on nixos as reported by @wiltaylor
NIXOS
|
Adding the missing options as above has fixed it so I can now boot into Xorg and vulkan seems to be working. |
Instead of this PR maybe we can just enable all relevant kernel configs by default? If arch is doing that it should be fine |
+1 for setting them universally (in |
Closed in favor of #109105 |
Motivation for this change
My RX6800 cannot detect any outputs unless I enable drm display core support by compiling linux with DRM_AMD_DC_DCN3_0.
I don't know if this is a universal issue of newer AMD cards or just my specific AIB card/MB combination.
I also noticed that many people have issues with DC enabled instead (with older generation of cards).
Anyway I think it is a good idea to have a module option to enable (disable) DC for all supported cards.
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)