>Environment:
System : OpenBSD 6.9
Details : OpenBSD 6.9-current (DRMDEBUG) #0: Wed Jun 23 18:49:07
CEST 2021
[email protected]:/sys/arch/macppc/compile/DRMDEBUG
Architecture: OpenBSD.macppc
Machine : macppc
>Description:
During the boot, i hit the following error message:
radeon: ring test failed (scratch(0x15E4)=0xCAFEDEAD)
This leads to no GPU acceleration. I've built a kernel with DRMDEBUG, but the
below output seems not very interesting. I can still use X11, but need to
disable GLX in xorg.conf because llvmpipe also does not play well, with "LLVM
ERROR: Relocation type not implemented yet!".
I tried to attach appleagp thanks to the XXX hints found in
dev/pci/agp_apple.c. Instead of CP issues, i had IB issues. It lead me to bug
reports saying that PCI mode should be forced, which is the current situation.
RV100 is also impacted [0], but the screen is blank instead.
I tried a drm510 kernel, which does not solve the issue.
>How-To-Repeat:
Run OpenBSD/macppc on an iBook G3 with RV100/RV200 videocards.
>Fix:
None known.
Charlène.
[0]
https://www.reddit.com/r/openbsd/comments/nv7oyf/macppc_the_console_goes_blank_after_this_error_is/
dmesg:
OpenBSD 6.9-current (DRMDEBUG) #0: Wed Jun 23 18:49:07 CEST 2021
[email protected]:/sys/arch/macppc/compile/DRMDEBUG
real mem = 671088640 (640MB)
avail mem = 630624256 (601MB)
random: good seed from bootblocks
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root: model PowerBook4,3
cpu0 at mainbus0: 750FX (Revision 0x202): 800 MHz: 512KB L2 cache
mem0 at mainbus0
spdmem0 at mem0: no EEPROM found
spdmem1 at mem0: 512MB SDRAM non-parity PC133CL2
memc0 at mainbus0: uni-n rev 0xc0
kiic0 at memc0 offset 0xf8001000
iic0 at kiic0
admtmp0 at iic0 addr 0xac
mpcpcibr0 at mainbus0 pci: uni-north
pci0 at mpcpcibr0 bus 0
pchb0 at pci0 dev 11 function 0 "Apple Pangea AGP" rev 0x00
agp at pchb0 not configured
radeondrm0 at pci0 dev 16 function 0 "ATI Radeon Mobility M7" rev 0x00
drm0 at radeondrm0
radeondrm0: irq 48
mpcpcibr1 at mainbus0 pci: uni-north
pci1 at mpcpcibr1 bus 0
macobio0 at pci1 dev 23 function 0 "Apple Pangea Macio" rev 0x00
openpic0 at macobio0 offset 0x40000: version 0x4614 feature 3f0302 LE
macgpio0 at macobio0 offset 0x50
macgpio1 at macgpio0 offset 0x9: irq 47
"programmer-switch" at macgpio0 offset 0x11 not configured
"firewire-linkon" at macgpio0 offset 0x5b not configured
"cpu-vcore-select" at macgpio0 offset 0x6b not configured
"extint-gpio4" at macgpio0 offset 0x5c not configured
"gpio9" at macgpio0 offset 0x73 not configured
"extint-gpio12" at macgpio0 offset 0x64 not configured
"escc-legacy" at macobio0 offset 0x12000 not configured
zs0 at macobio0 offset 0x13000: irq 22,23
zstty0 at zs0 channel 0
zstty1 at zs0 channel 1
snapper0 at macobio0 offset 0x10000: irq 30,1,2
"timer" at macobio0 offset 0x15000 not configured
adb0 at macobio0 offset 0x16000: irq 25, via-pmu, 3 targets
apm0 at adb0: battery flags 0x5, 100% charged
piic0 at adb0
iic1 at piic0
akbd0 at adb0 addr 2: iBook keyboard with inverted T (ISO layout)
wskbd0 at akbd0: console keyboard
ams0 at adb0 addr 3: EMP trackpad <tpad> 2-button, 400 dpi
wsmouse0 at ams0 mux 0
abtn0 at adb0 addr 7: brightness/volume/eject buttons
"battery" at macobio0 offset 0x0 not configured
"backlight" at macobio0 offset 0xf300 not configured
kiic1 at macobio0 offset 0x18000
iic2 at kiic1
wdc0 at macobio0 offset 0x1f000 irq 19: DMA
wd0 at wdc0 channel 0 drive 0: <IBM-IC25N030ATCS04-0>
wd0: 16-sector PIO, LBA, 28615MB, 58605120 sectors
atapiscsi0 at wdc0 channel 0 drive 1
scsibus1 at atapiscsi0: 2 targets
cd0 at scsibus1 targ 0 lun 0: <TOSHIBA, DVD-ROM SD-R2212, 1P19> removable
wd0(wdc0:0:0): using PIO mode 4, DMA mode 2
cd0(wdc0:0:1): using PIO mode 4, DMA mode 2
audio0 at snapper0
ohci0 at pci1 dev 24 function 0 "Apple Pangea USB" rev 0x00: irq 27, version 1.0
ohci1 at pci1 dev 25 function 0 "Apple Pangea USB" rev 0x00: irq 28, version 1.0
usb0 at ohci0: USB revision 1.0
uhub0 at usb0 configuration 1 interface 0 "Apple OHCI root hub" rev 1.00/1.00
addr 1
usb1 at ohci1: USB revision 1.0
uhub1 at usb1 configuration 1 interface 0 "Apple OHCI root hub" rev 1.00/1.00
addr 1
mpcpcibr2 at mainbus0 pci: uni-north
pci2 at mpcpcibr2 bus 0
"Apple Pangea FireWire" rev 0x00 at pci2 dev 14 function 0 not configured
gem0 at pci2 dev 15 function 0 "Apple Pangea GMAC" rev 0x00: irq 41, address
00:02:a5:7b:91:e0
bmtphy0 at gem0 phy 0: BCM5221 100baseTX PHY, rev. 4
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
bootpath: /pci@f2000000/mac-io@17/ata-4@1f000/disk@0:/bsd
root on wd0a (50aa07c69adc49a1.a) swap on wd0b dump on wd0b
[drm] initializing kernel modesetting (RV200 0x1002:0x4C57 0x1002:0x4C57 0x00).
radeondrm0: RV200
[drm] Forcing AGP to PCI mode
[drm] *ERROR* Unable to locate a BIOS ROM
[drm] Using device-tree clock info
drm: VRAM: 128M 0x0000000098000000 - 0x000000009FFFFFFF (32M used)
drm: GTT: 512M 0x0000000078000000 - 0x0000000097FFFFFF
[drm] Detected VRAM RAM=128M, BAR=128M
[drm] RAM width 64bits DDR
[TTM] Zone kernel: Available graphics memory: 327680 KiB
[TTM] Initializing pool allocator
[drm] radeon: 32M of VRAM memory ready
[drm] radeon: 512M of GTT memory ready.
[drm] GART: num cpu pages 131072, num gpu pages 131072
[drm] PCI GART of 512M enabled (table at 0x0000000002680000).
drm: WB disabled
drm: fence driver on ring 0 use gpu addr 0x0000000078000000 and cpu addr
0x0x267e000
[drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[drm] radeon: irq initialized.
[drm]
[drm] Loading R100 Microcode
[drm] radeon: ring at 0x0000000078001000
[drm] *ERROR* radeon: ring test failed (scratch(0x15E4)=0xCAFEDEAD)
[drm] *ERROR* radeon: cp isn't working (-22).
drm:pid0:r100_startup *ERROR* failed initializing CP (-22).
drm:pid0:r100_init *ERROR* Disabling GPU acceleration
[drm] *ERROR* Wait for CP idle timeout, shutting down CP.
[drm] radeon: cp finalized
[drm] Connector Table: 2 (ibook)
[drm] No panel info found in BIOS
[drm] Panel info derived from registers
[drm] Panel Size 1024x768
[drm] No TV DAC info found in BIOS
[drm]
[drm] radeon legacy LVDS backlight initialized
[drm] Radeon Display Connectors
[drm] Connector 0:
[drm] LVDS-1
[drm] DDC: 0x64 0x64 0x64 0x64 0x64 0x64 0x64 0x64
[drm] Encoders:
[drm] LCD1: INTERNAL_LVDS
[drm] Connector 1:
[drm] VGA-1
[drm] DDC: 0x60 0x60 0x60 0x60 0x60 0x60 0x60 0x60
[drm] Encoders:
[drm] CRT2: INTERNAL_DAC2
[drm] Connector 2:
[drm] SVIDEO-1
[drm] Encoders:
[drm] TV1: INTERNAL_DAC2
[drm]
[drm]
[drm]
[drm] [CONNECTOR:46:LVDS-1]
[drm] LCD1 connected
[drm] [CONNECTOR:46:LVDS-1] status updated from unknown to connected
[drm] Supported Monitor Refresh rate range is 0 Hz - 0 Hz
[drm] non_desktop set to 0
[drm] ELD: no CEA Extension found
[drm] Supported Monitor Refresh rate range is 0 Hz - 0 Hz
[drm] non_desktop set to 0
[drm] Determined LVDS native mode details from EDID
[drm] [CONNECTOR:46:LVDS-1] probed modes :
[drm] Modeline "1024x768": 60 65000 1024 1048 1184 1344 768 771 777 806 0x40 0xa
[drm] Modeline "800x600": 60 38313 800 832 912 1024 600 603 607 624 0x0 0x6
[drm] Modeline "848x480": 60 31648 848 872 952 1056 480 483 493 500 0x0 0x6
[drm] Modeline "720x480": 60 26852 720 744 808 896 480 483 493 500 0x0 0x6
[drm] Modeline "640x480": 60 23975 640 664 720 800 480 483 487 500 0x0 0x6
[drm] [CONNECTOR:48:VGA-1]
[drm] CRT2 disconnected
[drm] [CONNECTOR:48:VGA-1] status updated from unknown to disconnected
[drm] [CONNECTOR:48:VGA-1] disconnected
[drm] [CONNECTOR:49:SVIDEO-1]
[drm] TV1 disconnected
[drm] [CONNECTOR:49:SVIDEO-1] status updated from unknown to disconnected
[drm] [CONNECTOR:49:SVIDEO-1] disconnected
[drm] connector 46 enabled? yes
[drm] connector 48 enabled? no
[drm] connector 49 enabled? no
[drm] looking for cmdline mode on connector 46
[drm] looking for preferred mode on connector 46 0
[drm] found mode 1024x768
[drm] picking CRTCs for 4096x4096 config
[drm] desired mode 1024x768 set on crtc 42 (0,0)
[drm] test CRTC 0 primary plane
[drm] test CRTC 1 primary plane
[drm] writing surface 0 5242880 40000 1bffff
[drm] vram apper at 0x98000000
[drm] size 1572864
[drm] fb depth is 16
[drm] pitch is 2048
[drm]
[drm] [CRTC:42:crtc-0] [FB:51] #connectors=1 (x y) (0 0)
[drm] crtc has no fb, full mode set
[drm] modes are different, full mode set
[drm] Modeline "": 0 0 0 0 0 0 0 0 0 0 0x0 0x0
[drm] Modeline "1024x768": 60 65000 1024 1048 1184 1344 768 771 777 806 0x40 0xa
[drm] encoder changed, full mode switch
[drm] crtc changed, full mode switch
[drm] [CONNECTOR:46:LVDS-1] to [CRTC:42:crtc-0]
[drm] attempting to set mode from userspace
[drm] Modeline "1024x768": 60 65000 1024 1048 1184 1344 768 771 777 806 0x40 0xa
[drm] setting active device to 00000002 from 00000002 00000002 for encoder 3
[drm] [CRTC:42:crtc-0]
[drm]
[drm]
[drm]
[drm] GRPH_BUFFER_CNTL from to 20065c5c
[drm]
[drm]
[drm] Wrote: 0x0000000c 0x000600ad 0x00000000 (0x0000bc00)
[drm] Wrote: rd=12, fd=173, pd=6
[drm] [ENCODER:45:LVDS-45] set [MODE:1024x768]
[drm]
[drm] bios LVDS_GEN_CNTL: 0xd7fa1
[drm]
[drm] Setting connector DPMS state to on
[drm] [CONNECTOR:46:LVDS-1] set DPMS on
[drm]
[drm]
[drm] [CRTC:44:crtc-1] [NOFB]
[drm]
radeondrm0: 1024x768, 16bpp
wsdisplay0 at radeondrm0 mux 1: console (std, vt100 emulation), using wskbd0
wsdisplay0: screen 1-5 added (std, vt100 emulation)
[drm] Initialized radeon 2.50.0 20080528 for on minor 0
[drm] LCD1 connected
[drm]
[drm]
[drm] [CONNECTOR:46:LVDS-1]
[drm] LCD1 connected
[drm] Supported Monitor Refresh rate range is 0 Hz - 0 Hz
[drm] non_desktop set to 0
[drm] ELD: no CEA Extension found
[drm] Supported Monitor Refresh rate range is 0 Hz - 0 Hz
[drm] non_desktop set to 0
[drm] [CONNECTOR:46:LVDS-1] probed modes :
[drm] Modeline "1024x768": 60 65000 1024 1048 1184 1344 768 771 777 806 0x40 0xa
[drm] Modeline "800x600": 60 38313 800 832 912 1024 600 603 607 624 0x0 0x6
[drm] Modeline "848x480": 60 31648 848 872 952 1056 480 483 493 500 0x0 0x6
[drm] Modeline "720x480": 60 26852 720 744 808 896 480 483 493 500 0x0 0x6
[drm] Modeline "640x480": 60 23975 640 664 720 800 480 483 487 500 0x0 0x6
[drm] [CONNECTOR:48:VGA-1]
[drm] CRT2 disconnected
[drm] [CONNECTOR:48:VGA-1] disconnected
[drm] [CONNECTOR:49:SVIDEO-1]
[drm] TV1 disconnected
[drm] [CONNECTOR:49:SVIDEO-1] disconnected
[drm] connector 46 enabled? yes
[drm] connector 48 enabled? no
[drm] connector 49 enabled? no
[drm] looking for cmdline mode on connector 46
[drm] looking for preferred mode on connector 46 0
[drm] found mode 1024x768
[drm] picking CRTCs for 1024x768 config
[drm] desired mode 1024x768 set on crtc 42 (0,0)
[drm]
[drm] [CRTC:42:crtc-0] [FB:51] #connectors=1 (x y) (0 0)
[drm] [CONNECTOR:46:LVDS-1] to [CRTC:42:crtc-0]
[drm]
[drm] [CRTC:44:crtc-1] [NOFB]
[drm]
ugen0 at uhub1 port 2 "HCF USB V.90 Data/Fax Modem Apple internal modem" rev
1.10/1.00 addr 2
[drm] LCD1 connected
usbdevs:
Controller /dev/usb0:
addr 01: 106b:0000 Apple, OHCI root hub
full speed, self powered, config 1, rev 1.00
driver: uhub0
Controller /dev/usb1:
addr 01: 106b:0000 Apple, OHCI root hub
full speed, self powered, config 1, rev 1.00
driver: uhub1
addr 02: 05ac:8202 HCF USB V.90 Data/Fax Modem, Apple internal modem
full speed, power 260 mA, config 1, rev 1.00, iSerial B0000001
driver: ugen0