diff options
| author | Arunpravin Paneer Selvam <[email protected]> | 2024-04-19 06:35:37 +0000 |
|---|---|---|
| committer | Christian König <[email protected]> | 2024-04-22 17:44:16 +0000 |
| commit | a68c7eaa7a8ffdec9287ba1561a668d674c20a13 (patch) | |
| tree | 4cc73b86a2efb26ddfadcfee7856d4c9822660fe /drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c | |
| parent | drm/buddy: Implement tracking clear page feature (diff) | |
| download | kernel-a68c7eaa7a8ffdec9287ba1561a668d674c20a13.tar.gz kernel-a68c7eaa7a8ffdec9287ba1561a668d674c20a13.zip | |
drm/amdgpu: Enable clear page functionality
Add clear page support in vram memory region.
v1(Christian):
- Dont handle clear page as TTM flag since when moving the BO back
in from GTT again we don't need that.
- Make a specialized version of amdgpu_fill_buffer() which only
clears the VRAM areas which are not already cleared
- Drop the TTM_PL_FLAG_WIPE_ON_RELEASE check in
amdgpu_object.c
v2:
- Modify the function name amdgpu_ttm_* (Alex)
- Drop the delayed parameter (Christian)
- handle amdgpu_res_cleared(&cursor) just above the size
calculation (Christian)
- Use AMDGPU_GEM_CREATE_VRAM_WIPE_ON_RELEASE for clearing the buffers
in the free path to properly wait for fences etc.. (Christian)
v3(Christian):
- Remove buffer clear code in VRAM manager instead change the
AMDGPU_GEM_CREATE_VRAM_WIPE_ON_RELEASE handling to set
the DRM_BUDDY_CLEARED flag.
- Remove ! from amdgpu_res_cleared(&cursor) check.
v4(Christian):
- vres flag setting move to vram manager file
- use dma_fence_get_stub in amdgpu_ttm_clear_buffer function
- make fence a mandatory parameter and drop the if and the get/put dance
Signed-off-by: Arunpravin Paneer Selvam <[email protected]>
Suggested-by: Christian König <[email protected]>
Acked-by: Felix Kuehling <[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_amdkfd.c')
0 files changed, 0 insertions, 0 deletions
