Enabling Navi 10 On Fedora 31

From RCS Wiki
Revision as of 00:24, 10 December 2019 by Meklort (talk | contribs) (WIP guide on setting up Navi on Fedora.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


This guide explains how to add enable Navi 10 based GPUs such as the AMD RX Radeon 5700 XT on Fedora 31.


Linux kernel versions up to and including 5.5 do not support display output when using Navi based cards. A set of kernel patches have been developed ot enable display support. To enable the display the kernel must be recompiled.


Disabling fast-reset

AMD GPUs can only have firmware loaded once between resets. This causes issues when the fast-reset support is enabled. Before continuing with this guide, please disable fast-reset by rebooting to petitboot.

First, exit to the shell in petitboot.

Next, update the nvram configuration using nvram -p ibm,skiboot --update-config fast-reset=0

To confirm that the variable was updated, use nvram -p ibm,skiboot --print-config

Installing the Development Tools

Before building a custom kernel, the development tools must be installed

Compiling The Kernel

An update kernel with the kernel patches applied must be created. This can be done following the below guide based on https://fedoraproject.org/wiki/Building_a_custom_kernel#Building_a_kernel_from_the_exploded_git_trees

First, checkout the kernel source code:

Download and apply the kernel patches:

Configure the kernel, selecting the defaults and DCN_2_0 if prompted:

Build the kernel

Configuring The Display

Before continuing, X11 must be configured to use the Navi card instead of the built-in AST device. This must be done by following steps one and two of Troubleshooting/GPU#Workaround_2:_Select_desired_GPU_at_runtime