Skip to main content

Fixing ROCm Boot Issues: amdgpu Module Blacklisted

A quick fix for when a blacklist entry keeps the amdgpu kernel module from loading, so ROCm sees no GPU on AMD Strix Halo.

S

SmartTechLabs

SmartTechLabs - Intelligent Solutions for IoT, Edge Computing & AI

3 min read

Update, November 2026

The blacklist problem and its fix are unchanged. What has changed around it:

  • ROCm versioning: AMD has moved from the 7.x numbering to ROCm Core SDK 10.x (10.2.0 is dated 2026-11-18). Since 7.14, ROCm is built and released with TheRock. The release notes list gfx1151 (Ryzen AI Max 300 series, “Strix Halo”) as supported.
  • Kernel: a working amdgpu module is not enough on older kernels. AMD’s Strix Halo guide lists Ubuntu 24.04 HWE kernel 6.17.0-19.19~24.04.2 or later, Ubuntu 24.04 OEM kernel 6.14.0-1018 or later, and 6.18.4 or later on other distributions. Older kernels are marked unstable or unsupported, and compute workloads may fail to initialize. Ubuntu 26.04, Fedora 43 and Arch (2026.02.01 or later) ship the fixes.
  • Ubuntu 22.04 is not in AMD’s current Ryzen support list; use 24.04 or 26.04.

If /dev/kfd is missing on a current system, check the blacklist first (below), then the kernel version with uname -r.

The Problem

After installing ROCm on a fresh Linux system, you reboot and… your AMD GPU isn’t detected. Running lsmod | grep amdgpu returns nothing.

What happened? The amdgpu kernel module is on a modprobe blacklist, so it does not load at boot. Typically the blacklist comes from an NVIDIA or CUDA driver installation (see below), not from ROCm itself.


Symptoms

You might encounter this issue if:

  • rocm-smi shows no devices after a reboot
  • /dev/kfd is missing, or rocminfo finds no agents
  • The GPU worked before a driver installation (for example NVIDIA or CUDA)
  • /etc/modprobe.d/ contains blacklist entries for amdgpu
  • dmesg | grep amdgpu shows no driver initialization

The Fix

We’ve created a simple script that resolves this issue: strix-halo-amdgpu-blacklisted

What It Does

  1. Removes the blacklist file: deletes /etc/modprobe.d/blacklist-amdgpu.conf if it exists. Other files containing blacklist amdgpu are not touched.
  2. Writes driver options and boot loading: creates /etc/modprobe.d/amdgpu.conf (dc=1, dpm=1, si_support=0, cik_support=0) and /etc/modules-load.d/amdgpu.conf.
  3. Rebuilds initramfs with update-initramfs -u, so the script targets Ubuntu and Debian.
  4. Loads the module and verifies: runs modprobe amdgpu, then checks /dev/kfd, the render nodes, lsmod and rocminfo.

Read the script before you run it: it overwrites the two amdgpu.conf files and needs root.

Usage

1
2
3
4
5
git clone https://github.com/smarttechlabs-projects/strix-halo-amdgpu-blacklisted.git
cd strix-halo-amdgpu-blacklisted
chmod +x fix_rocm_boot.sh
sudo ./fix_rocm_boot.sh
sudo reboot

Manual Fix

If you prefer to fix this manually:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
# Check for blacklist entries
grep -r "blacklist amdgpu" /etc/modprobe.d/

# Comment out the blacklist line in each file that has it
sudo grep -rlE '^\s*blacklist\s+amdgpu' /etc/modprobe.d/ | xargs -r sudo sed -i -E 's/^(\s*blacklist\s+amdgpu)/#\1/'

# Rebuild initramfs (Ubuntu/Debian)
sudo update-initramfs -u

# Or for Fedora/RHEL
sudo dracut --force

# Reboot
sudo reboot

Why This Happens

A blacklist entry for amdgpu usually comes from another GPU driver package. NVIDIA and CUDA installers blacklist competing GPU drivers to avoid conflicts, and the entry stays after you switch to the AMD GPU:

CauseEffect
NVIDIA or CUDA installer, or an earlier manual fix attemptamdgpu doesn’t load at boot
Outdated initramfsOld blacklist cached in boot image

Prevention

To avoid this issue in future ROCm installations:

  1. Check blacklists after installing any GPU driver: grep -r "blacklist" /etc/modprobe.d/
  2. Rebuild initramfs (update-initramfs -u) after changing modprobe files
  3. Test before rebooting: sudo modprobe amdgpu loads the module even if it is blacklisted, so it shows that the driver works, not that the boot configuration is fixed. Verify after a reboot with lsmod | grep amdgpu

Affected Systems

This issue has been observed on:

  • Ubuntu 22.04/24.04 with ROCm 6.x
  • AMD Ryzen AI Max+ 395 (Strix Halo), where the script was tested

Get the Script

Repository: smarttechlabs-projects/strix-halo-amdgpu-blacklisted

A simple fix for a frustrating problem. Star the repo if it helped you!


Running into other ROCm issues? Reach out—we’ve likely seen it before.

Share this article
S

SmartTechLabs

Building Intelligent Solutions: IoT, Edge Computing, AI & LLM Integration