FreeBSDDesktop / kms-drm

the DRM part of the linuxkpi-based KMS
63 stars 26 forks source link

drm-fbsd12.0-kmod black screen with SUMO (Radeon HD 6530D) on FreeBSD 12.0 and 12.1 #196

Open Zirias opened 4 years ago

Zirias commented 4 years ago

Loading radeonkms.ko disables my screen as it doesn't seem to find any displays. This is my graphics chip, integrated in an early AMD APU:

vgapci0@pci0:0:1:0:     class=0x030000 card=0x96401849 chip=0x964a1002 rev=0x00 hdr=0x00
    vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'
    device     = 'Sumo [Radeon HD 6530D]'
    class      = display
    subclass   = VGA

Example of a log of this issue:

Apr 12 13:45:53 nexus kernel: [drm] radeon kernel modesetting enabled.
Apr 12 13:45:53 nexus kernel: drmn0: <drmn> on vgapci0
Apr 12 13:45:53 nexus kernel: vgapci0: child drmn0 requested pci_enable_io
Apr 12 13:45:53 nexus syslogd: last message repeated 1 times
Apr 12 13:45:53 nexus kernel: [drm] initializing kernel modesetting (SUMO 0x1002:0x964A 0x1849:0x9640 0x00).
Apr 12 13:45:53 nexus kernel: [drm:radeon_device_init] Unable to find PCI I/O BAR
Apr 12 13:45:53 nexus kernel: [drm:radeon_atombios_init] Unable to find PCI I/O BAR; using MMIO for ATOM IIO
Apr 12 13:45:53 nexus kernel: ATOM BIOS: General
Apr 12 13:45:53 nexus kernel: drmn0: VRAM: 256M 0x0000000000000000 - 0x000000000FFFFFFF (256M used)
Apr 12 13:45:53 nexus kernel: drmn0: GTT: 1024M 0x0000000010000000 - 0x000000004FFFFFFF
Apr 12 13:45:53 nexus kernel: Failed to add WC MTRR for [0xc0000000-0xcfffffff]: -22; performance may suffer
Apr 12 13:45:53 nexus kernel: [drm] Detected VRAM RAM=256M, BAR=256M
Apr 12 13:45:53 nexus kernel: [drm] RAM width 32bits DDR
Apr 12 13:45:53 nexus kernel: [TTM] Zone  kernel: Available graphics memory: 4030244 kiB
Apr 12 13:45:53 nexus kernel: [TTM] Zone   dma32: Available graphics memory: 2097152 kiB
Apr 12 13:45:53 nexus kernel: [TTM] Initializing pool allocator
Apr 12 13:45:53 nexus kernel: [drm] radeon: 256M of VRAM memory ready
Apr 12 13:45:53 nexus kernel: [drm] radeon: 1024M of GTT memory ready.
Apr 12 13:45:53 nexus kernel: [drm] Loading SUMO Microcode
Apr 12 13:45:53 nexus kernel: drmn0: successfully loaded firmware image with name: radeon/SUMO_pfp.bin
Apr 12 13:45:53 nexus kernel: drmn0: successfully loaded firmware image with name: radeon/SUMO_me.bin
Apr 12 13:45:53 nexus kernel: drmn0: successfully loaded firmware image with name: radeon/SUMO_rlc.bin
Apr 12 13:45:53 nexus kernel: [drm] Internal thermal controller without fan control
Apr 12 13:45:53 nexus kernel: [drm] Found smc ucode version: 0x00011200
Apr 12 13:45:53 nexus kernel: [drm] radeon: dpm initialized
Apr 12 13:45:53 nexus kernel: drmn0: successfully loaded firmware image with name: radeon/SUMO_uvd.bin
Apr 12 13:45:53 nexus kernel: [drm] GART: num cpu pages 262144, num gpu pages 262144
Apr 12 13:45:53 nexus kernel: [drm] PCIE GART of 1024M enabled (table at 0x0000000000162000).
Apr 12 13:45:53 nexus kernel: drmn0: WB enabled
Apr 12 13:45:53 nexus kernel: drmn0: fence driver on ring 0 use gpu addr 0x0000000010000c00 and cpu addr 0x0xfffff800151b0c00
Apr 12 13:45:53 nexus kernel: drmn0: fence driver on ring 3 use gpu addr 0x0000000010000c0c and cpu addr 0x0xfffff800151b0c0c
Apr 12 13:45:53 nexus kernel: drmn0: fence driver on ring 5 use gpu addr 0x0000000000072118 and cpu addr 0x0xfffff800c0072118
Apr 12 13:45:53 nexus kernel: [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
Apr 12 13:45:53 nexus kernel: [drm] Driver supports precise vblank timestamp query.
Apr 12 13:45:53 nexus kernel: drmn0: radeon: MSI limited to 32-bit
Apr 12 13:45:53 nexus kernel: [drm] radeon: irq initialized.
Apr 12 13:45:53 nexus kernel: [drm] ring test on 0 succeeded in 1 usecs
Apr 12 13:45:53 nexus kernel: [drm] ring test on 3 succeeded in 3 usecs
Apr 12 13:45:53 nexus kernel: [drm] ring test on 5 succeeded in 1 usecs
Apr 12 13:45:53 nexus kernel: [drm] UVD initialized successfully.
Apr 12 13:45:53 nexus kernel: [drm] ib test on ring 0 succeeded in 0 usecs
Apr 12 13:45:53 nexus kernel: [drm] ib test on ring 3 succeeded in 0 usecs
Apr 12 13:45:53 nexus kernel: [drm] ib test on ring 5 succeeded
Apr 12 13:45:53 nexus kernel: [drm] Connector DVI-D-1: get mode from tunables:
Apr 12 13:45:53 nexus kernel: [drm]   - kern.vt.fb.modes.DVI-D-1
Apr 12 13:45:53 nexus kernel: [drm]   - kern.vt.fb.default_mode
Apr 12 13:45:53 nexus kernel: [drm] Connector DVI-D-2: get mode from tunables:
Apr 12 13:45:53 nexus kernel: [drm]   - kern.vt.fb.modes.DVI-D-2
Apr 12 13:45:53 nexus kernel: [drm]   - kern.vt.fb.default_mode
Apr 12 13:45:53 nexus kernel: [drm] Radeon Display Connectors
Apr 12 13:45:53 nexus kernel: [drm] Connector 0:
Apr 12 13:45:53 nexus kernel: [drm]   DVI-D-1
Apr 12 13:45:53 nexus kernel: [drm]   HPD2
Apr 12 13:45:53 nexus kernel: [drm]   DDC: 0x6440 0x6440 0x6444 0x6444 0x6448 0x6448 0x644c 0x644c
Apr 12 13:45:53 nexus kernel: [drm]   Encoders:
Apr 12 13:45:53 nexus kernel: [drm]     DFP2: INTERNAL_UNIPHY2
Apr 12 13:45:53 nexus kernel: [drm] Connector 1:
Apr 12 13:45:53 nexus kernel: [drm]   DVI-D-2
Apr 12 13:45:53 nexus kernel: [drm]   HPD1
Apr 12 13:45:53 nexus kernel: [drm]   DDC: 0x6430 0x6430 0x6434 0x6434 0x6438 0x6438 0x643c 0x643c
Apr 12 13:45:53 nexus kernel: [drm]   Encoders:
Apr 12 13:45:53 nexus kernel: [drm]     DFP1: INTERNAL_UNIPHY2
Apr 12 13:45:53 nexus kernel: [drm] Cannot find any crtc or sizes
Apr 12 13:45:53 nexus kernel: [drm] Initialized radeon 2.50.0 20080528 for drmn0 on minor 0
Apr 12 13:45:53 nexus kernel: lo0: link state changed to UP
Apr 12 13:45:53 nexus kernel: [drm] Cannot find any crtc or sizes

On FreeBSD 12.0, I could build the old drm-stable-kmod port, giving me a perfectly working driver, logging something like this instead:

Apr 12 14:06:31 nexus kernel: [drm] Initialized
Apr 12 14:06:31 nexus kernel: [drm] radeon kernel modesetting enabled.
Apr 12 14:06:31 nexus kernel: drmn0: <drmn> on vgapci0
Apr 12 14:06:31 nexus kernel: vgapci0: child drmn0 requested pci_enable_io
Apr 12 14:06:31 nexus syslogd: last message repeated 1 times
Apr 12 14:06:31 nexus kernel: [drm] initializing kernel modesetting (SUMO 0x1002:0x964A 0x1849:0x9640 0x00).
Apr 12 14:06:31 nexus kernel: [drm] register mmio base: 0xFEB00000
Apr 12 14:06:31 nexus kernel: [drm] register mmio size: 262144
Apr 12 14:06:31 nexus kernel: [drm:radeon_device_init] Unable to find PCI I/O BAR
Apr 12 14:06:31 nexus kernel: [drm:radeon_atombios_init] Unable to find PCI I/O BAR; using MMIO for ATOM IIO
Apr 12 14:06:31 nexus kernel: ATOM BIOS: General
Apr 12 14:06:31 nexus kernel: drmn0: VRAM: 256M 0x0000000000000000 - 0x000000000FFFFFFF (256M used)
Apr 12 14:06:31 nexus kernel: drmn0: GTT: 1024M 0x0000000010000000 - 0x000000004FFFFFFF
Apr 12 14:06:31 nexus kernel: Failed to add WC MTRR for [0xc0000000-0xcfffffff]: -22; performance may suffer
Apr 12 14:06:31 nexus kernel: [drm] Detected VRAM RAM=256M, BAR=256M
Apr 12 14:06:31 nexus kernel: [drm] RAM width 32bits DDR
Apr 12 14:06:31 nexus kernel: Zone  kernel: Available graphics memory: 4030244 kiB
Apr 12 14:06:31 nexus kernel: Zone   dma32: Available graphics memory: 2097152 kiB
Apr 12 14:06:31 nexus kernel: [TTM] Initializing pool allocator
Apr 12 14:06:31 nexus kernel: [drm] radeon: 256M of VRAM memory ready
Apr 12 14:06:31 nexus kernel: [drm] radeon: 1024M of GTT memory ready.
Apr 12 14:06:31 nexus kernel: [drm] Loading SUMO Microcode
Apr 12 14:06:31 nexus kernel: radeon/SUMO_pfp.bin: could not load firmware image, error 2
Apr 12 14:06:31 nexus syslogd: last message repeated 1 times
Apr 12 14:06:31 nexus kernel: radeon/SUMO_me.bin: could not load firmware image, error 2
Apr 12 14:06:31 nexus syslogd: last message repeated 1 times
Apr 12 14:06:31 nexus kernel: radeon/SUMO_rlc.bin: could not load firmware image, error 2
Apr 12 14:06:31 nexus syslogd: last message repeated 1 times
Apr 12 14:06:31 nexus kernel: [drm] Internal thermal controller without fan control
Apr 12 14:06:31 nexus kernel: [drm] Found smc ucode version: 0x00011200
Apr 12 14:06:31 nexus kernel: [drm] radeon: dpm initialized
Apr 12 14:06:31 nexus kernel: radeon/SUMO_uvd.bin: could not load firmware image, error 2
Apr 12 14:06:31 nexus syslogd: last message repeated 1 times
Apr 12 14:06:31 nexus kernel: [drm] GART: num cpu pages 262144, num gpu pages 262144
Apr 12 14:06:31 nexus kernel: [drm] PCIE GART of 1024M enabled (table at 0x0000000000162000).
Apr 12 14:06:31 nexus kernel: drmn0: WB enabled
Apr 12 14:06:31 nexus kernel: drmn0: fence driver on ring 0 use gpu addr 0x0000000010000c00 and cpu addr 0x0xfffff80015163c00
Apr 12 14:06:31 nexus kernel: drmn0: fence driver on ring 3 use gpu addr 0x0000000010000c0c and cpu addr 0x0xfffff80015163c0c
Apr 12 14:06:31 nexus kernel: drmn0: fence driver on ring 5 use gpu addr 0x0000000000072118 and cpu addr 0x0xfffff800c0072118
Apr 12 14:06:31 nexus kernel: [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
Apr 12 14:06:31 nexus kernel: [drm] Driver supports precise vblank timestamp query.
Apr 12 14:06:31 nexus kernel: drmn0: radeon: MSI limited to 32-bit
Apr 12 14:06:31 nexus kernel: [drm] radeon: irq initialized.
Apr 12 14:06:31 nexus kernel: [drm] ring test on 0 succeeded in 1 usecs
Apr 12 14:06:31 nexus kernel: [drm] ring test on 3 succeeded in 3 usecs
Apr 12 14:06:31 nexus kernel: [drm] ring test on 5 succeeded in 1 usecs
Apr 12 14:06:31 nexus kernel: [drm] UVD initialized successfully.
Apr 12 14:06:31 nexus kernel: [drm] ib test on ring 0 succeeded in 0 usecs
Apr 12 14:06:31 nexus kernel: [drm] ib test on ring 3 succeeded in 0 usecs
Apr 12 14:06:31 nexus kernel: [drm] ib test on ring 5 succeeded
Apr 12 14:06:31 nexus kernel: [drm] hw_i2c forced on, you may experience display detection problems!
Apr 12 14:06:31 nexus kernel: [drm] Connector DVI-D-1: get mode from tunables:
Apr 12 14:06:31 nexus kernel: [drm]   - kern.vt.fb.modes.DVI-D-1
Apr 12 14:06:31 nexus kernel: [drm]   - kern.vt.fb.default_mode
Apr 12 14:06:31 nexus kernel: [drm] Connector DVI-D-2: get mode from tunables:
Apr 12 14:06:31 nexus kernel: [drm]   - kern.vt.fb.modes.DVI-D-2
Apr 12 14:06:31 nexus kernel: [drm]   - kern.vt.fb.default_mode
Apr 12 14:06:31 nexus kernel: [drm] Radeon Display Connectors
Apr 12 14:06:31 nexus kernel: [drm] Connector 0:
Apr 12 14:06:31 nexus kernel: [drm]   DVI-D-1
Apr 12 14:06:31 nexus kernel: [drm]   HPD2
Apr 12 14:06:31 nexus kernel: [drm]   DDC: 0x6440 0x6440 0x6444 0x6444 0x6448 0x6448 0x644c 0x644c
Apr 12 14:06:31 nexus kernel: [drm]   Encoders:
Apr 12 14:06:31 nexus kernel: [drm]     DFP2: INTERNAL_UNIPHY2
Apr 12 14:06:31 nexus kernel: [drm] Connector 1:
Apr 12 14:06:31 nexus kernel: [drm]   DVI-D-2
Apr 12 14:06:31 nexus kernel: [drm]   HPD1
Apr 12 14:06:31 nexus kernel: [drm]   DDC: 0x6430 0x6430 0x6434 0x6434 0x6438 0x6438 0x643c 0x643c
Apr 12 14:06:31 nexus kernel: [drm]   Encoders:
Apr 12 14:06:31 nexus kernel: [drm]     DFP1: INTERNAL_UNIPHY2
Apr 12 14:06:31 nexus kernel: [drm] fb mappable at 0xC0366000
Apr 12 14:06:31 nexus kernel: [drm] vram apper at 0xC0000000
Apr 12 14:06:31 nexus kernel: [drm] size 9216000
Apr 12 14:06:31 nexus kernel: [drm] fb depth is 24
Apr 12 14:06:31 nexus kernel: [drm]    pitch is 7680
Apr 12 14:06:31 nexus kernel: VT: Replacing driver "vga" with new "fb".
Apr 12 14:06:31 nexus kernel: start FB_INFO:
Apr 12 14:06:31 nexus kernel: type=11 height=1200 width=1920 depth=32
Apr 12 14:06:31 nexus kernel: cmsize=16 size=9216000
Apr 12 14:06:31 nexus kernel: pbase=0xc0366000 vbase=0xfffff800c0366000
Apr 12 14:06:31 nexus kernel: name=drmn0 flags=0x0 stride=7680 bpp=32
Apr 12 14:06:31 nexus kernel: cmap[0]=0 cmap[1]=7f0000 cmap[2]=7f00 cmap[3]=c4a000
Apr 12 14:06:31 nexus kernel: end FB_INFO
Apr 12 14:06:31 nexus kernel: drmn0: fb0: radeondrmfb frame buffer device
Apr 12 14:06:31 nexus kernel: [drm] Initialized radeon 2.48.0 20080528 for drmn on minor 0

On FreeBSD 12.1, this doesn't work any more, so I tried to build the drm-v5.0-fbsd12.1 branch instead, which also succeeds to initialize my display, but crashes when used from X with hardware acceleration enabled. Loading this newer radeonkms.ko gives a log like this:

Dec  5 09:12:09 nexus kernel: drmn0: <drmn> on vgapci0
Dec  5 09:12:09 nexus kernel: vgapci0: child drmn0 requested pci_enable_io
Dec  5 09:12:09 nexus syslogd: last message repeated 1 times
Dec  5 09:12:09 nexus kernel: [drm] initializing kernel modesetting (SUMO 0x1002:0x964A 0x1849:0x9640 0x00).
Dec  5 09:12:09 nexus kernel: pci_is_thunderbolt_attached not implemented -- see your local kernel hacker
Dec  5 09:12:09 nexus kernel: [drm ERROR :radeon_atombios_init] Unable to find PCI I/O BAR; using MMIO for ATOM IIO
Dec  5 09:12:09 nexus kernel: ATOM BIOS: General
Dec  5 09:12:09 nexus kernel: efi_enabled not implemented -- see your local kernel hacker
Dec  5 09:12:09 nexus kernel: drmn0: VRAM: 256M 0x0000000000000000 - 0x000000000FFFFFFF (256M used)
Dec  5 09:12:09 nexus kernel: drmn0: GTT: 1024M 0x0000000010000000 - 0x000000004FFFFFFF
Dec  5 09:12:09 nexus kernel: Failed to add WC MTRR for [0xc0000000-0xcfffffff]: -22; performance may suffer
Dec  5 09:12:09 nexus kernel: [drm] Detected VRAM RAM=256M, BAR=256M
Dec  5 09:12:09 nexus kernel: [drm] RAM width 32bits DDR
Dec  5 09:12:09 nexus kernel: [TTM] Zone  kernel: Available graphics memory: 4030196 kiB
Dec  5 09:12:09 nexus kernel: [TTM] Zone   dma32: Available graphics memory: 2097152 kiB
Dec  5 09:12:09 nexus kernel: [TTM] Initializing pool allocator
Dec  5 09:12:09 nexus kernel: [drm] radeon: 256M of VRAM memory ready
Dec  5 09:12:09 nexus kernel: [drm] radeon: 1024M of GTT memory ready.
Dec  5 09:12:09 nexus kernel: [drm] Loading SUMO Microcode
Dec  5 09:12:09 nexus kernel: drmn0: successfully loaded firmware image with name: radeon/SUMO_pfp.bin
Dec  5 09:12:09 nexus kernel: drmn0: successfully loaded firmware image with name: radeon/SUMO_me.bin
Dec  5 09:12:09 nexus kernel: drmn0: successfully loaded firmware image with name: radeon/SUMO_rlc.bin
Dec  5 09:12:09 nexus kernel: [drm] Internal thermal controller without fan control
Dec  5 09:12:09 nexus kernel: [drm] Found smc ucode version: 0x00011200
Dec  5 09:12:09 nexus kernel: [drm] radeon: dpm initialized
Dec  5 09:12:09 nexus kernel: drmn0: successfully loaded firmware image with name: radeon/SUMO_uvd.bin
Dec  5 09:12:09 nexus kernel: [drm] GART: num cpu pages 262144, num gpu pages 262144
Dec  5 09:12:09 nexus kernel: [drm] PCIE GART of 1024M enabled (table at 0x0000000000162000).
Dec  5 09:12:09 nexus kernel: get_nr_swap_pages not implemented -- see your local kernel hacker
Dec  5 09:12:09 nexus kernel: drmn0: WB enabled
Dec  5 09:12:09 nexus kernel: drmn0: fence driver on ring 0 use gpu addr 0x0000000010000c00 and cpu addr 0x0xfffff800281a7c00
Dec  5 09:12:09 nexus kernel: drmn0: fence driver on ring 3 use gpu addr 0x0000000010000c0c and cpu addr 0x0xfffff800281a7c0c
Dec  5 09:12:09 nexus kernel: drmn0: fence driver on ring 5 use gpu addr 0x0000000000072118 and cpu addr 0x0xfffff800c0072118
Dec  5 09:12:09 nexus kernel: [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
Dec  5 09:12:09 nexus kernel: [drm] Driver supports precise vblank timestamp query.
Dec  5 09:12:09 nexus kernel: drmn0: radeon: MSI limited to 32-bit
Dec  5 09:12:09 nexus kernel: drmn0: radeon: using MSI.
Dec  5 09:12:09 nexus kernel: [drm] radeon: irq initialized.
Dec  5 09:12:09 nexus kernel: pm_runtime_mark_last_busy not implemented -- see your local kernel hacker
Dec  5 09:12:09 nexus kernel: [drm] ring test on 0 succeeded in 2 usecs
Dec  5 09:12:09 nexus kernel: [drm] ring test on 3 succeeded in 3 usecs
Dec  5 09:12:09 nexus kernel: [drm] ring test on 5 succeeded in 1 usecs
Dec  5 09:12:09 nexus kernel: [drm] UVD initialized successfully.
Dec  5 09:12:09 nexus kernel: [drm] ib test on ring 0 succeeded in 0 usecs
Dec  5 09:12:09 nexus kernel: [drm] ib test on ring 3 succeeded in 0 usecs
Dec  5 09:12:09 nexus kernel: [drm] ib test on ring 5 succeeded
Dec  5 09:12:09 nexus kernel: [drm] hw_i2c forced on, you may experience display detection problems!
Dec  5 09:12:09 nexus kernel: [drm] Connector DVI-D-1: get mode from tunables:
Dec  5 09:12:09 nexus kernel: [drm]   - kern.vt.fb.modes.DVI-D-1
Dec  5 09:12:09 nexus kernel: [drm]   - kern.vt.fb.default_mode
Dec  5 09:12:09 nexus kernel: [drm] Connector DVI-D-2: get mode from tunables:
Dec  5 09:12:09 nexus kernel: [drm]   - kern.vt.fb.modes.DVI-D-2
Dec  5 09:12:09 nexus kernel: [drm]   - kern.vt.fb.default_mode
Dec  5 09:12:09 nexus kernel: [drm] Radeon Display Connectors
Dec  5 09:12:09 nexus kernel: [drm] Connector 0:
Dec  5 09:12:09 nexus kernel: [drm]   DVI-D-1
Dec  5 09:12:09 nexus kernel: [drm]   HPD2
Dec  5 09:12:09 nexus kernel: [drm]   DDC: 0x6440 0x6440 0x6444 0x6444 0x6448 0x6448 0x644c 0x644c
Dec  5 09:12:09 nexus kernel: [drm]   Encoders:
Dec  5 09:12:09 nexus kernel: [drm]     DFP2: INTERNAL_UNIPHY2
Dec  5 09:12:09 nexus kernel: [drm] Connector 1:
Dec  5 09:12:09 nexus kernel: [drm]   DVI-D-2
Dec  5 09:12:09 nexus kernel: [drm]   HPD1
Dec  5 09:12:09 nexus kernel: [drm]   DDC: 0x6430 0x6430 0x6434 0x6434 0x6438 0x6438 0x643c 0x643c
Dec  5 09:12:09 nexus kernel: [drm]   Encoders:
Dec  5 09:12:09 nexus kernel: [drm]     DFP1: INTERNAL_UNIPHY2
Dec  5 09:12:09 nexus kernel: __pm_runtime_resume not implemented -- see your local kernel hacker
Dec  5 09:12:09 nexus kernel: pm_runtime_mark_last_busy not implemented -- see your local kernel hacker
Dec  5 09:12:09 nexus kernel: __pm_runtime_suspend not implemented -- see your local kernel hacker
Dec  5 09:12:09 nexus kernel: [drm] fb mappable at 0xC0366000
Dec  5 09:12:09 nexus kernel: [drm] vram apper at 0xC0000000
Dec  5 09:12:09 nexus kernel: [drm] size 9216000
Dec  5 09:12:09 nexus kernel: [drm] fb depth is 24
Dec  5 09:12:09 nexus kernel: [drm]    pitch is 7680
Dec  5 09:12:09 nexus kernel: VT: Replacing driver "vga" with new "fb".
Dec  5 09:12:09 nexus kernel: __pm_runtime_resume not implemented -- see your local kernel hacker
Dec  5 09:12:09 nexus kernel: start FB_INFO:
Dec  5 09:12:09 nexus kernel: pm_runtime_mark_last_busy not implemented -- see your local kernel hacker
Dec  5 09:12:09 nexus kernel: type=11 height=1200 width=1920 depth=32
Dec  5 09:12:09 nexus kernel: cmsize=16 size=9216000
Dec  5 09:12:09 nexus kernel: __pm_runtime_suspend not implemented -- see your local kernel hacker
Dec  5 09:12:09 nexus kernel: pbase=0xc0366000 vbase=0xfffff800c0366000
Dec  5 09:12:09 nexus kernel: name=drmn0 flags=0x0 stride=7680 bpp=32
Dec  5 09:12:09 nexus kernel: cmap[0]=0 cmap[1]=7f0000 cmap[2]=7f00 cmap[3]=c4a000
Dec  5 09:12:09 nexus kernel: end FB_INFO
Dec  5 09:12:09 nexus kernel: drmn0: fb0: radeondrmfb frame buffer device
Dec  5 09:12:09 nexus kernel: [drm] Initialized radeon 2.50.0 20080528 for drmn0 on minor 0

My assumption is that this was broken in Linux 4.16 and fixed in later versions, but so far, I wasn't successful myself in finding the key difference between the various versions ...

Zirias commented 4 years ago

I just tried the drm-fbsd11.2-kmod port (based on 4.11 I think?) by removing the check for ${OPSYS} == FreeBSD && ${OSVERSION} > 1200000 -- it works fine on my FreeBSD 12.1 system and I have accelerated rendering back without any crashes :)