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
common-config: Enable RX 6000 Series AMDGPU #111177
Conversation
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/setting-up-x-in-nixos-with-amd-radeon-6800/11124/6 |
The kernel config parameter `DRM_AMD_DC_DCN3_0` is required to enable the RX 6000 series GPUs, and is supported on kernels at least `5.9.12`. Source: https://wiki.gentoo.org/wiki/AMDGPU#Installation
2782692
to
6ebf1a1
Compare
I just tested this and can report this works great. Here's how I tested this branch: I created an iso with this patch and flashed in on a usb flash drivegit clone --depth=1 https://github.com/afontaine/nixpkgs.git -b enable-rx6000-gpus
cd nixpkgs/nixos
nix-build -A config.system.build.isoImage -I nixos-config=modules/installer/cd-dvd/installation-cd-graphical-plasma5-new-kernel.nix default.nix
# identify the usb drive
sudo lsblk -o NAME,MODEL | grep Flash
# FLASH_DRIVE=/dev/sdd
ISO=result/iso/nixos-21.03pre-git-x86_64-linux.iso
sudo dd bs=1M if="${ISO}" of="${FLASH_DRIVE}" && sync I booted on the flash drive✔️ Unlike a similar build I made from master, this build would let the installer arrive until the plasma desktop. I installed nixos using the flash driveI just added the following to the {
boot.kernelPackages = pkgs.linuxPackages_latest;
} ✔️ The resulting installation also booted fine and resulted in the plasma desktop being usable. I switched the configuration to have the amdgpu driver usedAfter switching to this branch as a the nixos channel: sudo nix-channel --add https://github.com/afontaine/nixpkgs/archive/enable-rx6000-gpus.tar.gz nixos
sudo nixos-channel --udpate And extending the {
boot.kernelPackages = pkgs.linuxPackages_latest;
boot.initrd.kernelModules = [ "amdgpu" ];
services.xserver.videoDrivers = [ "amdgpu" ];
hardware.opengl = {
enable = true;
driSupport32Bit = true;
};
} ✔️ The amdgpu driver was correctly used: sudo inxi -G
Graphics: Device-1: Advanced Micro Devices [AMD/ATI] driver: amdgpu v: kernel
Display: x11 server: X.org 1.20.10 driver: loaded: amdgpu note: n/a (using device driver)
resolution: <missing: xdpyinfo>
OpenGL: renderer: AMD SIENNA_CICHLID (DRM 3.40.0 5.10.11 LLVM 11.0.1) v: 4.6 Mesa 20.3.3 |
@kimat With this patch, you should no longer need the If that's not the case, let me know 👍 My current configuration no longer contains the patch configuration. |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
This rebuilds a lot of kernels. Maybe it should go through staging? |
Sure @SuperSandro2000! Do I target |
@afontaine, I just updated my pervious comment to showcase how I correctly tested this branch, with success, now. |
staging is correct here. |
Cool! It should be targeting staging now @SuperSandro2000
-------- Original Message --------
…On Feb. 2, 2021, 08:13, Sandro wrote:
>> This rebuilds a lot of kernels. Maybe it should go through staging?
>
> Sure ***@***.***(https://github.com/SuperSandro2000)! Do I target staging or staging-next?
staging is correct here.
—
You are receiving this because you were mentioned.
Reply to this email directly, [view it on GitHub](#111177 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AAZXQUHJ5AAS6NYX6FIOC5DS47273ANCNFSM4WZFUF7Q).
|
@kimat that is great to hear 👍 glad everything is working |
both NixOS#111177 and NixOS#109105 introduced the same option.
Motivation for this change
The kernel config parameter
DRM_AMD_DC_DCN3_0
is required to enablethe RX 6000 series GPUs, and is supported on kernels at least
5.9.12
.Source: https://wiki.gentoo.org/wiki/AMDGPU#Installation
I've tested this locally on my machine with an RX 6900XT. Not sure what other testing is possible, aside from other owners of a 6000 series GPU.
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)