* [PATCH 1/3] drm/msm: move msm_display_topology to the DPU driver
2024-10-31 21:44 [PATCH 0/3] drm/msm: minor msm_drv.h cleanup Dmitry Baryshkov
@ 2024-10-31 21:44 ` Dmitry Baryshkov
2024-10-31 22:12 ` Abhinav Kumar
2024-10-31 21:44 ` [PATCH 2/3] drm/msm: move MAX_H_TILES_PER_DISPLAY " Dmitry Baryshkov
` (2 subsequent siblings)
3 siblings, 1 reply; 8+ messages in thread
From: Dmitry Baryshkov @ 2024-10-31 21:44 UTC (permalink / raw)
To: Rob Clark, Abhinav Kumar, Sean Paul, Marijn Suijten, David Airlie,
Simona Vetter
Cc: linux-arm-msm, dri-devel, freedreno, linux-kernel
The struct msm_display_topology is only used by the DPU driver. Remove
it from the global header and move it to DPU-specific header.
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
---
drivers/gpu/drm/msm/disp/dpu1/dpu_rm.h | 16 ++++++++++++++++
drivers/gpu/drm/msm/msm_drv.h | 16 ----------------
2 files changed, 16 insertions(+), 16 deletions(-)
diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_rm.h b/drivers/gpu/drm/msm/disp/dpu1/dpu_rm.h
index e63db8ace6b9..14220ba04a78 100644
--- a/drivers/gpu/drm/msm/disp/dpu1/dpu_rm.h
+++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_rm.h
@@ -37,6 +37,22 @@ struct dpu_rm {
struct dpu_hw_blk *cdm_blk;
};
+/**
+ * struct msm_display_topology - defines a display topology pipeline
+ * @num_lm: number of layer mixers used
+ * @num_intf: number of interfaces the panel is mounted on
+ * @num_dspp: number of dspp blocks used
+ * @num_dsc: number of Display Stream Compression (DSC) blocks used
+ * @needs_cdm: indicates whether cdm block is needed for this display topology
+ */
+struct msm_display_topology {
+ u32 num_lm;
+ u32 num_intf;
+ u32 num_dspp;
+ u32 num_dsc;
+ bool needs_cdm;
+};
+
/**
* dpu_rm_init - Read hardware catalog and create reservation tracking objects
* for all HW blocks.
diff --git a/drivers/gpu/drm/msm/msm_drv.h b/drivers/gpu/drm/msm/msm_drv.h
index 133e47bea7d5..ae3adb0f68a8 100644
--- a/drivers/gpu/drm/msm/msm_drv.h
+++ b/drivers/gpu/drm/msm/msm_drv.h
@@ -73,22 +73,6 @@ enum msm_dsi_controller {
#define MSM_GPU_MAX_RINGS 4
#define MAX_H_TILES_PER_DISPLAY 2
-/**
- * struct msm_display_topology - defines a display topology pipeline
- * @num_lm: number of layer mixers used
- * @num_intf: number of interfaces the panel is mounted on
- * @num_dspp: number of dspp blocks used
- * @num_dsc: number of Display Stream Compression (DSC) blocks used
- * @needs_cdm: indicates whether cdm block is needed for this display topology
- */
-struct msm_display_topology {
- u32 num_lm;
- u32 num_intf;
- u32 num_dspp;
- u32 num_dsc;
- bool needs_cdm;
-};
-
/* Commit/Event thread specific structure */
struct msm_drm_thread {
struct drm_device *dev;
--
2.39.5
^ permalink raw reply related [flat|nested] 8+ messages in thread* Re: [PATCH 1/3] drm/msm: move msm_display_topology to the DPU driver
2024-10-31 21:44 ` [PATCH 1/3] drm/msm: move msm_display_topology to the DPU driver Dmitry Baryshkov
@ 2024-10-31 22:12 ` Abhinav Kumar
0 siblings, 0 replies; 8+ messages in thread
From: Abhinav Kumar @ 2024-10-31 22:12 UTC (permalink / raw)
To: Dmitry Baryshkov, Rob Clark, Sean Paul, Marijn Suijten,
David Airlie, Simona Vetter
Cc: linux-arm-msm, dri-devel, freedreno, linux-kernel
On 10/31/2024 2:44 PM, Dmitry Baryshkov wrote:
> The struct msm_display_topology is only used by the DPU driver. Remove
> it from the global header and move it to DPU-specific header.
>
> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
> ---
> drivers/gpu/drm/msm/disp/dpu1/dpu_rm.h | 16 ++++++++++++++++
> drivers/gpu/drm/msm/msm_drv.h | 16 ----------------
> 2 files changed, 16 insertions(+), 16 deletions(-)
>
Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 2/3] drm/msm: move MAX_H_TILES_PER_DISPLAY to the DPU driver
2024-10-31 21:44 [PATCH 0/3] drm/msm: minor msm_drv.h cleanup Dmitry Baryshkov
2024-10-31 21:44 ` [PATCH 1/3] drm/msm: move msm_display_topology to the DPU driver Dmitry Baryshkov
@ 2024-10-31 21:44 ` Dmitry Baryshkov
2024-10-31 22:14 ` Abhinav Kumar
2024-10-31 21:44 ` [PATCH 3/3] drm/msm: drop MAX_BRIDGES define Dmitry Baryshkov
2024-10-31 23:17 ` [PATCH 0/3] drm/msm: minor msm_drv.h cleanup Dmitry Baryshkov
3 siblings, 1 reply; 8+ messages in thread
From: Dmitry Baryshkov @ 2024-10-31 21:44 UTC (permalink / raw)
To: Rob Clark, Abhinav Kumar, Sean Paul, Marijn Suijten, David Airlie,
Simona Vetter
Cc: linux-arm-msm, dri-devel, freedreno, linux-kernel
The MAX_H_TILES_PER_DISPLAY const is only used by the DPU driver, move
it to the corresponding header.
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
---
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.h | 2 ++
drivers/gpu/drm/msm/msm_drv.h | 1 -
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.h b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.h
index f7465a1774aa..6c4f3d7dfbb1 100644
--- a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.h
+++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.h
@@ -19,6 +19,8 @@
#define IDLE_TIMEOUT (66 - 16/2)
+#define MAX_H_TILES_PER_DISPLAY 2
+
/**
* struct msm_display_info - defines display properties
* @intf_type: INTF_ type
diff --git a/drivers/gpu/drm/msm/msm_drv.h b/drivers/gpu/drm/msm/msm_drv.h
index ae3adb0f68a8..1dc161d9bf51 100644
--- a/drivers/gpu/drm/msm/msm_drv.h
+++ b/drivers/gpu/drm/msm/msm_drv.h
@@ -71,7 +71,6 @@ enum msm_dsi_controller {
};
#define MSM_GPU_MAX_RINGS 4
-#define MAX_H_TILES_PER_DISPLAY 2
/* Commit/Event thread specific structure */
struct msm_drm_thread {
--
2.39.5
^ permalink raw reply related [flat|nested] 8+ messages in thread* Re: [PATCH 2/3] drm/msm: move MAX_H_TILES_PER_DISPLAY to the DPU driver
2024-10-31 21:44 ` [PATCH 2/3] drm/msm: move MAX_H_TILES_PER_DISPLAY " Dmitry Baryshkov
@ 2024-10-31 22:14 ` Abhinav Kumar
0 siblings, 0 replies; 8+ messages in thread
From: Abhinav Kumar @ 2024-10-31 22:14 UTC (permalink / raw)
To: Dmitry Baryshkov, Rob Clark, Sean Paul, Marijn Suijten,
David Airlie, Simona Vetter
Cc: linux-arm-msm, dri-devel, freedreno, linux-kernel
On 10/31/2024 2:44 PM, Dmitry Baryshkov wrote:
> The MAX_H_TILES_PER_DISPLAY const is only used by the DPU driver, move
> it to the corresponding header.
>
> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
> ---
> drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.h | 2 ++
> drivers/gpu/drm/msm/msm_drv.h | 1 -
> 2 files changed, 2 insertions(+), 1 deletion(-)
>
Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 3/3] drm/msm: drop MAX_BRIDGES define
2024-10-31 21:44 [PATCH 0/3] drm/msm: minor msm_drv.h cleanup Dmitry Baryshkov
2024-10-31 21:44 ` [PATCH 1/3] drm/msm: move msm_display_topology to the DPU driver Dmitry Baryshkov
2024-10-31 21:44 ` [PATCH 2/3] drm/msm: move MAX_H_TILES_PER_DISPLAY " Dmitry Baryshkov
@ 2024-10-31 21:44 ` Dmitry Baryshkov
2024-10-31 22:41 ` Abhinav Kumar
2024-10-31 23:17 ` [PATCH 0/3] drm/msm: minor msm_drv.h cleanup Dmitry Baryshkov
3 siblings, 1 reply; 8+ messages in thread
From: Dmitry Baryshkov @ 2024-10-31 21:44 UTC (permalink / raw)
To: Rob Clark, Abhinav Kumar, Sean Paul, Marijn Suijten, David Airlie,
Simona Vetter
Cc: linux-arm-msm, dri-devel, freedreno, linux-kernel
The const MAX_BRIDGES is unused after the commit 4d1a1e4686bd ("drm/msm:
remove msm_drm_private::bridges field"), drop it now.
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
---
drivers/gpu/drm/msm/msm_drv.h | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/gpu/drm/msm/msm_drv.h b/drivers/gpu/drm/msm/msm_drv.h
index 1dc161d9bf51..d8c9a1b19263 100644
--- a/drivers/gpu/drm/msm/msm_drv.h
+++ b/drivers/gpu/drm/msm/msm_drv.h
@@ -52,7 +52,6 @@ struct msm_gem_vma;
struct msm_disp_state;
#define MAX_CRTCS 8
-#define MAX_BRIDGES 8
#define FRAC_16_16(mult, div) (((mult) << 16) / (div))
--
2.39.5
^ permalink raw reply related [flat|nested] 8+ messages in thread* Re: [PATCH 3/3] drm/msm: drop MAX_BRIDGES define
2024-10-31 21:44 ` [PATCH 3/3] drm/msm: drop MAX_BRIDGES define Dmitry Baryshkov
@ 2024-10-31 22:41 ` Abhinav Kumar
0 siblings, 0 replies; 8+ messages in thread
From: Abhinav Kumar @ 2024-10-31 22:41 UTC (permalink / raw)
To: Dmitry Baryshkov, Rob Clark, Sean Paul, Marijn Suijten,
David Airlie, Simona Vetter
Cc: linux-arm-msm, dri-devel, freedreno, linux-kernel
On 10/31/2024 2:44 PM, Dmitry Baryshkov wrote:
> The const MAX_BRIDGES is unused after the commit 4d1a1e4686bd ("drm/msm:
> remove msm_drm_private::bridges field"), drop it now.
>
> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
> ---
> drivers/gpu/drm/msm/msm_drv.h | 1 -
> 1 file changed, 1 deletion(-)
>
Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 0/3] drm/msm: minor msm_drv.h cleanup
2024-10-31 21:44 [PATCH 0/3] drm/msm: minor msm_drv.h cleanup Dmitry Baryshkov
` (2 preceding siblings ...)
2024-10-31 21:44 ` [PATCH 3/3] drm/msm: drop MAX_BRIDGES define Dmitry Baryshkov
@ 2024-10-31 23:17 ` Dmitry Baryshkov
3 siblings, 0 replies; 8+ messages in thread
From: Dmitry Baryshkov @ 2024-10-31 23:17 UTC (permalink / raw)
To: Rob Clark, Abhinav Kumar, Sean Paul, Marijn Suijten, David Airlie,
Simona Vetter, Dmitry Baryshkov
Cc: linux-arm-msm, dri-devel, freedreno, linux-kernel
On Thu, 31 Oct 2024 23:44:05 +0200, Dmitry Baryshkov wrote:
> As I stumbled upon msm_display_topology define, perform minor cleanup of
> msm_drv.h incldue file.
>
>
Applied, thanks!
[1/3] drm/msm: move msm_display_topology to the DPU driver
https://gitlab.freedesktop.org/lumag/msm/-/commit/f8706bff68cb
[2/3] drm/msm: move MAX_H_TILES_PER_DISPLAY to the DPU driver
https://gitlab.freedesktop.org/lumag/msm/-/commit/858b64e21217
[3/3] drm/msm: drop MAX_BRIDGES define
https://gitlab.freedesktop.org/lumag/msm/-/commit/26d841fd1c15
Best regards,
--
Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
^ permalink raw reply [flat|nested] 8+ messages in thread