mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-07 00:59:06 +00:00
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>
This commit is contained in:
parent
731b48463b
commit
cab69d36cc
1 changed files with 10 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue