Repository navigation
Commit 9da7d69
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 a93fad0
Author: Vandana Kannan <vandana.kannan@intel.com>
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 <chris@chris-wilson.co.uk>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Ramalingam C <ramalingam.c@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Vandana Kannan <vandana.kannan@intel.com>
Cc: stable@vger.kernel.org (4.0+ only)
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Tested-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>1 parent 6e0aa80 commit 9da7d69
1 file changed
Lines changed: 15 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5157 | 5157 | | |
5158 | 5158 | | |
5159 | 5159 | | |
5160 | | - | |
5161 | 5160 | | |
5162 | 5161 | | |
5163 | 5162 | | |
| |||
5179 | 5178 | | |
5180 | 5179 | | |
5181 | 5180 | | |
5182 | | - | |
| 5181 | + | |
5183 | 5182 | | |
5184 | 5183 | | |
5185 | 5184 | | |
5186 | 5185 | | |
5187 | 5186 | | |
| 5187 | + | |
| 5188 | + | |
| 5189 | + | |
| 5190 | + | |
| 5191 | + | |
5188 | 5192 | | |
5189 | 5193 | | |
5190 | 5194 | | |
| |||
5218 | 5222 | | |
5219 | 5223 | | |
5220 | 5224 | | |
5221 | | - | |
| 5225 | + | |
5222 | 5226 | | |
5223 | 5227 | | |
5224 | 5228 | | |
5225 | 5229 | | |
5226 | 5230 | | |
| 5231 | + | |
| 5232 | + | |
| 5233 | + | |
| 5234 | + | |
| 5235 | + | |
5227 | 5236 | | |
5228 | 5237 | | |
5229 | 5238 | | |
| |||
5294 | 5303 | | |
5295 | 5304 | | |
5296 | 5305 | | |
| 5306 | + | |
| 5307 | + | |
| 5308 | + | |
5297 | 5309 | | |
5298 | 5310 | | |
5299 | 5311 | | |
| |||
5312 | 5324 | | |
5313 | 5325 | | |
5314 | 5326 | | |
5315 | | - | |
5316 | | - | |
5317 | | - | |
5318 | | - | |
5319 | 5327 | | |
5320 | 5328 | | |
5321 | 5329 | | |
| |||
0 commit comments