[Bug 261749] radeonkms corrupts kernel (panic) when being unloaded

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 06 Feb 2022 16:58:14 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261749

            Bug ID: 261749
           Summary: radeonkms corrupts kernel (panic) when being unloaded
           Product: Base System
           Version: Unspecified
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: sblachmann@gmail.com

How to reproduce:

1. kldload radeonkms (no matter whether via rc.conf or manually via console. It
loads even if there is no radeon hardware present!).
2. kldunload radeonkms.
3. kldload nvidia. BANG! GPF PANIC!

It happens no matter whether sc or vt console are being used.
This issue is particularly annoying when you swapped the radeon graphics card
for a nvidia one and want reconfigure the system to run with the nvidia, after
booting with the rc.conf still containing the radeonkms module kldload.

Because, it should not be necessary to have to reboot only because of radeonkms
corrupting the kernel.

Test system is HP Z800 with FreeBSD 13-RELEASE-p7.
Nvidia driver here is 390 (Quadro 2000). But my feeling is the Nvidia driver
version will not matter.

-- 
You are receiving this mail because:
You are the assignee for the bug.