Re: [PATCH v2] dt-bindings: display/msm: dsi-controller-main: Document qcom,master-dsi and qcom,sync-dual-dsi

2023-04-28 Thread Abhinav Kumar
--- Changes in v2: - pick up tags - fix typo (need -> needs) .../bindings/display/msm/dsi-controller-main.yaml| 12 1 file changed, 12 insertions(+) Fixes: 4dbe55c97741 ("dt-bindings: msm: dsi: add yaml schemas for DSI bindings") Reviewed-by: Abhinav Kumar

Re: (subset) [PATCH 00/11] drm/msm/dpu: tweaks for better hardware resources allocation

2023-04-28 Thread Abhinav Kumar
weak lm pairings in msm8998 hw catalog https://gitlab.freedesktop.org/abhinavk/msm/-/commit/686eb89b1036 Best regards, -- Abhinav Kumar

Re: [Freedreno] [PATCH v2 5/7] drm/msm/dpu: add DPU_PINGPONG_DSC feature PP_BLK and PP_BLK_TE

2023-04-29 Thread Abhinav Kumar
On 4/29/2023 12:45 PM, Dmitry Baryshkov wrote: On Sat, 29 Apr 2023 at 11:43, Abhinav Kumar wrote: On 4/28/2023 9:35 PM, Dmitry Baryshkov wrote: On 29/04/2023 07:04, Abhinav Kumar wrote: On 4/28/2023 8:21 PM, Dmitry Baryshkov wrote: On Sat, 29 Apr 2023 at 05:50, Abhinav Kumar wrote

Re: [PATCH v3] drm/msm/dpu: drop unused SSPP sub-block information

2023-05-01 Thread Abhinav Kumar
this should be dropped. Once that is fixed, Reviewed-by: Abhinav Kumar * @format_list: Pointer to list of supported formats * @num_formats: Number of supported formats * @virt_format_list: Pointer to list of supported formats for virtual planes @@ -399,9 +396,6 @@ struct dpu_sspp_sub_blks

Re: [PATCH v3] drm/msm/dpu: drop unused SSPP sub-block information

2023-05-01 Thread Abhinav Kumar
On 5/1/2023 11:56 AM, Dmitry Baryshkov wrote: On 01/05/2023 21:49, Abhinav Kumar wrote: On 4/29/2023 2:25 PM, Dmitry Baryshkov wrote: The driverĀ  doesn't support hsic/memcolor and pcc SSPP subblocks. Drop corresponding definitions. Signed-off-by: Dmitry Baryshkov --- Changes since v2

Re: [PATCH 1/7] drm/msm/dpu: merge dpu_encoder_init() and dpu_encoder_setup()

2023-05-01 Thread Abhinav Kumar
On 5/1/2023 1:45 PM, Dmitry Baryshkov wrote: On 01/05/2023 22:58, Abhinav Kumar wrote: On 4/30/2023 4:57 PM, Dmitry Baryshkov wrote: There is no reason to split the dpu_encoder interface into separate _init() and _setup() phases. Merge them into a single function. I think the reason

Re: [PATCH 1/7] drm/msm/dpu: merge dpu_encoder_init() and dpu_encoder_setup()

2023-05-01 Thread Abhinav Kumar
On 4/30/2023 4:57 PM, Dmitry Baryshkov wrote: There is no reason to split the dpu_encoder interface into separate _init() and _setup() phases. Merge them into a single function. I think the reason for having this split was to pass a valid encoder to the interface_modeset_init() and then

Re: [PATCH v2] drm/msm/dpu: always program dsc active bits

2023-04-14 Thread Abhinav Kumar
On 4/14/2023 12:48 AM, Marijn Suijten wrote: Capitalize DSC in the title, as discussed in v1. On 2023-04-13 08:56:41, Kuogee Hsieh wrote: In current code, the DSC active bits are written only if cfg->dsc is set. However, for displays which are hot-pluggable, there can be a use-case of

Re: [PATCH] drm/msm/dpu: always program dsc active bits

2023-04-14 Thread Abhinav Kumar
On 4/14/2023 12:35 AM, Marijn Suijten wrote: On 2023-04-12 10:33:15, Abhinav Kumar wrote: [..] What happens if a device boots without DSC panel connected? Will CTL_DSC_FLUSH be zero and not (unnecessarily, I assume) flush any of the DSC blocks? Or could this flush uninitialized state

Re: [Freedreno] [PATCH] drm/msm/dpu: always program dsc active bits

2023-04-14 Thread Abhinav Kumar
On 4/14/2023 10:34 AM, Marijn Suijten wrote: On 2023-04-14 08:48:43, Abhinav Kumar wrote: On 4/14/2023 12:35 AM, Marijn Suijten wrote: On 2023-04-12 10:33:15, Abhinav Kumar wrote: [..] What happens if a device boots without DSC panel connected? Will CTL_DSC_FLUSH be zero

Re: [PATCH v7 27/32] drm/msm/dpu: add support for wide planes

2023-03-29 Thread Abhinav Kumar
On 3/16/2023 9:16 AM, Dmitry Baryshkov wrote: It is possible to use multirect feature and split source to use the SSPP to output two consecutive rectangles. This commit brings in this capability to support wider screen resolutions. Tested-by: Abhinav Kumar # sc7280 Signed-off-by: Dmitry

Re: [PATCH v7 27/32] drm/msm/dpu: add support for wide planes

2023-03-29 Thread Abhinav Kumar
On 3/29/2023 8:30 PM, Dmitry Baryshkov wrote: On 30/03/2023 05:53, Abhinav Kumar wrote: On 3/16/2023 9:16 AM, Dmitry Baryshkov wrote: It is possible to use multirect feature and split source to use the SSPP to output two consecutive rectangles. This commit brings in this capability

Re: [Freedreno] [PATCH RFC 5/5] drm/msm/dsi: Use MSM and DRM DSC helper methods

2023-03-30 Thread Abhinav Kumar
On 3/30/2023 5:16 PM, Dmitry Baryshkov wrote: On Fri, 31 Mar 2023 at 03:07, Jessica Zhang wrote: On 3/30/2023 4:14 PM, Dmitry Baryshkov wrote: On 31/03/2023 01:49, Jessica Zhang wrote: On 3/29/2023 4:48 PM, Dmitry Baryshkov wrote: On 30/03/2023 02:18, Jessica Zhang wrote: Use MSM

Re: [PATCH RFC 5/5] drm/msm/dsi: Use MSM and DRM DSC helper methods

2023-03-30 Thread Abhinav Kumar
On 3/30/2023 6:25 PM, Dmitry Baryshkov wrote: On 31/03/2023 04:12, Jessica Zhang wrote: On 3/30/2023 5:16 PM, Dmitry Baryshkov wrote: On Fri, 31 Mar 2023 at 03:07, Jessica Zhang wrote: On 3/30/2023 4:14 PM, Dmitry Baryshkov wrote: On 31/03/2023 01:49, Jessica Zhang wrote: On

Re: [Freedreno] [PATCH RFC 5/5] drm/msm/dsi: Use MSM and DRM DSC helper methods

2023-03-30 Thread Abhinav Kumar
On 3/30/2023 7:47 PM, Dmitry Baryshkov wrote: On 31/03/2023 04:33, Abhinav Kumar wrote: On 3/30/2023 5:16 PM, Dmitry Baryshkov wrote: On Fri, 31 Mar 2023 at 03:07, Jessica Zhang wrote: On 3/30/2023 4:14 PM, Dmitry Baryshkov wrote: On 31/03/2023 01:49, Jessica Zhang wrote: On 3/29

Re: [PATCH v3 03/38] drm/msm/dpu: mark remaining pp data as const

2023-03-31 Thread Abhinav Kumar
On 3/30/2023 2:52 PM, Dmitry Baryshkov wrote: Fix several leftover _pp strutures and mark them as const, making all hw catalog fit into the rodata section. Reviewed-by: Konrad Dybcio Signed-off-by: Dmitry Baryshkov --- Reviewed-by: Abhinav Kumar

Re: [Freedreno] [PATCH v3 02/38] drm/msm/dpu: constify DSC data structures

2023-03-31 Thread Abhinav Kumar
On 3/30/2023 2:52 PM, Dmitry Baryshkov wrote: DSC hw catalog data is not supposed to be changed, so mark it as const data. Reviewed-by: Konrad Dybcio Signed-off-by: Dmitry Baryshkov --- Reviewed-by: Abhinav Kumar

Re: [PATCH v3 01/38] drm/msm/dpu: Allow variable SSPP/INTF_BLK size

2023-03-31 Thread Abhinav Kumar
On 3/30/2023 2:52 PM, Dmitry Baryshkov wrote: From: Konrad Dybcio These blocks are of variable length on different SoCs. Set the correct values where I was able to retrieve it from downstream DTs and leave the old defaults (0x1c8 for sspp and 0x280 for intf) otherwise. Signed-off-by:

Re: [PATCH v3 04/38] drm/msm/dpu: move UBWC/memory configuration to separate struct

2023-03-31 Thread Abhinav Kumar
structure. Reviewed-by: Konrad Dybcio Signed-off-by: Dmitry Baryshkov --- Reviewed-by: Abhinav Kumar

Re: [Freedreno] [PATCH v3 01/38] drm/msm/dpu: Allow variable SSPP/INTF_BLK size

2023-04-03 Thread Abhinav Kumar
On 4/1/2023 2:37 AM, Dmitry Baryshkov wrote: On 01/04/2023 03:57, Abhinav Kumar wrote: On 3/30/2023 2:52 PM, Dmitry Baryshkov wrote: From: Konrad Dybcio These blocks are of variable length on different SoCs. Set the correct values where I was able to retrieve it from downstream DTs

Re: [PATCH v3 00/38] drm/msm/dpu: rework HW catalog

2023-04-03 Thread Abhinav Kumar
On 3/30/2023 2:52 PM, Dmitry Baryshkov wrote: This huge series attempts to restructure the DPU HW catalog into a manageable and reviewable data set. In order to ease review and testing I merged all the necessary fixes into this series. Also I cherry-picked & slightly fixed Konrad's patch

Re: [PATCH v3 00/38] drm/msm/dpu: rework HW catalog

2023-04-03 Thread Abhinav Kumar
On 4/3/2023 11:48 AM, Dmitry Baryshkov wrote: On 03/04/2023 21:06, Abhinav Kumar wrote: On 3/30/2023 2:52 PM, Dmitry Baryshkov wrote: This huge series attempts to restructure the DPU HW catalog into a manageable and reviewable data set. In order to ease review and testing I merged all

Re: [PATCH v4 34/42] drm/msm/dpu: enable DSPP and DSC on sc8180x

2023-04-07 Thread Abhinav Kumar
On 4/4/2023 6:06 AM, Dmitry Baryshkov wrote: Enable DSPP and DSC hardware blocks on sc8180x platform. Signed-off-by: Dmitry Baryshkov --- .../msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h | 26 +-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git

Re: [PATCH v5 2/4] drm/msm/dpu: enable DSPP_2/3 for LM_2/3 on sm8450

2023-04-10 Thread Abhinav Kumar
On 4/7/2023 5:27 PM, Dmitry Baryshkov wrote: Mark DSPP_2 and DSPP_3 as used for LM_2 and LM_3 Fixes: 100d7ef6995d ("drm/msm/dpu: add support for SM8450") Signed-off-by: Dmitry Baryshkov --- Reviewed-by: Abhinav Kumar

Re: [PATCH v5 1/4] drm/msm/dpu: enable DPU_CTL_SPLIT_DISPLAY for sc8280xp

2023-04-10 Thread Abhinav Kumar
On 4/7/2023 5:27 PM, Dmitry Baryshkov wrote: Theoretically, since sm8150 we should be using a single CTL for the split panel case, but since we do not support it for now, fallback to DPU_CTL_SPLIT_DISPLAY. Signed-off-by: Dmitry Baryshkov Reviewed-by: Abhinav Kumar

Re: [PATCH v5 4/4] drm/msm/dpu: use CTL_SC7280_MASK for sm8450's ctl_0

2023-04-10 Thread Abhinav Kumar
e), let's follow its usage as a least minimal surprise. For example, sc8280xp, a close associate of sm8450, also uses CTL_SC7280_MASK. Signed-off-by: Dmitry Baryshkov --- Although I dont totally agree with this, but because sc8280xp also uses the same, I am fine. Reviewed-by: Abhinav Kumar

Re: [PATCH v5 3/4] drm/msm/dpu: enable DSPP and DSC on sc8180x

2023-04-10 Thread Abhinav Kumar
On 4/7/2023 5:27 PM, Dmitry Baryshkov wrote: Enable DSPP and DSC hardware blocks on sc8180x platform. Signed-off-by: Dmitry Baryshkov --- Reviewed-by: Abhinav Kumar

Re: [PATCH] drm/msm/dpu: Delete a variable initialisation before a null pointer check in two functions

2023-04-11 Thread Abhinav Kumar
5 DPU support") Fixes: 25fdd5933e4c ("drm/msm: Add SDM845 DPU support") We usually have 12 chars of the hash. Other than that, Reviewed-by: Abhinav Kumar Signed-off-by: Markus Elfring --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_pingpong.c | 4 ++-- 1 file changed, 2 insert

Re: [PATCH] drm/msm/dpu: always program dsc active bits

2023-04-11 Thread Abhinav Kumar
EG_WRITE(>hw, CTL_FLUSH, DSC_IDX); - DPU_REG_WRITE(c, CTL_DSC_ACTIVE, cfg->dsc); - } + + DPU_REG_WRITE(>hw, CTL_FLUSH, DSC_IDX); + DPU_REG_WRITE(c, CTL_DSC_ACTIVE, cfg->dsc); } static void dpu_hw_ctl_intf_cfg(struct dpu_hw_ctl *ctx, But, otherwise seems fine and a valid bug fix. Reviewed-by: Abhinav Kumar

Re: [PATCH] drm/msm/dpu: always program dsc active bits

2023-04-11 Thread Abhinav Kumar
On 4/11/2023 3:14 PM, Marijn Suijten wrote: Full-caps DSC in the title, as discussed previously. On that note, don't forget to CC those who have reviewed your patches previously, as also brought up in earlier review. On 2023-04-11 14:04:55, Kuogee Hsieh wrote: In current code, the dsc

Re: [Freedreno] [PATCH] drm/msm/dpu: add DSC range checking during resource reservation

2023-04-11 Thread Abhinav Kumar
On 4/11/2023 6:06 PM, Dmitry Baryshkov wrote: On 12/04/2023 01:32, Abhinav Kumar wrote: Hi Marijn On 4/11/2023 3:24 PM, Marijn Suijten wrote: Again, don't forget to include previous reviewers in cc, please :) On 2023-04-11 14:09:40, Kuogee Hsieh wrote: Perform DSC range checking to make

Re: [PATCH] drm/msm/dpu: add DSC range checking during resource reservation

2023-04-11 Thread Abhinav Kumar
ne. Fixes: f2803ee91a41 ("drm/msm/disp/dpu1: Add DSC support in RM") Signed-off-by: Kuogee Hsieh --- Otherwise, seems quite reasonable to me, Reviewed-by: Abhinav Kumar

Re: [Freedreno] [PATCH] drm/msm/dpu: add DSC range checking during resource reservation

2023-04-11 Thread Abhinav Kumar
Hi Marijn On 4/11/2023 3:24 PM, Marijn Suijten wrote: Again, don't forget to include previous reviewers in cc, please :) On 2023-04-11 14:09:40, Kuogee Hsieh wrote: Perform DSC range checking to make sure correct DSC is requested before reserve resource for it. This isn't performing any

Re: [PATCH] drm/msm/dpu: always program dsc active bits

2023-04-11 Thread Abhinav Kumar
On 4/11/2023 3:17 PM, Dmitry Baryshkov wrote: On 12/04/2023 00:04, Kuogee Hsieh wrote: In current code, the dsc active bits are set only if the cfg->dsc is set. However, for displays which are hot-pluggable, there can be a use-case of disconnecting a DSC supported sink and connecting a

Re: [PATCH v4 03/42] drm/msm/dpu: Allow variable INTF_BLK size

2023-04-04 Thread Abhinav Kumar
On 4/4/2023 6:05 AM, Dmitry Baryshkov wrote: From: Konrad Dybcio These blocks are of variable length on different SoCs. Set the correct values where I was able to retrieve it from downstream DTs and leave the old defaults (0x280) otherwise. Signed-off-by: Konrad Dybcio [DB: fixed some

Re: [PATCH v4 03/42] drm/msm/dpu: Allow variable INTF_BLK size

2023-04-04 Thread Abhinav Kumar
On 4/4/2023 5:37 PM, Dmitry Baryshkov wrote: On 05/04/2023 01:30, Abhinav Kumar wrote: On 4/4/2023 6:05 AM, Dmitry Baryshkov wrote: From: Konrad Dybcio These blocks are of variable length on different SoCs. Set the correct values where I was able to retrieve it from downstream DTs

Re: [PATCH v4 27/42] drm/msm/dpu: expand sm6115 catalog

2023-04-04 Thread Abhinav Kumar
On 4/4/2023 6:06 AM, Dmitry Baryshkov wrote: Duplicate qcm2290 catalog entries to sm6115 to remove dependencies between DPU instances. Signed-off-by: Dmitry Baryshkov --- Reviewed-by: Abhinav Kumar

Re: [PATCH v4 02/42] drm/msm/dpu: Allow variable SSPP_BLK size

2023-04-04 Thread Abhinav Kumar
On 4/4/2023 6:05 AM, Dmitry Baryshkov wrote: From: Konrad Dybcio These blocks are of variable length on different SoCs. Set the correct values where I was able to retrieve it from downstream DTs and leave the old defaults (0x1c8) otherwise. Signed-off-by: Konrad Dybcio [DB: fixed some of

Re: [PATCH v3 5/6] drm/msm/dsi: update hdisplay calculation for dsi_timing_setup

2023-04-04 Thread Abhinav Kumar
On 4/4/2023 4:56 PM, Jessica Zhang wrote: hdisplay for compressed images should be calculated as bytes_per_slice * slice_count. Thus, use MSM DSC helper to calculate hdisplay for dsi_timing_setup instead of directly using mode->hdisplay. Changes in v3: - Split from previous patch -

Re: [PATCH v4 28/42] drm/msm/dpu: expand sm8550 catalog

2023-04-04 Thread Abhinav Kumar
(-) Reviewed-by: Abhinav Kumar

Re: [PATCH v4 31/42] drm/msm/dpu: enable DPU_CTL_SPLIT_DISPLAY for sc8280xp

2023-04-04 Thread Abhinav Kumar
On 4/4/2023 6:06 AM, Dmitry Baryshkov wrote: Theoretically since sm8150 we should be using a single CTL for the source split case, but since we do not support it for now, fallback to DPU_CTL_SPLIT_DISPLAY. Did you mean split panel case? Signed-off-by: Dmitry Baryshkov ---

Re: [PATCH v4 01/42] drm/msm/dpu: use CTL_SC7280_MASK for sm8450's ctl_0

2023-04-04 Thread Abhinav Kumar
On 4/4/2023 5:43 PM, Dmitry Baryshkov wrote: On 05/04/2023 03:39, Abhinav Kumar wrote: On 4/4/2023 5:33 PM, Dmitry Baryshkov wrote: On 05/04/2023 01:12, Abhinav Kumar wrote: On 4/4/2023 6:05 AM, Dmitry Baryshkov wrote: On sm8450 platform the CTL_0 doesn't differ from the rest of CTL

Re: [PATCH v4 30/42] drm/msm/dpu: catalog: add comments regarding DPU_CTL_SPLIT_DISPLAY

2023-04-04 Thread Abhinav Kumar
Reviewed-by: Abhinav Kumar

Re: [PATCH v4 26/42] drm/msm/dpu: expand sc7180 catalog

2023-04-04 Thread Abhinav Kumar
On 4/4/2023 6:06 AM, Dmitry Baryshkov wrote: Duplicate sm8250 catalog entries to sc7180 to remove dependencies between DPU instances. Signed-off-by: Dmitry Baryshkov --- Reviewed-by: Abhinav Kumar

Re: [PATCH v4 01/42] drm/msm/dpu: use CTL_SC7280_MASK for sm8450's ctl_0

2023-04-04 Thread Abhinav Kumar
On 4/4/2023 6:05 AM, Dmitry Baryshkov wrote: On sm8450 platform the CTL_0 doesn't differ from the rest of CTL blocks, so switch it to CTL_SC7280_MASK too. Some background: original commit 100d7ef6995d ("drm/msm/dpu: add support for SM8450") had all (relevant at that time) bit spelled

Re: [PATCH v3 1/6] drm/msm: Add MSM-specific DSC helper methods

2023-04-04 Thread Abhinav Kumar
On 4/4/2023 4:56 PM, Jessica Zhang wrote: Introduce MSM-specific DSC helper methods, as some calculations are common between DP and DSC. Changes in v2: - Moved files up to msm/ directory - Dropped get_comp_ratio() helper - Used drm_int2fixp() to convert to integers to fp - Style changes to

Re: [PATCH v4 25/42] drm/msm/dpu: expand sc8180x catalog

2023-04-04 Thread Abhinav Kumar
On 4/4/2023 6:06 AM, Dmitry Baryshkov wrote: Duplicate sm8150 catalog entries to sc8180x to remove dependencies between DPU instances. Signed-off-by: Dmitry Baryshkov Reviewed-by: Abhinav Kumar

Re: [PATCH v4 01/42] drm/msm/dpu: use CTL_SC7280_MASK for sm8450's ctl_0

2023-04-04 Thread Abhinav Kumar
On 4/4/2023 5:33 PM, Dmitry Baryshkov wrote: On 05/04/2023 01:12, Abhinav Kumar wrote: On 4/4/2023 6:05 AM, Dmitry Baryshkov wrote: On sm8450 platform the CTL_0 doesn't differ from the rest of CTL blocks, so switch it to CTL_SC7280_MASK too. Some background: original commit 100d7ef6995d

Re: [PATCH v4 1/6] drm/msm: Add MSM-specific DSC helper methods

2023-04-05 Thread Abhinav Kumar
On 4/5/2023 12:26 PM, Dmitry Baryshkov wrote: On 05/04/2023 03:41, Jessica Zhang wrote: Introduce MSM-specific DSC helper methods, as some calculations are common between DP and DSC. Changes in v2: - Moved files up to msm/ directory - Dropped get_comp_ratio() helper - Used drm_int2fixp() to

Re: [PATCH v2 05/27] drm/msm/dpu: drop EAGAIN check from dpu_format_populate_layout

2023-02-03 Thread Abhinav Kumar
On 2/3/2023 6:16 AM, Dmitry Baryshkov wrote: On 28/01/2023 01:59, Abhinav Kumar wrote: On 1/26/2023 10:05 PM, Dmitry Baryshkov wrote: On Fri, 27 Jan 2023 at 02:52, Abhinav Kumar wrote: On 12/29/2022 11:18 AM, Dmitry Baryshkov wrote: The pipe's layout is not cached, corresponding data

Re: [PATCH v2 12/27] drm/msm/dpu: remove dpu_hw_fmt_layout from struct dpu_hw_pipe_cfg

2023-02-03 Thread Abhinav Kumar
On 2/3/2023 6:09 AM, Dmitry Baryshkov wrote: On 02/02/2023 22:14, Abhinav Kumar wrote: On 2/2/2023 12:10 PM, Dmitry Baryshkov wrote: On 02/02/2023 21:54, Abhinav Kumar wrote: On 2/2/2023 11:45 AM, Dmitry Baryshkov wrote: On Thu, 2 Feb 2023 at 21:38, Abhinav Kumar wrote: On 12/29

Re: [PATCH v3 19/27] drm/msm/dpu: make _dpu_plane_calc_clk accept mode directly

2023-02-06 Thread Abhinav Kumar
On 2/3/2023 10:21 AM, Dmitry Baryshkov wrote: Rework bandwidth/clock calculation functions to use mode directly rather than fetching it through the plane data. Signed-off-by: Dmitry Baryshkov Reviewed-by: Abhinav Kumar --- drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c | 39

Re: [PATCH v3 20/27] drm/msm/dpu: add dpu_hw_pipe_cfg to dpu_plane_state

2023-02-06 Thread Abhinav Kumar
On 2/3/2023 10:21 AM, Dmitry Baryshkov wrote: Now as all accesses to pipe_cfg and pstate have been cleaned, re-add struct dpu_hw_pipe_cfg back to dpu_plane_state, so that dpu_plane_atomic_check() and dpu_plane_atomic_update() do not have a chance to disagree about src/dst rectangles

Re: [PATCH v3 21/27] drm/msm/dpu: simplify dpu_plane_validate_src()

2023-02-06 Thread Abhinav Kumar
On 2/3/2023 10:21 AM, Dmitry Baryshkov wrote: Since the driver uses clipped src coordinates, there is no need to check against the fb coordinates. Remove corresponding checks and inline dpu_plane_validate_src(). Signed-off-by: Dmitry Baryshkov Can you please explain how the clipping in

Re: [PATCH v3 22/27] drm/msm/dpu: rework dpu_plane_sspp_atomic_update()

2023-02-06 Thread Abhinav Kumar
On 2/3/2023 10:21 AM, Dmitry Baryshkov wrote: Split pipe-dependent code from dpu_plane_sspp_atomic_update() into the sspp-dependent? separate function dpu_plane_sspp_update_pipe(). This is one of preparational steps to add r_pipe support. Signed-off-by: Dmitry Baryshkov Just a couple

Re: [PATCH v3 21/27] drm/msm/dpu: simplify dpu_plane_validate_src()

2023-02-06 Thread Abhinav Kumar
On 2/6/2023 4:27 PM, Dmitry Baryshkov wrote: On 07/02/2023 00:40, Abhinav Kumar wrote: On 2/3/2023 10:21 AM, Dmitry Baryshkov wrote: Since the driver uses clipped src coordinates, there is no need to check against the fb coordinates. Remove corresponding checks and inline

Re: [PATCH v2] drm/msm/dpu: disable features unsupported by QCM2290

2023-02-10 Thread Abhinav Kumar
Baryshkov --- Changes since v1: - Reenabled CDP, exclusion rectangles and SmartDMA --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) Reviewed-by: Abhinav Kumar

Re: [PATCH] drm/msm/dpu: set DPU_MDP_PERIPH_0_REMOVED for sc8280xp

2023-02-10 Thread Abhinav Kumar
/disp/dpu1/dpu_hw_catalog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Will pick this up for -fixes, Reviewed-by: Abhinav Kumar

Re: [PATCH v3 17/27] drm/msm/dpu: rewrite plane's QoS-related functions to take dpu_sw_pipe and dpu_format

2023-02-08 Thread Abhinav Kumar
On 2/3/2023 3:20 PM, Dmitry Baryshkov wrote: On 04/02/2023 01:07, Abhinav Kumar wrote: On 2/3/2023 10:21 AM, Dmitry Baryshkov wrote: Rewrite dpu_plane's QoS related functions to take struct dpu_sw_pipe and struct dpu_format as arguments rather than fetching them from the pstate

Re: [PATCH v3 27/27] drm/msm/dpu: add support for wide planes

2023-02-08 Thread Abhinav Kumar
On 2/3/2023 10:21 AM, Dmitry Baryshkov wrote: Typically SSPP can support rectangle with width up to 2560. However it's Not always 2560. Depends on the chipset. possible to use multirect feature and split source to use the SSPP to output two consecutive rectangles. This commit brings in

Re: [PATCH v3 26/27] drm/msm/dpu: split pipe handling from _dpu_crtc_blend_setup_mixer

2023-02-08 Thread Abhinav Kumar
On 2/3/2023 10:21 AM, Dmitry Baryshkov wrote: Rework _dpu_crtc_blend_setup_mixer() to split away pipe handling to a separate functon. This is a preparation for the r_pipe support. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 86 ---

Re: [PATCH v3 25/27] drm/msm/dpu: rework static color fill code

2023-02-08 Thread Abhinav Kumar
On 2/3/2023 10:21 AM, Dmitry Baryshkov wrote: Rework static color fill code to separate the pipe / pipe_cfg handling. This is a preparation for the r_pipe support. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c | 70 +-- 1 file changed,

Re: [PATCH v3 27/27] drm/msm/dpu: add support for wide planes

2023-02-09 Thread Abhinav Kumar
On 2/9/2023 3:45 AM, Dmitry Baryshkov wrote: On Thu, 9 Feb 2023 at 04:19, Abhinav Kumar wrote: On 2/3/2023 10:21 AM, Dmitry Baryshkov wrote: Typically SSPP can support rectangle with width up to 2560. However it's Not always 2560. Depends on the chipset. _typically_ Would just

Re: [Freedreno] [PATCH v3 27/27] drm/msm/dpu: add support for wide planes

2023-02-09 Thread Abhinav Kumar
Hi Dmitry On 2/9/2023 1:23 PM, Dmitry Baryshkov wrote: Hi Abhinav, On Thu, 9 Feb 2023 at 21:25, Abhinav Kumar wrote: On 2/9/2023 3:45 AM, Dmitry Baryshkov wrote: On Thu, 9 Feb 2023 at 04:19, Abhinav Kumar wrote: On 2/3/2023 10:21 AM, Dmitry Baryshkov wrote: Typically SSPP can

Re: [Freedreno] [PATCH v3 27/27] drm/msm/dpu: add support for wide planes

2023-02-09 Thread Abhinav Kumar
Hi Dmitry On 2/9/2023 4:09 PM, Dmitry Baryshkov wrote: . On Fri, 10 Feb 2023 at 00:12, Abhinav Kumar wrote: Hi Dmitry On 2/9/2023 1:23 PM, Dmitry Baryshkov wrote: Hi Abhinav, On Thu, 9 Feb 2023 at 21:25, Abhinav Kumar wrote: On 2/9/2023 3:45 AM, Dmitry Baryshkov wrote: On Thu, 9

Re: [Freedreno] [PATCH 06/10] drm/msm/dpu: Add SM6350 support

2023-02-13 Thread Abhinav Kumar
On 2/13/2023 8:25 AM, Dmitry Baryshkov wrote: On 13/02/2023 17:14, Marijn Suijten wrote: On 2023-02-13 16:58:00, Dmitry Baryshkov wrote: So, *possible* the merge order is the following: - fixes from https://patchwork.freedesktop.org/series/113910/ go to msm-fixes - fixes from your intf-te

Re: [RFC PATCH v3 0/4] Move TE setup to prepare_for_kickoff()

2023-02-13 Thread Abhinav Kumar
On 2/13/2023 1:51 PM, Dmitry Baryshkov wrote: On 13/02/2023 21:48, Jessica Zhang wrote: Move TE setup to prepare_for_kickoff() and remove empty prepare_commit() functions in both MDP4 and DPU drivers. Changes in V2: - Added changes to remove empty prepare_commit() functions Changes in V3:

Re: [Freedreno] [RFT PATCH v2 3/3] drm/msm/dsi: More properly handle errors in regards to dsi_mgr_bridge_power_on()

2023-02-13 Thread Abhinav Kumar
Hi Doug Sorry for the delayed response. On 2/2/2023 2:46 PM, Doug Anderson wrote: Hi, On Thu, Feb 2, 2023 at 2:37 PM Abhinav Kumar wrote: Hi Doug On 1/31/2023 2:18 PM, Douglas Anderson wrote: In commit 7d8e9a90509f ("drm/msm/dsi: move DSI host powerup to modeset time") the erro

Re: [RFC PATCH 5/7] drm/msm/dpu: Document and enable TEAR interrupts on DSI interfaces

2023-02-13 Thread Abhinav Kumar
On 2/13/2023 1:46 PM, Dmitry Baryshkov wrote: On 13/02/2023 21:37, Jessica Zhang wrote: On 12/31/2022 1:50 PM, Marijn Suijten wrote: All SoCs since DPU 5.0.0 (and seemingly up until and including 6.0.0, but excluding 7.x.x) have the tear interrupt and control registers moved out of the

Re: [PATCH v3 16/27] drm/msm/dpu: drop redundant plane dst check from dpu_crtc_atomic_check()

2023-02-03 Thread Abhinav Kumar
ned-off-by: Dmitry Baryshkov Reviewed-by: Abhinav Kumar --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 16 1 file changed, 16 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c index bd09bb319a58..73e1a8c69ef0 100

Re: [PATCH v3 18/27] drm/msm/dpu: populate SmartDMA features in hw catalog

2023-02-03 Thread Abhinav Kumar
On 2/3/2023 10:21 AM, Dmitry Baryshkov wrote: Downstream driver uses dpu->caps->smart_dma_rev to update sspp->cap->features with the bit corresponding to the supported SmartDMA version. Upstream driver does not do this, resulting in SSPP subdriver not enbaling setup_multirect callback. Add

Re: [PATCH v3 14/27] drm/msm/dpu: don't use unsupported blend stages

2023-02-03 Thread Abhinav Kumar
. Signed-off-by: Dmitry Baryshkov Reviewed-by: Abhinav Kumar --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c index c1579d6f5060

Re: [PATCH v3 09/27] drm/msm/dpu: pass dpu_format to _dpu_hw_sspp_setup_scaler3()

2023-02-03 Thread Abhinav Kumar
On 2/3/2023 10:21 AM, Dmitry Baryshkov wrote: There is no need to pass full dpu_hw_sspp_cfg instance to _dpu_hw_sspp_setup_scaler3, pass just struct dpu_format pointer. Signed-off-by: Dmitry Baryshkov LGTM now, Reviewed-by: Abhinav Kumar --- drivers/gpu/drm/msm/disp/dpu1

Re: [PATCH v3 15/27] drm/msm/dpu: move the rest of plane checks to dpu_plane_atomic_check()

2023-02-03 Thread Abhinav Kumar
On 2/3/2023 10:21 AM, Dmitry Baryshkov wrote: Move plane state updates from dpu_crtc_atomic_check() to the function where they belong: to dpu_plane_atomic_check(). Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 18 +-

Re: [PATCH v3 01/27] drm/msm/dpu: rename struct dpu_hw_pipe(_cfg) to dpu_hw_sspp(_cfg)

2023-02-03 Thread Abhinav Kumar
Baryshkov LGTM now, Reviewed-by: Abhinav Kumar --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.c | 48 +-- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.h | 52 ++--- drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c | 20 3 files changed, 60 insertions(+), 60

Re: [PATCH v3 10/27] drm/msm/dpu: clean up SRC addresses when setting up SSPP for solid fill

2023-02-03 Thread Abhinav Kumar
is absolutely needed for solid fill or not. Ideally, in solid fill mode these should just be ignored by the HW. But this change and the next wont break anything. Should just be a no-op for HW. Hence, Reviewed-by: Abhinav Kumar --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.c | 5 + 1 file

Re: [PATCH v3 11/27] drm/msm/dpu: move stride programming to dpu_hw_sspp_setup_sourceaddress

2023-02-03 Thread Abhinav Kumar
On 2/3/2023 10:21 AM, Dmitry Baryshkov wrote: Move stride programming to dpu_hw_sspp_setup_sourceaddress(), so that dpu_hw_sspp_setup_rects() programs only source and destination rectangles. Signed-off-by: Dmitry Baryshkov Now with the prev change, this is Reviewed-by: Abhinav Kumar

Re: [PATCH v3 17/27] drm/msm/dpu: rewrite plane's QoS-related functions to take dpu_sw_pipe and dpu_format

2023-02-03 Thread Abhinav Kumar
On 2/3/2023 10:21 AM, Dmitry Baryshkov wrote: Rewrite dpu_plane's QoS related functions to take struct dpu_sw_pipe and struct dpu_format as arguments rather than fetching them from the pstate or drm_framebuffer. Signed-off-by: Dmitry Baryshkov Nothing wrong with the change as such but why

Re: [PATCH v3 05/27] drm/msm/dpu: move pipe_hw to dpu_plane_state

2023-02-03 Thread Abhinav Kumar
Dmitry Baryshkov LGTM now, Reviewed-by: Abhinav Kumar --- drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c | 106 -- drivers/gpu/drm/msm/disp/dpu1/dpu_plane.h | 2 + 2 files changed, 61 insertions(+), 47 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_plan

Re: [RFT PATCH v2 2/3] drm/msm/dsi: Stop unconditionally powering up DSI hosts at modeset

2023-01-31 Thread Abhinav Kumar
bridge happens to stay on because of autosuspend and thus ends up powered before dsi_mgr_bridge_power_on(). Cc: Dave Stevenson Cc: Dmitry Baryshkov Cc: Abhinav Kumar Signed-off-by: Douglas Anderson --- Changes in v2: - Don't fold dsi_mgr_bridge_power_on() back into dsi_mgr_bridge_pre_enable() drivers/gp

Re: [PATCH v3 18/27] drm/msm/dpu: populate SmartDMA features in hw catalog

2023-02-03 Thread Abhinav Kumar
On 2/3/2023 6:29 PM, Dmitry Baryshkov wrote: On 04/02/2023 01:35, Abhinav Kumar wrote: On 2/3/2023 10:21 AM, Dmitry Baryshkov wrote: Downstream driver uses dpu->caps->smart_dma_rev to update sspp->cap->features with the bit corresponding to the supported SmartDMA version. Ups

Re: [PATCH v3 18/27] drm/msm/dpu: populate SmartDMA features in hw catalog

2023-02-03 Thread Abhinav Kumar
On 2/3/2023 8:10 PM, Dmitry Baryshkov wrote: On 04/02/2023 04:43, Abhinav Kumar wrote: On 2/3/2023 6:29 PM, Dmitry Baryshkov wrote: On 04/02/2023 01:35, Abhinav Kumar wrote: On 2/3/2023 10:21 AM, Dmitry Baryshkov wrote: Downstream driver uses dpu->caps->smart_dma_rev to updat

Re: [PATCH v3 18/27] drm/msm/dpu: populate SmartDMA features in hw catalog

2023-02-04 Thread Abhinav Kumar
On 2/4/2023 2:43 AM, Dmitry Baryshkov wrote: On 04/02/2023 07:10, Abhinav Kumar wrote: On 2/3/2023 8:10 PM, Dmitry Baryshkov wrote: On 04/02/2023 04:43, Abhinav Kumar wrote: On 2/3/2023 6:29 PM, Dmitry Baryshkov wrote: On 04/02/2023 01:35, Abhinav Kumar wrote: On 2/3/2023 10:21 AM

Re: [PATCH v3 18/27] drm/msm/dpu: populate SmartDMA features in hw catalog

2023-02-04 Thread Abhinav Kumar
On 2/4/2023 4:29 PM, Dmitry Baryshkov wrote: On Sun, 5 Feb 2023 at 01:20, Abhinav Kumar wrote: On 2/4/2023 1:08 PM, Dmitry Baryshkov wrote: On 04/02/2023 20:35, Abhinav Kumar wrote: On 2/4/2023 2:43 AM, Dmitry Baryshkov wrote: On 04/02/2023 07:10, Abhinav Kumar wrote: On 2/3/2023

Re: [PATCH v3 18/27] drm/msm/dpu: populate SmartDMA features in hw catalog

2023-02-04 Thread Abhinav Kumar
On 2/4/2023 1:08 PM, Dmitry Baryshkov wrote: On 04/02/2023 20:35, Abhinav Kumar wrote: On 2/4/2023 2:43 AM, Dmitry Baryshkov wrote: On 04/02/2023 07:10, Abhinav Kumar wrote: On 2/3/2023 8:10 PM, Dmitry Baryshkov wrote: On 04/02/2023 04:43, Abhinav Kumar wrote: On 2/3/2023 6:29 PM

Re: [PATCH v3 23/27] drm/msm/dpu: rework dpu_plane_atomic_check()

2023-02-07 Thread Abhinav Kumar
On 2/3/2023 10:21 AM, Dmitry Baryshkov wrote: Split pipe-dependent code from dpu_plane_atomic_check() into the separate function dpu_plane_atomic_check_pipe(). This is one of Same comment as prev patch, dpu_plane_atomic_check_pipe() ---> dpu_plane_atomic_check_sspp() preparational steps

Re: [PATCH v3 23/27] drm/msm/dpu: rework dpu_plane_atomic_check()

2023-02-07 Thread Abhinav Kumar
On 2/7/2023 9:59 AM, Dmitry Baryshkov wrote: On 07/02/2023 19:57, Abhinav Kumar wrote: On 2/7/2023 9:51 AM, Dmitry Baryshkov wrote: On 07/02/2023 19:49, Abhinav Kumar wrote: On 2/3/2023 10:21 AM, Dmitry Baryshkov wrote: Split pipe-dependent code from dpu_plane_atomic_check

Re: [PATCH v3 24/27] drm/msm/dpu: rework plane CSC setting

2023-02-07 Thread Abhinav Kumar
On 2/3/2023 10:21 AM, Dmitry Baryshkov wrote: Rework the code flushing CSC settings for the plane. Separate out the pipe and pipe_cfg as a preparation for r_pipe support. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c | 45 +-- 1 file

Re: [PATCH v3 24/27] drm/msm/dpu: rework plane CSC setting

2023-02-07 Thread Abhinav Kumar
On 2/7/2023 12:44 PM, Dmitry Baryshkov wrote: On Tue, 7 Feb 2023 at 22:05, Abhinav Kumar wrote: On 2/3/2023 10:21 AM, Dmitry Baryshkov wrote: Rework the code flushing CSC settings for the plane. Separate out the pipe and pipe_cfg as a preparation for r_pipe support. Signed-off

Re: [PATCH v3 23/27] drm/msm/dpu: rework dpu_plane_atomic_check()

2023-02-07 Thread Abhinav Kumar
On 2/7/2023 9:51 AM, Dmitry Baryshkov wrote: On 07/02/2023 19:49, Abhinav Kumar wrote: On 2/3/2023 10:21 AM, Dmitry Baryshkov wrote: Split pipe-dependent code from dpu_plane_atomic_check() into the separate function dpu_plane_atomic_check_pipe(). This is one of Same comment as prev

Re: [PATCH v3 15/27] drm/msm/dpu: move the rest of plane checks to dpu_plane_atomic_check()

2023-02-14 Thread Abhinav Kumar
Hi Dmitry Sorry for the late response on this one. On 2/3/2023 2:55 PM, Dmitry Baryshkov wrote: On 04/02/2023 00:44, Abhinav Kumar wrote: On 2/3/2023 10:21 AM, Dmitry Baryshkov wrote: Move plane state updates from dpu_crtc_atomic_check() to the function where they belong

Re: [RFC PATCH 5/7] drm/msm/dpu: Document and enable TEAR interrupts on DSI interfaces

2023-02-14 Thread Abhinav Kumar
On 2/14/2023 5:06 AM, Marijn Suijten wrote: On 2023-02-13 19:09:32, Abhinav Kumar wrote: On 2/13/2023 1:46 PM, Dmitry Baryshkov wrote: On 13/02/2023 21:37, Jessica Zhang wrote: On 12/31/2022 1:50 PM, Marijn Suijten wrote: All SoCs since DPU 5.0.0 (and seemingly up until and including

Re: [RFT PATCH v2 2/3] drm/msm/dsi: Stop unconditionally powering up DSI hosts at modeset

2023-02-02 Thread Abhinav Kumar
On 2/1/2023 6:33 AM, Doug Anderson wrote: Hi, On Tue, Jan 31, 2023 at 3:32 PM Abhinav Kumar wrote: On 1/31/2023 2:18 PM, Douglas Anderson wrote: In commit 7d8e9a90509f ("drm/msm/dsi: move DSI host powerup to modeset time"), we moved powering up DSI hosts to modeset time. T

Re: [PATCH v2 11/27] drm/msm/dpu: move stride programming to dpu_hw_sspp_setup_sourceaddress

2023-02-02 Thread Abhinav Kumar
On 12/29/2022 11:18 AM, Dmitry Baryshkov wrote: Move stride programming to dpu_hw_sspp_setup_sourceaddress(), so that dpu_hw_sspp_setup_rects() programs only source and destination rectangles. Signed-off-by: Dmitry Baryshkov Sorry but once again, I dont see a response to my comment

Re: [PATCH v2 12/27] drm/msm/dpu: remove dpu_hw_fmt_layout from struct dpu_hw_pipe_cfg

2023-02-02 Thread Abhinav Kumar
On 12/29/2022 11:18 AM, Dmitry Baryshkov wrote: Remove dpu_hw_fmt_layout instance from struct dpu_hw_pipe_cfg, leaving only src_rect and dst_rect. This way right and left pipes will have separate dpu_hw_pipe_cfg isntances, while the layout is common to both of them. Sorry for not

Re: [PATCH v2 12/27] drm/msm/dpu: remove dpu_hw_fmt_layout from struct dpu_hw_pipe_cfg

2023-02-02 Thread Abhinav Kumar
On 2/2/2023 12:10 PM, Dmitry Baryshkov wrote: On 02/02/2023 21:54, Abhinav Kumar wrote: On 2/2/2023 11:45 AM, Dmitry Baryshkov wrote: On Thu, 2 Feb 2023 at 21:38, Abhinav Kumar wrote: On 12/29/2022 11:18 AM, Dmitry Baryshkov wrote: Remove dpu_hw_fmt_layout instance from struct

Re: [PATCH v2 11/27] drm/msm/dpu: move stride programming to dpu_hw_sspp_setup_sourceaddress

2023-02-02 Thread Abhinav Kumar
On 2/2/2023 10:55 AM, Dmitry Baryshkov wrote: Hi Abhinav, On Thu, 2 Feb 2023 at 20:41, Abhinav Kumar wrote: On 12/29/2022 11:18 AM, Dmitry Baryshkov wrote: Move stride programming to dpu_hw_sspp_setup_sourceaddress(), so that dpu_hw_sspp_setup_rects() programs only source

Re: [PATCH v2 12/27] drm/msm/dpu: remove dpu_hw_fmt_layout from struct dpu_hw_pipe_cfg

2023-02-02 Thread Abhinav Kumar
On 2/2/2023 11:45 AM, Dmitry Baryshkov wrote: On Thu, 2 Feb 2023 at 21:38, Abhinav Kumar wrote: On 12/29/2022 11:18 AM, Dmitry Baryshkov wrote: Remove dpu_hw_fmt_layout instance from struct dpu_hw_pipe_cfg, leaving only src_rect and dst_rect. This way right and left pipes will have

Re: [Freedreno] [RFT PATCH v2 3/3] drm/msm/dsi: More properly handle errors in regards to dsi_mgr_bridge_power_on()

2023-02-02 Thread Abhinav Kumar
Hi Doug On 1/31/2023 2:18 PM, Douglas Anderson wrote: In commit 7d8e9a90509f ("drm/msm/dsi: move DSI host powerup to modeset time") the error handling with regards to dsi_mgr_bridge_power_on() got a bit worse. Specifically if we failed to power the bridge on then nothing would really notice.

Re: [PATCH 0/7] drm/msm/dpu: simplify DPU encoder init

2023-05-03 Thread Abhinav Kumar
it to my branch to test. Validated writeback just in case with this, hence please use Tested-by: Abhinav Kumar # sc7280 Dmitry Baryshkov (7): drm/msm/dpu: merge dpu_encoder_init() and dpu_encoder_setup() drm/msm/dpu: drop dpu_encoder_early_unregister drm/msm/dpu: separate common

<    8   9   10   11   12   13   14   15   16   17   >