Commit dd68928
committed
drm/i915: Prevent concurrent tiling/framebuffer modifications
Reintroduce a lock around tiling vs framebuffer creation to prevent
modification of the obj->tiling_and_stride whilst the framebuffer is
being created. Rather than use struct_mutex once again, use the
per-object lock - this will also be required in future to prevent
changing the tiling whilst submitting rendering.
Reported-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Fixes: 24dbf51 ("drm/i915: struct_mutex is not required for allocating the framebuffer")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170301154128.2841-2-chris@chris-wilson.co.uk1 parent 9aceb5c commit dd68928
File tree
4 files changed
+42
-12
lines changed- drivers/gpu/drm/i915
4 files changed
+42
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
| 168 | + | |
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
| |||
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
263 | 273 | | |
264 | 274 | | |
265 | 275 | | |
| |||
306 | 316 | | |
307 | 317 | | |
308 | 318 | | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
309 | 325 | | |
310 | 326 | | |
311 | 327 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
210 | | - | |
| 210 | + | |
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
241 | | - | |
| 241 | + | |
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
| |||
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
261 | 267 | | |
262 | 268 | | |
263 | 269 | | |
| |||
294 | 300 | | |
295 | 301 | | |
296 | 302 | | |
| 303 | + | |
297 | 304 | | |
298 | 305 | | |
299 | 306 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14185 | 14185 | | |
14186 | 14186 | | |
14187 | 14187 | | |
14188 | | - | |
| 14188 | + | |
| 14189 | + | |
| 14190 | + | |
| 14191 | + | |
14189 | 14192 | | |
14190 | 14193 | | |
14191 | 14194 | | |
| |||
14262 | 14265 | | |
14263 | 14266 | | |
14264 | 14267 | | |
14265 | | - | |
14266 | | - | |
14267 | 14268 | | |
| 14269 | + | |
| 14270 | + | |
14268 | 14271 | | |
14269 | 14272 | | |
14270 | | - | |
| 14273 | + | |
| 14274 | + | |
| 14275 | + | |
| 14276 | + | |
| 14277 | + | |
14271 | 14278 | | |
14272 | 14279 | | |
14273 | 14280 | | |
| |||
14339 | 14346 | | |
14340 | 14347 | | |
14341 | 14348 | | |
14342 | | - | |
14343 | | - | |
| 14349 | + | |
14344 | 14350 | | |
14345 | | - | |
14346 | | - | |
| 14351 | + | |
14347 | 14352 | | |
14348 | 14353 | | |
14349 | 14354 | | |
| |||
14424 | 14429 | | |
14425 | 14430 | | |
14426 | 14431 | | |
14427 | | - | |
| 14432 | + | |
| 14433 | + | |
| 14434 | + | |
14428 | 14435 | | |
14429 | 14436 | | |
14430 | 14437 | | |
| |||
0 commit comments