Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 228e98e

Browse files
alexdeuchergregkh
authored andcommittedApr 25, 2025
drm/amdgpu/mes11: optimize MES pipe FW version fetching
commit b71a2bb upstream. Don't fetch it again if we already have it. It seems the registers don't reliably have the value at resume in some cases. Fixes: 028c3fb ("drm/amdgpu/mes11: initiate mes v11 support") Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/4083 Reviewed-by: Mario Limonciello <[email protected]> Signed-off-by: Alex Deucher <[email protected]> Cc: [email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 5962840 commit 228e98e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎drivers/gpu/drm/amd/amdgpu/mes_v11_0.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -859,6 +859,10 @@ static void mes_v11_0_get_fw_version(struct amdgpu_device *adev)
859859
{
860860
int pipe;
861861

862+
/* return early if we have already fetched these */
863+
if (adev->mes.sched_version && adev->mes.kiq_version)
864+
return;
865+
862866
/* get MES scheduler/KIQ versions */
863867
mutex_lock(&adev->srbm_mutex);
864868

0 commit comments

Comments
 (0)