Bug 269510 - graphics/drm-510-kmod: problem with amdgpu kernel module after upgrading FreeBSD 13.1 system
Summary: graphics/drm-510-kmod: problem with amdgpu kernel module after upgrading Free...
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-x11 (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-12 08:17 UTC by rzdndr
Modified: 2023-02-20 12:30 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rzdndr 2023-02-12 08:17:01 UTC
Hardware:
AMD FX7500 CPU
AMD Radeon R7 M265, with two graphics devices. One device is the Kaveri [Radeon R6/R& Graphics]
with PCI id 0x002 0x1309. The other is the Opal XT (oland) [Radeon R7 M265/M365X/M465].

OS:
FreeBSD, 13.1-RELEASE, FreeBSD 13.1-RELEASE, releng/13.1-n250148-fc952ac2212, GENERIC, amd64

What Happened:

Wanted to upgrade all the packages on my system. I have run "pkg upgrade". The command did these:

1. Upgraded pkg from 1.18.4 to 1.19.0
2. Removed (deinstalled) the drm-fbsd13-kmod-5.1.191.g20220604_1.
3. Upgraded all the gpu-firmware-amd-kmod-* packages from version 20220511 to 20221207_1.
4. Installed drm-510-kmod-5.10.113_8.
5. Upgraded drm-firmware-kmod from 20220511,1 to 20221208-1,1.

Prior to the upgrade I have been loading the amdgpu kernel module in the rc.conf file. kld_list="amdgpu".

After the upgrade, I restarted the system. The system halted at the "loading kernel modules" message,
and a line of colored pixels at the right lower part of the LCD screen (laptop).

Restarted the system, Went into the single user mode. Did fsck and "mount -u /"
and removed the amdgpu from kld_list to prevent it from loading. Then restarted the system.

After boot I did the update and upgrade again by doing these things:

1. pkg update -f
2. pkg install drm-510-kmod
3. pkg install drm-kmod (which also pulls the gpu-firmware-kmod package).
4. pkg upgrade -f

All the packages were forcefully upgraded.

Then changed kld_list to load the radeonkms kernel module (kld_list="radeonkms").

After changing the kernel module, the system started normally and the graphics devices were initialized correctly.

On the https://wiki.freebsd.org/Graphics page it is stated that the radeonkms kernel module
is for older GPU's (pre-HD7000 or pre-Tahiti). I am not sure if my card is
pre-Tahiti, or pre-HD7000. I think they might be newer.

Being able to use the amdgpu kernel module prior to the package upgrade and having to use radeonkms after the upgrade might indicate a bug in the amdgpu kernel module.
Comment 1 Graham Perrin freebsd_committer freebsd_triage 2023-02-18 10:24:49 UTC
(In reply to rzdndr from comment #0)

> releng/13.1-n250148-fc952ac2212

<https://github.com/freebsd/freebsd-src/commit/fc952ac2212> (May 12, 2022) was: 

>> Update in preparation of 13.1-RELEASE

If you update the OS before upgrading packages, then is there an issue?
Comment 2 rzdndr 2023-02-20 12:30:09 UTC
(In reply to Graham Perrin from comment #1)

I did not update the OS, I am using FreeBSD 13.1 RELEASE. On the freebsd site the 13.2 version is marked upcomming, so did not want to update the OS yet.