linux-stable/drivers/gpu
Zack Rusin ed381800ea drm/vmwgfx: Fix the lifetime of the bo cursor memory
[ Upstream commit 9a9e8a7159 ]

The cleanup can be dispatched while the atomic update is still active,
which means that the memory acquired in the atomic update needs to
not be invalidated by the cleanup. The buffer objects in vmw_plane_state
instead of using the builtin map_and_cache were trying to handle
the lifetime of the mapped memory themselves, leading to crashes.

Use the map_and_cache instead of trying to manage the lifetime of the
buffer objects held by the vmw_plane_state.

Fixes kernel oops'es in IGT's kms_cursor_legacy forked-bo.

Signed-off-by: Zack Rusin <zack.rusin@broadcom.com>
Fixes: bb6780aa5a ("drm/vmwgfx: Diff cursors when using cmds")
Cc: <stable@vger.kernel.org> # v6.2+
Reviewed-by: Martin Krastev <martin.krastev@broadcom.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240126200804.732454-6-zack.rusin@broadcom.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-04-03 15:32:02 +02:00
..
drm drm/vmwgfx: Fix the lifetime of the bo cursor memory 2024-04-03 15:32:02 +02:00
host1x gpu: host1x: Skip reset assert on Tegra186 2024-02-22 18:48:06 +01:00
ipu-v3
trace
vga
Makefile