Commit cab69d36 authored by Yang Wang's avatar Yang Wang Committed by Alex Deucher

drm/amdgpu: skip to resume rlcg for gc 9.4.3 in vf side

skip to resume rlcg, because rlcg is already enabled in pf side.
Signed-off-by: default avatarYang Wang <kevinyang.wang@amd.com>
Reviewed-by: default avatarLijo Lazar <lijo.lazar@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 731b4846
......@@ -1293,6 +1293,9 @@ static int gfx_v9_4_3_rlc_resume(struct amdgpu_device *adev)
{
int r, i, num_xcc;
if (amdgpu_sriov_vf(adev))
return 0;
num_xcc = NUM_XCC(adev->gfx.xcc_mask);
for (i = 0; i < num_xcc; i++) {
r = gfx_v9_4_3_xcc_rlc_resume(adev, i);
......@@ -4321,11 +4324,13 @@ static int gfx_v9_4_3_xcp_resume(void *handle, uint32_t inst_mask)
for_each_inst(i, tmp_mask)
gfx_v9_4_3_xcc_constants_init(adev, i);
tmp_mask = inst_mask;
for_each_inst(i, tmp_mask) {
r = gfx_v9_4_3_xcc_rlc_resume(adev, i);
if (r)
return r;
if (!amdgpu_sriov_vf(adev)) {
tmp_mask = inst_mask;
for_each_inst(i, tmp_mask) {
r = gfx_v9_4_3_xcc_rlc_resume(adev, i);
if (r)
return r;
}
}
tmp_mask = inst_mask;
......
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