[AMD Official Use Only - Internal Distribution Only]
Reviewed-by: Yong Zhao <[email protected]>
________________________________
From: amd-gfx <[email protected]> on behalf of Felix
Kuehling <[email protected]>
Sent: Wednesday, February 26, 2020 12:12 PM
To: [email protected] <[email protected]>; Deucher,
Alexander <[email protected]>
Cc: Pan, Xinhui <[email protected]>
Subject: [PATCH 1/1] drm/amdgpu: Fix 32-bit build
Add a dummy implementation of amdgpu_amdkfd_remove_fence_on_pt_pd_bos
for kernel configs without KFD.
Fixes: be8e48e08499 ("drm/amdgpu: Remove kfd eviction fence before release bo")
Signed-off-by: Felix Kuehling <[email protected]>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
index f30375c1b40a..bc2e72a66db9 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
@@ -681,6 +681,11 @@ void amdgpu_amdkfd_unreserve_memory_limit(struct amdgpu_bo
*bo)
{
}
+int amdgpu_amdkfd_remove_fence_on_pt_pd_bos(struct amdgpu_bo *bo)
+{
+ return 0;
+}
+
void amdgpu_amdkfd_gpuvm_destroy_cb(struct amdgpu_device *adev,
struct amdgpu_vm *vm)
{
--
2.25.0
_______________________________________________
amd-gfx mailing list
[email protected]
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&data=02%7C01%7Cyong.zhao%40amd.com%7Cdd32602c073d476434c408d7badf1ef7%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637183339778815696&sdata=Xa3G3wzAYp47cG0fEVW7G9pzgB4qfodkpcAG9dnNBOo%3D&reserved=0
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx