Bug 6934 - intel driver locking bogus for vt switching..
Summary: intel driver locking bogus for vt switching..
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/i915 (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-16 17:50 UTC by Dave Airlie
Modified: 2006-06-01 19:23 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments

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.