diff options
| author | Matthew Brost <matthew.brost@intel.com> | 2023-07-19 20:44:25 -0700 |
|---|---|---|
| committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2023-12-21 11:37:53 -0500 |
| commit | 1655c893af08997175e3404039e79f384c925ee3 (patch) | |
| tree | 3bcbc64dc66e15f07b143b03444bb54463d75107 /drivers/gpu/drm/xe/xe_exec.c | |
| parent | 8f33b4f054fc29a4774d8d10116ef460faeb84a8 (diff) | |
| download | linux-next-1655c893af08997175e3404039e79f384c925ee3.tar.gz linux-next-1655c893af08997175e3404039e79f384c925ee3.zip | |
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_exec.c')
| -rw-r--r-- | drivers/gpu/drm/xe/xe_exec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/xe/xe_exec.c b/drivers/gpu/drm/xe/xe_exec.c index 0209f325dda0..89d167a432f6 100644 --- a/drivers/gpu/drm/xe/xe_exec.c +++ b/drivers/gpu/drm/xe/xe_exec.c @@ -120,7 +120,7 @@ retry: * BOs have valid placements possibly moving an evicted BO back * to a location where the GPU can access it). */ - list_for_each_entry(vma, &vm->rebind_list, rebind_link) { + list_for_each_entry(vma, &vm->rebind_list, combined_links.rebind) { XE_WARN_ON(xe_vma_is_null(vma)); if (xe_vma_is_userptr(vma)) |
