]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdgpu: Set PG state to gating for vcn_v_5_0_1
authorAsad Kamal <asad.kamal@amd.com>
Thu, 27 Feb 2025 12:09:16 +0000 (20:09 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 5 Mar 2025 15:44:56 +0000 (10:44 -0500)
commit8df5f03be54cd2d7b37009168080f982e9ca7574
tree32566dc05e3a556cec15de85f33e471adddcd2ce
parent1092a4ea1b80a234e508a43364371302b7760b97
drm/amdgpu: Set PG state to gating for vcn_v_5_0_1

For vcn_v_5_0_1, set power state to gating during hw fini. Also there may
be scenario where VCN engine hangs during a job execution, then it's not
safe to assume that set_pg_state works fine during hw_fini to put the state
to gated. After a reset, we can assume that it's in the default state,
therefore reset the driver maintained state. Put the default state as gated
during reset as per this assumption.

Signed-off-by: Asad Kamal <asad.kamal@amd.com>
Suggested-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/vcn_v5_0_1.c