aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
diff options
context:
space:
mode:
authorThomas Hellström <[email protected]>2024-07-05 15:31:59 +0000
committerChristian König <[email protected]>2024-07-09 10:37:32 +0000
commit6be74ddd0609959b4005f88b6a4d4af678e4a71f (patch)
tree33a9be1caec9b2787befe9cb843a38fe9a9b76bf /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
parentdrm/stm: Fix an error handling path in stm_drm_platform_probe() (diff)
downloadkernel-6be74ddd0609959b4005f88b6a4d4af678e4a71f.tar.gz
kernel-6be74ddd0609959b4005f88b6a4d4af678e4a71f.zip
drm/ttm: Allow TTM LRU list nodes of different types
To be able to handle list unlocking while traversing the LRU list, we want the iterators not only to point to the next position of the list traversal, but to insert themselves as list nodes at that point to work around the fact that the next node might otherwise disappear from the list while the iterator is pointing to it. These list nodes need to be easily distinguishable from other list nodes so that others traversing the list can skip over them. So declare a struct ttm_lru_item, with a struct list_head member and a type enum. This will slightly increase the size of a struct ttm_resource. Changes in previous series: - Update enum ttm_lru_item_type documentation. v3: - Introduce ttm_lru_first_res_or_null() (Christian König, Thomas Hellström) v5: - Update also the TTM test code (Xe CI). Cc: Christian König <[email protected]> Cc: Somalapuram Amaranath <[email protected]> Cc: Matthew Brost <[email protected]> Cc: <[email protected]> Signed-off-by: Thomas Hellström <[email protected]> Reviewed-by: Matthew Brost <[email protected]> Reviewed-by: Christian König <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Signed-off-by: Christian König <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c')
0 files changed, 0 insertions, 0 deletions