drm/amdgpu/gfx: set cg flags to enter/exit safe mode

[ Upstream commit e06bfcc1a1 ]

sriov needs to enter/exit safe mode in update umd p state
add the cg flag to let it enter or exit while needed

Signed-off-by: Jane Jian <Jane.Jian@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Jane Jian 2023-03-15 18:59:59 +08:00 • committed by Greg Kroah-Hartman
commit 8c1e247907