AMDgpu (Linux kernel module): Difference between revisions

Content deleted Content added
It's generally not recommended to use AMDGPU-PRO over mesa, and mesa beats it in large majority of benchmarks too. Saying it's "better" is arguably not true and could mislead users into not understanding that they're already using mesa and don't need to manually install drivers.
 
(63 intermediate revisions by 26 users not shown)
Line 1:
{{short description|AMD GPU driver for Linux}}
{{About||AMDGPU (LLVM backend)|LLVM#Backends}}
{{About||amdgpu and amdgpu-pro install scripts|AMD Radeon Software}}
 
{{Infobox software
| name = AMDGPUAMDgpu
| title = AMDGPUAMDgpu
| logo =
| logo = <!-- [[File: ]] -->
| logo caption =
| screenshot = <!--AMDGPU [[File:boot ]]log -->screenshot.png
| caption = Linux kernel [[dmesg]] logs about the AMDgpu kernel module, seen from a [[Command-line interface|command-line-interface]] [[Shell_(computing)|shell session]].
| caption =
| collapsible =
| author =
| developer = =[[AMD]]
| released = 1.0&nbsp; / {{Start date and age|2015|04|20|df=yes}}<ref name=INITIAL>{{cite web |url=https://lists.freedesktop.org/archives/dri-devel/2015-April/081501.html |title=Initial amdgpu driver release |date=20 April 2015}}</ref>
| discontinued =
| latest release version = 185.111.032.21.40
| latest release date = {{Start date and age|20182021|09|1417|df=yes}},<ref>{{cite web |url=https://cgitgithub.freedesktop.org/xorgcom/driverRadeonOpenCompute/xf86ROCK-videoKernel-amdgpuDriver/ commit/5e2158164e449dcf2d956bea8b732f5b5290355d|title=xf86-video-amdgpuAMDgpu version bump|website=[[GitHub]] |date=17 September 2021}}</ref>
| latest preview version =
| latest preview date = <!-- {{Start date and age|YYYY|MM|DD|df=yes/no}} -->
| repo = [https://github.com/radeonopencompute/rock-kernel-driver/ github.com/radeonopencompute/rock-kernel-driver]
| programming language = [[C (programming language)|C]]
| operating system = [[Linux]], [[FreeBSD]]
| platform = [[x86]], [[x86-64]]
| size =
| size =
| genre = [[Device driver]]
| license genre = [[MITDevice Licensedriver]]
| license = [[MIT License]]
}}
'''AMDGPU''' is [[AMD]]'s fully [[Open-source software|open source]] unified [[device driver|graphics driver]] for [[Linux]].<ref>{{cite web|url=http://lists.freedesktop.org/archives/dri-devel/2015-April/081501.html |title=Initial amdgpu driver release |date=2015-04-20 |accessdate=2016-04-26}}</ref><ref>{{cite web|url=http://linux.softpedia.com/blog/open-source-amdgpu-linux-driver-gets-its-first-point-release-for-mesa-11-2-500682.shtml|title=Open-Source AMDGPU Linux Driver Gets Its First Point Release for Mesa 11.2|work=Linux.softpedia.com|accessdate=2016-07-25}}</ref> AMDGPU only officially supports cards built upon [[Graphics Core Next|GCN]] 1.2 or higher, support for previous cards is experimental and may be enabled by a kernel parameter.<ref>{{cite news|url=https://www.phoronix.com/scan.php?page=news_item&px=AMDGPU-SI-Experimental-Code|title=AMD Unleashes Initial AMDGPU Driver Support For GCN 1.0 / Southern Islands GPUs|work=Phoronix|date=2016-05-13|accessdate=2017-04-05}}</ref><ref>{{cite web|title=AMDgpu driver documentation|url=https://dri.freedesktop.org/docs/drm/gpu/amdgpu.html|website=Freedesktop.org}}</ref>
 
'''AMDgpu''' is an [[open source]] [[device driver]] for the [[Linux]] operating system developed by [[AMD]] to support its [[Radeon]] lineup of [[graphics card]]s (GPUs). It was announced in 2014 as the successor to the previous <code>radeon</code> device driver as part of AMD's new "unified" driver strategy,<ref>{{Cite web |last=Larabel |first=Michael |date=October 8, 2014 |title=The Slides Announcing The New "AMDGPU" Kernel Driver |url=https://www.phoronix.com/news/MTgwODA |access-date=April 11, 2023 |website=Phoronix |language=en}}</ref> and was released on April 20, 2015.<ref>{{Cite web |last=Larabel |first=Michael |date=April 20, 2015 |title=AMD Releases New "AMDGPU" Linux Kernel Driver & Mesa Support |url=https://www.phoronix.com/news/AMD-AMDGPU-Released |access-date=April 11, 2023 |website=Phoronix |language=en}}</ref>
AMDGPU also has an optional [[closed-source]] component that operates on top of the open source AMDGPU for alternative [[3D graphics|3D]] application support known as AMDGPU-PRO.<ref>{{cite web|url=http://www.pcworld.com/article/3075837/linux/amds-gaming-optimized-amdgpu-pro-driver-for-linux-is-in-beta.html|title=AMD's gaming-optimized AMDGPU-PRO driver for Linux is in beta|work=PCWorld|accessdate=2016-07-25}}</ref>
 
==Development==
[[File:Linux AMD graphics stack.svg|thumb|alt=Diagram|Linux device drivers for AMD hardware in August 2016]]
It takes the form of an in-tree [[Loadable kernel module|kernel module]].
 
As of 2022, AMD Kernel Fusion Driver ('''KFD''') is now integrated in this one kernel module. AMD KFD development at AMD is part of [[ROCm#ROCk_-_Kernel_driver|ROCm]], under the ROCk project.
 
==Distribution==
AMDgpu has been fully upstreamed and new developments continue to do so.
 
As AMDgpu is part of the [[monolithic kernel|monolithic]] Linux kernel, it is shipped by most Linux distributions directly. The package suite / install script amdgpu-pro, distributed by AMD directly from [[AMD Radeon Software]], ships an AMDgpu kernel module somewhat reliably more up-to-date compared to that of kernels shipped in regular operating system distributions.
 
==Community==
The development of the kernel module happens between AMD and the Linux maintainers, discussions happen on the [[freedesktop.org]] mailing lists<ref>{{Cite web|title=The dri-devel Archives|url=https://lists.freedesktop.org/archives/dri-devel/|access-date=2021-02-01}}</ref><ref>{{Cite web|title=The amd-gfx Archives|url=https://lists.freedesktop.org/archives/amd-gfx/|access-date=2021-02-01}}</ref> - freedesktop being home to major Linux graphics projects such as [[Mesa (computer graphics)|Mesa]], [[libdrm]], [[XOrg|Xorg]], [[Wayland (display server protocol)|Wayland]].
 
==Support==
AMDgpu officially supports cards built upon [[Graphics Core Next|GCN 1.2]] or higher, including new instruction sets such as [[RDNA (microarchitecture)|RDNA]]1&2, CDNA.
 
===Support issues===
Though {{as of|2022|lc=y}} support for GCN 1.0/1.1 is incomplete,<ref>{{Cite web|title=Defaulting Radeon GCN 1.0/1.1 GPUs To Better Linux Driver Is Held Up By Analog Outputs|url=https://www.phoronix.com/scan.php?page=news_item&px=AMDGPU-GCN-1.0-Analog-Block|url-status=live|access-date=2021-03-09|website=Phoronix|archive-url=https://web.archive.org/web/20200805222842/https://www.phoronix.com/scan.php?page=news_item&px=AMDGPU-GCN-1.0-Analog-Block |archive-date=2020-08-05 }}</ref> it can be enabled by a kernel parameter<ref>{{cite news|url=https://www.phoronix.com/scan.php?page=news_item&px=AMDGPU-SI-Experimental-Code|title=AMD Unleashes Initial AMDGPU Driver Support For GCN 1.0 / Southern Islands GPUs|work=Phoronix|date=2016-05-13|access-date=2017-04-05}}</ref><ref>{{cite web|title=AMDgpu driver documentation|url=https://dri.freedesktop.org/docs/drm/gpu/amdgpu.html|website=Freedesktop.org}}</ref> and some [[Linux distribution|Linux distributions]] enabled it by default.<ref>{{Cite web|title=Mageia 8 RC1 Brings AMDGPU For GCN 1.0/1.1, NVIDIA GLVND, Linux 5.10 LTS|url=https://www.phoronix.com/scan.php?page=news_item&px=Mageia-8-RC1-Released|url-status=live|access-date=2021-03-09|website=Phoronix|archive-url=https://web.archive.org/web/20210207043011/https://www.phoronix.com/scan.php?page=news_item&px=Mageia-8-RC1-Released |archive-date=2021-02-07 }}</ref>
 
[[File:Linux AMD graphics stack.svg|thumb|alt=Diagram|Linux device drivers for AMD hardware inas of August 2016]]
 
==See also==
* [[Radeon]] — AMD's main GPU brand
* [[AMD Radeon Software]] — AMD's default software distribution channel
* [[Free and open-source graphics device driver]]
 
==References==
{{reflist}}
 
== External links ==
* {{cite web|url=https://www.kernel.org/doc/html/latest/gpu/amdgpu/index.html|publisher=[[Linux kernel]]|title=AMDgpu driver|date=2022-01-23}}
 
{{AMD}}
{{AMD technology}}
{{AMD graphics}}
{{Portal bar|Computer programming|Free and open-source software|Linux|Engineering|Electronics|Technology|Mathematics}}
 
[[Category:AMD software]]
[[Category:Free device drivers]]
[[Category:Linux drivers]]