Skip to content
Snippets Groups Projects
  • Alex Deucher's avatar
    3b669df9
    drm/amdgpu/vcn: adjust workload profile handling · 3b669df9
    Alex Deucher authored
    
    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: default avatarLijo Lazar <lijo.lazar@amd.com>
    Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
    3b669df9
    History
    drm/amdgpu/vcn: adjust workload profile handling
    Alex Deucher authored
    
    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: default avatarLijo Lazar <lijo.lazar@amd.com>
    Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>