[92d57d6a] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[87fc185] | 7 | <!ENTITY radeon-wiki "https://wiki.x.org/wiki/RadeonFeature">
|
---|
[371dd87] | 8 | <!ENTITY radeon-marketing-names "&radeon-wiki;#decoderringforengineeringvsmarketingnames">
|
---|
[92d57d6a] | 9 |
|
---|
[5e00caf] | 10 | <!ENTITY xorg-amdgpu-driver-version "23.0.0">
|
---|
[92d57d6a] | 11 |
|
---|
[dc30794] | 12 | <!ENTITY xorg-amdgpu-driver-download-http "&xorg-download-http;/driver/xf86-video-amdgpu-&xorg-amdgpu-driver-version;.tar.xz">
|
---|
| 13 | <!ENTITY xorg-amdgpu-driver-download-ftp "&xorg-download-ftp;/driver/xf86-video-amdgpu-&xorg-amdgpu-driver-version;.tar.xz">
|
---|
[5e00caf] | 14 | <!ENTITY xorg-amdgpu-driver-md5sum "8a58421b3215769f0bfce855301f7964">
|
---|
| 15 | <!ENTITY xorg-amdgpu-driver-size "376 KB">
|
---|
[0d19107] | 16 | <!ENTITY xorg-amdgpu-driver-buildsize "6.0 MB">
|
---|
[1e2620c] | 17 | <!ENTITY xorg-amdgpu-driver-time "less than 0.1 SBU">
|
---|
[92d57d6a] | 18 | ]>
|
---|
| 19 |
|
---|
| 20 | <!-- Begin Xorg AMDGPU Driver -->
|
---|
| 21 | <sect2 id="xorg-amdgpu-driver" xreflabel="Xorg AMDGPU Driver-&xorg-amdgpu-driver-version;">
|
---|
| 22 |
|
---|
| 23 | <sect2info>
|
---|
[8af0913] | 24 | <date>$Date$</date>
|
---|
[92d57d6a] | 25 | </sect2info>
|
---|
| 26 |
|
---|
| 27 | <title>Xorg AMDGPU Driver-&xorg-amdgpu-driver-version;</title>
|
---|
| 28 |
|
---|
| 29 | <indexterm zone="xorg-amdgpu-driver">
|
---|
| 30 | <primary sortas="a-xorg-amdgpu-driver">xorg-amdgpu-driver</primary>
|
---|
| 31 | </indexterm>
|
---|
| 32 |
|
---|
| 33 | <sect3 role="package">
|
---|
| 34 | <title>Introduction to Xorg AMDGPU Driver</title>
|
---|
| 35 |
|
---|
| 36 | <para>
|
---|
| 37 | The <application>Xorg AMDGPU Driver</application> package contains the X.Org
|
---|
[7a9a7b26] | 38 | Video Driver for newer AMD Radeon video cards and newer AMD-CPUs with
|
---|
[751ceda] | 39 | integrated graphics (APUs). This includes video cards starting with Volcanic Islands.
|
---|
[92d57d6a] | 40 | It can also be used for Southern and Sea Islands if the experimental support
|
---|
| 41 | was enabled in the kernel.
|
---|
| 42 | </para>
|
---|
| 43 |
|
---|
[dc1a45e] | 44 | &lfs113_checked;
|
---|
[92d57d6a] | 45 |
|
---|
| 46 | <note>
|
---|
| 47 | <para>
|
---|
| 48 | For Direct Rendering to work, you need to enable the radeonsi Gallium
|
---|
[751ceda] | 49 | driver at <xref linkend="mesa"/> build time. Also, all cards and newer APUs
|
---|
[92d57d6a] | 50 | require Firmware to be available when the kernel driver is loaded.
|
---|
[83cc2cc3] | 51 | If you have not followed the instructions in the Firmware
|
---|
| 52 | for Video Cards part of <xref linkend="postlfs-firmware"/> which provided
|
---|
| 53 | that firmware in <filename class="directory">/lib/firmware</filename>
|
---|
| 54 | for a modular build,
|
---|
| 55 | firmware can be obtained from <ulink
|
---|
| 56 | url="&sources-anduin-http;/linux-firmware/"/> -
|
---|
| 57 | see <xref linkend="xorg-amdgpu-firmware-kernel"/> below for additional
|
---|
[92d57d6a] | 58 | firmware.
|
---|
| 59 | </para>
|
---|
| 60 | </note>
|
---|
| 61 |
|
---|
| 62 | <bridgehead renderas="sect4">Package Information</bridgehead>
|
---|
| 63 | <itemizedlist spacing="compact">
|
---|
| 64 | <listitem>
|
---|
| 65 | <para>
|
---|
| 66 | Download (HTTP): <ulink url="&xorg-amdgpu-driver-download-http;"/>
|
---|
| 67 | </para>
|
---|
| 68 | </listitem>
|
---|
| 69 | <listitem>
|
---|
| 70 | <para>
|
---|
| 71 | Download (FTP): <ulink url="&xorg-amdgpu-driver-download-ftp;"/>
|
---|
| 72 | </para>
|
---|
| 73 | </listitem>
|
---|
| 74 | <listitem>
|
---|
| 75 | <para>
|
---|
| 76 | Download MD5 sum: &xorg-amdgpu-driver-md5sum;
|
---|
| 77 | </para>
|
---|
| 78 | </listitem>
|
---|
| 79 | <listitem>
|
---|
| 80 | <para>
|
---|
| 81 | Download size: &xorg-amdgpu-driver-size;
|
---|
| 82 | </para>
|
---|
| 83 | </listitem>
|
---|
| 84 | <listitem>
|
---|
| 85 | <para>
|
---|
| 86 | Estimated disk space required: &xorg-amdgpu-driver-buildsize;
|
---|
| 87 | </para>
|
---|
| 88 | </listitem>
|
---|
| 89 | <listitem>
|
---|
| 90 | <para>
|
---|
| 91 | Estimated build time: &xorg-amdgpu-driver-time;
|
---|
| 92 | </para>
|
---|
| 93 | </listitem>
|
---|
| 94 | </itemizedlist>
|
---|
| 95 |
|
---|
| 96 | <bridgehead renderas="sect4">Xorg AMDGPU Driver Dependencies</bridgehead>
|
---|
| 97 |
|
---|
| 98 | <bridgehead renderas="sect5">Required</bridgehead>
|
---|
| 99 | <para role="required">
|
---|
| 100 | <xref linkend="xorg-server"/> (must be built with glamor enabled)
|
---|
| 101 | </para>
|
---|
| 102 |
|
---|
| 103 | </sect3>
|
---|
| 104 |
|
---|
| 105 | <sect3 role="kernel" id="xorg-amdgpu-driver-kernel">
|
---|
| 106 | <title>Kernel Configuration</title>
|
---|
| 107 |
|
---|
| 108 | <para>
|
---|
| 109 | Enable the following options in the kernel configuration and recompile
|
---|
| 110 | the kernel if necessary:
|
---|
| 111 | </para>
|
---|
| 112 |
|
---|
| 113 | <!-- Editor note: CONFIG_DRM_AMDGPU_SI available in 4.9+ -->
|
---|
| 114 | <screen><literal>Device Drivers --->
|
---|
| 115 | Graphics support --->
|
---|
| 116 | <*> Direct Rendering Manager (XFree86 ... support) ---> [CONFIG_DRM]
|
---|
| 117 | <*/M> AMD GPU [CONFIG_DRM_AMDGPU]
|
---|
[f39cf0d0] | 118 | < /*> Enable amdgpu support for SI parts [CONFIG_DRM_AMDGPU_SI]
|
---|
| 119 | < /*> Enable amdgpu support for CIK parts [CONFIG_DRM_AMDGPU_CIK]</literal></screen>
|
---|
[92d57d6a] | 120 |
|
---|
| 121 | <para>
|
---|
| 122 | The last two options enable experimental support for Southern and
|
---|
| 123 | Sea Islands AMD GPUs so they can be used with this driver. Note that
|
---|
| 124 | the support is marked experimental and disabled by default.
|
---|
| 125 | <xref linkend="xorg-ati-driver"/> should be used for those GPUs.
|
---|
| 126 | </para>
|
---|
| 127 |
|
---|
| 128 | <indexterm zone="xorg-amdgpu-driver xorg-amdgpu-driver-kernel">
|
---|
| 129 | <primary sortas="d-xorg-amdgpu-driver">xorg-amdgpu-driver</primary>
|
---|
| 130 | </indexterm>
|
---|
| 131 | </sect3>
|
---|
| 132 |
|
---|
| 133 | <sect3 role="kernel" id="xorg-amdgpu-firmware-kernel">
|
---|
| 134 | <title>Kernel Configuration for additional firmware</title>
|
---|
| 135 |
|
---|
| 136 | <para>
|
---|
| 137 | If you need to add firmware, install the file(s) and then point to them in the
|
---|
| 138 | kernel configuration and recompile the kernel if necessary. To find out which
|
---|
| 139 | firmware you need, consult the <ulink url="&radeon-marketing-names;">
|
---|
| 140 | Decoder ring for engineering vs marketing names</ulink>. Download any firmware
|
---|
| 141 | for your card which is named like:
|
---|
| 142 | <filename><replaceable><ENGINEERING_NAME></replaceable>_rlc.bin</filename>,
|
---|
| 143 | etc. Below is an example for Radeon R7 M340 GPU, which is codenamed
|
---|
| 144 | Iceland/Topaz, along with a network card that also requires the firmware:
|
---|
| 145 | </para>
|
---|
| 146 |
|
---|
| 147 | <screen><literal>CONFIG_EXTRA_FIRMWARE="amdgpu/topaz_ce.bin amdgpu/topaz_k_smc.bin amdgpu/topaz_mc.bin
|
---|
| 148 | amdgpu/topaz_me.bin amdgpu/topaz_mec2.bin amdgpu/topaz_mec.bin
|
---|
| 149 | amdgpu/topaz_pfp.bin amdgpu/topaz_rlc.bin amdgpu/topaz_sdma1.bin
|
---|
| 150 | amdgpu/topaz_sdma.bin amdgpu/topaz_smc.bin rtl_nic/rtl8168e-3.fw"
|
---|
| 151 | CONFIG_EXTRA_FIRMWARE_DIR="/lib/firmware"</literal></screen>
|
---|
| 152 |
|
---|
| 153 | <note>
|
---|
| 154 | <para>
|
---|
| 155 | CONFIG_EXTRA_FIRMWARE should all be on one line. It is shown above as
|
---|
| 156 | multiple lines for presentation only.
|
---|
| 157 | </para>
|
---|
| 158 | </note>
|
---|
| 159 |
|
---|
| 160 | <tip>
|
---|
| 161 | <para>
|
---|
| 162 | You can check <command>dmesg</command> output after boot to see which firmware
|
---|
| 163 | is missing.
|
---|
| 164 | </para>
|
---|
| 165 | </tip>
|
---|
| 166 |
|
---|
| 167 | <para>
|
---|
| 168 | Alternatively, if you change CONFIG_DRM_AMDGPU to '=m' in your linux
|
---|
| 169 | kernel .config the firmware can be loaded automatically from
|
---|
| 170 | /lib/firmware/amdgpu/ when it installs the module. This offers a tiny
|
---|
| 171 | space saving, but also means that the screen will be blank for a longer
|
---|
| 172 | time before the framebuffer appears. Distros take this approach because
|
---|
| 173 | it is not practical to specify every possible firmware and the kernel
|
---|
| 174 | would be excessively big.
|
---|
| 175 | </para>
|
---|
| 176 |
|
---|
| 177 | <indexterm zone="xorg-amdgpu-driver xorg-amdgpu-firmware-kernel">
|
---|
| 178 | <primary sortas="d-xorg-amdgpu-firmware">xorg-amdgpu-firmware</primary>
|
---|
| 179 | </indexterm>
|
---|
| 180 | </sect3>
|
---|
| 181 |
|
---|
| 182 | <sect3 role="installation">
|
---|
| 183 | <title>Installation of Xorg AMDGPU Driver</title>
|
---|
| 184 |
|
---|
| 185 | <para>
|
---|
| 186 | Install <application>Xorg AMDGPU Driver</application> by running the following
|
---|
| 187 | commands:
|
---|
| 188 | </para>
|
---|
| 189 |
|
---|
| 190 | <screen><userinput>./configure $XORG_CONFIG &&
|
---|
| 191 | make</userinput></screen>
|
---|
| 192 |
|
---|
| 193 | <para>
|
---|
| 194 | This package does not come with a test suite.
|
---|
| 195 | </para>
|
---|
| 196 |
|
---|
| 197 | <para>
|
---|
| 198 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 199 | </para>
|
---|
| 200 |
|
---|
| 201 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 202 | </sect3>
|
---|
| 203 |
|
---|
| 204 | <sect3 role="content">
|
---|
| 205 | <title>Contents</title>
|
---|
| 206 |
|
---|
| 207 | <segmentedlist>
|
---|
| 208 | <segtitle>Installed Xorg Driver</segtitle>
|
---|
| 209 |
|
---|
| 210 | <seglistitem>
|
---|
| 211 | <seg>
|
---|
[4c24eb0a] | 212 | amdgpu_drv.so
|
---|
[92d57d6a] | 213 | </seg>
|
---|
| 214 | </seglistitem>
|
---|
| 215 | </segmentedlist>
|
---|
| 216 |
|
---|
| 217 | <variablelist>
|
---|
| 218 | <bridgehead renderas="sect4">Short Descriptions</bridgehead>
|
---|
| 219 | <?dbfo list-presentation="list"?>
|
---|
| 220 | <?dbhtml list-presentation="table"?>
|
---|
| 221 |
|
---|
| 222 | <varlistentry id="amdgpu_drv">
|
---|
| 223 | <term><filename class="libraryfile">amdgpu_drv.so</filename></term>
|
---|
| 224 | <listitem>
|
---|
| 225 | <para>
|
---|
[4c24eb0a] | 226 | is an Xorg video driver for latest AMD Radeon video cards
|
---|
[92d57d6a] | 227 | </para>
|
---|
| 228 | <indexterm zone="xorg-amdgpu-driver amdgpu_drv">
|
---|
| 229 | <primary sortas="c-amdgpu_drv">amdgpu_drv.so</primary>
|
---|
| 230 | </indexterm>
|
---|
| 231 | </listitem>
|
---|
| 232 | </varlistentry>
|
---|
| 233 |
|
---|
| 234 | </variablelist>
|
---|
| 235 |
|
---|
| 236 | </sect3>
|
---|
| 237 |
|
---|
| 238 | </sect2>
|
---|