diff options
author | Matthew Brost <matthew.brost@intel.com> | 2023-07-20 06:44:25 +0300 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2023-12-21 19:37:53 +0300 |
commit | 1655c893af08997175e3404039e79f384c925ee3 (patch) | |
tree | 3bcbc64dc66e15f07b143b03444bb54463d75107 /drivers/gpu/drm/xe/xe_pt.c | |
parent | 8f33b4f054fc29a4774d8d10116ef460faeb84a8 (diff) | |
download | linux-1655c893af08997175e3404039e79f384c925ee3.tar.xz |
drm/xe: Reduce the number list links in xe_vma
Combine the userptr, rebind, and destroy links into a union as
the lists these links belong to are mutually exclusive.
v2: Adjust which lists are combined (Thomas H)
v3: Add kernel doc why this is safe (Thomas H), remove related change
of list_del_init -> list_del (Rodrigo)
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_pt.c')
-rw-r--r-- | drivers/gpu/drm/xe/xe_pt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/xe/xe_pt.c b/drivers/gpu/drm/xe/xe_pt.c index bc7fa5a850e2..b67144768af0 100644 --- a/drivers/gpu/drm/xe/xe_pt.c +++ b/drivers/gpu/drm/xe/xe_pt.c @@ -1805,7 +1805,7 @@ __xe_pt_unbind_vma(struct xe_tile *tile, struct xe_vma *vma, struct xe_engine *e } if (!vma->tile_present) - list_del_init(&vma->rebind_link); + list_del_init(&vma->combined_links.rebind); if (unbind_pt_update.locked) { XE_WARN_ON(!xe_vma_is_userptr(vma)); |