mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
Revert "drm/amdgpu: Disable gfx off if VCN is busy"
This reverts commit 3fded222f4
This is work around for vcn1 only. Currently vcn1 has separate
begin_use and idle work handle.
Signed-off-by: James Zhu <James.Zhu@amd.com>
Tested-by: changzhu <Changfeng.Zhu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
12c17b9d62
commit
4f610503f0
1 changed files with 0 additions and 2 deletions
|
@ -353,7 +353,6 @@ static void amdgpu_vcn_idle_work_handler(struct work_struct *work)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!fences && !atomic_read(&adev->vcn.total_submission_cnt)) {
|
if (!fences && !atomic_read(&adev->vcn.total_submission_cnt)) {
|
||||||
amdgpu_gfx_off_ctrl(adev, true);
|
|
||||||
amdgpu_device_ip_set_powergating_state(adev, AMD_IP_BLOCK_TYPE_VCN,
|
amdgpu_device_ip_set_powergating_state(adev, AMD_IP_BLOCK_TYPE_VCN,
|
||||||
AMD_PG_STATE_GATE);
|
AMD_PG_STATE_GATE);
|
||||||
} else {
|
} else {
|
||||||
|
@ -369,7 +368,6 @@ void amdgpu_vcn_ring_begin_use(struct amdgpu_ring *ring)
|
||||||
cancel_delayed_work_sync(&adev->vcn.idle_work);
|
cancel_delayed_work_sync(&adev->vcn.idle_work);
|
||||||
|
|
||||||
mutex_lock(&adev->vcn.vcn_pg_lock);
|
mutex_lock(&adev->vcn.vcn_pg_lock);
|
||||||
amdgpu_gfx_off_ctrl(adev, false);
|
|
||||||
amdgpu_device_ip_set_powergating_state(adev, AMD_IP_BLOCK_TYPE_VCN,
|
amdgpu_device_ip_set_powergating_state(adev, AMD_IP_BLOCK_TYPE_VCN,
|
||||||
AMD_PG_STATE_UNGATE);
|
AMD_PG_STATE_UNGATE);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue