diff options
author | Daniel Vetter <[email protected]> | 2015-04-09 16:44:15 +0200 |
---|---|---|
committer | Jani Nikula <[email protected]> | 2015-04-10 14:29:27 +0300 |
commit | 9da7d69357389ea63893434fe3b17b9fbc2c2d2d (patch) | |
tree | 6ef4b8b6cc08a3b62915c3d95585fadd2db8a839 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 6e0aa8018f9c676b115b7ca6c20a056fc57c68a9 (diff) |
drm/i915: Fix locking in DRRS flush/invalidate hooks
We must acquire the mutex before we can check drrs.dp, otherwise
someone might sneak in with a modeset, clear the pointer after we've
checked it and then the code will Oops.
This issue has been introduced in
commit a93fad0f7fb8a3ff12e8814b630648f6d187954c
Author: Vandana Kannan <[email protected]>
Date: Sat Jan 10 02:25:59 2015 +0530
drm/i915: DRRS calls based on frontbuffer
v2: Don't blow up on uninitialized mutex and work item by checking
whether DRRS is support or not first. Also unconditionally initialize
the mutex/work item to avoid future trouble.
Cc: Chris Wilson <[email protected]>
Cc: Ville Syrjälä <[email protected]>
Cc: Ramalingam C <[email protected]>
Cc: Rodrigo Vivi <[email protected]>
Cc: Vandana Kannan <[email protected]>
Cc: [email protected] (4.0+ only)
Reviewed-by: Chris Wilson <[email protected]>
Tested-by: Chris Wilson <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Signed-off-by: Jani Nikula <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions