Subject: Re: The radeon framebuffer device panics init (on i386)
To: Vincent <10.50@free.fr>
From: Michael Lorenz <macallan@netbsd.org>
List: tech-kern
Date: 12/18/2006 19:13:05
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

On Dec 18, 2006, at 16:17, Vincent wrote:

> I suddently realized there was a Radeon framebuffer device that could 
> be added to the kernel, and had the violent desire to test it, because 
> I do tinker with X these days.

Radeonfb has absolutely nothing to do with X.

>  Bad luck, it broke my brand new HEAD kernel.
>
> After spitting that:
>
> NetBSD 4.99.6 (PRESARIO) #2: Mon Dec 18 19:08:07 CET 2006
> [snip]
> radeonfb0 at pci1 dev 0 function 0: vendor 0x1002 product 0x4c57
> RADEON_BIOS_4_SCRATCH = 01000004
> RADEON_FP_GEN_CNTL = 01430000
> RADEON_FP2_GEN_CNTL = 00000008
> RADEON_TMDS_CNTL = 01000000
> RADEON_TMDS_TRANSMITTER_CNTL = 10000082
> RADEON_TMDS_PLL_CNTL = 00000a1b
> RADEON_LVDS_GEN_CNTL = 083dffa1
> RADEON_FP_HORZ_STRETCH = 0e7f09ff
> RADEON_FP_VERT_STRETCH = 0e2ff855
> radeonfb0: unable to map BIOS!
> radeonfb0: BIOS inititialization failed
>
> the kernels fails to fork init, because:
>
> panic: cnopen: no console device

Yup, happens when no console output device attaches.

> Well, I am wrong somewhere, is this expected behaviour or the effect 
> of a vicious hidden and nasty bug?

Hard to tell. For some reason radeonfb can't map your BIOS and barfs 
about that - not sure why.
Do you have 'options RADEON_BIOS_INIT' in your kernel? Try without it.
Then, please post the output of 'pcictl pci1 dump -d 0' - this should 
dump your graphics controller's PCI config space - might contain a hint 
why the BIOS couldn't be mapped.

have fun
Michael
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iQEVAwUBRYcukcpnzkX8Yg2nAQJZ9Qf/QPlgL7psX5M+rIQ902rxSFsDvZ6sITSS
wciESbufV5a0nCqnGwnVJoOwd3fbkTMYw7r+K6AXnhHr1FiTE4n7BLpLoGDt/OB1
DLweoAAwwcl7GNsfqUc5qy+xY7a1Re2TnPSfOqwYeKd/kstoRfE7grzQeOYTx2WU
kQDosqU6Xmw4hW1/smnhLS6KNW8TST06zBU9CH5NImVLLV11veWTDwSxXrUUfYTv
BwZ6/M/Lm3mVwqJ0wFhBA5LgATLU6Q0LV4aw7L3mRSupbuu0c6a85e8kTtdAWkdl
T0X395ajGXSvbKvqYSFtu3qF9w81e+nyb9EtWeihQ0Ed5myr0g/FMA==
=QGZR
-----END PGP SIGNATURE-----