diff options
author | 2023-11-23 16:47:33 +0800 | |
---|---|---|
committer | 2023-11-30 18:21:30 -0500 | |
commit | 04fcc3fec5dbd316b0b1fb2b9f8a39bfbe07af50 (patch) | |
tree | f1129c8b5f1d3b568fcf97009afae5b412667453 /drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c | |
parent | drm/amdgpu: Use another offset for GC 9.4.3 remap (diff) | |
download | linux-04fcc3fec5dbd316b0b1fb2b9f8a39bfbe07af50.tar.gz linux-04fcc3fec5dbd316b0b1fb2b9f8a39bfbe07af50.tar.bz2 linux-04fcc3fec5dbd316b0b1fb2b9f8a39bfbe07af50.zip |
drm/amdgpu: Skip access gfx11 golden registers under SRIOV
[Why]
Golden registers are PF-only registers on gfx11.
RLCG interface will return "out-of-range" under SRIOV VF.
[How]
Skip access gfx11 golden registers under SRIOV.
Reviewed-by: Horace Chen <horace.chen@amd.com>
Signed-off-by: ZhenGuo Yin <zhenguo.yin@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c index 8ed4a6fb147a..288e926e5cd4 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c @@ -293,6 +293,9 @@ static void gfx_v11_0_set_kiq_pm4_funcs(struct amdgpu_device *adev) static void gfx_v11_0_init_golden_registers(struct amdgpu_device *adev) { + if (amdgpu_sriov_vf(adev)) + return; + switch (amdgpu_ip_version(adev, GC_HWIP, 0)) { case IP_VERSION(11, 0, 1): case IP_VERSION(11, 0, 4): |