From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E2E732FA0CD; Tue, 12 Aug 2025 18:34:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755023673; cv=none; b=mdSBj3ppHuAKr7CXmDZOhymgvYZUG/pbhjsI+AIbzkMvzYG8aZ1YB1EU+3yN42/cpUQU9hhJqY3VclpZcEugUzeSjeHg3d2QG0RoiUE8KYLLYddGvBohKLBA0DDOzDAlHSfA+gD6U3pF8RKYyWP74+YCmcGJV1Rtp3IsdrmXVFc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755023673; c=relaxed/simple; bh=yvDBNq9oTx0/f2FtkqDS+IlmiObxnKLxUbT1MP+ogx8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=lmZKLs80DzTQ05ua8b1oCLre7UVWAJYqOmCkF2JuKTmyJeRhw35DjAxGLtBp88ibZZqbF+H3rHeGq8xqVGZhiJBRO1J2nqmYpe/Y6ml6Hk6O5Y3CryQeg1y8LDsbp4UkgIfWqE6+Qwc1uENisz1dLkeBImEbFYiwoPI+W7mUAxs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=JhSRRqc2; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="JhSRRqc2" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4B590C4CEF0; Tue, 12 Aug 2025 18:34:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755023672; bh=yvDBNq9oTx0/f2FtkqDS+IlmiObxnKLxUbT1MP+ogx8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JhSRRqc2J7Zjzl7SY0htk/PdJ/p5sU2THjrLL1f0C8W8FgiwtPfoJBWGIAUKA5GXO iZQqOgVYjzsPebi/hwT2zkqOmJiTXBkqd2r7Xo6zYoNEoGhI6umZLcFBjNYIlEiDA6 zybdnqXclBE64nJjku3E6/NcXVBG9nnLpQDiW/Yo= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Ian Forbes , Maaz Mombasawala , Zack Rusin , Sasha Levin Subject: [PATCH 6.16 149/627] drm/vmwgfx: Fix Host-Backed userspace on Guest-Backed kernel Date: Tue, 12 Aug 2025 19:27:24 +0200 Message-ID: <20250812173424.964431436@linuxfoundation.org> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250812173419.303046420@linuxfoundation.org> References: <20250812173419.303046420@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.16-stable review patch. If anyone has any objections, please let me know. ------------------ From: Ian Forbes [ Upstream commit 7872997c048e989c7689c2995d230fdca7798000 ] Running 3D applications with SVGA_FORCE_HOST_BACKED=1 or using an ancient version of mesa was broken because the buffer was pinned in VMW_BO_DOMAIN_SYS and could not be moved to VMW_BO_DOMAIN_MOB during validation. The compat_shader buffer should not pinned. Fixes: 668b206601c5 ("drm/vmwgfx: Stop using raw ttm_buffer_object's") Signed-off-by: Ian Forbes Reviewed-by: Maaz Mombasawala Signed-off-by: Zack Rusin Link: https://lore.kernel.org/r/20250429203427.1742331-1-ian.forbes@broadcom.com Signed-off-by: Sasha Levin --- drivers/gpu/drm/vmwgfx/vmwgfx_shader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_shader.c b/drivers/gpu/drm/vmwgfx/vmwgfx_shader.c index 7fb1c88bcc47..69dfe69ce0f8 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_shader.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_shader.c @@ -896,7 +896,7 @@ int vmw_compat_shader_add(struct vmw_private *dev_priv, .busy_domain = VMW_BO_DOMAIN_SYS, .bo_type = ttm_bo_type_device, .size = size, - .pin = true, + .pin = false, .keep_resv = true, }; -- 2.39.5