[Freedreno] [PATCH v2 0/4] drm/msm/dpu: change interrupts code to make 0 be the no IRQ

Dmitry Baryshkov dmitry.baryshkov at linaro.org
Thu Jul 27 15:04:51 UTC 2023


Having an explicit init of interrupt fields to -1 for not existing IRQs
makes it easier to forget and/or miss such initialisation, resulting in
a wrong interrupt definition.

Instead shift all IRQ indices to turn '0' to be the non-existing IRQ.

Dependencies: [1]

[1] https://patchwork.freedesktop.org/series/118088/

Changes since v1:
 - Rebased on top of msm-next-lumag and updated IRQ rework series.

Dmitry Baryshkov (4):
  drm/msm/dpu: remove irq_idx argument from IRQ callbacks
  drm/msm/dpu: move several IRQ-related defines
  drm/msm/dpu: add helper to get IRQ-related data
  drm/msm/dpu: shift IRQ indices by 1

 .../msm/disp/dpu1/catalog/dpu_3_0_msm8998.h   |  4 -
 .../msm/disp/dpu1/catalog/dpu_4_0_sdm845.h    |  4 -
 .../msm/disp/dpu1/catalog/dpu_5_0_sm8150.h    |  8 --
 .../msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h   | 10 --
 .../msm/disp/dpu1/catalog/dpu_5_4_sm6125.h    |  3 -
 .../msm/disp/dpu1/catalog/dpu_6_0_sm8250.h    |  8 --
 .../msm/disp/dpu1/catalog/dpu_6_2_sc7180.h    |  3 -
 .../msm/disp/dpu1/catalog/dpu_6_3_sm6115.h    |  1 -
 .../msm/disp/dpu1/catalog/dpu_6_4_sm6350.h    |  3 -
 .../msm/disp/dpu1/catalog/dpu_6_5_qcm2290.h   |  1 -
 .../msm/disp/dpu1/catalog/dpu_6_9_sm6375.h    |  1 -
 .../msm/disp/dpu1/catalog/dpu_7_0_sm8350.h    |  8 --
 .../msm/disp/dpu1/catalog/dpu_7_2_sc7280.h    |  6 --
 .../msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h  | 13 ---
 .../msm/disp/dpu1/catalog/dpu_8_1_sm8450.h    | 12 ---
 .../msm/disp/dpu1/catalog/dpu_9_0_sm8550.h    | 12 ---
 drivers/gpu/drm/msm/disp/dpu1/dpu_core_irq.h  |  8 +-
 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c   |  6 +-
 .../gpu/drm/msm/disp/dpu1/dpu_encoder_phys.h  |  4 +-
 .../drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c  |  8 +-
 .../drm/msm/disp/dpu1/dpu_encoder_phys_vid.c  |  4 +-
 .../drm/msm/disp/dpu1/dpu_encoder_phys_wb.c   | 16 +---
 .../gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h    | 14 +--
 .../gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c | 94 +++++++++++--------
 .../gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.h | 16 ++--
 25 files changed, 93 insertions(+), 174 deletions(-)


base-commit: be4dacf4eee1c4e2e91586e75e95b2852274dc58
prerequisite-patch-id: be3f3e5df89f9f2cc6b6289a83422d65e29d4900
prerequisite-patch-id: 59cd61ccd3cde7218fe3db6a8c672faafb7167f5
prerequisite-patch-id: d493b9bd85d518c15ca94f22174cb5ab2e2443d9
prerequisite-patch-id: 6a5bf3083c3da70ca110c17d54027e96c0335636
prerequisite-patch-id: 670883101f3b5dca122501f2828d8e45a6843b38
-- 
2.39.2



More information about the Freedreno mailing list