After about 100 reboots I have narrowed it down. The problem is coming from the
VT switch to get to XFree, not Xfree. I have a bare fbdev loaded on a secondary
device without a console attached to it. It should not be processing VT switches
but it is.
The bogus VT switch is causing it to restore garbage into the registers. When I
then set the mode from the xtern radeonfb gets hung in a loop in the write_pll
routine. The PLL write isn't completing because the chip state has been messed
up from the garbage restore.
I need to do more debugging to figure out why it is getting VT switch events.
How does a fbdev get notified of a VT switch?
The fbdev design is still broken. fbdev should not be touching the console
semaphore. The console semaphore should be handled in vga/fbconsole. If an fbdev
wants to protect against reentrancy each fbdev should have it's own semaphore
but printk is a console function and should be controlled from the console
driver, not the fbdev. An fbdev should function standalone and have no ties into
the VT system or console semaphore.
Think about the case of two or three video cards each with an fbdev loaded. It's
obvious then that an fbdev should have no ties to VT and console.
What about this case?
x86 running vga console
then load fbdev
I think the fbdev should be inactive at this point. The only way to activate it
is to disable the vgacon. You can deactivate vgacon by loading fbcon or doing
something to move the console to a different device.
--- Benjamin Herrenschmidt <benh@kernel.crashing.org> wrote:
On Mon, 2004-05-17 at 01:25, Jon Smirl wrote:
quoted
I checked fbset from xterm on primary aty128fb, that works.
Then I checked fbset from xterm on radeon as my primary monitor, that
worlks.
quoted
So it seems to be an interaction when the fbdev is a secondary device. The
lock
quoted
up happens 100% of the time. Any ideas on what could be causing it?
Mode setting to CRT connected panel is broken every case I try.
I supose XFree and fbdev fighting each other, no ?
Ben.
=====
Jon Smirl
jonsmirl@yahoo.com
__________________________________
Do you Yahoo!?
SBC Yahoo! - Internet access at a great low price.
http://promo.yahoo.com/sbc/
-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click