Skip to content

Commit dd12b85

Browse files
Samir Dhumealexdeucher
authored andcommitted
drm/amdgpu/vcn: Skip vcn power-gating change for sriov
CG/PG is handled on the host side. Signed-off-by: Samir Dhume <samir.dhume@amd.com> Acked-by: Leo Liu <leo.liu@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 0fc7d79 commit dd12b85

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1536,6 +1536,15 @@ static int vcn_v4_0_3_set_powergating_state(void *handle,
15361536
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
15371537
int ret;
15381538

1539+
/* for SRIOV, guest should not control VCN Power-gating
1540+
* MMSCH FW should control Power-gating and clock-gating
1541+
* guest should avoid touching CGC and PG
1542+
*/
1543+
if (amdgpu_sriov_vf(adev)) {
1544+
adev->vcn.cur_state = AMD_PG_STATE_UNGATE;
1545+
return 0;
1546+
}
1547+
15391548
if (state == adev->vcn.cur_state)
15401549
return 0;
15411550

0 commit comments

Comments
 (0)