-
- Downloads
drm/amdgpu: rework context priority handling
To get a hardware queue priority for a context, we are currently mapping AMDGPU_CTX_PRIORITY_* to DRM_SCHED_PRIORITY_* and then to hardware queue priority, which is not the right way to do that as DRM_SCHED_PRIORITY_* is software scheduler's priority and it is independent from a hardware queue priority. Use userspace provided context priority, AMDGPU_CTX_PRIORITY_* to map a context to proper hardware queue priority. Signed-off-by:Nirmoy Das <nirmoy.das@amd.com> Reviewed-by:
Christian König <christian.koenig@amd.com> Signed-off-by:
Alex Deucher <alexander.deucher@amd.com>
Showing
- drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c 93 additions, 34 deletionsdrivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
- drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h 4 additions, 4 deletionsdrivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h
- drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c 8 additions, 36 deletionsdrivers/gpu/drm/amd/amdgpu/amdgpu_sched.c
Loading
Please register or sign in to comment