drm/vmwgfx: Fix an fb unlocking bug
Subsystems (4)
PATCH 1/1 drm/vmwgfx: Fix an fb unlocking bug
A regression introduced when the master ttm lock was split into two.
---
The stable commit "drm/ttm: Fixed a read/write lock imbalance" exposes this bug on kernels 3.15 through 4.2, causing a hang on vmwgfx module load. Please apply this commit if and only if
"drm/ttm: Fixed a read/write lock imbalance" has been applied.
Upstream commit id:12617971c443c50750a12a77ea0e08319d161975
--- drivers/gpu/drm/vmwgfx/vmwgfx_fb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/vmwgfx/vmwgfx_fb.c +2 -2
@@ -402,12 +402,12 @@ static int vmw_fb_create_bo(struct vmw_private *vmw_priv, *out = vmw_bo; -ttm_write_unlock (&vmw_priv->fbdev_master.lock); +ttm_write_unlock (&vmw_priv->reservation_sem);return 0 ; err_unlock: -ttm_write_unlock (&vmw_priv->fbdev_master.lock); +ttm_write_unlock (&vmw_priv->reservation_sem);return ret; }
Signature · 1 line
2.5.0
Greg KH
maintainerQuoted 11 lines · Thomas Hellstrom
A regression introduced when the master ttm lock was split into two.
Reported-and-tested-by Brian Paul <[email protected]>Signed-off-by Thomas Hellstrom <[email protected]>Reviewed-by Brian Paul <[email protected]>Cc <[email protected]> # 3.15.x - 4.2.x---
The stable commit "drm/ttm: Fixed a read/write lock imbalance" exposes this bug on kernels 3.15 through 4.2, causing a hang on vmwgfx module load. Please apply this commit if and only if
"drm/ttm: Fixed a read/write lock imbalance" has been applied.
What commit id was this one you are referring to?
thanks,
greg k-h
Quoted 16 lines · Greg KH
Quoted 7 lines · Thomas Hellstrom
A regression introduced when the master ttm lock was split into two.
Reported-and-tested-by Brian Paul <[email protected]>Signed-off-by Thomas Hellstrom <[email protected]>Reviewed-by Brian Paul <[email protected]>Cc <[email protected]> # 3.15.x - 4.2.xQuoted 7 lines
---
The stable commit "drm/ttm: Fixed a read/write lock imbalance" exposes
this bug on kernels 3.15 through 4.2, causing a hang on vmwgfx module
load. Please apply this commit if and only if "drm/ttm: Fixed a read/write lock imbalance" has been applied.
Quoted 1 line
What commit id was this one you are referring to?
025af18 drm/ttm: Fixed a read/write lock imbalance
So... Please apply this commit (i.e. please cherry-pick:
12617971 "drm/vmwgfx: Fix an fb unlocking bug"
) if and only if your stable tree 3.15 through 4.2 carries:
commit 025af189fb44250206dd8a32fa4a682392af3301
Author: Thomas Hellstrom <[email protected]>
Date: Fri Nov 20 11:43:50 2015 -0800
drm/ttm: Fixed a read/write lock imbalance