Subject: Re: radeonfb: black screen
To: None <port-macppc@netbsd.org>
From: Dave Huang <khym@azeotrope.org>
List: port-macppc
Date: 07/21/2007 19:45:55
> 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.

I'm seeing what appears to be the same problem on my G4 Dual Proc,
Radeon 32MB, and 17" Studio Display (CRT). Booting a kernel with
radeonfb shows some output through OpenFirmware, then the screen goes
black. As far as I know, the Studio Display doesn't give any
indication of bad video mode, but I suspect that's what's happening.

With RADEON_DEBUG defined, dmesg says:

NetBSD 4.99.24 (GREYFOX) #16: Sat Jul 21 19:21:25 CDT 2007
	khym@cheetah.azeotrope.org:/usr/obj.macppc/sys/arch/macppc/compile/GREYFOX
total memory = 832 MB
avail memory = 800 MB
timecounter: Timecounters tick every 10.000 msec
init_interrupt: found OpenPIC @ pa 0x80040000, 0x80040000
mainbus0 (root)
cpu0 at mainbus0: 7400 (Revision 0.9), ID 0 (primary)
cpu0: HID0 8094c0a4<EMCP,DOZE,DPM,EIEC,ICE,DCE,SGE,BTIC,BHT>, powersave: 1
cpu0: 500.00 MHz, no-parity 1MB WB L2 cache (PB SRAM) at 2:1 ratio
cpu1 at mainbus0: ID 1
cpu1: processor off-line; multiprocessor support not present in kernel
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 QD
radeonfb0: unable to map IO registers!
RADEON_BIOS_4_SCRATCH = 00000000
RADEON_FP_GEN_CNTL = 00030048
RADEON_FP2_GEN_CNTL = 00000000
RADEON_TMDS_CNTL = 01000000
RADEON_TMDS_TRANSMITTER_CNTL = 10000080
RADEON_TMDS_PLL_CNTL = 00000a1b
RADEON_LVDS_GEN_CNTL = 00000000
RADEON_FP_HORZ_STRETCH = 00000000
RADEON_FP_VERT_STRETCH = 00000000
radeonfb0: Video BIOS not present
radeonfb0: No video BIOS, using default clocks
no suitable DFP table present
TMDS_PLL dot clock 12000 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 = 0
    tmds = 0
radeonfb0: using static EDID
max_dotclock according to supported modes: 168750
Vendor: [APP] Apple Computer
Product: [9213] StudioDisplay
Serial number: 935d0002
Manufactured 2000 Week 0
EDID Version 1.1
EDID Comment: 
Video Input: 8
	Analog
	-0.7, 0.3V
	Seperate syncs
Gamma: 0.14
Max Size: 33 cm x 24 cm
Features: 8
	RGB
Chroma Info:
	Red X: 0.625
	Red Y: 0.625
	Grn X: 0.278
	Grn Y: 0.600
	Blu X: 0.150
	Blu Y: 0.068
	Wht X: 0.283
	Wht Y: 0.297
Range:
	Horizontal: 78 - 82 kHz
	Vertical: 60 - 180 Hz
	Max Dot Clock: 170 MHz
Video modes:
	1280x1024 @ 75Hz
	1600x1200 @ 64Hz
Preferred mode: 1600x1200 @ 64Hz
Port #1:
    conn = 2
    ddc = 3
    dac = 0
    tmds = 1
radeonfb0: using static EDID
max_dotclock according to supported modes: 168750
Vendor: [APP] Apple Computer
Product: [9213] StudioDisplay
Serial number: 935d0002
Manufactured 2000 Week 0
EDID Version 1.1
EDID Comment: 
Video Input: 8
	Analog
	-0.7, 0.3V
	Seperate syncs
Gamma: 0.14
Max Size: 33 cm x 24 cm
Features: 8
	RGB
Chroma Info:
	Red X: 0.625
	Red Y: 0.625
	Grn X: 0.278
	Grn Y: 0.600
	Blu X: 0.150
	Blu Y: 0.068
	Wht X: 0.283
	Wht Y: 0.297
Range:
	Horizontal: 78 - 82 kHz
	Vertical: 60 - 180 Hz
	Max Dot Clock: 170 MHz
Video modes:
	1280x1024 @ 75Hz
	1600x1200 @ 64Hz
Preferred mode: 1600x1200 @ 64Hz
aperbase = 2550136832
RADEON_MC_FB_LOCATION = 9bff9800
RADEON_MC_AGP_LOCATION = 9bff9c00
RADEON_DAC_CNTL2 = 00000000
RADEON_DAC_CNTL2 = 00000000
RADEON_DISP_HW_DEBUG = 00000000
RADEON_DAC_CNTL = ff000102
RADEON_TV_DAC_CNTL = 00000000
radeonfb0: 64 MB aperture at 0x98000000, 512 KB registers at 0x90080000
radeonfb0: display 0: initial virtual resolution 1600x1200 at 32 bpp
radeonfb0: port 0: physical 1600x1200 64Hz
fpbtr = 0xd4c34000
init engine
init screen called, existing 1
CRTC_GEN_CNTL = 03000600
RADEON_CRTC_EXT_CNTL = 00000048
CRTC_H_TOTAL_DISP = 00c70107
FP_H_TOTAL_DISP = 00c70107
CRTC_H_SYNC_STRT_WID = 00170658
FP_H_SYNC_STRT_WID = 00170658
CRTC_V_TOTAL_DISP = 04af04d9
FP_V_TOTAL_DISP = 04af04d9
CRTC_V_SYNC_STRT_WID = 000304b0
FP_V_SYNC_STRT_WID = 000304b0
dot clock: 168750
outfreq: 168750
post divider: 1 (mask 0)
feedback divider: 75
RADEON_PPLL_REF_DIV = 0000000c
RADEON_PPLL_CNTL = 0000a430
RADEON_CRTC_MORE_CNTL = 00000000
RADEON_CRTC_EXT_CNTL = 00000048
RADEON_CRTC_GEN_CNTL = 03000600
RADEON_CLOCK_CNTL_INDEX = 00000000
wsdisplay0 at radeonfb0 kbdmux 1: console (fb, vt100 emulation)
wsmux1: connecting to wsdisplay0
RADEON_FP_GEN_CNTL = 000300cc
RADEON_FP2_GEN_CNTL = 00000000
direct rendering for radeonfb0 unsupported
uninorth1 at mainbus0
pci1 at uninorth1 bus 0
pci1: i/o space, memory space enabled
[...]


By the way, the two video modes it lists, 1280x1024 @ 75Hz and
1600x1200 @ 64Hz are correct, but the monitor supports many more
standard modes that aren't listed. Also, the "Preferred mode:
1600x1200 @ 64Hz" certainly isn't preferred by _me_ :) That's too
small and flickery; I prefer the 1280x1024@75Hz. Is there a way to
manually select a video mode?

-- 
Name: Dave Huang         |  Mammal, mammal / their names are called /
INet: khym@azeotrope.org |  they raise a paw / the bat, the cat /
FurryMUCK: Dahan         |  dolphin and dog / koala bear and hog -- TMBG
Dahan: Hani G Y+C 31 Y++ L+++ W- C++ T++ A+ E+ S++ V++ F- Q+++ P+ B+ PA+ PL++