summaryrefslogtreecommitdiff
path: root/rust/helpers/workqueue.c
diff options
context:
space:
mode:
authorLijo Lazar <lijo.lazar@amd.com>2025-08-14 13:52:50 +0530
committerAlex Deucher <alexander.deucher@amd.com>2025-08-29 10:09:33 -0400
commit9c0442286f84a5036958b3d8eb00bf0bb070dbd1 (patch)
tree89b857837d5bdfa3f547cf7849e7824b818f5b9c /rust/helpers/workqueue.c
parent37551277dfed796b6749e4fa52bdb62403cfdb42 (diff)
drm/amdgpu: Check vcn state before profile switch
The patch uses power state of VCN instances for requesting video profile. In idle worker of a vcn instance, when there is no outstanding submisssion or fence, the instance is put to power gated state. When all instances are powered off that means video profile is no longer required. A request is made to turn off video profile. A job submission starts with begin_use of ring, and at that time vcn instance state is changed to power on. Subsequently a check is made for active video profile, and if not active, a request is made. Fixes: 3b669df92c85 ("drm/amdgpu/vcn: adjust workload profile handling") Signed-off-by: Lijo Lazar <lijo.lazar@amd.com> Reviewed-by: Sathishkumar S <sathishkumar.sundararaju@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'rust/helpers/workqueue.c')
0 files changed, 0 insertions, 0 deletions