]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/amdgpu/vcn: fix idle work handler for VCN 2.5
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 4 Mar 2025 22:57:43 +0000 (17:57 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 10 Mar 2025 17:22:05 +0000 (13:22 -0400)
commit2c01befe4a2707302eb1c97b955d94d66fac7b6f
tree300a083ad6d37c56d6cf1b6853ab2d0ee20ec564
parent3855f1d925d4f0971e35ec8c44f62862f78500fd
drm/amdgpu/vcn: fix idle work handler for VCN 2.5

VCN 2.5 uses the PG callback to enable VCN DPM which is
a global state.  As such, we need to make sure all instances
are in the same state.

v2: switch to a ref count (Lijo)
v3: switch to its own idle work handler
v4: fix logic in DPG handling

Fixes: 4ce4fe27205c ("drm/amdgpu/vcn: use per instance callbacks for idle work handler")
Reviewed-by: Boyuan Zhang <Boyuan.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c