Date: Fri, 21 Aug 2020 02:22:23 -0400 From: Jung-uk Kim <jkim@FreeBSD.org> To: Bakul Shah <bakul@iitbombay.org>, freebsd-x11@freebsd.org Subject: Re: X11 AMDGPU driver doesn't get loaded Message-ID: <daf6f0c9-f3f7-f334-011a-b5d80cab1e6b@FreeBSD.org> In-Reply-To: <C8BB1944-0EBE-4B26-8C3A-E8D2DEA39AD6@iitbombay.org> References: <C8BB1944-0EBE-4B26-8C3A-E8D2DEA39AD6@iitbombay.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 20. 8. 21., Bakul Shah wrote: > 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! I have one of these in my laptop. vgapci0@pci0:4:0:0: class=0x030000 rev=0xc2 hdr=0x00 vendor=0x1002 device=0x15d8 subvendor=0x17aa subdevice=0x3802 vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]' device = 'Picasso' class = display subclass = VGA Actually, I am running current on this laptop and graphics/drm-devel-kmod works just fine. [ 21.082] (II) AMDGPU(0): [KMS] Kernel modesetting enabled. [ 21.086] (WW) Falling back to old probe method for modesetting [ 21.086] (WW) Falling back to old probe method for scfb [ 21.086] scfb trace: probe start [ 21.086] scfb trace: probe done [ 21.086] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support [ 21.087] (II) AMDGPU(0): Creating default Display subsection in Screen section "Default Screen Section" for depth/fbbpp 24/32 [ 21.087] (==) AMDGPU(0): Depth 24, (--) framebuffer bpp 32 [ 21.087] (II) AMDGPU(0): Pixel depth = 24 bits stored in 4 bytes (32 bpp pixmaps) [ 21.087] (==) AMDGPU(0): Default visual is TrueColor [ 21.087] (==) AMDGPU(0): RGB weight 888 [ 21.087] (II) AMDGPU(0): Using 8 bits per RGB (8 bit DAC) [ 21.087] (--) AMDGPU(0): Chipset: "Unknown AMD Radeon GPU" (ChipID = 0x15d8) ... [ 21.487] (II) AMDGPU(0): glamor X acceleration enabled on AMD RAVEN (DRM 3.35.0, 13.0-CURRENT, LLVM 9.0.1) [ 21.487] (II) AMDGPU(0): glamor detected, initialising EGL layer. [ 21.487] (==) AMDGPU(0): TearFree property default: auto [ 21.487] (==) AMDGPU(0): VariableRefresh: disabled [ 21.487] (II) AMDGPU(0): KMS Pageflipping: enabled ... I think you need to install both x11-drivers/xf86-video-ati and x11-drivers/xf86-video-amdgpu to make it work. Jung-uk Kim
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?daf6f0c9-f3f7-f334-011a-b5d80cab1e6b>