Commit b71a2bb0 authored by Alex Deucher's avatar Alex Deucher
Browse files

drm/amdgpu/mes11: optimize MES pipe FW version fetching

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: 028c3fb3 ("drm/amdgpu/mes11: initiate mes v11 support")
Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/4083


Reviewed-by: default avatarMario Limonciello <mario.limonciello@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
parent dce8bd91
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -894,6 +894,10 @@ static void mes_v11_0_get_fw_version(struct amdgpu_device *adev)
{
	int pipe;

	/* return early if we have already fetched these */
	if (adev->mes.sched_version && adev->mes.kiq_version)
		return;

	/* get MES scheduler/KIQ versions */
	mutex_lock(&adev->srbm_mutex);