]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amdgpu: Do not set power brake sequence for Aldebaran SRIOV
authorVictor Lu <victorchengchi.lu@amd.com>
Thu, 13 Feb 2025 23:49:46 +0000 (18:49 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 7 Mar 2025 17:53:24 +0000 (12:53 -0500)
Aldebaran SRIOV VF cannot access the power brake feature regs.
The accesses can be skipped to avoid a dmesg warning.

v2: Remove redundant asic type check

Signed-off-by: Victor Lu <victorchengchi.lu@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c

index 1f0f03108a8202ecb566c50d693276acc887f74c..d345285ea885b55994ccc5566627307642ffd8af 100644 (file)
@@ -4045,7 +4045,8 @@ static int gfx_v9_0_hw_init(struct amdgpu_ip_block *ip_block)
        if (r)
                return r;
 
-       if (amdgpu_ip_version(adev, GC_HWIP, 0) == IP_VERSION(9, 4, 2))
+       if (amdgpu_ip_version(adev, GC_HWIP, 0) == IP_VERSION(9, 4, 2) &&
+           !amdgpu_sriov_vf(adev))
                gfx_v9_4_2_set_power_brake_sequence(adev);
 
        return r;