Created attachment 238818 [details] pciconf -vl Hello, It seems that the integrated GPU on my AMD Ryzen 7950X isn't supported on FreeBSD. I may have done something wrong but I've tried drm-510-kmod, and even tweaking the kernel driver and adding the chips' pci information (hail mary lol), but that just lead to an instant kernel panic upon loading the customized module haha. Below is the info: vgapci1@pci0:19:0:0: class=0x030000 rev=0xc1 hdr=0x00 vendor=0x1002 device=0x164e subvendor=0x1043 subdevice=0x8877 vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]' device = 'Raphael' class = display subclass = VGA jon@leslie:~ $ uname -a FreeBSD leslie 13.1-STABLE FreeBSD 13.1-STABLE #4 stable/13-n253282-50f61166f7b9: Thu Dec 15 07:42:59 EST 2022 root@leslie:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 I decided to get a dedicated card (AMD Radeon 6900 XT) since someone on the FreeBSD forum was able to demonstrate that it works for them using the amdgpu driver w/ the firmware coming from: graphics/gpu-firmware-amd-kmod FLAVORS=sienna_cichlid. But it would be nice for the integrated GPU to be supported. Thank you!
Can't even find this PCI id in linux master branch so it will be a while before it will be supported in FreeBSD.
Hey Emmanuel, I tested the APU just now on Fedora 37 and it works perfectly fine (even on Wayland). I've attached the linux lspci, dmesg, and uname info, and also two screenshots of GNOME fully running on it. We can see the following information from the lspci output for the gpu components (first is the dedicated 6900 XT card, second is the integrated raphael gpu): 03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi 21 [Radeon RX 6900 XT] (rev c0) (prog-if 00 [VGA controller]) Subsystem: ASUSTeK Computer Inc. Device 04fe Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+ Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort+ <TAbort- <MAbort- >SERR- <PERR- INTx- Latency: 0, Cache Line Size: 64 bytes Interrupt: pin A routed to IRQ 169 IOMMU group: 15 Region 0: Memory at f800000000 (64-bit, prefetchable) [size=16G] Region 2: Memory at fc00000000 (64-bit, prefetchable) [size=256M] Region 4: I/O ports at f000 [size=256] Region 5: Memory at fca00000 (32-bit, non-prefetchable) [size=1M] Expansion ROM at fcb00000 [disabled] [size=128K] Capabilities: <access denied> Kernel driver in use: amdgpu Kernel modules: amdgpu 13:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Raphael (rev c1) (prog-if 00 [VGA controller]) Subsystem: ASUSTeK Computer Inc. Device 8877 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+ Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort+ <TAbort- <MAbort- >SERR- <PERR- INTx- Latency: 0, Cache Line Size: 64 bytes Interrupt: pin A routed to IRQ 76 IOMMU group: 25 Region 0: Memory at fc20000000 (64-bit, prefetchable) [size=256M] Region 2: Memory at fc30000000 (64-bit, prefetchable) [size=2M] Region 4: I/O ports at d000 [size=256] Region 5: Memory at fc900000 (32-bit, non-prefetchable) [size=512K] Capabilities: <access denied> Kernel driver in use: amdgpu Kernel modules: amdgpu I've also attached a crash dump that only occurs if I try to start sddm while the HDMI cable is connected and outputting to the motherboard's HDMI slot (the raphael gpu), if I switch the HDMI cable to the dedicated card, it doesn't crash. I'm guessing this is because it's not supported yet so it may expected behavior in this current state.
Created attachment 238869 [details] dmesg (linux)
Created attachment 238870 [details] lspci (linux)
Created attachment 238871 [details] uname (linux)
Created attachment 238872 [details] full gnome desktop screenshot
Created attachment 238873 [details] gnome info screenshot
Created attachment 238874 [details] crash core 0
Created attachment 238875 [details] crash core 1