From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796220889; b=ogc4hncqbrSKd741Uff5CpSc39vEWv5UOIfJMH0ALKpxZh99krauqnb/Vs5PFtYaR6nT s1IcYYZb6lNk7ilnlM1mS0B48sZ6+Pvexbgg+A5q+fQD2hpA11Y6Bz6IbjIB1n/jS7yBC p5LPA6kyhGUhX7Mbbw4Js2FMAwRXDH/TpwqL33zJjWlWMcZQoDlk5hGb3qiqnbwlvav6U IaeHY1W/aQ62J4nYyFbrfso1bFAQORhCNcM2yFSu1eBTyzn1tys4PplpkhSM84xfMVPSc pUajGlhxPL3atD0HX21nF0UpIEkJq+uicEsrASUWfYGp5RwYr5Yv1UvjptO26Ss7QGQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796220889; h=Received:DKIM-Signature:Subject:To:Cc:From:Date:Message-ID: MIME-Version:Content-Type:Content-Transfer-Encoding; bh=GHfC8E8aROhlNksDLF+n3KePViZVwD741VDlaNX1dYA=; b=jICjbLH+nUscr0CuwEOAGKt2dWbkVWhel3Be0SCvjw/OpyKQVixTPiYC6jp7iMwl9OMv BZQpV3vXRL/KmqcL6t4NuC86hSYNCaOgDY1cX8nLurW3xWzZjmyF7jMZe+2ICa5+N/SmQ VtOzyUXc6fzd7Xk0w4HXTV9gGMcL8/Os0RGqXM4T1zYnQQVlFLtpjbdhQDRRIPeOrrgYo F9HQVybcoeIHftvN2StZVQbyWZkD31lLBwtc2gizNErZwU1gPNBHXBHC70X09S9Y8A88D tYvBb53fl39VxJgRs+X4xiZ2/xOTUV7AyJcMFg0CK3K/tmkUXXG0v+LnkZqBdfpKjtg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=h2m4k2pt; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E93A0606A325 for ; Wed, 2 Dec 2026 14:14:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=h2m4k2pt Received: by smtp.kernel.org (Postfix) with ESMTPSA id E506D1F00899; Wed, 2 Dec 2026 14:14:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796220888; bh=GHfC8E8aROhlNksDLF+n3KePViZVwD741VDlaNX1dYA=; h=Subject:To:Cc:From:Date; b=h2m4k2ptWCLBwIvmCNlpKO8aXP6HWa5E0uwACn0JMrFiqWao/rMsHGVW6oC0BwHzb FNM+BbKeLVqLvHa5ohF7O/mq7S40wH2riNGGyVKWqMUvIpHL7n9laPPEUL8zo9+OVB PGcfzGJ8Rl1edWOps27sEJMYbpZGdwqi3kDbgo20= Subject: FAILED: patch "[PATCH] drm/vmwgfx: include legacy hotspots in GB-only cursor images" failed to apply to 6.6-stable tree To: tomas@slax.org,maaz.mombasawala@broadcom.com,yunfeng.li.nb@gmail.com,zack.rusin@broadcom.com Cc: From: Date: Wed, 02 Dec 2026 13:51:27 +0100 Message-ID: <2026120227-obstinate-monthly-4752@gregkh> X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.6-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.6.y git checkout FETCH_HEAD git cherry-pick -x c116d38c3ad3ccdc1153ee7713c0eafd62b1c235 # git commit -s git send-email --to '' --in-reply-to '2026120227-obstinate-monthly-4752@gregkh' --subject-prefix 'PATCH 6.6.y' 'HEAD^..' Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From c116d38c3ad3ccdc1153ee7713c0eafd62b1c235 Mon Sep 17 00:00:00 2001 From: Tomas M Date: Tue, 27 Oct 2026 03:23:23 +0200 Subject: [PATCH] drm/vmwgfx: include legacy hotspots in GB-only cursor images The guest-backed cursor path without cursor MOB support defines the image using only the hotspot from the plane state. Its position calculation also includes the legacy hotspot supplied through DRM_VMW_CURSOR_BYPASS. Xorg's xf86-video-vmware driver supplies its hotspot through that ioctl and loads the image with drmModeSetCursor(), which does not set a plane hotspot. The mismatched image and position hotspots displace the visible cursor by the legacy offset. Use the combined hotspot for both the GB-only image command and cursor position, matching the legacy and MOB image paths. Fixes: eef295a85082 ("drm/vmwgfx: Restore Guest-Backed only cursor plane support") Cc: stable@vger.kernel.org Assisted-by: LLM Signed-off-by: Tomas M Reviewed-by: Maaz Mombasawala Tested-by: fausten Signed-off-by: Zack Rusin Link: https://patch.msgid.link/20261027211729.646988-4-zack.rusin@broadcom.com diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_cursor_plane.c b/drivers/gpu/drm/vmwgfx/vmwgfx_cursor_plane.c index 14490ead99cd..f0661e5effeb 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_cursor_plane.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_cursor_plane.c @@ -852,6 +852,10 @@ vmw_cursor_plane_atomic_update(struct drm_plane *plane, return; } + /* Include legacy Xorg cursor-bypass offsets in the image and position. */ + hotspot_x = vps->cursor.legacy.hotspot_x + new_state->hotspot_x; + hotspot_y = vps->cursor.legacy.hotspot_y + new_state->hotspot_y; + switch (vps->cursor.update_type) { case VMW_CURSOR_UPDATE_LEGACY: vmw_cursor_plane_update_legacy(dev_priv, vps); @@ -864,8 +868,7 @@ vmw_cursor_plane_atomic_update(struct drm_plane *plane, vmw_send_define_cursor_cmd(dev_priv, vps->cursor.map.virtual, vps->base.crtc_w, vps->base.crtc_h, - vps->base.hotspot_x, - vps->base.hotspot_y); + hotspot_x, hotspot_y); break; case VMW_CURSOR_UPDATE_NONE: /* do nothing */ @@ -878,9 +881,6 @@ vmw_cursor_plane_atomic_update(struct drm_plane *plane, cursor_x = new_state->crtc_x + du->set_gui_x; cursor_y = new_state->crtc_y + du->set_gui_y; - hotspot_x = vps->cursor.legacy.hotspot_x + new_state->hotspot_x; - hotspot_y = vps->cursor.legacy.hotspot_y + new_state->hotspot_y; - vmw_cursor_update_position(dev_priv, true, cursor_x + hotspot_x, cursor_y + hotspot_y); }