Skip to content

Commit 782e5e7

Browse files
en4bzzackr
authored andcommitted
drm/vmwgfx: Fix Legacy Display Unit
Legacy DU was broken by the referenced fixes commit because the placement and the busy_placement no longer pointed to the same object. This was later fixed indirectly by commit a78a8da ("drm/ttm: replace busy placement with flags v6") in v6.9. Fixes: 39985ee ("drm/vmwgfx: Abstract placement selection") Signed-off-by: Ian Forbes <[email protected]> Cc: <[email protected]> # v6.4+ Reviewed-by: Zack Rusin <[email protected]> Signed-off-by: Zack Rusin <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 78d9161 commit 782e5e7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/gpu/drm/vmwgfx/vmwgfx_bo.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ int vmw_bo_pin_in_start_of_vram(struct vmw_private *dev_priv,
204204
VMW_BO_DOMAIN_VRAM,
205205
VMW_BO_DOMAIN_VRAM);
206206
buf->places[0].lpfn = PFN_UP(bo->resource->size);
207+
buf->busy_places[0].lpfn = PFN_UP(bo->resource->size);
207208
ret = ttm_bo_validate(bo, &buf->placement, &ctx);
208209

209210
/* For some reason we didn't end up at the start of vram */

0 commit comments

Comments
 (0)