[PATCH v2] drm/amdgpu/sdam: Skip SDMA queue reset for SRIOV

2025-04-05 Thread Ahmad Rehman
For SRIOV, skip the SDMA queue reset and return error. The engine/queue reset failure will trigger FLR in the sequence. v2: do not add queue reset support mask for sriov Signed-off-by: Ahmad Rehman --- drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c | 7 +++ 1 file changed, 7 insertions(+) diff

[PATCH v2] drm/amdgpu: Modify register write via PSP

2025-04-04 Thread Ahmad Rehman
tryin to program L1_TLB_CNTL reg vis no ring method. v2: Add more details for the patch Signed-off-by: Ahmad Rehman --- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 17 - drivers/gpu/drm/amd/amdgpu/mmhub_v1_8.c | 2 +- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a

[PATCH] drm/amdgpu: Modify register write via PSP

2025-04-04 Thread Ahmad Rehman
This patch enables the logic where if PSP ring has initialized then submit the register write command via ring. Signed-off-by: Ahmad Rehman --- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 17 - drivers/gpu/drm/amd/amdgpu/mmhub_v1_8.c | 2 +- 2 files changed, 13 insertions(+), 6

[PATCH] drm/amdgpu/sdam: Skip SDMA queue reset for SRIOV

2025-03-17 Thread Ahmad Rehman
For SRIOV, skip the SDMA queue reset and return error. The engine/queue reset failure will trigger FLR in the sequence. Signed-off-by: Ahmad Rehman --- drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c b

[PATCH] drm/amdgpu: Add support to load PSP TA v13.0.12 for SRIOV

2025-03-16 Thread Ahmad Rehman
Signed-off-by: Ahmad Rehman --- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c index 79dad75bd0e7..04a186d0c236 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c

[PATCH v2] drm/amdgpu: Skip the coredump collection on reset during driver reload

2024-04-16 Thread Ahmad Rehman
collection. v2: Use the same flag to avoid calling amdgpu_reset_reg_dumps as well. Signed-off-by: Ahmad Rehman --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 7 +-- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c| 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_reset.h | 1 + 3 files changed, 7 insert

[PATCH] drm/amdgpu: Skip the coredump collection on reset during driver reload

2024-04-16 Thread Ahmad Rehman
collection. Signed-off-by: Ahmad Rehman --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 ++- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c| 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_reset.h | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

[PATCH v3] drm/amdgpu: Init zone device and drm client after mode-1 reset on reload

2024-03-08 Thread Ahmad Rehman
. Adding the condition to in drm client creation, on top of v1, to guard against drm client creation call multiple times. Signed-off-by: Ahmad Rehman --- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c | 4 ++-- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c| 5 - 2 files changed, 6 insertions(+), 3

[PATCH v2] drm/amdgpu: Init zone device and drm client after mode-1 reset on reload

2024-03-05 Thread Ahmad Rehman
not initialized, causing app to create kernel panic. v2: Removing the init KFD condition from amdgpu_amdkfd_drm_client_create. As the previous version has the potential of creating DRM client twice. Signed-off-by: Ahmad Rehman --- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c | 3 --- drivers/gpu

[PATCH] drm/amdgpu: Init zone device and drm client after mode-1 reset on reload

2024-03-04 Thread Ahmad Rehman
not initialized, causing app to create kernel panic. Signed-off-by: Ahmad Rehman --- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c index