diff options
| author | Victor Lu <[email protected]> | 2025-02-13 23:49:46 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2025-03-07 17:53:24 +0000 |
| commit | 94b0908b85524d467a00c6aa2a277ef98fd8b152 (patch) | |
| tree | 0653d8ecfea773c00fc519b9f2718690b40b2664 /drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | |
| parent | drm/amdkfd: remove unused debug gws support status variable (diff) | |
| download | kernel-94b0908b85524d467a00c6aa2a277ef98fd8b152.tar.gz kernel-94b0908b85524d467a00c6aa2a277ef98fd8b152.zip | |
drm/amdgpu: Do not set power brake sequence for Aldebaran SRIOV
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 <[email protected]>
Acked-by: Alex Deucher <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c index 1f0f03108a82..d345285ea885 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c @@ -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; |
