Skip to content

Commit cab69d3

Browse files
Yang Wangalexdeucher
authored andcommitted
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: Yang Wang <kevinyang.wang@amd.com> Reviewed-by: Lijo Lazar <lijo.lazar@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 731b484 commit cab69d3

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

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

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1293,6 +1293,9 @@ static int gfx_v9_4_3_rlc_resume(struct amdgpu_device *adev)
12931293
{
12941294
int r, i, num_xcc;
12951295

1296+
if (amdgpu_sriov_vf(adev))
1297+
return 0;
1298+
12961299
num_xcc = NUM_XCC(adev->gfx.xcc_mask);
12971300
for (i = 0; i < num_xcc; i++) {
12981301
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)
43214324
for_each_inst(i, tmp_mask)
43224325
gfx_v9_4_3_xcc_constants_init(adev, i);
43234326

4324-
tmp_mask = inst_mask;
4325-
for_each_inst(i, tmp_mask) {
4326-
r = gfx_v9_4_3_xcc_rlc_resume(adev, i);
4327-
if (r)
4328-
return r;
4327+
if (!amdgpu_sriov_vf(adev)) {
4328+
tmp_mask = inst_mask;
4329+
for_each_inst(i, tmp_mask) {
4330+
r = gfx_v9_4_3_xcc_rlc_resume(adev, i);
4331+
if (r)
4332+
return r;
4333+
}
43294334
}
43304335

43314336
tmp_mask = inst_mask;

0 commit comments

Comments
 (0)