Subject: Re: Console drivers
To: Michael Lorenz <macallan@netbsd.org>
From: Marco Trillo <marcotrillo@gmail.com>
List: port-macppc
Date: 11/11/2006 11:39:23
Hi,

On 11/11/06, Marco Trillo <marcotrillo@gmail.com> wrote:
> Yes, it apparently requires a fixed "horizontal sync" frequency of
> 72kHz and can't do anything out of that.
> [...]
> I will try with the "1024x768x89" mode.

No luck yet, the screen continues to get black after radeonfb initializes.
It appears the driver don't like the "1024x768x89" mode, since it
prints out weird data such as "physical 2083537574x-1813970776 0Hz"
...

Here's the relevant portion of the dmesg:

radeonfb0 at pci0 dev 16 function 0: ATI Technologies Radeon 9200 5962
radeonfb0: unable to map IO registers!
RADEON_BIOS_4_SCRATCH = 00000000
RADEON_FP_GEN_CNTL = 00030148
RADEON_FP2_GEN_CNTL = 00000008
RADEON_TMDS_CNTL = 01000000
RADEON_TMDS_TRANSMITTER_CNTL = 10000082
RADEON_TMDS_PLL_CNTL = 004bffdd
RADEON_LVDS_GEN_CNTL = 00008020
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 13000 pll 400f4
TMDS_PLL dot clock 15000 pll 400f7
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
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 = 00000002
RADEON_DAC_CNTL2 = 00000002
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: virtual resolution 640x480 at 32 bpp
radeonfb0: port 0: physical 2083537574x-1813970776 0Hz
radeonfb0: port 1: physical 2083537574x-1813970776 0Hz
fpbtr = 0xd4bc0000
init engine
init screen called, existing 1
CRTC_GEN_CNTL = 03000601
RADEON_CRTC_EXT_CNTL = 00008048
CRTC_H_TOTAL_DISP = fa7b2014
FP_H_TOTAL_DISP = fa7b2014
CRTC_H_SYNC_STRT_WID = 9381009c
FP_H_SYNC_STRT_WID = 9381009c
CRTC_V_TOTAL_DISP = 7fa70025
FP_V_TOTAL_DISP = 7fa70025
CRTC_V_SYNC_STRT_WID = fc3142a5
FP_V_SYNC_STRT_WID = fc3142a5
dot clock: 2083603366
RADEON_PPLL_REF_DIV = 0000000c
RADEON_PPLL_CNTL = 0000bf30
RADEON_CRTC_MORE_CNTL = 00000000
RADEON_CRTC_EXT_CNTL = 00008048
RADEON_CRTC_GEN_CNTL = 03000601
RADEON_CLOCK_CNTL_INDEX = 00000000
CRTC2_GEN_CNTL = 02000681
RADEON_CRTC_EXT_CNTL = 00008048
CRTC2_H_TOTAL_DISP = fa7b2014
FP_H2_TOTAL_DISP = fa7b2014
CRTC2_H_SYNC_STRT_WID = 9381009c
FP_H2_SYNC_STRT_WID = 9381009c
CRTC2_V_TOTAL_DISP = 7fa70025
FP_V2_TOTAL_DISP = 7fa70025
CRTC2_V_SYNC_STRT_WID = fc3142a5
FP_V2_SYNC_STRT_WID = fc3142a5
dot clock: 2083603366
RADEON_CRTC_MORE_CNTL = 00000000
RADEON_CRTC2_GEN_CNTL = 02000681
wsdisplay0 at radeonfb0 kbdmux 1: console (fb, vt100 emulation)

-------------
Thanks,
Marco