Skip to content

Commit 07528f7

Browse files
ahrehmanalexdeucher
authored andcommitted
drm/amdkfd: Do not wait for queue op response during reset
This patch adds the condition to not wait for the queue response for unmap, if the gpu is in reset. Signed-off-by: Ahmad Rehman <Ahmad.Rehman@amd.com> Reviewed-by: Lijo Lazar <lijo.lazar@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent b665f29 commit 07528f7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2094,7 +2094,8 @@ int amdkfd_fence_wait_timeout(struct device_queue_manager *dqm,
20942094

20952095
while (*fence_addr != fence_value) {
20962096
/* Fatal err detected, this response won't come */
2097-
if (amdgpu_amdkfd_is_fed(dqm->dev->adev))
2097+
if (amdgpu_amdkfd_is_fed(dqm->dev->adev) ||
2098+
amdgpu_in_reset(dqm->dev->adev))
20982099
return -EIO;
20992100

21002101
if (time_after(jiffies, end_jiffies)) {

0 commit comments

Comments
 (0)