projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge v5.14-rc3 into usb-next
[linux-2.6-microblaze.git]
/
drivers
/
gpu
/
drm
/
amd
/
amdgpu
/
mxgpu_ai.c
diff --git
a/drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c
b/drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c
index
3ee4815
..
ff2307d
100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c
+++ b/
drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c
@@
-252,7
+252,7
@@
static void xgpu_ai_mailbox_flr_work(struct work_struct *work)
* otherwise the mailbox msg will be ruined/reseted by
* the VF FLR.
*/
* otherwise the mailbox msg will be ruined/reseted by
* the VF FLR.
*/
- if (!down_
read
_trylock(&adev->reset_sem))
+ if (!down_
write
_trylock(&adev->reset_sem))
return;
amdgpu_virt_fini_data_exchange(adev);
return;
amdgpu_virt_fini_data_exchange(adev);
@@
-268,7
+268,7
@@
static void xgpu_ai_mailbox_flr_work(struct work_struct *work)
flr_done:
atomic_set(&adev->in_gpu_reset, 0);
flr_done:
atomic_set(&adev->in_gpu_reset, 0);
- up_
read
(&adev->reset_sem);
+ up_
write
(&adev->reset_sem);
/* Trigger recovery for world switch failure if no TDR */
if (amdgpu_device_should_recover_gpu(adev)
/* Trigger recovery for world switch failure if no TDR */
if (amdgpu_device_should_recover_gpu(adev)