Re: Re: mode setting and console locking, nvidia failure
flat view
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Date: 2004-05-18 03:43:04
One part of this has got to be a problem with the console semaphore. That semaphore should not be accessed from an fbdev driver. If you need to access if from an fbdev driver then the fbdev design is broken. Think about the case with multiple fbdev's loaded. Since we only have one console all of the fbdev can't play with the semaphore. That semaphore needs to be controlled from fb/vgacon and lock only the fbdev that is displaying the console, not the others. Next experiment is to remove all reference to the console semaphore from my fbdev driver.
You should try to understand things rather... You should _not_ touch the console semaphore from your driver except in special known circumstances like the PM code path. It will make sure you don't get called by fbcon, but it's perfectly safe to take it even when you aren't beeing called by fbcon. However, you should not take it on normal fbdev operations since you will be called with it already held by the common fbmem code. The only case where you may want to bother is the PM callback. Ben. ------------------------------------------------------- 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