]> www.infradead.org Git - users/hch/misc.git/commit
drm/amdgpu/vcn: adjust workload profile handling
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Mar 2025 13:45:51 +0000 (09:45 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 19 Mar 2025 19:56:09 +0000 (15:56 -0400)
commit3b669df92c8531040063c78e03e0509d3a5f40b8
tree7b22965040beb23d029d3efe9f433cb7733113f1
parent9e34d8d1a1abe693a77f8a1083e4ab97ca0362a0
drm/amdgpu/vcn: adjust workload profile handling

No need to make the workload profile setup dependent
on the results of cancelling the delayed work thread.
We have all of the necessary checking in place for the
workload profile reference counting, so separate the
two.  As it is now, we can theoretically end up with
the call from begin_use happening while the worker
thread is executing which would result in the profile
not getting set for that submission.  It should not
affect the reference counting.

v2: bail early if the the profile is already active (Lijo)

Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c