]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amdgpu/mes12: optimize MES pipe FW version fetching
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 27 Mar 2025 21:46:59 +0000 (17:46 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Apr 2025 08:47:59 +0000 (10:47 +0200)
commit2b00b32e6137bd5ed600c387cfb16274f93b91dc
tree2895d44307d8ee05ce6d8f559fe5fcef613d2cc7
parent42f7b5d12c28b2a601a98d10a80c6db1fe1a2900
drm/amdgpu/mes12: optimize MES pipe FW version fetching

commit 34779e14461cf715238dec5fd43a1e11977ec115 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: 785f0f9fe742 ("drm/amdgpu: Add mes v12_0 ip block support (v4)")
Reviewed-by: Shaoyun.liu <Shaoyun.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 9e7b08d239c2f21e8f417854f81e5ff40edbebff)
Cc: stable@vger.kernel.org # 6.12.x
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdgpu/mes_v12_0.c