]> Git Repo - linux.git/blobdiff - drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c
Merge tag 'imx-defconfig-5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/shawn...
[linux.git] / drivers / gpu / drm / amd / amdgpu / mxgpu_ai.c
index 3ee481557fc9741b480284c8330e48723e0b0d5b..ff2307d7ee0fa72dd1064192dc71bc16b1310146 100644 (file)
@@ -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.
         */
-       if (!down_read_trylock(&adev->reset_sem))
+       if (!down_write_trylock(&adev->reset_sem))
                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);
-       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)
This page took 0.033767 seconds and 4 git commands to generate.