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=1796220885; b=Ikbrddicn6ZB1vfGgORgGhVGEc550HPhzTHU15dClG+xfc+mWf+DHwbdiDRQAD+vpQGI H2ul+r5qwJekBTDI01eonPzDdi3bGixXb0C0nPAZxJCQYI+J+tdKz7eb96XBsfuIri/eb z/nPYqwmdE/GPQw7DyWpHVwsJIyTIVU1PxQK/l+11jeCwJDW6c0tK+L8d+P9W9RAXCRcl y0In3UTKPkEnFGPFYagTjr0g5hphOCGaMrOlI6LXP5neUTSDmb+f3pajBIfjlNjS3iuGl 8NdKURzN0hWqHp4oko9lSelViEHiHgrimVDGtE0Yls0dHPUUEy6GhhZE/dkLLt/4kPg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796220885; h=Received:DKIM-Signature:Subject:To:Cc:From:Date:Message-ID: MIME-Version:Content-Type:Content-Transfer-Encoding; bh=0HPiwoDtnpsRUy9JWZfyCXIpUviSSm5t+eUWuRDkTdU=; b=lA3Ll8o3LQ7RDFH96QSwhlizihDNnBleGbRJ2ozZ+qKoMJdKxCPj5A/bYVyWcCn277Io 0xED+zzznbSELKcdeCnGiZMtxRM3eAoOf7IJH4XtXurehsmdt0PElK9E3l+d3QeGvth13 QtgBPPQptNs0oZvpN224IyAJniBunpSZyuOd4Wqt0nQBQeJqlov8NVkFz+gckuM4F7J1z ia2mVb++agrykAM3VErZte2rx9CWz1EmCpyMnVc6ug4ayqVcpHx+kOqfgI2b8+6vWirEv nH8UcguLbd50g9L0Ksbs08Ya8OiZh/W10J1FR+KJG8uk/mnXm3x1dO2C4aq1NUF5A1g== 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=TW6JLW8p; 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 9B3F2606A32D for ; Wed, 2 Dec 2026 14:14:45 +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=TW6JLW8p Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9BE9D1F000C1; Wed, 2 Dec 2026 14:14:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796220885; bh=0HPiwoDtnpsRUy9JWZfyCXIpUviSSm5t+eUWuRDkTdU=; h=Subject:To:Cc:From:Date; b=TW6JLW8pa5PaKPeTi8Py76qLbnvHv0LnFek/9ohDPDnkDjS9Nrcdnm+IT2KCjMksG O4GKB/u8i2uy7IcaxeFWFxHpI2k+cV6KRwHlUqVlPFw3zh0YgcVV5OVI3E2l7P7hSj +qk0T2UFUThN/406UNO7f7mhC3ofJEElNb9NiNyQ= Subject: FAILED: patch "[PATCH] drm/vmwgfx: include legacy hotspots in GB-only cursor images" failed to apply to 6.12-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:26 +0100 Message-ID: <2026120226-steam-specks-9482@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.12-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.12.y git checkout FETCH_HEAD git cherry-pick -x c116d38c3ad3ccdc1153ee7713c0eafd62b1c235 # git commit -s git send-email --to '' --in-reply-to '2026120226-steam-specks-9482@gregkh' --subject-prefix 'PATCH 6.12.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); }