Re: [PATCH 7/8] drm/msm/dpu: drop dpu_core_perf_destroy()

2023-07-03 Thread Abhinav Kumar
On 6/19/2023 5:08 PM, Dmitry Baryshkov wrote: This function does nothing, just clears several data pointers. Drop it now. This will undo what dpu_core_perf_init() did when an error happens. Why can we drop that? Signed-off-by: Dmitry Baryshkov ---

Re: [PATCH 5/8] drm/msm/dpu: drop the dpu_core_perf_crtc_update()'s stop_req param

2023-07-03 Thread Abhinav Kumar
On 7/3/2023 3:53 PM, Dmitry Baryshkov wrote: On Tue, 4 Jul 2023 at 01:37, Abhinav Kumar wrote: On 6/19/2023 5:08 PM, Dmitry Baryshkov wrote: The stop_req is true only in the dpu_crtc_disable() case, when crtc->enable has already been set to false. This renders the stop_req argum

Re: [PATCH 5/8] drm/msm/dpu: drop the dpu_core_perf_crtc_update()'s stop_req param

2023-07-03 Thread Abhinav Kumar
On 6/19/2023 5:08 PM, Dmitry Baryshkov wrote: The stop_req is true only in the dpu_crtc_disable() case, when crtc->enable has already been set to false. This renders the stop_req argument useless. Remove it completely. What about the enable case? That time dpu_crtc->enabled will be false

Re: [PATCH 2/8] drm/msm/dpu: drop performance tuning modes

2023-07-03 Thread Abhinav Kumar
On 7/3/2023 3:20 PM, Dmitry Baryshkov wrote: On Tue, 4 Jul 2023 at 00:40, Abhinav Kumar wrote: On 6/19/2023 5:08 PM, Dmitry Baryshkov wrote: DPU performance module contains code to change performance state calculations. In addition to normal (sum plane and CRTC requirements), it can

Re: [PATCH 4/8] drm/msm/dpu: rework indentation in dpu_core_perf

2023-07-03 Thread Abhinav Kumar
of the checks were like this due to checkpatch's earlier limit being 80 chars. With that relaxed, this should be fine. Hence, Reviewed-by: Abhinav Kumar I am unable to apply this in my branch for some reason but, hope this doesnt break checkpatch now :)

Re: [PATCH 3/8] drm/msm/dpu: drop dpu_core_perf_params::max_per_pipe_ib

2023-07-03 Thread Abhinav Kumar
On 6/19/2023 5:08 PM, Dmitry Baryshkov wrote: The max_per_pipe_ib is a constant across all CRTCs and is read from the catalog. Drop corresponding calculations and read the value directly at icc_set_bw() time. Suggested-by: Konrad Dybcio Signed-off-by: Dmitry Baryshkov --- This will need

Re: [PATCH 2/8] drm/msm/dpu: drop performance tuning modes

2023-07-03 Thread Abhinav Kumar
On 6/19/2023 5:08 PM, Dmitry Baryshkov wrote: DPU performance module contains code to change performance state calculations. In addition to normal (sum plane and CRTC requirements), it can work in 'minimal' or 'fixed' modes. Both modes are impractical, since they can easily end up with the

Re: [PATCH 1/8] drm/msm/dpu: drop enum dpu_core_perf_data_bus_id

2023-07-03 Thread Abhinav Kumar
unused, hence Reviewed-by: Abhinav Kumar Since its just dropping unused enum, will see if I can combine with some other more critical fixes into a MR but not one on its own.

Re: [PATCH v4 19/19] drm/msm/dpu: drop empty features mask INTF_SDM845_MASK

2023-07-03 Thread Abhinav Kumar
/disp/dpu1/catalog/dpu_4_0_sdm845.h | 4 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 2 -- 3 files changed, 10 deletions(-) Reviewed-by: Abhinav Kumar

Re: [PATCH v4 18/19] drm/msm/dpu: drop empty features mask MERGE_3D_SM8150_MASK

2023-07-03 Thread Abhinav Kumar
On 6/19/2023 2:25 PM, Dmitry Baryshkov wrote: The MERGE_3D_SM8150_MASK features mask is zero. Drop it completely. Reviewed-by: Marijn Suijten Tested-by: Marijn Suijten Signed-off-by: Dmitry Baryshkov --- Reviewed-by: Abhinav Kumar

Re: [PATCH v4 17/19] drm/msm/dpu: inline INTF_BLK and INTF_BLK_DSI_TE macros

2023-07-03 Thread Abhinav Kumar
--- Reviewed-by: Abhinav Kumar

Re: [PATCH v4 16/19] drm/msm/dpu: inline WB_BLK macros

2023-07-03 Thread Abhinav Kumar
--- Reviewed-by: Abhinav Kumar

Re: [PATCH v4 15/19] drm/msm/dpu: inline various PP_BLK_* macros

2023-07-03 Thread Abhinav Kumar
--- Reviewed-by: Abhinav Kumar

Re: [PATCH v4 14/19] drm/msm/dpu: inline MERGE_3D_BLK macros

2023-07-03 Thread Abhinav Kumar
On 7/3/2023 1:58 PM, Dmitry Baryshkov wrote: On Mon, 3 Jul 2023 at 23:29, Abhinav Kumar wrote: On 6/19/2023 2:25 PM, Dmitry Baryshkov wrote: To simplify making changes to the hardware block definitions, expand corresponding macros. This way making all the changes are more obvious

Re: [PATCH v4 14/19] drm/msm/dpu: inline MERGE_3D_BLK macros

2023-07-03 Thread Abhinav Kumar
On 6/19/2023 2:25 PM, Dmitry Baryshkov wrote: To simplify making changes to the hardware block definitions, expand corresponding macros. This way making all the changes are more obvious and visible in the source files. Tested-by: Marijn Suijten Signed-off-by: Dmitry Baryshkov --- the

Re: [PATCH v4 13/19] drm/msm/dpu: inline DSC_BLK and DSC_BLK_1_2 macros

2023-07-03 Thread Abhinav Kumar
On 6/27/2023 1:29 AM, Marijn Suijten wrote: On 2023-06-20 00:25:13, Dmitry Baryshkov wrote: To simplify making changes to the hardware block definitions, expand corresponding macros. This way making all the changes are more obvious and visible in the source files. Tested-by: Marijn Suijten

Re: [PATCH v4 12/19] drm/msm/dpu: inline LM_BLK macros

2023-07-03 Thread Abhinav Kumar
comment as the other change, I have cross-checked most of the entries to make sure they match the pre-inlining values. For the rest, I am going to rely on Marijn's checksum method. Hence, Reviewed-by: Abhinav Kumar

Re: [PATCH v4 11/19] drm/msm/dpu: inline DSPP_BLK macros

2023-07-03 Thread Abhinav Kumar
--- Reviewed-by: Abhinav Kumar

Re: [PATCH v4 10/19] drm/msm/dpu: inline SSPP_BLK macros

2023-07-03 Thread Abhinav Kumar
checked a few of the entries to make sure there are no copy-paste errors but not all of them. I am going to rely on Marijn's checksum method results that there were no differences in the checksum and go ahead with my, Reviewed-by: Abhinav Kumar

Re: [PATCH v4 09/19] drm/msm/dpu: correct indentation for CTL definitions

2023-07-03 Thread Abhinav Kumar
Signed-off-by: Dmitry Baryshkov --- Reviewed-by: Abhinav Kumar

Re: [PATCH v4 08/19] drm/msm/dpu: drop zero features from dpu_ctl_cfg data

2023-07-03 Thread Abhinav Kumar
On 6/19/2023 2:25 PM, Dmitry Baryshkov wrote: Drop useless zero assignments to the dpu_ctl_cfg::features field. Reviewed-by: Marijn Suijten Tested-by: Marijn Suijten Signed-off-by: Dmitry Baryshkov --- Reviewed-by: Abhinav Kumar

Re: [PATCH v4 07/19] drm/msm/dpu: drop zero features from dpu_mdp_cfg data

2023-07-02 Thread Abhinav Kumar
On 6/19/2023 2:25 PM, Dmitry Baryshkov wrote: Drop useless zero assignments to the dpu_mdp_cfg::features field. Reviewed-by: Marijn Suijten Tested-by: Marijn Suijten Signed-off-by: Dmitry Baryshkov --- Reviewed-by: Abhinav Kumar

Re: [PATCH v4 06/19] drm/msm/dpu: expand .clk_ctrls definitions

2023-07-02 Thread Abhinav Kumar
On 6/19/2023 2:25 PM, Dmitry Baryshkov wrote: Use more standard initialisation for .clk_ctrls definitions. Define a single .clk_ctrls field and use array init inside. Reviewed-by: Marijn Suijten Tested-by: Marijn Suijten Signed-off-by: Dmitry Baryshkov --- Reviewed-by: Abhinav Kumar

Re: [PATCH v4 05/19] drm/msm/dpu: drop enum dpu_mdp and MDP_TOP value

2023-07-02 Thread Abhinav Kumar
On 6/19/2023 2:25 PM, Dmitry Baryshkov wrote: Since there is always just a single MDP_TOP instance, drop the enum dpu_mdp and corresponding index value. Reviewed-by: Marijn Suijten Tested-by: Marijn Suijten Signed-off-by: Dmitry Baryshkov --- Reviewed-by: Abhinav Kumar

Re: [PATCH v4 04/19] drm/msm/dpu: drop dpu_mdss_cfg::mdp_count field

2023-07-02 Thread Abhinav Kumar
On 6/19/2023 2:25 PM, Dmitry Baryshkov wrote: There is always a single MDP TOP block. Drop the mdp_count field and stop declaring dpu_mdp_cfg instances as arrays. Tested-by: Marijn Suijten Signed-off-by: Dmitry Baryshkov --- The change drops mdp_count and stops using the array which is

Re: [PATCH v4 03/19] drm/msm/dpu: simplify peer LM handling

2023-07-02 Thread Abhinav Kumar
On 7/2/2023 6:36 PM, Dmitry Baryshkov wrote: On Mon, 3 Jul 2023 at 04:34, Abhinav Kumar wrote: On 6/19/2023 2:25 PM, Dmitry Baryshkov wrote: For each LM there is at max 1 peer LM which can be driven by the same CTL, so there no need to have a mask instead of just an ID of the peer LM

Re: [PATCH v4 03/19] drm/msm/dpu: simplify peer LM handling

2023-07-02 Thread Abhinav Kumar
On 6/19/2023 2:25 PM, Dmitry Baryshkov wrote: For each LM there is at max 1 peer LM which can be driven by the same CTL, so there no need to have a mask instead of just an ID of the peer LM. The change is ok but the wording seems incorrect. Are you implying that only LM0 and LM1 can be

Re: [PATCH v4 02/19] drm/msm/dpu: always use MSM_DP/DSI_CONTROLLER_n

2023-07-02 Thread Abhinav Kumar
Baryshkov --- Reviewed-by: Abhinav Kumar

Re: [PATCH v3 2/3] drm/msm/dpu: use dpu core's major version to enable data compress

2023-06-29 Thread Abhinav Kumar
On 6/29/2023 8:22 PM, Dmitry Baryshkov wrote: On 30/06/2023 06:07, Abhinav Kumar wrote: On 6/29/2023 5:20 PM, Dmitry Baryshkov wrote: On 29/06/2023 22:29, Abhinav Kumar wrote: Instead of using a feature bit to decide whether to enable data compress or not for DSC use-cases, use dpu

Re: [PATCH v3 1/3] drm/msm/dpu: re-introduce dpu core revision to the catalog

2023-06-29 Thread Abhinav Kumar
On 6/29/2023 5:24 PM, Dmitry Baryshkov wrote: On 29/06/2023 22:29, Abhinav Kumar wrote: With [1] dpu core revision was dropped in favor of using the compatible string from the device tree to select the dpu catalog being used in the device. This approach works well however also necessitates

Re: [PATCH v3 1/3] drm/msm/dpu: re-introduce dpu core revision to the catalog

2023-06-29 Thread Abhinav Kumar
On 6/29/2023 5:13 PM, Dmitry Baryshkov wrote: On 29/06/2023 22:29, Abhinav Kumar wrote: With [1] dpu core revision was dropped in favor of using the compatible string from the device tree to select the dpu catalog being used in the device. This approach works well however also necessitates

Re: [PATCH v3 2/3] drm/msm/dpu: use dpu core's major version to enable data compress

2023-06-29 Thread Abhinav Kumar
On 6/29/2023 5:20 PM, Dmitry Baryshkov wrote: On 29/06/2023 22:29, Abhinav Kumar wrote: Instead of using a feature bit to decide whether to enable data compress or not for DSC use-cases, use dpu core's major version instead. This will avoid defining feature bits for every bit level details

Re: [PATCH 6/6] drm/msm/dpu: Update dev core dump to dump registers of sub blocks

2023-06-29 Thread Abhinav Kumar
On 6/24/2023 7:44 PM, Abhinav Kumar wrote: On 6/24/2023 8:03 AM, Dmitry Baryshkov wrote: On 24/06/2023 17:17, Abhinav Kumar wrote: On 6/24/2023 5:07 AM, Dmitry Baryshkov wrote: On 24/06/2023 03:09, Abhinav Kumar wrote: On 6/22/2023 5:13 PM, Dmitry Baryshkov wrote: On 23/06/2023 02

[PATCH v3 3/3] drm/msm/dpu: drop DPU_INTF_DATA_COMPRESS from dpu catalog

2023-06-29 Thread Abhinav Kumar
Now that all usages of DPU_INTF_DATA_COMPRESS have been replaced with the dpu core's major revision lets drop DPU_INTF_DATA_COMPRESS from the catalog completely. Signed-off-by: Abhinav Kumar --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 2 +- drivers/gpu/drm/msm/disp/dpu1

[PATCH v3 1/3] drm/msm/dpu: re-introduce dpu core revision to the catalog

2023-06-29 Thread Abhinav Kumar
reedesktop.org/patch/530891/?series=113910=4 changes in v3: - drop DPU step version as features are not changing across steps - add core_major_version / core_minor_version to avoid conflicts - update the commit text to drop references to the dpu macros Signed-off-by:

[PATCH v3 2/3] drm/msm/dpu: use dpu core's major version to enable data compress

2023-06-29 Thread Abhinav Kumar
it to accept a struct intf_dpu_datapath_cfg to program all the bits at once. This can be re-used by widebus later on as well as it touches the same register. Signed-off-by: Abhinav Kumar --- .../gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c | 9 +++-- drivers/gpu/drm/msm/disp/dpu1

[PATCH v2 1/3] drm/msm/dpu: re-introduce dpu core revision to the catalog

2023-06-29 Thread Abhinav Kumar
ktop.org/patch/530891/?series=113910=4 changes in v2: - drop DPU step version as features are not changing across steps - add core_major_version / core_minor_version to avoid conflicts Signed-off-by: Abhinav Kumar --- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h | 2 +

[PATCH v2 3/3] drm/msm/dpu: drop DPU_INTF_DATA_COMPRESS from dpu catalog

2023-06-29 Thread Abhinav Kumar
Now that all usages of DPU_INTF_DATA_COMPRESS have been replaced with the dpu core's major revision lets drop DPU_INTF_DATA_COMPRESS from the catalog completely. Signed-off-by: Abhinav Kumar --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 2 +- drivers/gpu/drm/msm/disp/dpu1

[PATCH v2 2/3] drm/msm/dpu: use dpu core's major version to enable data compress

2023-06-29 Thread Abhinav Kumar
it to accept a struct intf_dpu_datapath_cfg to program all the bits at once. This can be re-used by widebus later on as well as it touches the same register. Signed-off-by: Abhinav Kumar --- .../gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c | 9 +++-- drivers/gpu/drm/msm/disp/dpu1

Re: [Freedreno] [PATCH 2/3] drm/msm/dpu: Set DATABUS_WIDEN on command mode encoders

2023-06-29 Thread Abhinav Kumar
On 6/22/2023 4:37 PM, Abhinav Kumar wrote: On 6/22/2023 4:14 PM, Dmitry Baryshkov wrote: On 23/06/2023 01:37, Abhinav Kumar wrote: On 6/21/2023 4:46 PM, Dmitry Baryshkov wrote: On 22/06/2023 02:01, Abhinav Kumar wrote: On 6/21/2023 9:36 AM, Dmitry Baryshkov wrote: On 21/06/2023 18

Re: [Freedreno] [PATCH 06/15] dt-bindings: display/msm: sc7180-dpu: Describe SM6125

2023-06-28 Thread Abhinav Kumar
On 6/26/2023 7:04 AM, Dmitry Baryshkov wrote: On 24/06/2023 03:41, Marijn Suijten wrote: SM6125 is identical to SM6375 except that while downstream also defines a throttle clock, its presence results in timeouts whereas SM6375 requires it to not observe any timeouts. I see that the vendor

Re: [RFC PATCH 0/3] Support for Solid Fill Planes

2023-06-27 Thread Abhinav Kumar
On 6/27/2023 2:59 PM, Dmitry Baryshkov wrote: On 28/06/2023 00:27, Jessica Zhang wrote: On 6/27/2023 12:58 AM, Pekka Paalanen wrote: On Mon, 26 Jun 2023 16:02:50 -0700 Jessica Zhang wrote: On 11/7/2022 11:37 AM, Ville Syrjälä wrote: On Fri, Oct 28, 2022 at 03:59:49PM -0700, Jessica

Re: [PATCH 6/6] drm/msm/dpu: Update dev core dump to dump registers of sub blocks

2023-06-24 Thread Abhinav Kumar
On 6/24/2023 8:03 AM, Dmitry Baryshkov wrote: On 24/06/2023 17:17, Abhinav Kumar wrote: On 6/24/2023 5:07 AM, Dmitry Baryshkov wrote: On 24/06/2023 03:09, Abhinav Kumar wrote: On 6/22/2023 5:13 PM, Dmitry Baryshkov wrote: On 23/06/2023 02:48, Ryan McCann wrote: Currently, the device

Re: [PATCH 6/6] drm/msm/dpu: Update dev core dump to dump registers of sub blocks

2023-06-24 Thread Abhinav Kumar
On 6/24/2023 5:07 AM, Dmitry Baryshkov wrote: On 24/06/2023 03:09, Abhinav Kumar wrote: On 6/22/2023 5:13 PM, Dmitry Baryshkov wrote: On 23/06/2023 02:48, Ryan McCann wrote: Currently, the device core dump mechanism does not dump registers of sub blocks within the DSPP, SSPP, DSC

Re: [PATCH 6/6] drm/msm/dpu: Update dev core dump to dump registers of sub blocks

2023-06-23 Thread Abhinav Kumar
On 6/22/2023 5:13 PM, Dmitry Baryshkov wrote: On 23/06/2023 02:48, Ryan McCann wrote: Currently, the device core dump mechanism does not dump registers of sub blocks within the DSPP, SSPP, DSC, and PINGPONG blocks. Add wrapper function to dump hardware blocks that contain sub blocks.

Re: [PATCH v2] drm/msm/dsi: Document DSC related pclk_rate and hdisplay calculations

2023-06-23 Thread Abhinav Kumar
On 6/23/2023 1:18 PM, Marijn Suijten wrote: On 2023-06-23 23:10:56, Dmitry Baryshkov wrote: There is no confusion between what was said earlier and now. This line is calculating the number of pclks needed to transmit one line of the compressed data: hdisplay =

Re: [PATCH 1/2] drm/msm/dpu: fix DSC 1.2 block lengths

2023-06-23 Thread Abhinav Kumar
On 6/23/2023 1:28 PM, Marijn Suijten wrote: On 2023-06-23 14:37:12, Dmitry Baryshkov wrote: In fact I asked to make it 0xf00 + 0x10 or 0xf80 + 0x10 to also cover the CTL registers, but that change didn't make it through. 0x29c is an arbitrary number that I have no clue what it was based

Re: [Freedreno] [PATCH 3/3] drm/msm/dsi: Enable DATABUS_WIDEN for DSI command mode

2023-06-23 Thread Abhinav Kumar
On 6/23/2023 2:33 PM, Marijn Suijten wrote: On 2023-06-23 13:34:06, Abhinav Kumar wrote: On 6/23/2023 1:14 PM, Marijn Suijten wrote: On 2023-06-23 10:29:51, Abhinav Kumar wrote: The concept is quite simple one pixel per clock for uncompresssed without widebubus 2 pixels per clock

Re: [Freedreno] [PATCH 3/3] drm/msm/dsi: Enable DATABUS_WIDEN for DSI command mode

2023-06-23 Thread Abhinav Kumar
On 6/23/2023 1:14 PM, Marijn Suijten wrote: On 2023-06-23 10:29:51, Abhinav Kumar wrote: The concept is quite simple one pixel per clock for uncompresssed without widebubus 2 pixels per clock for uncompressed with widebus (only enabled for DP not DSI) 3 bytes worth of data for compressed

Re: [PATCH v2] drm/msm/dsi: Document DSC related pclk_rate and hdisplay calculations

2023-06-23 Thread Abhinav Kumar
On 6/23/2023 12:26 AM, Marijn Suijten wrote: On 2023-06-22 17:32:17, Abhinav Kumar wrote: On 6/22/2023 5:17 PM, Dmitry Baryshkov wrote: On 23/06/2023 03:14, Abhinav Kumar wrote: On 6/19/2023 2:06 PM, Dmitry Baryshkov wrote: Provide actual documentation for the pclk and hdisplay

Re: [PATCH 1/2] drm/msm/dpu: fix DSC 1.2 block lengths

2023-06-23 Thread Abhinav Kumar
On 6/23/2023 12:40 PM, Dmitry Baryshkov wrote: On 23/06/2023 22:37, Abhinav Kumar wrote: On 6/23/2023 4:37 AM, Dmitry Baryshkov wrote: On 23/06/2023 09:54, Marijn Suijten wrote: On 2023-06-22 22:47:04, Abhinav Kumar wrote: On 6/22/2023 6:37 PM, Dmitry Baryshkov wrote: All DSC_BLK_1_2

Re: [PATCH 1/2] drm/msm/dpu: fix DSC 1.2 block lengths

2023-06-23 Thread Abhinav Kumar
On 6/23/2023 4:37 AM, Dmitry Baryshkov wrote: On 23/06/2023 09:54, Marijn Suijten wrote: On 2023-06-22 22:47:04, Abhinav Kumar wrote: On 6/22/2023 6:37 PM, Dmitry Baryshkov wrote: All DSC_BLK_1_2 declarations incorrectly pass 0x29c as the block length. This includes the common block

Re: [PATCH 1/2] drm/msm/dpu: fix DSC 1.2 block lengths

2023-06-23 Thread Abhinav Kumar
On 6/22/2023 11:57 PM, Marijn Suijten wrote: On 2023-06-23 08:54:39, Marijn Suijten wrote: On 2023-06-22 22:47:04, Abhinav Kumar wrote: On 6/22/2023 6:37 PM, Dmitry Baryshkov wrote: All DSC_BLK_1_2 declarations incorrectly pass 0x29c as the block length. This includes the common block

Re: [PATCH 0/7] drm/msm/dpu: simplify DPU sub-blocks info

2023-06-23 Thread Abhinav Kumar
On 6/23/2023 6:58 AM, Dmitry Baryshkov wrote: Ryan pointed out [1] that some (most) of of sub-blocks do not fill the field `name'. Further research showed that we can drop the fields `name' and `id' and further simplify the catalog. The handling code also usually knows, which sub-block it is

Re: [PATCH 1/2] drm/msm/dpu: fix DSC 1.2 block lengths

2023-06-23 Thread Abhinav Kumar
On 6/23/2023 4:25 AM, Dmitry Baryshkov wrote: On 23/06/2023 08:47, Abhinav Kumar wrote: On 6/22/2023 6:37 PM, Dmitry Baryshkov wrote: All DSC_BLK_1_2 declarations incorrectly pass 0x29c as the block length. This includes the common block itself, enc subblocks and some empty space around

Re: [Freedreno] [PATCH 3/3] drm/msm/dsi: Enable DATABUS_WIDEN for DSI command mode

2023-06-23 Thread Abhinav Kumar
On 6/23/2023 12:19 AM, Marijn Suijten wrote: On 2023-06-22 17:01:34, Abhinav Kumar wrote: More interesting would be a link to the Mesa MR upstreaming this bitfield to dsi.xml [2] (which I have not found on my own yet). [2]: https://gitlab.freedesktop.org/mesa/mesa/-/blame/main/src

Re: [PATCH 1/2] drm/msm/dpu: fix DSC 1.2 block lengths

2023-06-22 Thread Abhinav Kumar
On 6/22/2023 6:37 PM, Dmitry Baryshkov wrote: All DSC_BLK_1_2 declarations incorrectly pass 0x29c as the block length. This includes the common block itself, enc subblocks and some empty space around. Change that to pass 0x4 instead, the length of common register block itself. Fixes:

Re: [PATCH v2] drm/msm/dsi: Document DSC related pclk_rate and hdisplay calculations

2023-06-22 Thread Abhinav Kumar
On 6/22/2023 5:17 PM, Dmitry Baryshkov wrote: On 23/06/2023 03:14, Abhinav Kumar wrote: On 6/19/2023 2:06 PM, Dmitry Baryshkov wrote: Provide actual documentation for the pclk and hdisplay calculations in the case of DSC compression being used. Signed-off-by: Dmitry Baryshkov

Re: [PATCH v2] drm/msm/dsi: Document DSC related pclk_rate and hdisplay calculations

2023-06-22 Thread Abhinav Kumar
On 6/19/2023 2:06 PM, Dmitry Baryshkov wrote: Provide actual documentation for the pclk and hdisplay calculations in the case of DSC compression being used. Signed-off-by: Dmitry Baryshkov --- Changes since v1: - Converted dsi_adjust_pclk_for_compression() into kerneldoc (Marijn) - Added a

Re: [Freedreno] [PATCH 3/3] drm/msm/dsi: Enable DATABUS_WIDEN for DSI command mode

2023-06-22 Thread Abhinav Kumar
On 6/14/2023 2:56 AM, Marijn Suijten wrote: On 2023-06-13 18:57:13, Jessica Zhang wrote: DSI 6G v2.5.x+ supports a data-bus widen mode that allows DSI to send 48 bits of compressed data per pclk instead of 24. For all chipsets that support this mode, enable it whenever DSC is enabled as

Re: [Freedreno] [PATCH 2/3] drm/msm/dpu: Set DATABUS_WIDEN on command mode encoders

2023-06-22 Thread Abhinav Kumar
On 6/22/2023 4:14 PM, Dmitry Baryshkov wrote: On 23/06/2023 01:37, Abhinav Kumar wrote: On 6/21/2023 4:46 PM, Dmitry Baryshkov wrote: On 22/06/2023 02:01, Abhinav Kumar wrote: On 6/21/2023 9:36 AM, Dmitry Baryshkov wrote: On 21/06/2023 18:17, Marijn Suijten wrote: On 2023-06-20 14:38

Re: [PATCH 3/3] drm/msm/dsi: Enable DATABUS_WIDEN for DSI command mode

2023-06-22 Thread Abhinav Kumar
On 6/14/2023 3:03 AM, Marijn Suijten wrote: On 2023-06-14 10:49:31, Dmitry Baryshkov wrote: On 14/06/2023 04:57, Jessica Zhang wrote: DSI 6G v2.5.x+ supports a data-bus widen mode that allows DSI to send 48 bits of compressed data per pclk instead of 24. For all chipsets that support this

Re: [PATCH 2/3] drm/msm/dpu: Set DATABUS_WIDEN on command mode encoders

2023-06-22 Thread Abhinav Kumar
On 6/21/2023 4:46 PM, Dmitry Baryshkov wrote: On 22/06/2023 02:01, Abhinav Kumar wrote: On 6/21/2023 9:36 AM, Dmitry Baryshkov wrote: On 21/06/2023 18:17, Marijn Suijten wrote: On 2023-06-20 14:38:34, Jessica Zhang wrote: +    if (phys_enc->hw_intf->ops.enable_w

Re: [PATCH v4 1/2] drm/msm/dpu: retrieve DSI DSC struct through priv->dsi[0]

2023-06-22 Thread Abhinav Kumar
On 6/22/2023 7:00 AM, Dmitry Baryshkov wrote: On 21/06/2023 19:18, Kuogee Hsieh wrote: Currently DSI DSC struct is populated at display setup during system bootup. This mechanism works fine with embedded display but not for pluggable displays as the DSC struct will become stale once external

Re: [PATCH 2/3] drm/msm/dpu: Set DATABUS_WIDEN on command mode encoders

2023-06-21 Thread Abhinav Kumar
On 6/21/2023 9:36 AM, Dmitry Baryshkov wrote: On 21/06/2023 18:17, Marijn Suijten wrote: On 2023-06-20 14:38:34, Jessica Zhang wrote: +    if (phys_enc->hw_intf->ops.enable_widebus) +    phys_enc->hw_intf->ops.enable_widebus(phys_enc->hw_intf); No. Please provide a single function

Re: [PATCH 3/3] drm/msm/dsi: Enable DATABUS_WIDEN for DSI command mode

2023-06-16 Thread Abhinav Kumar
On 6/14/2023 12:49 AM, Dmitry Baryshkov wrote: On 14/06/2023 04:57, Jessica Zhang wrote: DSI 6G v2.5.x+ supports a data-bus widen mode that allows DSI to send 48 bits of compressed data per pclk instead of 24. For all chipsets that support this mode, enable it whenever DSC is enabled as

Re: [PATCH 2/3] drm/msm/dpu: Set DATABUS_WIDEN on command mode encoders

2023-06-16 Thread Abhinav Kumar
On 6/14/2023 12:56 AM, Dmitry Baryshkov wrote: On 14/06/2023 04:57, Jessica Zhang wrote: Add a DPU INTF op to set the DATABUS_WIDEN register to enable the databus-widen mode datapath. Signed-off-by: Jessica Zhang ---   drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c |  3 +++  

Re: [Freedreno] [PATCH 1/3] drm/msm/dpu: Add DPU_INTF_DATABUS_WIDEN feature flag for DPU >= 5.0

2023-06-16 Thread Abhinav Kumar
On 6/14/2023 2:41 PM, Marijn Suijten wrote: On 2023-06-14 13:39:57, Abhinav Kumar wrote: On 6/14/2023 12:54 PM, Abhinav Kumar wrote: On 6/14/2023 12:35 PM, Abhinav Kumar wrote: On 6/14/2023 5:23 AM, Marijn Suijten wrote: On 2023-06-14 15:01:59, Dmitry Baryshkov wrote: On 14/06/2023 14:42

Re: [Freedreno] [PATCH 1/3] drm/msm/dpu: Add DPU_INTF_DATABUS_WIDEN feature flag for DPU >= 5.0

2023-06-16 Thread Abhinav Kumar
On 6/14/2023 1:43 PM, Dmitry Baryshkov wrote: On 14/06/2023 23:39, Abhinav Kumar wrote: On 6/14/2023 12:54 PM, Abhinav Kumar wrote: On 6/14/2023 12:35 PM, Abhinav Kumar wrote: On 6/14/2023 5:23 AM, Marijn Suijten wrote: On 2023-06-14 15:01:59, Dmitry Baryshkov wrote: On 14/06/2023

Re: [PATCH 1/3] drm/msm/dpu: Add DPU_INTF_DATABUS_WIDEN feature flag for DPU >= 5.0

2023-06-16 Thread Abhinav Kumar
On 6/14/2023 3:49 PM, Marijn Suijten wrote: On 2023-06-14 14:23:38, Marijn Suijten wrote: Tested this on SM8350 which actually has DSI 2.5, and it is also corrupted with this series so something else on this series might be broken. Never mind, this was a bad conflict-resolve. Jessica's

Re: [Freedreno] [PATCH 1/3] drm/msm/dpu: Add DPU_INTF_DATABUS_WIDEN feature flag for DPU >= 5.0

2023-06-14 Thread Abhinav Kumar
On 6/14/2023 12:54 PM, Abhinav Kumar wrote: On 6/14/2023 12:35 PM, Abhinav Kumar wrote: On 6/14/2023 5:23 AM, Marijn Suijten wrote: On 2023-06-14 15:01:59, Dmitry Baryshkov wrote: On 14/06/2023 14:42, Marijn Suijten wrote: On 2023-06-13 18:57:11, Jessica Zhang wrote: DPU 5.x+ supports

Re: [PATCH 1/3] drm/msm/dpu: Add DPU_INTF_DATABUS_WIDEN feature flag for DPU >= 5.0

2023-06-14 Thread Abhinav Kumar
On 6/14/2023 12:35 PM, Abhinav Kumar wrote: On 6/14/2023 5:23 AM, Marijn Suijten wrote: On 2023-06-14 15:01:59, Dmitry Baryshkov wrote: On 14/06/2023 14:42, Marijn Suijten wrote: On 2023-06-13 18:57:11, Jessica Zhang wrote: DPU 5.x+ supports a databus widen mode that allows more data

Re: [PATCH 1/3] drm/msm/dpu: Add DPU_INTF_DATABUS_WIDEN feature flag for DPU >= 5.0

2023-06-14 Thread Abhinav Kumar
On 6/14/2023 5:23 AM, Marijn Suijten wrote: On 2023-06-14 15:01:59, Dmitry Baryshkov wrote: On 14/06/2023 14:42, Marijn Suijten wrote: On 2023-06-13 18:57:11, Jessica Zhang wrote: DPU 5.x+ supports a databus widen mode that allows more data to be sent per pclk. Enable this feature flag on

Re: [PATCH v2 05/22] drm/msm/dpu: always use MSM_DP/DSI_CONTROLLER_n

2023-06-13 Thread Abhinav Kumar
On 6/12/2023 5:09 PM, Dmitry Baryshkov wrote: In several catalog entries we did not use existing MSM_DP_CONTROLLER_n constants. Fill them in. Also use freshly defined MSM_DSI_CONTROLLER_n for DSI interfaces. Signed-off-by: Dmitry Baryshkov ---

Re: [PATCH v3 2/2] drm/msm/dpu: remove struct drm_dsc_config from struct msm_display_info

2023-06-13 Thread Abhinav Kumar
On 6/13/2023 3:19 PM, Kuogee Hsieh wrote: ince struct drm_dsc_config is stored at atomic_enable() instead S got cut off in since of display setup time during boot up, saving struct drm_dsc_config at struct msm_display_info is not necessary. Lets drop the dsc member from struct

Re: [PATCH v3 0/2] retrieve DSI DSC through priv-dsi[0]

2023-06-13 Thread Abhinav Kumar
On 6/13/2023 3:19 PM, Kuogee Hsieh wrote: moving retrieving struct drm_dsc_cofnig from setup_display to atomic_enable() and delete struct drm_dsc_config from struct msm_display_info. This needs re-wording. Currently, struct drm_dsc_config is retrieved from DSI driver in

Re: [PATCH v2 04/22] drm/msm: enumerate DSI interfaces

2023-06-13 Thread Abhinav Kumar
On 6/12/2023 5:09 PM, Dmitry Baryshkov wrote: Follow the DP example and define MSM_DSI_CONTROLLER_n enumeration. Signed-off-by: Dmitry Baryshkov --- Reviewed-by: Abhinav Kumar

Re: [PATCH v2 03/22] drm/msm/dpu: remove unused INTF_NONE interfaces

2023-06-13 Thread Abhinav Kumar
On 6/12/2023 5:09 PM, Dmitry Baryshkov wrote: sm6115 and qcm2290 do not have INTF_0. Drop corresponding interface definitions. And sm6375 as you are touching that too Signed-off-by: Dmitry Baryshkov --- You can fix that while applying. Reviewed-by: Abhinav Kumar

Re: [PATCH v2 02/22] drm/msm/dpu: correct MERGE_3D length

2023-06-13 Thread Abhinav Kumar
On 6/12/2023 5:09 PM, Dmitry Baryshkov wrote: Each MERGE_3D block has just two registers. Correct the block length accordingly. Fixes: 4369c93cf36b ("drm/msm/dpu: initial support for merge3D hardware block") Signed-off-by: Dmitry Baryshkov --- LGTM, Reviewed-by: Abhinav Kumar

Re: [PATCH v2 01/22] drm/msm/dpu: fix sc7280 and sc7180 PINGPONG done interrupts

2023-06-13 Thread Abhinav Kumar
m/dpu: replace IRQ lookup with the data in hw catalog") Signed-off-by: Dmitry Baryshkov --- Yes, was indeed a mistake Reviewed-by: Abhinav Kumar

Re: [PATCH] drm/msm/dp: Drop aux devices together with DP controller

2023-06-13 Thread Abhinav Kumar
Hi Doug On 6/13/2023 12:33 PM, Doug Anderson wrote: Hi, On Mon, Jun 12, 2023 at 3:40 PM Dmitry Baryshkov wrote: On 13/06/2023 01:01, Bjorn Andersson wrote: Using devres to depopulate the aux bus made sure that upon a probe deferral the EDP panel device would be destroyed and recreated upon

Re: [PATCH 2/2] drm/msm/dpu/catalog: define DSPP blocks found on sdm845

2023-06-12 Thread Abhinav Kumar
changed, 17 insertions(+), 4 deletions(-) This change itself is fine, hence Reviewed-by: Abhinav Kumar one note below for a future cleanup: diff --git a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_4_0_sdm845.h b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_4_0_sdm845.h index 36ea1af10894

Re: [PATCH 1/2] drm/msm/dpu: do not enable color-management if DSPPs are not available

2023-06-12 Thread Abhinav Kumar
) Reported-by: Yongqin Liu Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) LGTM, Reviewed-by: Abhinav Kumar

Re: [Freedreno] [PATCH v6 6/6] drm/msm/dsi: Document DSC related pclk_rate and hdisplay calculations

2023-06-12 Thread Abhinav Kumar
On 6/11/2023 3:03 PM, Marijn Suijten wrote: On 2023-06-09 15:57:18, Jessica Zhang wrote: Add documentation comments explaining the pclk_rate and hdisplay math related to DSC. Signed-off-by: Jessica Zhang --- drivers/gpu/drm/msm/dsi/dsi_host.c | 10 ++ 1 file changed, 10

Re: [RFC PATCH v2 12/13] drm/msm/dpu: add support for virtual planes

2023-06-09 Thread Abhinav Kumar
On 6/8/2023 12:51 PM, Abhinav Kumar wrote: On 6/7/2023 2:56 PM, Dmitry Baryshkov wrote: On 08/06/2023 00:05, Abhinav Kumar wrote: On 3/20/2023 6:18 PM, Dmitry Baryshkov wrote: Only several SSPP blocks support such features as YUV output or scaling, thus different DRM planes have

Re: [PATCH v6 2/6] drm/msm/dsi: Reduce pclk rate for compression

2023-06-09 Thread Abhinav Kumar
On 6/9/2023 3:57 PM, Jessica Zhang wrote: Adjust the pclk rate to divide hdisplay by the compression ratio when DSC is enabled. Signed-off-by: Jessica Zhang --- Reviewed-by: Abhinav Kumar

Re: [PATCH v6 4/6] drm/msm/dpu: Set DATA_COMPRESS on command mode for DCE/DSC 1.2

2023-06-09 Thread Abhinav Kumar
for DP. Signed-off-by: Jessica Zhang --- Reviewed-by: Abhinav Kumar

Re: [Freedreno] [PATCH v5 2/5] drm/msm/dsi: Adjust pclk rate for compression

2023-06-08 Thread Abhinav Kumar
On 6/8/2023 5:56 PM, Jessica Zhang wrote: On 6/8/2023 1:36 PM, Marijn Suijten wrote: Same title suggestion as earlier: s/adjust/reduce Hi Marijn, Acked. On 2023-05-22 18:08:56, Jessica Zhang wrote: Adjust the pclk rate to divide hdisplay by the compression ratio when DSC is

Re: [RFC PATCH v2 12/13] drm/msm/dpu: add support for virtual planes

2023-06-08 Thread Abhinav Kumar
On 6/7/2023 2:56 PM, Dmitry Baryshkov wrote: On 08/06/2023 00:05, Abhinav Kumar wrote: On 3/20/2023 6:18 PM, Dmitry Baryshkov wrote: Only several SSPP blocks support such features as YUV output or scaling, thus different DRM planes have different features.  Properly utilizing all planes

Re: [RFC PATCH v2 12/13] drm/msm/dpu: add support for virtual planes

2023-06-07 Thread Abhinav Kumar
On 3/20/2023 6:18 PM, Dmitry Baryshkov wrote: Only several SSPP blocks support such features as YUV output or scaling, thus different DRM planes have different features. Properly utilizing all planes requires the attention of the compositor, who should prefer simpler planes to YUV-supporting

Re: [Freedreno] [RFC PATCH v2 10/13] drm/msm/dpu: add list of supported formats to the DPU caps

2023-06-06 Thread Abhinav Kumar
On 6/6/2023 4:21 PM, Dmitry Baryshkov wrote: On 07/06/2023 02:14, Abhinav Kumar wrote: On 6/6/2023 3:59 PM, Dmitry Baryshkov wrote: On 07/06/2023 01:57, Abhinav Kumar wrote: On 6/6/2023 3:50 PM, Dmitry Baryshkov wrote: On 07/06/2023 01:47, Abhinav Kumar wrote: On 6/6/2023 2:52 PM

Re: [Freedreno] [RFC PATCH v2 10/13] drm/msm/dpu: add list of supported formats to the DPU caps

2023-06-06 Thread Abhinav Kumar
On 6/6/2023 3:59 PM, Dmitry Baryshkov wrote: On 07/06/2023 01:57, Abhinav Kumar wrote: On 6/6/2023 3:50 PM, Dmitry Baryshkov wrote: On 07/06/2023 01:47, Abhinav Kumar wrote: On 6/6/2023 2:52 PM, Dmitry Baryshkov wrote: On 07/06/2023 00:47, Abhinav Kumar wrote: On 6/6/2023 2:29 PM

Re: [Freedreno] [RFC PATCH v2 10/13] drm/msm/dpu: add list of supported formats to the DPU caps

2023-06-06 Thread Abhinav Kumar
On 6/6/2023 3:50 PM, Dmitry Baryshkov wrote: On 07/06/2023 01:47, Abhinav Kumar wrote: On 6/6/2023 2:52 PM, Dmitry Baryshkov wrote: On 07/06/2023 00:47, Abhinav Kumar wrote: On 6/6/2023 2:29 PM, Dmitry Baryshkov wrote: On 07/06/2023 00:14, Abhinav Kumar wrote: On 5/24/2023 6:47 PM

Re: [RFC PATCH v2 10/13] drm/msm/dpu: add list of supported formats to the DPU caps

2023-06-06 Thread Abhinav Kumar
On 6/6/2023 2:52 PM, Dmitry Baryshkov wrote: On 07/06/2023 00:47, Abhinav Kumar wrote: On 6/6/2023 2:29 PM, Dmitry Baryshkov wrote: On 07/06/2023 00:14, Abhinav Kumar wrote: On 5/24/2023 6:47 PM, Dmitry Baryshkov wrote: On Thu, 25 May 2023 at 02:16, Abhinav Kumar wrote: On 3/20

Re: [PATCH v17] drm/msm/dpu: add DSC blocks to the catalog of MSM8998

2023-06-06 Thread Abhinav Kumar
Hi Dmitry On 6/6/2023 1:21 PM, Dmitry Baryshkov wrote: On 06/06/2023 23:11, Kuogee Hsieh wrote: From: Abhinav Kumar Some platforms have DSC blocks which have not been declared in the catalog. Complete DSC 1.1 support for all platforms by adding the missing blocks to MSM8998. 'Some

Re: [RFC PATCH v2 10/13] drm/msm/dpu: add list of supported formats to the DPU caps

2023-06-06 Thread Abhinav Kumar
On 6/6/2023 2:29 PM, Dmitry Baryshkov wrote: On 07/06/2023 00:14, Abhinav Kumar wrote: On 5/24/2023 6:47 PM, Dmitry Baryshkov wrote: On Thu, 25 May 2023 at 02:16, Abhinav Kumar wrote: On 3/20/2023 6:18 PM, Dmitry Baryshkov wrote: As we are going to add virtual planes, add the list

Re: [Freedreno] [PATCH] drm/msm/dpu: re-introduce dpu core revision to the catalog

2023-06-06 Thread Abhinav Kumar
On 6/6/2023 2:08 PM, Dmitry Baryshkov wrote: On 07/06/2023 00:01, Dmitry Baryshkov wrote: On 06/06/2023 22:28, Abhinav Kumar wrote: On 6/6/2023 12:09 PM, Dmitry Baryshkov wrote: On 06/06/2023 20:51, Abhinav Kumar wrote: On 6/6/2023 4:14 AM, Dmitry Baryshkov wrote: On Tue, 6 Jun 2023

Re: [RFC PATCH v2 10/13] drm/msm/dpu: add list of supported formats to the DPU caps

2023-06-06 Thread Abhinav Kumar
On 5/24/2023 6:47 PM, Dmitry Baryshkov wrote: On Thu, 25 May 2023 at 02:16, Abhinav Kumar wrote: On 3/20/2023 6:18 PM, Dmitry Baryshkov wrote: As we are going to add virtual planes, add the list of supported formats to the hw catalog entry. It will be used to setup universal planes

Re: [Freedreno] [RFC PATCH v2 04/13] drm/msm/dpu: remove unused fields from dpu_encoder_virt

2023-06-06 Thread Abhinav Kumar
On 6/6/2023 1:29 PM, Dmitry Baryshkov wrote: On 06/06/2023 23:25, Abhinav Kumar wrote: On 3/20/2023 6:18 PM, Dmitry Baryshkov wrote: Remove historical fields intfs_swapped and topology fields from struct dpu_encoder_virt and also remove even more historical docs. Signed-off-by: Dmitry

Re: [Freedreno] [RFC PATCH v2 09/13] drm/msm/dpu: move pstate->pipe initialization to dpu_plane_atomic_check

2023-06-06 Thread Abhinav Kumar
On 5/24/2023 6:40 PM, Dmitry Baryshkov wrote: On Thu, 25 May 2023 at 02:04, Abhinav Kumar wrote: On 5/24/2023 3:46 PM, Abhinav Kumar wrote: On 3/20/2023 6:18 PM, Dmitry Baryshkov wrote: In preparation to virtualized planes support, move pstate->pipe initialization f

<    2   3   4   5   6   7   8   9   10   11   >