Patch "drm/amdgpu: fix eGPU hotplug regression" has been added to the 6.10-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    drm/amdgpu: fix eGPU hotplug regression

to the 6.10-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     drm-amdgpu-fix-egpu-hotplug-regression.patch
and it can be found in the queue-6.10 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit a0c88d216551d83f589ae844233745d85b0f506e
Author: Alex Deucher <alexander.deucher@xxxxxxx>
Date:   Mon Aug 19 11:14:29 2024 -0400

    drm/amdgpu: fix eGPU hotplug regression
    
    [ Upstream commit 9cead81eff635e3b3cbce51b40228f3bdc6f2b8c ]
    
    The driver needs to wait for the on board firmware
    to finish its initialization before probing the card.
    Commit 959056982a9b ("drm/amdgpu: Fix discovery initialization failure during pci rescan")
    switched from using msleep() to using usleep_range() which
    seems to have caused init failures on some navi1x boards. Switch
    back to msleep().
    
    Fixes: 959056982a9b ("drm/amdgpu: Fix discovery initialization failure during pci rescan")
    Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3559
    Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3500
    Reviewed-by: Hawking Zhang <Hawking.Zhang@xxxxxxx>
    Signed-off-by: Alex Deucher <alexander.deucher@xxxxxxx>
    Cc: Ma Jun <Jun.Ma2@xxxxxxx>
    (cherry picked from commit c69b07f7bbc905022491c45097923d3487479529)
    Cc: stable@xxxxxxxxxxxxxxx # 6.10.x
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
index ea5223388cff2..f1b08893765cf 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
@@ -269,7 +269,7 @@ static int amdgpu_discovery_read_binary_from_mem(struct amdgpu_device *adev,
 			msg = RREG32(mmMP0_SMN_C2PMSG_33);
 			if (msg & 0x80000000)
 				break;
-			usleep_range(1000, 1100);
+			msleep(1);
 		}
 	}
 




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux