13-2 -> 13.3 amdgpu doesn't work

Hello all. I dutifully commented out kld_list="amdgpu" to do the upgrade, but it won't work when I put it back, getting the kernel error.

The install procedure never asked me to rebuild anything either, so I deleted & re-installed drm-kmod port by hand. Was there something else?
 
Most (all?) of my packages got reinstalled recently in my periodic 'pkg upgrade" run, so maybe that's why it didn't need to happen now? But the amdgpu load is followed immediately by a kernel panic now. This system was an original 13.0 system, due to the amdgpu in the first place, and it's been through 13.1 & 13.2....
 
Yeah, UNIX upgrades never seem go smoothly, there's usually something messed up. And when trying to fix it, the system gets messed up to such a point that it's easier and less time-consuming to just reinstall from scratch - even if you follow the Handbook and all the Best Practices. ?

As for troubleshooting - have you tried to manually (as root) run kldunload amdgpu and kldload amdgpu ?

As for "kernel panic" - does that mean that the system no longer boots?
 
Right the system will not boot. (I can boot in single user mode and comment out the amdgpu, then it boots.)

<6>[drm] amdgpu kernel modesetting enabled.

Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address =
etc.

And then it hangs until I power it off.
 
And running 'kldload amdgpu' from the command line gives the same output and also freezes the system.
 
If this were my system, I'd be reinstalling from scratch, rather than hunting down and resolving dependency hell errors from pkg. ? Linux suffers from the same issues, too, btw.

One idea that comes to mind: Maybe you're loading amdgpu.ko too early in the boot process - I discovered that the line needs to be dead last in /etc/rc.conf - even as others on these Forums have told me that it should not matter.
 
Should I be using radeonkms instead? The amdgpu was been the thing since the start of this system, which required 13.0 to run X at all....
 
Well am I going to get into any trouble if I try a 'rollback' to 13.2? I know that version worked. But I've never tried the 'rollback' function.
 
For anyone who works on this stuff, here's the full error, transcribed from a photo (which this site said was too large to post):


Code:
<6>[drm] amdgpu kernel modesetting enabled.

Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address   = 0xffffffff00001000
fault code              = supervisor read instruction, page not present
instruction pointer     = 0x20:0xffffffff00001000
stack pointer           = 0x28:0xfffffe00ffd66a40
frame pointer           = 0x28:0x0
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags        = interrupt enabled, resume, IOPL = 0
current process         = 185 (kldload)
trap number             = 12
panic: page fault
cpuid = 0
time = 1715556294
KDB: stack backtrace:
#0 0xffffffff00c514c5 at kdb_backtrace+0x65
#1 0xffffffff80c04e22 at vpanic+0x152
#2 0xffffffff80c04cc3 at panic+0x43
#3 0xffffffff810c206d at trap_fatal+0x38d
#4 0xffffffff810c20bf at trap_pfault+0x4f
#5 0xffffffff81099c18 at calltrap+0x8
 
Have you tried building graphics/drm-510-kmod ? What is the output of pkg info drm-510-kmod ?
Since binary packages are only built for one version of 13.x, drm-kmod user will need to build the relevant drm-x-kmod in the 3 month period between minor release.
 
Code:
drm-510-kmod-5.10.163_9
Name           : drm-510-kmod
Version        : 5.10.163_9
Installed on   : Sun May 12 18:22:08 2024 PDT
Origin         : graphics/drm-510-kmod
Architecture   : FreeBSD:13:amd64
Prefix         : /usr/local
Categories     : kld graphics
Licenses       : MIT and GPLv2 and BSD2CLAUSE
Maintainer     : x11@FreeBSD.org
WWW            : https://github.com/freebsd/drm-kmod/
Comment        : DRM drivers modules
Annotations    :
        FreeBSD_version: 1302001
        build_timestamp: 2024-04-09T18:48:56+0000
        built_by       : poudriere-git-3.4.1-1-g1e9f97d6
        port_checkout_unclean: no
        port_git_hash  : c5cd82114
        ports_top_checkout_unclean: no
        ports_top_git_hash: c5cd82114
        repo_type      : binary
        repository     : FreeBSD
Flat size      : 12.6MiB
Description    :
amdgpu, i915, and radeon DRM drivers modules.
Currently corresponding to Linux 5.10 DRM.
This version is for FreeBSD 13.1 and above.
 
And running 'kldload amdgpu' from the command line gives the same output and also freezes the system.
I upgraded from 12.3 to 13.3 and happened that to me, then I immediately upgraded to 14.0 and now works.

These kind of problems is also a reason that I do not hurry to upgrade the system and prefer to wait to see
the complains of people.
 
Well it was warning me to upgrade to 13.3 this month because 13.2 was being discontinued.... But what you say is why I'm in no hurry to go to 14.
 
Have you tried building graphics/drm-510-kmod ? What is the output of pkg info drm-510-kmod ?
Since binary packages are only built for one version of 13.x, drm-kmod user will need to build the relevant drm-x-kmod in the 3 month period between minor release.
This. Keep in mind that packages in the FreeBSD repositories are still being built for 13.2. This isn't an issue for the majority of the packages, but kernel modules like this one are always a bit of a problem. Packages will get build for 13.3 specifically when 13.2 is EoL (at the end of June 2024).
 
You're saying my 13.3 system will start to function only when 13.2 is discontinued? But all of these modules were recently updated. As you can see from my `pkg info` output, I have the latest build.
 
Back
Top