Skip to content

Commit 04fcc3f

Browse files
ZhenGuo Yinalexdeucher
authored andcommitted
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>
1 parent 36fd996 commit 04fcc3f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,9 @@ static void gfx_v11_0_set_kiq_pm4_funcs(struct amdgpu_device *adev)
293293

294294
static void gfx_v11_0_init_golden_registers(struct amdgpu_device *adev)
295295
{
296+
if (amdgpu_sriov_vf(adev))
297+
return;
298+
296299
switch (amdgpu_ip_version(adev, GC_HWIP, 0)) {
297300
case IP_VERSION(11, 0, 1):
298301
case IP_VERSION(11, 0, 4):

0 commit comments

Comments
 (0)