Skip to content

Commit

Permalink
drm/amdgpu/mes11: optimize MES pipe FW version fetching
Browse files Browse the repository at this point in the history
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 <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Alex Deucher authored and Greg Kroah-Hartman committed Apr 25, 2025
1 parent 5962840 commit 228e98e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/gpu/drm/amd/amdgpu/mes_v11_0.c
Original file line number Diff line number Diff line change
Expand Up @@ -859,6 +859,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);

Expand Down

0 comments on commit 228e98e

Please sign in to comment.