Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Aug 2020 22:41:20 -0700
From:      Bakul Shah <bakul@iitbombay.org>
To:        freebsd-x11@freebsd.org
Subject:   X11 AMDGPU driver doesn't get loaded
Message-ID:  <C8BB1944-0EBE-4B26-8C3A-E8D2DEA39AD6@iitbombay.org>

next in thread | raw e-mail | index | archive | help
On a Motile M142 with Ryzen 5 3500U, amdgpu.ko and amdgpu_*.ko firmware
gets loaded fine on boot -- installed from ports/graphic/drm-devel-kmod
as I am running -current. [the port compiled from the exact same kernel
sources as /boot/kernel/*]

But when I try to start X11, Xorg.0.log shows this:

(EE) modeset(0): [DRI2] No driver mapping found for PCI device 0x1002 / =
0x15d8
(EE) modeset(0): Failed to initialize the DRI2 extension.

and it tried to load the framebuffer driver, which works fine. AIUI
it should be loading /usr/local/lib/xorg/modules/drivers/amdgpu_drv.so

The PCI vendor/device IDs are correct. I added a relevant entry for my
laptop in /usr/local/share/pciids/pci.ids but ktrace reveals the
pci.ids file is never accessed. I have been trying read Xorg code but
wondering if there is an easier way to debug this. Or if I can simply
specify loading the amdgpu_drv driver and bypass modesetting!=20

BTW, is this a better place to discuss debugging this or irc or gitter
or the freebsd forums?

Thanks!
Bakul




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C8BB1944-0EBE-4B26-8C3A-E8D2DEA39AD6>