Commit d30279a9 authored by Rajneesh Bhardwaj's avatar Rajneesh Bhardwaj Committed by Alex Deucher

drm/amdgpu: Hide xcp partition sysfs under SRIOV

XCP partitions should not be visible for the VF for GFXIP 9.4.3.
Reviewed-by: default avatarLijo Lazar <lijo.lazar@amd.com>
Signed-off-by: default avatarRajneesh Bhardwaj <rajneesh.bhardwaj@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 37fb8791
...@@ -863,11 +863,15 @@ static int gfx_v9_4_3_sw_init(void *handle) ...@@ -863,11 +863,15 @@ static int gfx_v9_4_3_sw_init(void *handle)
if (r) if (r)
return r; return r;
r = amdgpu_gfx_sysfs_init(adev); r = amdgpu_gfx_ras_sw_init(adev);
if (r) if (r)
return r; return r;
return amdgpu_gfx_ras_sw_init(adev);
if (!amdgpu_sriov_vf(adev))
r = amdgpu_gfx_sysfs_init(adev);
return r;
} }
static int gfx_v9_4_3_sw_fini(void *handle) static int gfx_v9_4_3_sw_fini(void *handle)
...@@ -888,6 +892,7 @@ static int gfx_v9_4_3_sw_fini(void *handle) ...@@ -888,6 +892,7 @@ static int gfx_v9_4_3_sw_fini(void *handle)
gfx_v9_4_3_mec_fini(adev); gfx_v9_4_3_mec_fini(adev);
amdgpu_bo_unref(&adev->gfx.rlc.clear_state_obj); amdgpu_bo_unref(&adev->gfx.rlc.clear_state_obj);
gfx_v9_4_3_free_microcode(adev); gfx_v9_4_3_free_microcode(adev);
if (!amdgpu_sriov_vf(adev))
amdgpu_gfx_sysfs_fini(adev); amdgpu_gfx_sysfs_fini(adev);
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment