[PATCH v3 3/4] drm/amdgpu: change hw sched list on ctx priority override

Nirmoy nirmodas at amd.com
Mon Mar 2 12:35:55 UTC 2020


+
>>>> +    switch (hw_ip) {
>>>> +    case AMDGPU_HW_IP_COMPUTE:
>>>> +        compute_priority =
>>>> + amdgpu_ctx_sched_prio_to_compute_prio(priority);
>>>> +        scheds = adev->gfx.compute_prio_sched[compute_priority];
>>>> +        num_scheds = adev->gfx.num_compute_sched[compute_priority];
>>>> +        break;
>>>> +    default:
>>>> +        return;
>>>> +    }
>>>> +
>>>> +    drm_sched_entity_modify_sched(&aentity->entity, scheds, 
>>>> num_scheds);
>>>
>>> That needs to be under the "case AMDGPU_HW_IP_COMPUTE" or otherwise 
>>> we set the schedulers to NULL for SDMA.
>> SDMA will fall into  default case which will return from the function 
>> immediately.
>
> Oh, that's a bad idea. We still want the call to 
> drm_sched_entity_set_priority() in this case.
>
> Maybe move the call to drm_sched_entity_set_priority() above the switch?
Right we still need drm_sched_entity_set_priority(). I will update it.


Regards,

Nirmoy



More information about the amd-gfx mailing list