ROCm: [Issue]: DKMS module build fails on kernels 6.13 and 6.14 (Ubuntu 24.04)

Problem Description

DKMS modules provided by AMD’s amdgpu-dkms package consistently fail to build against mainline Linux kernels 6.13 and 6.14 on Ubuntu 24.04. This issue prevents users with new hardware, which explicitly requires newer kernel features, from benefiting from GPU acceleration, ROCm, Vulkan, and OpenCL capabilities provided by AMDGPU.

Operating System

Ubuntu 24.04.2 with mainline kernels

CPU

AMD Ryzen 9950x

GPU

AMD Radeon 9070 XT

ROCm Version

ROCm 6.4

ROCm Component

No response

Steps to Reproduce

Expected Behavior

The DKMS modules (e.g., amdgpu.ko) should compile and install successfully against newer kernels, enabling full GPU acceleration and ROCm support on recent AMD hardware.

Actual Behavior

DKMS fails to build against kernels 6.13/6.14, producing errors similar to:

ERROR (dkms apport): kernel package linux-headers-6.14.0-061400-generic is not supported
make[1]: Entering directory '/usr/src/linux-headers-6.14.0-061400-generic'
...
amd/amdgpu/amdgpu_drv.c:3098:10: error: ‘const struct drm_driver’ has no member named ‘date’

Detailed Technical Explanation

The root cause appears to be API changes introduced in kernels 6.13/6.14, specifically DRM subsystem changes, which the AMDGPU DKMS driver (amdgpu-dkms version 6.4.x) has not adapted to.

Errors indicate structural changes in drm_driver, causing compilation errors (no member named ‘date’, implicit declaration of functions).

Additional build errors due to missing or altered kernel headers, or incompatibilities in the driver code with these kernels.

Impact

Users with new hardware (e.g., AMD Radeon RX 7000 series GPUs) are effectively forced to choose between hardware support (newer kernels) and GPU acceleration (AMD’s official drivers and ROCm).

Workarounds

Currently, no stable workaround exists other than using older kernels (≤ 6.12), which do not fully support newer hardware platforms (e.g., networking issues, lack of full GPU functionality).

Proposed Solutions

AMD should update the DKMS drivers explicitly to handle new DRM and kernel API changes in kernels 6.13/6.14.

Environment

Ubuntu 24.04 (Noble Numbat)

AMD Radeon 9070 XT

Linux kernels: 6.13.x, 6.14.x

AMDGPU DKMS package: version 6.4

Additional Information

This issue explicitly limits users from fully utilizing new AMD hardware, pushing them toward unsupported or unstable configurations.

Requested Action

Update the AMDGPU DKMS driver codebase to support Linux kernels 6.13 and 6.14.

(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support

No response

Additional Information

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 25
  • Comments: 45

Most upvoted comments

Also hit this - I have just patched amdgpu-dkms_6.12.12.60400-2147987.24.04 so it compiles on 6.14. hope its useful for you. It works fine on my Ubuntu 25.04 system: https://github.com/dominikschnitzer/amdgpu-dkms The relevant patch is here, a deb is here.

You can hold linux kernel update using this command:

sudo apt-mark hold linux-image-6.14.0-24-generic linux-headers-6.14.0-24-generic linux-modules-6.14.0-24-generic linux-modules-extra-6.14.0-24-generic

But for sure we’re all awaiting fix from AMD, especially considering it says 6.14 is supported on 25.10

–

Also seems like issue not ROCm specific and all graphic drivers from AMD site fail with the same error

And now 6.14 is official HWE kernel for 24.04, yet there is still no fix…

Hi @bleedingedgedebian, sorry for the inconvenience. We’re working on amdgpu-dkms support for kernel version 6.14. We have this in internal builds at the moment, but not sure when it will make it into a release. I’ll update when I have more information.

Hi all, sorry for the delay. The fix for this should land in ROCm 6.4.2, hopefully early this week if not today.

Yes, this problem still exists… I run upgrade failed…

Ubuntu has started shipping 6.14 as part of HWE. I cannot install that kernel because of this.

Just got shocked by a kernel panic after an upgrade, and then realized it’s an AMD driver issue. Please fix it ASAP if AMD still plan to support Ubuntu 24.04 LTS

@schung-amd , either ROCm 6.4.2 does not support 6.14 HWE or you forgot to put it in the release notes: https://rocm.docs.amd.com/projects/install-on-linux/en/docs-6.4.2/reference/system-requirements.html

Package amdgpu-dkms-firmware is not installed.

Where can I get this dependency firmware?

Thanks!

You can download it here manually: https://repo.radeon.com/amdgpu/6.4.1/ubuntu/pool/main/a/amdgpu-dkms/

Or you can add this repository in your apt sources (/etc/apt/sources.list.d/amdgpu.list) (change noble to your release): deb [arch=amd64,i386 signed-by=/etc/apt/keyrings/rocm.gpg] https://repo.radeon.com/amdgpu/6.4.1/ubuntu noble main

Better yet, install it with the official installer: https://www.amd.com/en/support/download/linux-drivers.html

Sorry for the delay, this should land in the next minor release (6.5 at the time of writing).

No new info unfortunately, likely still a few months out.

May be just documentation oversight. I am running Ubuntu kernel 6.14.0-24 with ROCm 6.4.2 on all my machines as of < 15 minutes before time of writing.

I’m already on 6.15 and sure enough 6.16 is around the corner very soon. AMD you need to keep up tracking Linux kernel’s much quicker than this!

Hi @schung-amd, update anytime soon as Ubuntu pushed 6.14 kernel to 24.04 LTS HWE?

@dominikschnitzer I’m trying this on Ubuntu 25.04 and I get the following errors:

Errors were encountered while processing:
 amdgpu-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)

I’ve tried the deb shared above but has errors also:

sudo dpkg -i amdgpu-dkms_6.12.12.60400-2147987.24.04-2_all.deb

dpkg: warning: downgrading amdgpu-dkms (1:6.12.12.60401-2164967.24.04) to (1:6.12.12.60400-2147987.24.04-2)
(Reading database ... 244292 files and directories currently installed.)
Preparing to unpack amdgpu-dkms_6.12.12.60400-2147987.24.04-2_all.deb ...
Deleting module amdgpu-6.12.12-2164967.24.04 completely from the DKMS tree.
Unpacking amdgpu-dkms (1:6.12.12.60400-2147987.24.04-2) over (1:6.12.12.60401-2164967.24.04) ...
dpkg: dependency problems prevent configuration of amdgpu-dkms:
 amdgpu-dkms depends on amdgpu-dkms-firmware (= 1:6.12.12.60400-2147987.24.04); however:
  Version of amdgpu-dkms-firmware on system is 1:6.12.12.60401-2164967.24.04.

dpkg: error processing package amdgpu-dkms (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 amdgpu-dkms

Try this new package: https://github.com/dominikschnitzer/amdgpu-dkms/releases/download/amdgpu-dkms_amdgpu-6.12.12-2164967.24.04-2/amdgpu-dkms_6.12.12.60401-2164967.24.04-2_all.deb

maybe you need to rebuild the package with the latest amdgpu-dkms-firmware package? I installed it without dependencies and everything works fine, but I still have a dependency error in system.

I’ve just updated the package. Hope it works for you. Not sure how to keep things updated automatically.

Thank you! It works perfectly now.

Hi, thank you all for addressing this issue.

I have the same problem here.

Running on Ubuntu 25.04 Plucky Puffin with Kernel 6.14.4 (Mainline) and a Sapphire Pulse Radeon 9070 XT.

When using amdgpu-install it throws the same errors as stated by @bleedingedgedebian.

For gaming purposes fortunately Plucky delivers functional drivers for the 9070 XT out of the box so I can use it for the majority of games. However, Cyberpunk is unplayable since it does a hard freeze of the system after 5-30 minutes into the game. Presumably caused by the GPU. Futhermore, nvtop only shows [AMD GPU] as GPU and no model name or whatsoever.