Re: [Freedreno] [PATCH v3 6/6] drm/msm: make mdp5/dpu devices master components

2022-03-24 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2022-03-23 02:25:38) > diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c > b/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c > index 38627ccf3068..ab8a35e09bc9 100644 > --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c > +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c > @@ -381,8

Re: [Freedreno] [PATCH v3 3/6] drm/msm: split the main platform driver

2022-03-24 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2022-03-23 02:25:35) > Currently the msm platform driver is a multiplex handling several cases: > - headless GPU-only driver, > - MDP4 with flat device nodes, > - MDP5/DPU MDSS with all the nodes being children of MDSS node. > > This results in not-so-perfect code,

Re: [Freedreno] [PATCH] dt-bindings: display/msm: another fix for the dpu-qcm2290 example

2022-03-24 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2022-03-24 04:55:36) > Make dpu-qcm2290 example really follow the defined schema: > - Drop qcom,mdss compatible. It's only used for MDP5 devices. > - Change display controller name to display-controller as specified in > the yaml > > Reported-by: Rob Herring > Cc: Loic

Re: [Freedreno] [PATCH 2/3] drm/msm/dp: simplify dp_connector_get_modes()

2022-03-24 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2022-03-23 03:35:45) > Since dp_panel_get_modes() handling for dp_mode was removed, > dp_display_get_modes also doesn't change the passed dp_mode, drop the > unused dp_mode variable being allocated unused and then freed. > > Signed-off-by: Dmitry Baryshkov > ---

Re: [Freedreno] [PATCH 3/3] drm/msm/dp: remove max_pclk_khz field from dp_panel/dp_display

2022-03-24 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2022-03-23 03:35:46) > Since the last commit, the max_pclk_khz became constant, it's set to > DP_MAX_PIXEL_CLK_KHZ and never changed afterwards. Remove it completely > and use DP_MAX_PIXEL_CLK_KHZ directly. > > Signed-off-by: Dmitry Baryshkov > --- Reviewed-by: Stephen

Re: [Freedreno] [PATCH 1/3] drm/msm/dp: drop dp_mode argument from dp_panel_get_modes()

2022-03-24 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2022-03-23 03:35:44) > Since the commit ab205927592b ("drm/msm/dp: remove mode hard-coding in > case of DP CTS") the function dp_panel_get_modes() doesn't use (or fill) > the dp_mode argument. Drop it completely. > > Signed-off-by: Dmitry Baryshkov > --- Reviewed-by:

Re: [Freedreno] [PATCH] drm/msm/mdp5: check the return of kzalloc()

2022-03-24 Thread Abhinav Kumar
On 3/24/2022 1:36 AM, xkernel.w...@foxmail.com wrote: From: Xiaoke Wang kzalloc() is a memory allocation function which can return NULL when some internal memory errors happen. So it is better to check it to prevent potential wrong memory access. Signed-off-by: Xiaoke Wang Reviewed-by:

Re: [Freedreno] [PATCH] drm/msm/disp: check the return value of kzalloc()

2022-03-24 Thread Abhinav Kumar
On 3/24/2022 2:15 AM, xkernel.w...@foxmail.com wrote: From: Xiaoke Wang kzalloc() is a memory allocation function which can return NULL when some internal memory errors happen. So it is better to check it to prevent potential wrong memory access. Signed-off-by: Xiaoke Wang Reviewed-by:

Re: [Freedreno] [PATCH v5 2/4] drm: introduce drm_writeback_connector_init_with_encoder() API

2022-03-24 Thread Abhinav Kumar
Hi Liviu Thanks for the response. On 3/24/2022 3:12 AM, Liviu Dudau wrote: On Wed, Mar 23, 2022 at 11:28:56AM -0700, Abhinav Kumar wrote: Hi Liviu Hello, Thanks for the review. On 3/23/2022 9:46 AM, Liviu Dudau wrote: On Mon, Mar 21, 2022 at 04:56:43PM -0700, Abhinav Kumar wrote: For

Re: [Freedreno] [REPOST PATCH v4 06/13] drm/msm/disp/dpu1: Add DSC support in hw_ctl

2022-03-24 Thread Vinod Koul
On 17-02-22, 23:20, Marijn Suijten wrote: > On 2022-02-10 16:04:16, Vinod Koul wrote: > > Later gens of hardware have DSC bits moved to hw_ctl, so configure these > > bits so that DSC would work there as well > > > > Reviewed-by: Dmitry Baryshkov > > Signed-off-by: Vinod Koul > > --- > >

Re: [Freedreno] [REPOST PATCH v4 13/13] drm/msm/dsi: Add support for DSC configuration

2022-03-24 Thread Vinod Koul
On 21-02-22, 05:11, Dmitry Baryshkov wrote: > On 10/02/2022 13:34, Vinod Koul wrote: > > When DSC is enabled, we need to configure DSI registers accordingly and > > configure the respective stream compression registers. > > > > Add support to calculate the register setting based on DSC params and

Re: [Freedreno] [REPOST PATCH v4 07/13] drm/msm/disp/dpu1: Add support for DSC in encoder

2022-03-24 Thread Vinod Koul
On 23-03-22, 20:10, Vinod Koul wrote: > On 17-02-22, 23:32, Marijn Suijten wrote: > > On 2022-02-10 16:04:17, Vinod Koul wrote: > > > + > > > + slice_count = dsc->drm->slice_count; > > > + slice_per_intf = DIV_ROUND_UP(width, dsc->drm->slice_width); > > > + > > > + /* > > > + * If slice_count is

[Freedreno] [PATCH] drm/msm/mdp5: check the return of kzalloc()

2022-03-24 Thread xkernel . wang
From: Xiaoke Wang kzalloc() is a memory allocation function which can return NULL when some internal memory errors happen. So it is better to check it to prevent potential wrong memory access. Signed-off-by: Xiaoke Wang --- drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c | 17 ++--- 1

[Freedreno] [PATCH] drm/msm/disp: check the return value of kzalloc()

2022-03-24 Thread xkernel . wang
From: Xiaoke Wang kzalloc() is a memory allocation function which can return NULL when some internal memory errors happen. So it is better to check it to prevent potential wrong memory access. Signed-off-by: Xiaoke Wang --- drivers/gpu/drm/msm/disp/msm_disp_snapshot_util.c | 2 ++ 1 file

Re: [Freedreno] [PATCH] dt-bindings: display/msm: another fix for the dpu-qcm2290 example

2022-03-24 Thread Krzysztof Kozlowski
On 24/03/2022 12:55, Dmitry Baryshkov wrote: > Make dpu-qcm2290 example really follow the defined schema: > - Drop qcom,mdss compatible. It's only used for MDP5 devices. > - Change display controller name to display-controller as specified in > the yaml > > Reported-by: Rob Herring > Cc: Loic

[Freedreno] [PATCH] dt-bindings: display/msm: another fix for the dpu-qcm2290 example

2022-03-24 Thread Dmitry Baryshkov
Make dpu-qcm2290 example really follow the defined schema: - Drop qcom,mdss compatible. It's only used for MDP5 devices. - Change display controller name to display-controller as specified in the yaml Reported-by: Rob Herring Cc: Loic Poulain Fixes: 164f69d9d45a ("dt-bindings: msm: disp: add

Re: [Freedreno] [PATCH v5 2/4] drm: introduce drm_writeback_connector_init_with_encoder() API

2022-03-24 Thread Liviu Dudau
On Wed, Mar 23, 2022 at 11:28:56AM -0700, Abhinav Kumar wrote: > Hi Liviu Hello, > > Thanks for the review. > > On 3/23/2022 9:46 AM, Liviu Dudau wrote: > > On Mon, Mar 21, 2022 at 04:56:43PM -0700, Abhinav Kumar wrote: > > > For vendors drivers which pass an already allocated and > > >