]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Hold gt_lock across forcewake register reads
authorKeith Packard <keithp@keithp.com>
Fri, 6 Jan 2012 19:48:38 +0000 (11:48 -0800)
committerKeith Packard <keithp@keithp.com>
Thu, 19 Jan 2012 20:28:53 +0000 (12:28 -0800)
commit9e3472df855c359d77daaf8987ddd05a6a265fdf
tree16c90e4028f09fb52bedc27d7b4fe0b15eb5d742
parent86f1aaec3b761ca2479e921f4124aa9ccc50eb3d
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>
drivers/gpu/drm/i915/i915_drv.c