diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2017-03-01 18:41:28 +0300 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2017-03-01 20:57:17 +0300 |
commit | dd689287b977597a46adf8c3de19d40212f0ea9f (patch) | |
tree | 664a82cf91a448de269dd57939cbc40ad14ceb4f /drivers/extcon | |
parent | 9aceb5c15d84d4b960f5f80fba846c753554d092 (diff) | |
download | linux-dd689287b977597a46adf8c3de19d40212f0ea9f.tar.xz |
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: 24dbf51a5517 ("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.uk
Diffstat (limited to 'drivers/extcon')
0 files changed, 0 insertions, 0 deletions