]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vmwgfx: Fix mob cursor allocation race
authorZack Rusin <zackr@vmware.com>
Fri, 18 Mar 2022 17:43:29 +0000 (13:43 -0400)
committerZack Rusin <zackr@vmware.com>
Mon, 21 Mar 2022 14:10:34 +0000 (10:10 -0400)
commitb32f716b7c33697ddac4c9bee076f0a0e6c51343
tree29b5cfe8355040a3f9d7d1ffa9a46ee60e064931
parent898e2137ea70c2f89c759384f4ba7bec816b86af
drm/vmwgfx: Fix mob cursor allocation race

Writes to SVGA_REG_CURSOR_MOBID did not wait for the buffers to be fully
populated. This sometimes results in the device not being aware of
the buffer when the cursor mob register was written.
Properly wait for the buffer to be fully populated before setting it
as a cursor mob.

Signed-off-by: Zack Rusin <zackr@vmware.com>
Fixes: 0b0364aa1379 ("drm/vmwgfx: Add support for CursorMob and CursorBypass 4")
Reviewed-by: Martin Krastev <krastevm@vmware.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220318174332.440068-3-zack@kde.org
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c