Bug 6934

Summary: intel driver locking bogus for vt switching..
Product: Mesa Reporter: Dave Airlie <airlied>
Component: Drivers/DRI/i915Assignee: Default DRI bug account <dri-devel>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: high CC: alanh, keithw
Version: unspecified   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Dave Airlie 2006-05-16 17:50:55 UTC
I've been debugging some problems with interrupts and vt switch on
i9xx, I suppose suspend/resume might be affected as well..

The X DRI code reference counts the lock nesting, so two locks requires
two unlocks, this is needed to make sure we can lock for LeaveVT, on top
of the wakeup handler lock and not lose the lock,

However on VT switch the driver calls the i830DRILock which doesn't actually
call DRILock as it checks the LockHeld variable.

I'm not sure what the correct fix is, I've made my tree call DRILock and
DRIUnlock directly on LeaveVT and EnterVT respectively.... and it seems to fix
the problem for me..
Comment 1 Dave Airlie 2006-06-01 19:23:26 UTC
I've fixed this in git.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.