drm/i915: Missed lock change with rps lock
Subsystems (2)
PATCH 1/1 drm/i915: Missed lock change with rps lock
Fixes a WARN_ON in igt/tests/debugfs_reader
CC Jesse Barnes <[email protected]>
Signed-off-by Ben Widawsky <[email protected]>
--- drivers/gpu/drm/i915/i915_debugfs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/i915_debugfs.c +3 -1
@@ -1108,8 +1108,10 @@ static int gen6_drpc_info(struct seq_file *m) rpmodectl1 =I915_READ (GEN6_RP_CONTROL ); rcctl1 =I915_READ (GEN6_RC_CONTROL ); -sandybridge_pcode_read (dev_priv,GEN6_PCODE_READ_RC6VIDS , &rc6vids);mutex_unlock (&dev->struct_mutex); +mutex_lock (&dev_priv->rps.hw_lock); +sandybridge_pcode_read (dev_priv,GEN6_PCODE_READ_RC6VIDS , &rc6vids); +mutex_unlock (&dev_priv->rps.hw_lock);seq_printf (m,"Video Turbo Mode: %s\n" ,yesno (rpmodectl1 &GEN6_RP_MEDIA_TURBO ));
Signature · 1 line
1.8.0
Daniel Vetter
AppliedQuoted 4 lines · Ben Widawsky
Fixes a
WARN_ONin igt/tests/debugfs_readerCC Jesse Barnes <[email protected]>Signed-off-by Ben Widawsky <[email protected]>
Queued for -next, thanks for the patch (I've accidentaly replied to the wrong patch, hence the two replies for the sparse fixup patch). -Daniel
Signature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch