Bug 237223 - graphics/drm-fbsd12.0-kmod: black screen with SUMO (Radeon HD 6530D) on AMD APU
Summary: graphics/drm-fbsd12.0-kmod: black screen with SUMO (Radeon HD 6530D) on AMD APU
Status: In Progress
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Johannes M Dieterich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-12 12:40 UTC by Felix Palmen
Modified: 2019-05-07 01:08 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (jmd)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Palmen 2019-04-12 12:40:57 UTC
After switching from FreeBSD 11.2 with drm-stable-kmod to FreeBSD 12.0 with drm-fbsd12.0-kmod, the following device stopped working:

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

As soon as radonkms.ko is loaded, the display is disabled. It generates the following log:

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

For now, I got drm-stable-kmod-g20180822_1 which builds and works fine here and gives this log when loading radeonkms.ko:

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
Comment 1 Johannes M Dieterich freebsd_committer 2019-05-07 01:08:30 UTC
Can you report this issue on the kms-drm github? We are tracking issues that are not the port but the actual DRM code there. Thanks!