Skip to content

Commit 730f3bd

Browse files
alexdeucherjfvogel
authored andcommitted
drm/amdgpu/mes11: optimize MES pipe FW version fetching
commit b71a2bb0ce07f40f92f59ed7f283068e41b10075 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]> (cherry picked from commit 228e98e2021cef1b4f5f0d8614b4371e05d9098d) Signed-off-by: Jack Vogel <[email protected]>
1 parent 81e8c4a commit 730f3bd

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)