Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

radeonkms loading results in black screen with RS780L #117

Closed
mibifuzzi opened this issue Oct 5, 2021 · 9 comments
Closed

radeonkms loading results in black screen with RS780L #117

mibifuzzi opened this issue Oct 5, 2021 · 9 comments
Labels
radeon radeonkms related problems

Comments

@mibifuzzi
Copy link

Describe the bug
I cannot load radeokms on my machine. Whenever I load it, the screen turns black. I tried loading it via kldlist in /etc/rc.conf or via kldload. I tried the binary package from pkg and building the module by hand via the ports collection. I also tried with hw.syscons.disable=1 or without it in /boot/loader.conf.

FreeBSD version
FreeBSD marc 13.0-RELEASE-p4 FreeBSD 13.0-RELEASE-p4 #0: Tue Aug 24 07:33:27 UTC 2021 root@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64

PCI Info

pciconf -lv

hostb0@pci0:0:0:0: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x9600 subvendor=0x1043 subdevice=0x8388
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'RS780 Host Bridge'
class = bridge
subclass = HOST-PCI
pcib1@pci0:0:1:0: class=0x060400 rev=0x00 hdr=0x01 vendor=0x1043 device=0x9602 subvendor=0x1043 subdevice=0x8388
vendor = 'ASUSTeK Computer Inc.'
device = 'AMD RS780/RS880 PCI to PCI bridge (int gfx)'
class = bridge
subclass = PCI-PCI
pcib2@pci0:0:7:0: class=0x060400 rev=0x00 hdr=0x01 vendor=0x1022 device=0x9607 subvendor=0x1043 subdevice=0x8388
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'RS780/RS880 PCI to PCI bridge (PCIE port 3)'
class = bridge
subclass = PCI-PCI
pcib3@pci0:0:10:0: class=0x060400 rev=0x00 hdr=0x01 vendor=0x1022 device=0x9609 subvendor=0x1043 subdevice=0x8388
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'RS780/RS880 PCI to PCI bridge (PCIE port 5)'
class = bridge
subclass = PCI-PCI
ahci0@pci0:0:17:0: class=0x010601 rev=0x00 hdr=0x00 vendor=0x1002 device=0x4391 subvendor=0x1043 subdevice=0x8389
vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]'
device = 'SB7x0/SB8x0/SB9x0 SATA Controller [AHCI mode]'
class = mass storage
subclass = SATA
ohci0@pci0:0:18:0: class=0x0c0310 rev=0x00 hdr=0x00 vendor=0x1002 device=0x4397 subvendor=0x1043 subdevice=0x8389
vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]'
device = 'SB7x0/SB8x0/SB9x0 USB OHCI0 Controller'
class = serial bus
subclass = USB
ohci1@pci0:0:18:1: class=0x0c0310 rev=0x00 hdr=0x00 vendor=0x1002 device=0x4398 subvendor=0x1043 subdevice=0x8389
vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]'
device = 'SB7x0 USB OHCI1 Controller'
class = serial bus
subclass = USB
ehci0@pci0:0:18:2: class=0x0c0320 rev=0x00 hdr=0x00 vendor=0x1002 device=0x4396 subvendor=0x1043 subdevice=0x8389
vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]'
device = 'SB7x0/SB8x0/SB9x0 USB EHCI Controller'
class = serial bus
subclass = USB
ohci2@pci0:0:19:0: class=0x0c0310 rev=0x00 hdr=0x00 vendor=0x1002 device=0x4397 subvendor=0x1043 subdevice=0x8389
vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]'
device = 'SB7x0/SB8x0/SB9x0 USB OHCI0 Controller'
class = serial bus
subclass = USB
ohci3@pci0:0:19:1: class=0x0c0310 rev=0x00 hdr=0x00 vendor=0x1002 device=0x4398 subvendor=0x1043 subdevice=0x8389
vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]'
device = 'SB7x0 USB OHCI1 Controller'
class = serial bus
subclass = USB
ehci1@pci0:0:19:2: class=0x0c0320 rev=0x00 hdr=0x00 vendor=0x1002 device=0x4396 subvendor=0x1043 subdevice=0x8389
vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]'
device = 'SB7x0/SB8x0/SB9x0 USB EHCI Controller'
class = serial bus
subclass = USB
intsmb0@pci0:0:20:0: class=0x0c0500 rev=0x3c hdr=0x00 vendor=0x1002 device=0x4385 subvendor=0x1043 subdevice=0x8389
vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]'
device = 'SBx00 SMBus Controller'
class = serial bus
subclass = SMBus
atapci0@pci0:0:20:1: class=0x01018a rev=0x00 hdr=0x00 vendor=0x1002 device=0x439c subvendor=0x1043 subdevice=0x8389
vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]'
device = 'SB7x0/SB8x0/SB9x0 IDE Controller'
class = mass storage
subclass = ATA
hdac1@pci0:0:20:2: class=0x040300 rev=0x00 hdr=0x00 vendor=0x1002 device=0x4383 subvendor=0x1043 subdevice=0x836c
vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]'
device = 'SBx00 Azalia (Intel HDA)'
class = multimedia
subclass = HDA
isab0@pci0:0:20:3: class=0x060100 rev=0x00 hdr=0x00 vendor=0x1002 device=0x439d subvendor=0x1043 subdevice=0x8389
vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]'
device = 'SB7x0/SB8x0/SB9x0 LPC host controller'
class = bridge
subclass = PCI-ISA
pcib4@pci0:0:20:4: class=0x060401 rev=0x00 hdr=0x01 vendor=0x1002 device=0x4384 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]'
device = 'SBx00 PCI to PCI Bridge'
class = bridge
subclass = PCI-PCI
ohci4@pci0:0:20:5: class=0x0c0310 rev=0x00 hdr=0x00 vendor=0x1002 device=0x4399 subvendor=0x1043 subdevice=0x8389
vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]'
device = 'SB7x0/SB8x0/SB9x0 USB OHCI2 Controller'
class = serial bus
subclass = USB
hostb1@pci0:0:24:0: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1600 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 15h Processor Function 0'
class = bridge
subclass = HOST-PCI
hostb2@pci0:0:24:1: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1601 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 15h Processor Function 1'
class = bridge
subclass = HOST-PCI
hostb3@pci0:0:24:2: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1602 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 15h Processor Function 2'
class = bridge
subclass = HOST-PCI
hostb4@pci0:0:24:3: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1603 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 15h Processor Function 3'
class = bridge
subclass = HOST-PCI
hostb5@pci0:0:24:4: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1604 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 15h Processor Function 4'
class = bridge
subclass = HOST-PCI
hostb6@pci0:0:24:5: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1605 subvendor=0x0000 subdevice=0x0000
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 15h Processor Function 5'
class = bridge
subclass = HOST-PCI
vgapci0@pci0:1:5:0: class=0x030000 rev=0x00 hdr=0x00 vendor=0x1002 device=0x9616 subvendor=0x1043 subdevice=0x8388
vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]'
device = 'RS780L [Radeon 3000]'
class = display
subclass = VGA
hdac0@pci0:1:5:1: class=0x040300 rev=0x00 hdr=0x00 vendor=0x1002 device=0x960f subvendor=0x1043 subdevice=0x8388
vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]'
device = 'RS780 HDMI Audio [Radeon 3000/3100 / HD 3200/3300]'
class = multimedia
subclass = HDA
xhci0@pci0:2:0:0: class=0x0c0330 rev=0x00 hdr=0x00 vendor=0x1b21 device=0x1042 subvendor=0x1043 subdevice=0x8488
vendor = 'ASMedia Technology Inc.'
device = 'ASM1042 SuperSpeed USB Host Controller'
class = serial bus
subclass = USB
re0@pci0:3:0:0: class=0x020000 rev=0x09 hdr=0x00 vendor=0x10ec device=0x8168 subvendor=0x1043 subdevice=0x8505
vendor = 'Realtek Semiconductor Co., Ltd.'
device = 'RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller'
class = network
subclass = ethernet

DRM KMOD version
drm-fbsd13-kmod 5.4.144.g20210908 drm-kmod g20190710_1

To Reproduce
Boot machine, login as root, execute kldload radeonkms

Additional context
The problem occured after upgrading from 12.2-RELEASE to 13.0-RELEASE.

/var/log/messages

Oct 5 16:41:20 marc kernel: [drm] radeon kernel modesetting enabled.
Oct 5 16:41:20 marc kernel: drmn0: on vgapci0
Oct 5 16:41:20 marc kernel: vgapci0: child drmn0 requested pci_enable_io
Oct 5 16:41:20 marc syslogd: last message repeated 1 times
Oct 5 16:41:20 marc kernel: sysctl_warn_reuse: can't re-use a leaf (hw.dri.debug)!
Oct 5 16:41:20 marc kernel: [drm] initializing kernel modesetting (RS780 0x1002:0x9616 0x1043:0x8388 0x00).
Oct 5 16:41:20 marc kernel: [drm ERROR :radeon_atombios_init] Unable to find PCI I/O BAR; using MMIO for ATOM IIO
Oct 5 16:41:20 marc kernel: ATOM BIOS: B27732
Oct 5 16:41:20 marc kernel: drmn0: VRAM: 256M 0x00000000C0000000 - 0x00000000CFFFFFFF (256M used)
Oct 5 16:41:20 marc kernel: drmn0: GTT: 512M 0x00000000A0000000 - 0x00000000BFFFFFFF
Oct 5 16:41:20 marc kernel: Successfully added WC MTRR for [0xd0000000-0xdfffffff]: 0;
Oct 5 16:41:20 marc kernel: [drm] Detected VRAM RAM=256M, BAR=256M
Oct 5 16:41:20 marc kernel: [drm] RAM width 32bits DDR
Oct 5 16:41:20 marc kernel: [TTM] Zone kernel: Available graphics memory: 8228336 KiB
Oct 5 16:41:20 marc kernel: [TTM] Zone dma32: Available graphics memory: 2097152 KiB
Oct 5 16:41:20 marc kernel: [TTM] Initializing pool allocator
Oct 5 16:41:20 marc kernel: [drm] radeon: 256M of VRAM memory ready
Oct 5 16:41:20 marc kernel: [drm] radeon: 512M of GTT memory ready.
Oct 5 16:41:20 marc kernel: [drm] Loading RS780 Microcode
Oct 5 16:41:20 marc kernel: drmn0: successfully loaded firmware image 'radeon/RS780_pfp.bin'
Oct 5 16:41:20 marc kernel: drmn0: successfully loaded firmware image 'radeon/RS780_me.bin'
Oct 5 16:41:20 marc kernel: drmn0: successfully loaded firmware image 'radeon/R600_rlc.bin'
Oct 5 16:41:20 marc kernel: [drm] radeon: power management initialized
Oct 5 16:41:20 marc kernel: [drm] GART: num cpu pages 131072, num gpu pages 131072
Oct 5 16:41:20 marc kernel: [drm] PCIE GART of 512M enabled (table at 0x00000000C0040000).
Oct 5 16:41:20 marc kernel: drmn0: WB enabled
Oct 5 16:41:20 marc kernel: drmn0: fence driver on ring 0 use gpu addr 0x00000000a0000c00 and cpu addr 0x0xfffff800789f1c00
Oct 5 16:41:20 marc kernel: [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
Oct 5 16:41:20 marc kernel: [drm] Driver supports precise vblank timestamp query.
Oct 5 16:41:20 marc kernel: drmn0: radeon: MSI limited to 32-bit
Oct 5 16:41:20 marc kernel: [drm] radeon: irq initialized.
Oct 5 16:41:20 marc kernel: [drm] ring test on 0 succeeded in 1 usecs
Oct 5 16:41:20 marc kernel: [drm] ib test on ring 0 succeeded in 0 usecs
Oct 5 16:41:20 marc kernel: [drm] Connector VGA-1: get mode from tunables:
Oct 5 16:41:20 marc kernel: [drm] - kern.vt.fb.modes.VGA-1
Oct 5 16:41:20 marc kernel: [drm] - kern.vt.fb.default_mode
Oct 5 16:41:20 marc kernel: [drm] Connector HDMI-A-1: get mode from tunables:
Oct 5 16:41:20 marc kernel: [drm] - kern.vt.fb.modes.HDMI-A-1
Oct 5 16:41:20 marc kernel: [drm] - kern.vt.fb.default_mode
Oct 5 16:41:20 marc kernel: [drm] Radeon Display Connectors
Oct 5 16:41:20 marc kernel: [drm] Connector 0:
Oct 5 16:41:20 marc kernel: [drm] VGA-1
Oct 5 16:41:20 marc kernel: [drm] DDC: 0x7e40 0x7e40 0x7e44 0x7e44 0x7e48 0x7e48 0x7e4c 0x7e4c
Oct 5 16:41:20 marc kernel: [drm] Encoders:
Oct 5 16:41:20 marc kernel: [drm] CRT1: INTERNAL_KLDSCP_DAC1
Oct 5 16:41:20 marc kernel: [drm] Connector 1:
Oct 5 16:41:20 marc kernel: [drm] HDMI-A-1
Oct 5 16:41:20 marc kernel: [drm] HPD3
Oct 5 16:41:20 marc kernel: [drm] DDC: 0x7e50 0x7e50 0x7e54 0x7e54 0x7e58 0x7e58 0x7e5c 0x7e5c
Oct 5 16:41:20 marc kernel: [drm] Encoders:
Oct 5 16:41:20 marc kernel: [drm] DFP3: INTERNAL_KLDSCP_LVTMA
Oct 5 16:41:20 marc kernel: [drm] Cannot find any crtc or sizes
Oct 5 16:41:20 marc kernel: [drm] Initialized radeon 2.50.0 20080528 for drmn0 on minor 0
Oct 5 16:41:21 marc kernel: [drm] Cannot find any crtc or sizes

@evadot evadot added the radeon radeonkms related problems label Oct 6, 2021
@evadot
Copy link
Contributor

evadot commented Oct 6, 2021

Does the workaround in #108 works ?

@mibifuzzi
Copy link
Author

The workaround in #108 does not seem to work for me. When I inlcude only drm, no blackout occurs. But also, there is no visible effect. kldstat shows drm, but the screen resolution stays low. Now, after drm was loaded, I tried two things: starting X and loading radeonkms in addition. Both ways, the blackout happens again.

@grahamperrin

This comment has been minimized.

@grahamperrin
Copy link
Contributor

#117 (comment)

… after drm was loaded, I tried two things: starting X and loading radeonkms in addition. Both ways, the blackout happens again.

Does temporary installation of x11-drivers/xf86-video-ati make a difference in this case?

The driver may, may not be recommended for your hardware but still, I'd like to know the outcome. Thanks.

@mibifuzzi
Copy link
Author

I tried using the absolute path of the module, no difference for me. I guess the problem from the forums was the the module was no found? But for me the module is found and loaded. The system keeps running, too. I can login via ssh and verify that radeonkms was loaded, "only" the screen remains black.

For the second suggestion: I had xf86-video-ati installed. After removing it, the behavior persists more or less. After loading drm, but not radeonkms, trying to start the X server fails with "No screen found". After loading radeonkms, the screen blacks out again.

@grahamperrin
Copy link
Contributor

Thanks,

…𠉧 I guess the problem from the forums was the the module was no found? …

The person who, for a while, found it necessary to use an absolute path later found it not necessary to use an absolute path.

… trying to start the X server …

As root, or as a normal user?

@mibifuzzi
Copy link
Author

Thanks for staying with me.

As root, or as a normal user?

After loading drm and not radeonkms, without having installed xf86-video-ati, I get "no screens found" when starting X as both, either root or an unprivileged user.

Installing xf86-video-ati and starting X gives me the blank screen for both users, still without radeonkms loaded. But now, kldstat gives:

kldstat
  Id Refs Address                Size Name
  1   96 0xffffffff80200000  1f11f28 kernel
  2    1 0xffffffff82113000    1abe8 geom_eli.ko
  3    1 0xffffffff8212e000     b7b8 opensolaris.ko
  4    1 0xffffffff8213a000   67feb0 zfs.ko
  5    3 0xffffffff82920000    7f548 drm.ko
  6    3 0xffffffff829a0000     cbc8 linuxkpi_gplv2.ko
  7    1 0xffffffff829ad000     2328 lindebugfs.ko
  8    1 0xffffffff829b0000     3378 acpi_wmi.ko
  9    1 0xffffffff829b4000     3218 intpm.ko
  10    1 0xffffffff829b8000     2180 smbus.ko
  11    1 0xffffffff829bb000     4b60 ng_ubt.ko
  12    6 0xffffffff829c0000     aac8 netgraph.ko
  13    2 0xffffffff829cb000     a238 ng_hci.ko
  14    3 0xffffffff829d6000     25a8 ng_bluetooth.ko
  15    1 0xffffffff829d9000     2340 uhid.ko
  16    1 0xffffffff829dc000     4350 ums.ko
  17    1 0xffffffff829e1000     3380 usbhid.ko
  18    1 0xffffffff829e5000     31f8 hidbus.ko
  19    1 0xffffffff829e9000     3320 wmt.ko
  20    1 0xffffffff829ed000     e250 ng_l2cap.ko
  21    1 0xffffffff829fc000    1ce48 ng_btsocket.ko
  22    1 0xffffffff82a19000     3980 ng_socket.ko
  23    1 0xffffffff82a1d000     2a08 mac_ntpd.ko
  24    1 0xffffffff82a20000   14fc70 radeonkms.ko
  25    1 0xffffffff82b70000     e778 ttm.ko
  26    1 0xffffffff82b7f000     29d8 radeon_RS780_pfp_bin.ko
  27    1 0xffffffff82b82000     74d8 radeon_RS780_me_bin.ko
  28    1 0xffffffff82b8a000     2cd8 radeon_R600_rlc_bin.ko

@evadot
Copy link
Contributor

evadot commented Oct 14, 2021

Could you test latest master please ? (With acfc459)

@evadot
Copy link
Contributor

evadot commented Jun 6, 2022

No news, closing.

@evadot evadot closed this as completed Jun 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
radeon radeonkms related problems
Projects
None yet
Development

No branches or pull requests

3 participants