Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 09 Oct 2021 01:17:56 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 259019] kld_list="radeonkms" in /etc/rc.conf -> kernel panic
Message-ID:  <bug-259019-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D259019

            Bug ID: 259019
           Summary: kld_list=3D"radeonkms" in /etc/rc.conf -> kernel panic
           Product: Base System
           Version: 13.0-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: donaldcallen@gmail.com

Created attachment 228531
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D228531&action=
=3Dedit
dmesg

In trying to run a newly installed copy of FreeBSD 13 on the machine descri=
bed
in the attached dmesg, I need to load radeonkms kernel module in order to
obtain full resolution when running X. Following the man page for rc.conf,
which says:

kld_list         (str) A whitespace-separated list of kernel modules to load
                 right after the local disks are mounted, without any .ko e=
x-
                 tension or path.  Loading modules at this point in the boot
                 process is much faster than doing it via /boot/loader.conf
                 for those modules not necessary for mounting local disks.

Noting "without any .ko extension or path", I added the line

kld_list=3D"radeonkms"

Prior to doing so, the system would boot normally and I could run 'startx' =
and
X would come up, but with VGA resolution. After adding the line above, the
system would crash while booting. I found the following in /var/log/message=
s:

Oct  8 11:03:09 giovanni kernel: Fatal trap 12: page fault while in kernel =
mode
Oct  8 11:03:09 giovanni kernel: cpuid =3D 3; apic id =3D 03
Oct  8 11:03:09 giovanni kernel: fault virtual address  =3D 0x0
Oct  8 11:03:09 giovanni kernel: fault code     =3D supervisor read data, p=
age
not present
Oct  8 11:03:09 giovanni kernel: instruction pointer    =3D
0x20:0xffffffff80853b62
Oct  8 11:03:09 giovanni kernel: stack pointer          =3D
0x28:0xfffffe011604f4d0
Oct  8 11:03:09 giovanni kernel: frame pointer          =3D
0x28:0xfffffe011604f500
Oct  8 11:03:09 giovanni kernel: code segment       =3D base 0x0, limit 0xf=
ffff,
type 0x1b
Oct  8 11:03:09 giovanni kernel:            =3D DPL 0, pres 1, long 1, def3=
2 0,
gran 1
Oct  8 11:03:09 giovanni kernel: processor eflags   =3D interrupt enabled,
resume, IOPL =3D 0
Oct  8 11:03:09 giovanni kernel: current process        =3D 70998 (kldload)
Oct  8 11:03:09 giovanni kernel: trap number        =3D 12
Oct  8 11:03:09 giovanni kernel: panic: page fault
Oct  8 11:03:09 giovanni kernel: cpuid =3D 3
Oct  8 11:03:09 giovanni kernel: time =3D 1633705330
Oct  8 11:03:09 giovanni kernel: KDB: stack backtrace:
Oct  8 11:03:09 giovanni kernel: #0 0xffffffff80c57345 at kdb_backtrace+0x65
Oct  8 11:03:09 giovanni kernel: #1 0xffffffff80c09d21 at vpanic+0x181
Oct  8 11:03:09 giovanni kernel: #2 0xffffffff80c09b93 at panic+0x43
Oct  8 11:03:09 giovanni kernel: #3 0xffffffff8108b187 at trap_fatal+0x387
Oct  8 11:03:09 giovanni kernel: #4 0xffffffff8108b1df at trap_pfault+0x4f
Oct  8 11:03:09 giovanni kernel: #5 0xffffffff8108a83d at trap+0x27d
Oct  8 11:03:09 giovanni kernel: #6 0xffffffff810617a8 at calltrap+0x8
Oct  8 11:03:09 giovanni kernel: #7 0xffffffff82371f76 at
evergreen_fix_pci_max_read_req_size+0x176
Oct  8 11:03:09 giovanni kernel: #8 0xffffffff823795fc at
evergreen_startup+0x87c
Oct  8 11:03:09 giovanni kernel: #9 0xffffffff8237b7cc at evergreen_init+0x=
28c
Oct  8 11:03:09 giovanni kernel: #10 0xffffffff823d0980 at
radeon_device_init+0xde0
Oct  8 11:03:09 giovanni kernel: #11 0xffffffff823e1009 at
radeon_driver_load_kms+0x139
Oct  8 11:03:09 giovanni kernel: #12 0xffffffff824ae7b6 at
drm_dev_register+0xc6
Oct  8 11:03:09 giovanni kernel: #13 0xffffffff823d7830 at
radeon_pci_probe+0x230
Oct  8 11:03:09 giovanni kernel: #14 0xffffffff80e4301b at
linux_pci_attach_device+0x30b
Oct  8 11:03:09 giovanni kernel: #15 0xffffffff80c4653d at device_attach+0x=
3dd
Oct  8 11:03:09 giovanni kernel: #16 0xffffffff80c48196 at
bus_generic_driver_added+0xb6
Oct  8 11:03:09 giovanni kernel: ---<<BOOT>>---

Oddly, and contrary to what the man page says, changing the added line in
rc.conf to

kld_list=3D"/boot/modules/radeonkms.ko"

allows the system to boot and the radeonkms driver is apparently loaded, as=
 the
resolution in X is now correct.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-259019-227>