amdgpu is the open source graphics driver for the latest AMD Radeon graphics cards.
Install the package. It provides the DDX driver for 2D acceleration and it pulls in as a dependency, providing the DRI driver for 3D acceleration.
To enable OpenGL support, also install multilib repository.. If you are on x86_64 and need 32-bit support, also install from the
Support for accelerated video decoding is provided by and packages.
Xorg will automatically load the driver and it will use your monitor's EDID to set the native resolution. Configuration is only required for tuning the driver.
If you want manual configuration, create
/etc/X11/xorg.conf.d/20-amdgpu.conf, and add the following:
Section "Device" Identifier "AMD" Driver "amdgpu" EndSection
Using this section, you can enable features and tweak the driver settings.
amdgpu kernel module should load fine automatically on system boot.
If it does not happen, then:
- Make sure you have the latest package installed. This driver requires the latest firmware for each model to successfully boot.
- Make sure you do not have
vga=as a kernel parameter, since
- Also, check that you have not disabled
amdgpuby using any kernel module blacklisting.
Enable early KMS
Kernel mode setting (KMS) is supported by the radeon driver and is mandatory and enabled by default.
KMS is typically initialized after the initramfs stage. It is possible, however, to enable KMS during the initramfs stage. To do this, add the
amdgpu module to the
MODULES line in
MODULES="... amdgpu ..."
Now, regenerate the initramfs:
# mkinitcpio -p linux
The change takes effect at the next reboot.
Enabling video acceleration
Enable amdgpu for Sea Islands Cards
amdgpu has experimental support for Sea Islands (CI) cards, which is disabled by default. One possible reason why you might want to enable it and switch from radeon to
amdgpu is that AMD announced their user space Vulkan driver will only be supporting the new
amdgpu stack . Same might be the case for the new OpenCL driver, which was also mentioned in the XDC presentation.
If you want to enable
amdgpu and use it with your Sea Islands product, you have to recompile your kernel.
Probably the easiest way to setup a custom kernel is using the ABS, described in the article Kernels/Arch Build System. You can also uncomment "make menuconfig" or "make nconfig" in the PKGBUILD (if using ABS). This will allow you to verify the CIK option is selected by following the same instructions here: https://wiki.gentoo.org/wiki/Amdgpu#Feature_support
Set "Enable amdgpu support for CIK parts" to "yes", then compile and install your kernel.
radeon from loading, you can disable it in the Kconfig or blacklist the