Subject: radeonfb: black screen
To: None <port-macppc@netbsd.org>
From: Timm Wetzel <twetzel@gwdg.de>
List: port-macppc
Date: 06/20/2007 12:41:35
Hello,

when trying a kernel with radeonfb on a cube with a radeon 7500 driving a 
digital display (17in LCD ASD), the display turned black, with the LED 
triple-blinking (indicating invalid video mode).

Apart from the missing video output, the system was happy, one could 
log in.

According to dmesg, the monitor is detected correctly, and the first set of 
timing parameters also looks plausible. Not knowing much about radeon 
registers, the only things looking fishy to me are the 64MB aperture size 
(the card has 32MB VRAM), and the second set of timing parameters.

Any ideas?
I should probably add that I never got a X server to work with this 
card/display combination. (Black screen, but no triple-blinking.) MacOSX 
and OFW work without problems. 
The same kernel works fine on my iBook with the mobile version of the 7500.


Regards,
Timm


dmesg excerpt:
[...]
NetBSD 4.99.15 (LUKE) #1: Tue Mar 20 00:35:15 CET 2007 twetzel@luke.local:
/usr/src/sys/arch/macppc/compile/LUKE
total memory = 1024 MB
avail memory = 988 MB
timecounter: Timecounters tick every 10.000 msec
init_interrupt: found OpenPIC @ pa 0x80040000, 0x80040000
mainbus0 (root)
cpu0 at mainbus0: 7400 (Revision 2.9), ID 0 (primary)
cpu0: HID0 8094c0a4<EMCP,DOZE,DPM,EIEC,ICE,DCE,SGE,BTIC,BHT>, powersave: 1
cpu0: 450.00 MHz, no-parity 1MB WB L2 cache (PB SRAM) at 2:1 ratio
uni_n0 at mainbus0 address 0xf8000000
ki2c0 at uni_n0 address 0xf8001000
iic0 at ki2c0: I2C bus
uninorth0 at mainbus0
pci0 at uninorth0 bus 0
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 11 function 0
pchb0: Apple Computer UniNorth AGP Interface (rev. 0x00)
radeonfb0 at pci0 dev 16 function 0: ATI Technologies Radeon 7500 QW
radeonfb0: unable to map IO registers!
RADEON_BIOS_4_SCRATCH = 00000000
RADEON_FP_GEN_CNTL = 000300cd
RADEON_FP2_GEN_CNTL = 00000008
RADEON_TMDS_CNTL = 01000000
RADEON_TMDS_TRANSMITTER_CNTL = 10000081
RADEON_TMDS_PLL_CNTL = 00000a1b
RADEON_LVDS_GEN_CNTL = 00008020
RADEON_FP_HORZ_STRETCH = 009f0000
RADEON_FP_VERT_STRETCH = 003ff000
radeonfb0: Video BIOS not present
radeonfb0: No video BIOS, using default clocks
no suitable DFP table present
TMDS_PLL dot clock 15000 pll a1b
TMDS_PLL dot clock -1 pll a3f
TMDS_PLL dot clock 0 pll 0
TMDS_PLL dot clock 0 pll 0
radeonfb0: refclk = 27.000 MHz, refdiv = 12 minpll = 125000, 
maxpll = 350000
No connector info in BIOS!
Port #0:
    conn = 4
    ddc = 2
    dac = 1
    tmds = 0
max_dotclock according to supported modes: 108000
Vendor: [APP] Apple Computer
Product: [9217] Display
Serial number: df0cfe02
Manufactured 2001 Week 30
EDID Version 1.2
EDID Comment: 
Video Input: 88
	Digital
Gamma: 2.35
Max Size: 33 cm x 27 cm
Features: 28
	DPMS active-off
	RGB
Chroma Info:
	Red X: 0.630
	Red Y: 0.630
	Grn X: 0.300
	Grn Y: 0.570
	Blu X: 0.140
	Blu Y: 0.095
	Wht X: 0.310
	Wht Y: 0.330
Video modes:
	1280x1024 @ 60Hz
	1280x1024 @ 60Hz
Preferred mode: 1280x1024 @ 60Hz
Port #1:
    conn = 2
    ddc = 3
    dac = 0
    tmds = 1
aperbase = 2550136832
RADEON_MC_FB_LOCATION = 9bff9800
RADEON_MC_AGP_LOCATION = 9bff9c00
RADEON_DAC_CNTL2 = 00000000
RADEON_DAC_CNTL2 = 00000000
RADEON_DAC_CNTL2 = 00000003
RADEON_DISP_HW_DEBUG = 00020020
RADEON_DAC_CNTL = ff000102
RADEON_TV_DAC_CNTL = 00280203
radeonfb0: 64 MB aperture at 0x98000000, 64 KB registers at 0x90000000
dual crtcs!
radeonfb0: display 0: initial virtual resolution 1280x1024 at 32 bpp
radeonfb0: port 0: physical 1280x1024 60Hz
radeonfb0: port 1: physical 1024x768 60Hz
fpbtr = 0xd4bc0000
init engine
init screen called, existing 1
CRTC_GEN_CNTL = 03000600
RADEON_CRTC_EXT_CNTL = 00008048
CRTC_H_TOTAL_DISP = 009f00d2
FP_H_TOTAL_DISP = 009f00d2
CRTC_H_SYNC_STRT_WID = 008e0580
FP_H_SYNC_STRT_WID = 008e0580
CRTC_V_TOTAL_DISP = 03ff0429
FP_V_TOTAL_DISP = 03ff0429
CRTC_V_SYNC_STRT_WID = 00830403
FP_V_SYNC_STRT_WID = 00830403
dot clock: 108000
outfreq: 216000
post divider: 2 (mask 10000)
feedback divider: 96
RADEON_PPLL_REF_DIV = 0000000c
RADEON_PPLL_CNTL = 0000a430
RADEON_CRTC_MORE_CNTL = 0000003c
RADEON_CRTC_EXT_CNTL = 00008048
RADEON_CRTC_GEN_CNTL = 03000600
RADEON_CLOCK_CNTL_INDEX = 00000000
CRTC2_GEN_CNTL = 02000680
RADEON_CRTC_EXT_CNTL = 00008048
CRTC2_H_TOTAL_DISP = 007f00a7
FP_H2_TOTAL_DISP = 007f00a7
CRTC2_H_SYNC_STRT_WID = 00910418
FP_H2_SYNC_STRT_WID = 00910418
CRTC2_V_TOTAL_DISP = 02ff0325
FP_V2_TOTAL_DISP = 02ff0325
CRTC2_V_SYNC_STRT_WID = 00860302
FP_V2_SYNC_STRT_WID = 00860302
dot clock: 65000
outfreq: 130000
post divider: 2 (mask 10000)
feedback divider: 58
RADEON_CRTC_MORE_CNTL = 0000003c
RADEON_CRTC2_GEN_CNTL = 02000680
wsdisplay0 at radeonfb0 kbdmux 1: console (fb, vt100 emulation)
wsmux1: connecting to wsdisplay0
RADEON_FP_GEN_CNTL = 000300cd
RADEON_FP2_GEN_CNTL = 0000200c