diff options
author | 2009-05-05 16:03:48 -0700 | |
---|---|---|
committer | 2009-05-14 16:00:27 -0700 | |
commit | 802c7eb646848d769a07704c16f7a3bbec9e5829 (patch) | |
tree | 49cdcc60c01c0d0893d285423f04d39d7eabfb2b /kernel/rtmutex.c | |
parent | drm/i915: workaround IGD i2c bus issue in kernel side (v2) (diff) | |
download | wireguard-linux-802c7eb646848d769a07704c16f7a3bbec9e5829.tar.xz wireguard-linux-802c7eb646848d769a07704c16f7a3bbec9e5829.zip |
drm/i915: sanity check IER at wait_request time
We might sleep here anyway so I hope an extra uncached read is ok to
add.
In #20896 we found that vbetool clobbers the IER. In KMS mode this is
particularly bad since we don't set the interrupt regs late (in
EnterVT), so we'd fail to get *any* interrupts at all after X started
(since some distros have scripts that call vbetool at X startup
apparently).
So this patch checks IER at wait_request time, and re-enables
interrupts if it's been clobbered. In a proper config this check
should never be triggered.
This is really a distro issue, but having a sanity check is nice, as
long as it doesn't have a real performance hit.
Tested-by: Mateusz Kaduk <mateusz.kaduk@gmail.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
[anholt: Moved the check inside of the sleeping case to avoid perf cost]
Signed-off-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'kernel/rtmutex.c')
0 files changed, 0 insertions, 0 deletions