mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/3] drm/msm/dpu: Drop useless for-loop HW block lookup
@ 2023-04-17 23:14 Marijn Suijten
  2023-04-17 23:14 ` [PATCH 1/3] drm/msm/dpu: Drop unused members from HW structs Marijn Suijten
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Marijn Suijten @ 2023-04-17 23:14 UTC (permalink / raw)
  To: Rob Clark, Abhinav Kumar, Dmitry Baryshkov, Sean Paul,
	David Airlie, Daniel Vetter
  Cc: ~postmarketos/upstreaming, AngeloGioacchino Del Regno,
	Konrad Dybcio, Martin Botka, Jami Kettunen, Jordan Crouse,
	linux-arm-msm, dri-devel, freedreno, linux-kernel,
	Marijn Suijten

Doing a for loop in every DPU HW block driver init to find a catalog
entry matching the given ID is rather useless if the init function
called by RM already has that catalog entry pointer, and uses exactly
its ID to drive this init and for loop.  Remove all that machinery to
drop quite some lines of unnecessarily-complicated code, and the
fallibility that comes with it, by simply giving _init() the catalog
entry pointers straight away.

Also clean up some unused struct members, and assign a log_mask for WB.

---
Marijn Suijten (3):
      drm/msm/dpu: Drop unused members from HW structs
      drm/msm/dpu: Assign missing writeback log_mask
      drm/msm/dpu: Pass catalog pointers directly from RM instead of IDs

 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c        | 30 +++--------------
 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.h        | 10 +++---
 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_dsc.c        | 32 +++---------------
 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_dsc.h        | 11 +++---
 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_dspp.c       | 38 ++++-----------------
 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_dspp.h       | 12 +++----
 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.h |  2 +-
 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.c       | 41 ++++++-----------------
 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.h       | 13 +++----
 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_lm.c         | 38 ++++-----------------
 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_lm.h         | 10 +++---
 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_merge3d.c    | 33 +++---------------
 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_merge3d.h    | 14 ++++----
 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_pingpong.c   | 33 +++---------------
 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_pingpong.h   | 14 ++++----
 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.c       | 34 +++----------------
 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.h       | 10 +++---
 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_vbif.c       | 33 +++---------------
 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_vbif.h       | 11 +++---
 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_wb.c         | 33 ++++--------------
 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_wb.h         | 16 +++------
 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c           | 17 +++++-----
 drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c            | 18 +++++-----
 23 files changed, 127 insertions(+), 376 deletions(-)
---
base-commit: 4aa1da8d99724f6c0b762b58a71cee7c5e2e109b
change-id: 20230418-dpu-drop-useless-for-lookup-488700c7a469

Best regards,
-- 
Marijn Suijten <marijn.suijten@somainline.org>


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2023-04-20 22:20 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-17 23:14 [PATCH 0/3] drm/msm/dpu: Drop useless for-loop HW block lookup Marijn Suijten
2023-04-17 23:14 ` [PATCH 1/3] drm/msm/dpu: Drop unused members from HW structs Marijn Suijten
2023-04-18  1:54   ` Abhinav Kumar
2023-04-18  7:54     ` Marijn Suijten
2023-04-20 14:33   ` Dmitry Baryshkov
2023-04-20 15:46     ` [Freedreno] " Abhinav Kumar
2023-04-20 21:39       ` Marijn Suijten
2023-04-20 22:20         ` Dmitry Baryshkov
2023-04-17 23:14 ` [PATCH 2/3] drm/msm/dpu: Assign missing writeback log_mask Marijn Suijten
2023-04-18 16:06   ` Abhinav Kumar
2023-04-19  9:28     ` Marijn Suijten
2023-04-19 16:05       ` Abhinav Kumar
2023-04-20 14:32   ` Dmitry Baryshkov
2023-04-17 23:14 ` [PATCH 3/3] drm/msm/dpu: Pass catalog pointers directly from RM instead of IDs Marijn Suijten
2023-04-20 14:36   ` Dmitry Baryshkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®