diff options
| author | Tvrtko Ursulin <[email protected]> | 2024-05-06 16:59:55 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2024-05-17 21:40:38 +0000 |
| commit | 26e20235ce00219a1ca2fb617d82fa24607190ae (patch) | |
| tree | 57606a4027048257088a467acedea03afe8b6d79 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | drm/amdgpu: Remove duplicate check for *is_queue_unmap in sdma_v7_0_ring_set_... (diff) | |
| download | kernel-26e20235ce00219a1ca2fb617d82fa24607190ae.tar.gz kernel-26e20235ce00219a1ca2fb617d82fa24607190ae.zip | |
drm/amdgpu: Add amdgpu_bo_is_vm_bo helper
Help code readability by replacing a bunch of:
bo->tbo.base.resv == vm->root.bo->tbo.base.resv
With:
amdgpu_vm_is_bo_always_valid(vm, bo)
No functional changes.
v2:
* Rename helper and move to amdgpu_vm. (Christian)
v3:
* Use Christian's kerneldoc.
v4:
* Fixed logic inversion in amdgpu_vm_bo_get_memory.
Signed-off-by: Tvrtko Ursulin <[email protected]>
Cc: Christian König <[email protected]>
Reviewed-by: Christian König <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions
