diff options
author | Keith Packard <keithp@keithp.com> | 2012-01-06 11:48:38 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-01-19 12:28:53 -0800 |
commit | c937504e2b96af3b281b1ef859e063ef4af656c1 (patch) | |
tree | 16c90e4028f09fb52bedc27d7b4fe0b15eb5d742 /drivers/gpu/drm/i915/intel_ringbuffer.c | |
parent | 286fed412a134e76be55899bc628c6fa59cb70da (diff) | |
download | lwn-c937504e2b96af3b281b1ef859e063ef4af656c1.tar.gz lwn-c937504e2b96af3b281b1ef859e063ef4af656c1.zip |
drm/i915: Hold gt_lock across forcewake register reads
Along with the previous patch to make the reset operation protected by
the gt_lock as well, this ensures that all register read operations
will occur with the forcewake hardware enabled. As an added bonus,
this makes read operations more efficient by taking the spinlock only
once per read instead of twice.
Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_ringbuffer.c')
0 files changed, 0 insertions, 0 deletions