mirror of
https://github.com/torvalds/linux.git
synced 2026-04-28 03:22:27 -04:00
drm/amdgpu/ring: add no_scheduler flag
This allows IPs to flag whether a specific ring requires a GPU scheduler or not. E.g., sometimes instances of an IP are asymmetric and have different capabilities. Reviewed-by: Christian König <christian.koenig@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
@@ -261,7 +261,8 @@ int amdgpu_ring_init(struct amdgpu_device *adev, struct amdgpu_ring *ring,
|
||||
mutex_init(&ring->priority_mutex);
|
||||
|
||||
if (ring->funcs->type >= AMDGPU_RING_TYPE_GFX &&
|
||||
ring->funcs->type <= AMDGPU_RING_TYPE_VCN_JPEG) {
|
||||
ring->funcs->type <= AMDGPU_RING_TYPE_VCN_JPEG &&
|
||||
!ring->no_scheduler) {
|
||||
hw_ip = ring->funcs->type;
|
||||
num_sched = &adev->gpu_sched[hw_ip][hw_prio].num_scheds;
|
||||
adev->gpu_sched[hw_ip][hw_prio].sched[(*num_sched)++] =
|
||||
|
||||
Reference in New Issue
Block a user