Return-Path: Received: from smtp-outbound-1.vmware.com ([208.91.2.12]:56168 "EHLO smtp-outbound-1.vmware.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759284AbcBYJ1i (ORCPT ); Thu, 25 Feb 2016 04:27:38 -0500 Received: from sc9-mailhost1.vmware.com (sc9-mailhost1.vmware.com [10.113.161.71]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id F266928935 for ; Thu, 25 Feb 2016 01:27:36 -0800 (PST) Received: from EX13-CAS-006.vmware.com (ex13-cas-006.vmware.com [10.113.191.56]) by sc9-mailhost1.vmware.com (Postfix) with ESMTP id 455FB187BC for ; Thu, 25 Feb 2016 01:27:37 -0800 (PST) From: Thomas Hellstrom To: CC: Thomas Hellstrom Subject: [PATCH][Option 2] drm/vmwgfx: Fix an fb unlocking bug Date: Thu, 25 Feb 2016 10:27:02 +0100 Message-ID: <1456392422-3651-1-git-send-email-thellstrom@vmware.com> MIME-Version: 1.0 Content-Type: text/plain Sender: stable-owner@vger.kernel.org List-ID: A regression introduced when the master ttm lock was split into two. Reported-and-tested-by: Brian Paul Signed-off-by: Thomas Hellstrom Reviewed-by: Brian Paul Cc: # 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. Upstream commit id: 12617971c443c50750a12a77ea0e08319d161975 --- drivers/gpu/drm/vmwgfx/vmwgfx_fb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_fb.c b/drivers/gpu/drm/vmwgfx/vmwgfx_fb.c index 0a474f391fad0157d8a51e5aa2e50d6c4aec69ec..e2d40ebd545583af20c816e88dc4cd47ef306f3d 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_fb.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_fb.c @@ -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; } -- 2.5.0