Skip to contentSkip to conversation

drm/vmwgfx: Remove busy_places

PATCH In review Ian Forbes 2 participants 2 messages Jan 8, 2025 – Jan 9, 2025

Subsystems (3)
lore
Share & tools
lore

Ian Forbes

author
#0 lore raw

PATCH 1/1 drm/vmwgfx: Remove busy_places

Unused since commit a78a8da51b36
("drm/ttm: replace busy placement with flags v6")

---
 drivers/gpu/drm/vmwgfx/vmwgfx_bo.c | 1 -
 drivers/gpu/drm/vmwgfx/vmwgfx_bo.h | 1 -
 2 files changed, 2 deletions(-)
drivers/gpu/drm/vmwgfx/vmwgfx_bo.c +0 -1
index a0e433fbcba67..5f13285f83e0b 100644
@@ -228,7 +228,6 @@ int vmw_bo_pin_in_start_of_vram(struct vmw_private *dev_priv,
 			     VMW_BO_DOMAIN_VRAM,
 			     VMW_BO_DOMAIN_VRAM);
 	buf->places[0].lpfn = PFN_UP(bo->resource->size);
-	buf->busy_places[0].lpfn = PFN_UP(bo->resource->size);
 	ret = ttm_bo_validate(bo, &buf->placement, &ctx);
 
 	/* For some reason we didn't end up at the start of vram */
drivers/gpu/drm/vmwgfx/vmwgfx_bo.h +0 -1
index 43b5439ec9f76..07749f0a5f294 100644
@@ -83,7 +83,6 @@ struct vmw_bo {
 
 	struct ttm_placement placement;
 	struct ttm_place places[5];
-	struct ttm_place busy_places[5];
 
 	/* Protected by reservation */
 	struct ttm_bo_kmap_obj map;
Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 35 lines · Ian Forbes

Unused since commit a78a8da51b36
("drm/ttm: replace busy placement with flags v6")

---
 drivers/gpu/drm/vmwgfx/vmwgfx_bo.c | 1 -
 drivers/gpu/drm/vmwgfx/vmwgfx_bo.h | 1 -
 2 files changed, 2 deletions(-)
drivers/gpu/drm/vmwgfx/vmwgfx_bo.c +0 -1
index a0e433fbcba67..5f13285f83e0b 100644
@@ -228,7 +228,6 @@ int vmw_bo_pin_in_start_of_vram(struct vmw_private *dev_priv,
                             VMW_BO_DOMAIN_VRAM,
                             VMW_BO_DOMAIN_VRAM);
        buf->places[0].lpfn = PFN_UP(bo->resource->size);
-       buf->busy_places[0].lpfn = PFN_UP(bo->resource->size);
        ret = ttm_bo_validate(bo, &buf->placement, &ctx);
 
        /* For some reason we didn't end up at the start of vram */
drivers/gpu/drm/vmwgfx/vmwgfx_bo.h +0 -2
index 43b5439ec9f76..07749f0a5f294 100644
@@ -83,7 +83,6 @@ struct vmw_bo {
 
        struct ttm_placement placement;
        struct ttm_place places[5];
-       struct ttm_place busy_places[5];
 
        /* Protected by reservation */
        struct ttm_bo_kmap_obj map;
--
Quoted 2 lines

2.34.1

LGTM

Regards,
Martin