@lists.freedesktop.org; Deucher,
Alexander ; Kuehling, Felix
; Zhang, Hawking ; Koenig,
Christian
Subject: RE: [PATCH v2] drm/amdgpu: change reset lock from mutex to rw_semaphore
[AMD Official Use Only - Internal Distribution Only]
>>Locked = down_read_trylock(&adev->reset_sem);
Sent: Thursday, August 20, 2020 7:36 PM
To: Liu, Monk ; amd-gfx@lists.freedesktop.org; Deucher,
Alexander ; Kuehling, Felix
; Zhang, Hawking ; Koenig,
Christian
Subject: RE: [PATCH v2] drm/amdgpu: change reset lock from mutex to rw_semaphore
[AMD Official Use Only - Internal Distribution On
PU Virtualization Team |AMD
-Original Message-
From: amd-gfx On Behalf Of Dennis Li
Sent: Thursday, August 20, 2020 5:33 PM
To: amd-gfx@lists.freedesktop.org; Deucher, Alexander
; Kuehling, Felix ; Zhang,
Hawking ; Koenig, Christian
Cc: Li, Dennis
Subject: [PATCH v2] drm/amdgpu: change reset l
Hawking ; Koenig, Christian
Cc: Li, Dennis
Subject: [PATCH v2] drm/amdgpu: change reset lock from mutex to rw_semaphore
clients don't need reset-lock for synchronization when no GPU recovery.
v2:
change to return the return value of down_read_killable.
Signed-off-by: Dennis Li
diff --git a
@lists.freedesktop.org; Deucher, Alexander
; Kuehling, Felix ; Zhang,
Hawking ; Koenig, Christian
Cc: Li, Dennis
Subject: [PATCH v2] drm/amdgpu: change reset lock from mutex to rw_semaphore
clients don't need reset-lock for synchronization when no GPU recovery.
v2:
change to return the return val
clients don't need reset-lock for synchronization when no
GPU recovery.
v2:
change to return the return value of down_read_killable.
Signed-off-by: Dennis Li
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
index c8aec832b244..ec11ed2a9ca4 100644
--- a/dri