Re: [PATCH v2] drm/scheduler: rework entity creation

2019-12-05 Thread Nirmoy
On 12/5/19 4:43 PM, Christian König wrote: Am 05.12.19 um 15:48 schrieb Nirmoy Das:   EXPORT_SYMBOL(drm_sched_entity_set_priority); @@ -490,18 +474,20 @@ void drm_sched_entity_select_rq(struct drm_sched_entity *entity)   struct dma_fence *fence;   struct drm_sched_rq *rq;   -    if

[PATCH v2] drm/scheduler: rework entity creation

2019-12-05 Thread Nirmoy Das
Entity currently keeps a copy of run_queue list and modify it in drm_sched_entity_set_priority(). Entities shouldn't modify run_queue list. Use drm_gpu_scheduler list instead of drm_sched_rq list in drm_sched_entity struct. In this way we can select a runqueue based on entity/ctx's priority for a

Re: [PATCH v2] drm/scheduler: rework entity creation

2019-12-05 Thread Christian König
Am 05.12.19 um 15:48 schrieb Nirmoy Das: Entity currently keeps a copy of run_queue list and modify it in drm_sched_entity_set_priority(). Entities shouldn't modify run_queue list. Use drm_gpu_scheduler list instead of drm_sched_rq list in drm_sched_entity struct. In this way we can select a