-
- Downloads
drm/amdgpu/vcn: separate idle work by instance
Previously idle working handling is for all VCN instances. As a result, when one of the instance finishes its job, the idle work can't be triggered if the other instance is still busy. Now, move the idle_work from amdgpu_vcn to amdgpu_vcn_inst, in order to track work by vcn instance. Add work_inst to track the instance number that the work belongs to. As a result, the idle work can now be triggered once the job is done on one of the vcn instance, and no need to consider the work on the other vcn instance. Signed-off-by:Boyuan Zhang <boyuan.zhang@amd.com> Reviewed-by:
Christian König <christian.koenig@amd.com> Reviewed-by:
Alex Deucher <alexander.deucher@amd.com> Signed-off-by:
Alex Deucher <alexander.deucher@amd.com>
Showing
- drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 35 additions, 32 deletionsdrivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
- drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h 3 additions, 1 deletiondrivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h
- drivers/gpu/drm/amd/amdgpu/jpeg_v1_0.c 1 addition, 1 deletiondrivers/gpu/drm/amd/amdgpu/jpeg_v1_0.c
- drivers/gpu/drm/amd/amdgpu/jpeg_v2_0.c 1 addition, 1 deletiondrivers/gpu/drm/amd/amdgpu/jpeg_v2_0.c
- drivers/gpu/drm/amd/amdgpu/jpeg_v2_5.c 1 addition, 1 deletiondrivers/gpu/drm/amd/amdgpu/jpeg_v2_5.c
- drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c 1 addition, 1 deletiondrivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c
- drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c 1 addition, 1 deletiondrivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c
- drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_5.c 1 addition, 1 deletiondrivers/gpu/drm/amd/amdgpu/jpeg_v4_0_5.c
- drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_0.c 1 addition, 1 deletiondrivers/gpu/drm/amd/amdgpu/jpeg_v5_0_0.c
- drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 7 additions, 7 deletionsdrivers/gpu/drm/amd/amdgpu/vcn_v1_0.c
- drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 1 addition, 1 deletiondrivers/gpu/drm/amd/amdgpu/vcn_v2_0.c
- drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 1 addition, 1 deletiondrivers/gpu/drm/amd/amdgpu/vcn_v2_5.c
- drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c 1 addition, 1 deletiondrivers/gpu/drm/amd/amdgpu/vcn_v3_0.c
- drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c 1 addition, 1 deletiondrivers/gpu/drm/amd/amdgpu/vcn_v4_0.c
- drivers/gpu/drm/amd/amdgpu/vcn_v4_0_3.c 1 addition, 1 deletiondrivers/gpu/drm/amd/amdgpu/vcn_v4_0_3.c
- drivers/gpu/drm/amd/amdgpu/vcn_v4_0_5.c 1 addition, 1 deletiondrivers/gpu/drm/amd/amdgpu/vcn_v4_0_5.c
- drivers/gpu/drm/amd/amdgpu/vcn_v5_0_0.c 1 addition, 1 deletiondrivers/gpu/drm/amd/amdgpu/vcn_v5_0_0.c
Loading
Please register or sign in to comment