[PATCH 4/4] drm/scheduler: do not keep a copy of sched list

Nirmoy nirmodas at amd.com
Sun Dec 8 19:57:02 UTC 2019

On 12/6/19 8:41 PM, Christian König wrote:
> Am 06.12.19 um 18:33 schrieb Nirmoy Das:
>> entity should not keep copy and maintain sched list for
>> itself.
> That is a good step, but we need to take this further.

How about  something like ?

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h 
index 0ae0a2715b0d..a71ee084b47a 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h
@@ -269,8 +269,10 @@ struct amdgpu_gfx {
         bool                            me_fw_write_wait;
         bool                            cp_fw_write_wait;
         struct amdgpu_ring gfx_ring[AMDGPU_MAX_GFX_RINGS];
+       struct drm_gpu_scheduler *gfx_sched_list[AMDGPU_MAX_GFX_RINGS];
         unsigned                        num_gfx_rings;
         struct amdgpu_ring compute_ring[AMDGPU_MAX_COMPUTE_RINGS];
+       struct drm_gpu_scheduler 
         unsigned                        num_compute_rings;
         struct amdgpu_irq_src           eop_irq;
         struct amdgpu_irq_src           priv_reg_irq;



More information about the amd-gfx mailing list