[PATCH] drm/amdgpu: Add handler for SDMA context empty

2025-01-01 Thread Lijo Lazar
Context empty interrupt is enabled for SDMA 4.4.2. Add a handler for context empty interrupt so that it is disposed of fast, and not propagated to KFD layer. Signed-off-by: Lijo Lazar --- drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.h | 1 + drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c | 22 +

Re: [PATCH] drm/amdkfd: test release process eviction fence before signal

2025-01-01 Thread Zhu Lingshan
Hello Prike This issue has already been fixed, please see: https://www.spinics.net/lists/amd-gfx/msg117071.html Thanks Lingshan On 1/2/2025 2:30 PM, Prike Liang wrote: > It requires to validate the release process eviction fence before > signal the fence. > > Signed-off-by: Prike Liang > --- >

[PATCH] drm/amdkfd: test release process eviction fence before signal

2025-01-01 Thread Prike Liang
It requires to validate the release process eviction fence before signal the fence. Signed-off-by: Prike Liang --- drivers/gpu/drm/amd/amdkfd/kfd_process.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_process.c b/drivers/gpu/drm/amd/amdkfd

Re: [PATCH v2] drm/amdgpu: Fix error handling in amdgpu_ras_add_bad_pages

2025-01-01 Thread SRINIVASAN SHANMUGAM
Ping!? On 12/17/2024 3:08 PM, Srinivasan Shanmugam wrote: It ensures that appropriate error codes are returned when an error condition is detected Fixes the below; drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:2849 amdgpu_ras_add_bad_pages() warn: missing error code here? 'amdgpu_umc_pages_in_a_row(

[PATCH v4 1/3] drm/amdgpu: Fix out-of-bounds issue in user fence

2025-01-01 Thread Arunpravin Paneer Selvam
Fix out-of-bounds issue in userq fence create when accessing the userq xa structure. Added a lock to protect the race condition. v2:(Christian) - Allocate memory with GFP_ATOMIC. v3: - Moved to 2 xa approach. v4:(Christian) - Lock the xa_for_each blocks and memory allocation part as we

[PATCH 1/2] drm/amdkfd: Fix partial migrate issue

2025-01-01 Thread Emily Deng
For partial migrate from ram to vram, the migrate->cpages is not equal to migrate->npages, should use migrate->npages to check all needed migrate pages which could be copied or not. And only need to set those pages could be migrated to migrate->dst[i], or the migrate_vma_pages will migrate the wro

[PATCH] drm/amdgpu: Add null pointer check before task_info get and put

2025-01-01 Thread Lu Yao
This patch add null pointer check for amdgpu_vm_put_task_info and amdgpu_vm_get_task_info_vm, because there is only a warning if create task_info failed in amdgpu_vm_init. Fixes: b8f67b9ddf4f ("drm/amdgpu: change vm->task_info handling") Signed-off-by: Lu Yao --- drivers/gpu/drm/amd/amdgpu/amdgp

RE: [PATCH] drm/amdgpu: Add handler for SDMA context empty

2025-01-01 Thread Zhang, Hawking
[AMD Official Use Only - AMD Internal Distribution Only] Reviewed-by: Hawking Zhang Regards, Hawking -Original Message- From: Lazar, Lijo Sent: Wednesday, January 1, 2025 04:58 To: amd-gfx@lists.freedesktop.org Cc: Zhang, Hawking ; Deucher, Alexander ; Ma, Le Subject: [PATCH] drm/amdg