drm/vmwgfx: fix cursor validation and buffer lifetimes
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest6 patches 14 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | drm/vmwgfx: keep cursor mappings and pins with each plane statedrivers/ drivers/ drivers/ | +48 | 3 replies | |
| 2/6 | drm/vmwgfx: validate GB-only cursor command limitsdrivers/ | +21 | 3 replies | |
| 3/6 | drm/vmwgfx: include legacy hotspots in GB-only cursor imagesdrivers/ | +5 | 2 replies | |
| 4/6 | drm/vmwgfx: reserve dumb buffers while detaching their surfacesdrivers/ | +3 | 1 reply | |
| 5/6 | drm/vmwgfx: validate the framebuffer selected for cursor updatesdrivers/ | +43 | 3 replies | |
| 6/6 | drm/vmwgfx: reserve cursor MOBs before unpinning themdrivers/ | +7 | 1 reply |
Reviews trailers per patch
All 6 patches have a Reviewed-by or Acked-by.
| Patch | fausten | Maaz Mombasawala |
|---|---|---|
| Series | T-b | |
| 1/6 | R-b | |
| 2/6 | R-b | |
| 3/6 | R-b | |
| 4/6 | R-b | |
| 5/6 | R-b | |
| 6/6 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/6] drm/vmwgfx: fix cursor validation and buffer lifetimes
This series fixes cursor validation and buffer lifetime handling in vmwgfx, including guest-backed devices without cursor MOB support.
Each prepared plane state keeps its own mapping, reference and pin, so cleanup of an older commit cannot release resources needed by a newer one. Cursor MOB teardown and dumb-buffer surface detachment also hold the buffer reservations required by TTM.
Validation uses the newly selected framebuffer and rejects zero-sized images and surfaces without backing storage. GB-only cursors use the define-cursor command limits, including the 32 KiB whole-command guarantee when using command buffers. Legacy cursor-bypass hotspots are included consistently in the image and position, fixing displaced Xorg cursors.
Thanks to Yunfeng Li and Tomas M for reporting and diagnosing the GB-only cursor issues, and to Tomas for the hotspot fix.
LLM assistance was used for the fixes, tests and commit descriptions; the patches carry Assisted-by: LLM.
Tomas M (1):
drm/vmwgfx: include legacy hotspots in GB-only cursor images
Zack Rusin (5):
drm/vmwgfx: keep cursor mappings and pins with each plane state drm/vmwgfx: validate GB-only cursor command limits drm/vmwgfx: reserve dumb buffers while detaching their surfaces drm/vmwgfx: validate the framebuffer selected for cursor updates drm/vmwgfx: reserve cursor MOBs before unpinning them
drivers/gpu/drm/vmwgfx/vmwgfx_bo.c | 3 + drivers/gpu/drm/vmwgfx/vmwgfx_cursor_plane.c | 166 +++++++++++++------ drivers/gpu/drm/vmwgfx/vmwgfx_cursor_plane.h | 4 + drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | 1 + 4 files changed, 125 insertions(+), 49 deletions(-)
base-commit: 8ef66514d7b993c9fb96a5886f001e3556610c1c
Signature · 1 line
2.53.0