AMDgpu (Linux kernel module)

{{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 = AMDgpu

| title = AMDgpu

| logo =

| logo caption =

| screenshot = AMDGPU boot log screenshot.png

| caption = Linux kernel dmesg logs about the AMDgpu kernel module, seen from a command-line-interface shell session.

| collapsible =

| author =

| developer = AMD

| released = 1.0 / {{Start date and age|2015|04|20|df=yes}}{{cite web|url=https://lists.freedesktop.org/archives/dri-devel/2015-April/081501.html|title=Initial amdgpu driver release|date=20 April 2015}}

| discontinued =

| latest release version = 5.11.32.21.40

| latest release date = {{Start date and age|2021|09|17|df=yes}}{{cite web|url=https://github.com/RadeonOpenCompute/ROCK-Kernel-Driver/commit/5e2158164e449dcf2d956bea8b732f5b5290355d|title=AMDgpu version bump|website=GitHub |date=17 September 2021}}

| latest preview version =

| latest preview date =

| repo = [https://github.com/radeonopencompute/rock-kernel-driver/ github.com/radeonopencompute/rock-kernel-driver]

| programming language = C

| operating system = Linux

| platform = x86-64

| size =

| genre = Device driver

| license = MIT License

}}

AMDgpu is an open source device driver for the Linux operating system developed by AMD to support its Radeon lineup of graphics cards (GPUs). It was announced in 2014 as the successor to the previous radeon device driver as part of AMD's new "unified" driver strategy,{{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}} and was released on April 20, 2015.{{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}}

Development

It takes the form of an in-tree 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, under the ROCk project.

Distribution

AMDgpu has been fully upstreamed and new developments continue to do so.

As AMDgpu is part of the 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{{Cite web|title=The dri-devel Archives|url=https://lists.freedesktop.org/archives/dri-devel/|access-date=2021-02-01}}{{Cite web|title=The amd-gfx Archives|url=https://lists.freedesktop.org/archives/amd-gfx/|access-date=2021-02-01}} - freedesktop being home to major Linux graphics projects such as Mesa, libdrm, Xorg, Wayland.

Support

AMDgpu officially supports cards built upon GCN 1.2 or higher, including new instruction sets such as RDNA1&2, CDNA.

=Support issues=

Though {{as of|2022|lc=y}} support for GCN 1.0/1.1 is incomplete,{{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 }} it can be enabled by a kernel parameter{{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}}{{cite web|title=AMDgpu driver documentation|url=https://dri.freedesktop.org/docs/drm/gpu/amdgpu.html|website=Freedesktop.org}} and some Linux distributions enabled it by default.{{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 }}

File:Linux AMD graphics stack.svg

See also

References

{{reflist}}