User Tools

Site Tools


ubuntu:gpu:amd_gpu:setup_radeon_rx_7900_xtx

This is an old revision of the document!


Ubuntu - GPU - AMD GPU - Setup Radeon RX 7900 XTX

Approach

  1. Update the system.
  2. Shutdown the system.
  3. Swap GPU card.
  4. Boot the system.
    • This should work fine, since minimum support is via the kernel amdgpu.
  5. Optionally, purge Nvidia packages.
  6. Install Mesa.

NOTE:

  • The NVIDIA packages can be kept, and will not cause any trouble but will just waste space.
  • Mesa is the open source implementations of OpenGL and Vulkan that AMD GPU users typically use.

Install the AMD setup script

Download the .deb file from https://www.amd.com/en/support/linux-drivers.

Install the .deb file:

wget https://repo.radeon.com/amdgpu-install/22.40.5/ubuntu/focal/amdgpu-install_5.4.50405-1_all.deb
sudo apt install ./amdgpu-install_5.4.50405-1_all.deb

or

dpkg -i package_file.deb

Run the amdgpu-install script:

amdgpu-install

NOTE: Run the amdgpu-install script without any arguments, should be sufficient.

Alternatively, try this:

amdgpu-install --usecase=graphics,opencl --vulkan=amdvlk --opencl=rocr

Optionally, install fresh firmware files

Grab the latest firmware from https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git.

Drop these firmware files into /lib/firmware/amdgpu/ and rebuild any initramfs:

wget https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/snapshot/linux-firmware-20230515.tar.gz
tar -xf linux-firmware-20230515.tar.gz
sudo cp linux-firmware-20230515/amdgpu/* /lib/firmware/amdgpu/
sudo update-initramfs -uk 'all'

NOTE: The latest firmware files should probably support these new GPUs.


Enable the AMD Kernel Module

Ensure there is no modprobe blacklist for amdgpu by running the command:

sudo rm /etc/modprobe.d/blacklist-amdgpu.conf

Optionally Purge nvidia drivers

Remove the Nvidia packages and any Nvidia related kernel arguments you might have (DRM Kernel Mode Setting or whatever).

NOTE: The Nvidia drivers will not load if there is no Nvidia card installed.

  • Leaving the NVIDIA stack installed ensures that it is ready if you ever need to switch to a backup GPU in a hurry.

Optionally Install Vulkin

Install the AMD vulkan package to get vulkan support.


Install Mesa

sudo apt install mesa-utils

NOTE: Mesa is the open source implementations of OpenGL and Vulkan that AMD GPU users typically use.


Check that the GPU is being picked up

glxinfo | grep OpenGL

returns:

 

NOTE: This should show useful info on the GPU.


Test the GPU

glxgears -info

NOTE: This should show some gears spinning around, together with frames per second.


References

ubuntu/gpu/amd_gpu/setup_radeon_rx_7900_xtx.1685658904.txt.gz ยท Last modified: 2023/06/01 22:35 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki