Re: [Freedreno] [PATCH v2 3/3] drm/msm/dpu: Pass catalog pointers directly from RM instead of IDs

2023-04-25 Thread Marijn Suijten
On 2023-04-24 16:23:17, Abhinav Kumar wrote: > > > On 4/24/2023 3:54 PM, Dmitry Baryshkov wrote: > > On Tue, 25 Apr 2023 at 01:03, Marijn Suijten > > wrote: > >> > >> On 2023-04-21 16:25:15, Abhinav Kumar wrote: > >>> > >>> > >>> On 4/21/2023 1:53 PM, Marijn Suijten wrote: > The Resource Ma

Re: [Freedreno] [PATCH v2 3/3] drm/msm/dpu: Pass catalog pointers directly from RM instead of IDs

2023-04-25 Thread Dmitry Baryshkov
On 25/04/2023 10:16, Marijn Suijten wrote: On 2023-04-24 16:23:17, Abhinav Kumar wrote: On 4/24/2023 3:54 PM, Dmitry Baryshkov wrote: On Tue, 25 Apr 2023 at 01:03, Marijn Suijten wrote: On 2023-04-21 16:25:15, Abhinav Kumar wrote: On 4/21/2023 1:53 PM, Marijn Suijten wrote: The Resourc

Re: [Freedreno] [PATCH v2 3/3] drm/msm/dpu: Pass catalog pointers directly from RM instead of IDs

2023-04-25 Thread Marijn Suijten
On 2023-04-25 10:54:47, Dmitry Baryshkov wrote: > On 25/04/2023 10:16, Marijn Suijten wrote: > > On 2023-04-24 16:23:17, Abhinav Kumar wrote: > >> > >> > >> On 4/24/2023 3:54 PM, Dmitry Baryshkov wrote: > >>> On Tue, 25 Apr 2023 at 01:03, Marijn Suijten > >>> wrote: > > On 2023-04-21 16:

Re: [Freedreno] [PATCH v2 3/3] drm/msm/dpu: Pass catalog pointers directly from RM instead of IDs

2023-04-25 Thread Dmitry Baryshkov
On Tue, 25 Apr 2023 at 11:55, Marijn Suijten wrote: > > On 2023-04-25 10:54:47, Dmitry Baryshkov wrote: > > On 25/04/2023 10:16, Marijn Suijten wrote: > > > On 2023-04-24 16:23:17, Abhinav Kumar wrote: > > >> > > >> > > >> On 4/24/2023 3:54 PM, Dmitry Baryshkov wrote: > > >>> On Tue, 25 Apr 2023 a

Re: [Freedreno] [PATCH v2 3/3] drm/msm/dpu: Pass catalog pointers directly from RM instead of IDs

2023-04-25 Thread Abhinav Kumar
On 4/25/2023 7:26 AM, Dmitry Baryshkov wrote: On Tue, 25 Apr 2023 at 11:55, Marijn Suijten wrote: On 2023-04-25 10:54:47, Dmitry Baryshkov wrote: On 25/04/2023 10:16, Marijn Suijten wrote: On 2023-04-24 16:23:17, Abhinav Kumar wrote: On 4/24/2023 3:54 PM, Dmitry Baryshkov wrote: On Tu

Re: [Freedreno] [PATCH v2 04/17] drm/msm/dpu: Fix PP_BLK_DIPHER -> DITHER typo

2023-04-25 Thread Abhinav Kumar
On 4/24/2023 11:54 PM, Marijn Suijten wrote: On 2023-04-24 16:09:45, Abhinav Kumar wrote: dither block should be present on many other chipsets too but looks like on sm8550 was enabling it. Not sure how it was validated there. But we are enabling dither, even other chipsets have this block.

Re: [Freedreno] [PATCH v2 04/17] drm/msm/dpu: Fix PP_BLK_DIPHER -> DITHER typo

2023-04-25 Thread Marijn Suijten
On 2023-04-25 09:18:58, Abhinav Kumar wrote: > > > On 4/24/2023 11:54 PM, Marijn Suijten wrote: > > On 2023-04-24 16:09:45, Abhinav Kumar wrote: > > > dither block should be present on many other chipsets too but looks like > on sm8550 was enabling it. Not sure how it was validated the

Re: [Freedreno] [PATCH v2 04/17] drm/msm/dpu: Fix PP_BLK_DIPHER -> DITHER typo

2023-04-25 Thread Abhinav Kumar
On 4/25/2023 9:33 AM, Marijn Suijten wrote: On 2023-04-25 09:18:58, Abhinav Kumar wrote: On 4/24/2023 11:54 PM, Marijn Suijten wrote: On 2023-04-24 16:09:45, Abhinav Kumar wrote: dither block should be present on many other chipsets too but looks like on sm8550 was enabling it. Not sure

Re: [Freedreno] [PATCH v2 03/13] dt-bindings: display/msm: Add SM6350 DPU

2023-04-25 Thread Rob Herring
On Fri, Apr 21, 2023 at 12:31:12AM +0200, Konrad Dybcio wrote: > Document the SM6350 DPU. > > Signed-off-by: Konrad Dybcio > --- > .../bindings/display/msm/qcom,sm6350-dpu.yaml | 94 > ++ > 1 file changed, 94 insertions(+) > > diff --git > a/Documentation/devicetree/b

Re: [Freedreno] [PATCH v2 03/13] dt-bindings: display/msm: Add SM6350 DPU

2023-04-25 Thread Rob Herring
On Fri, Apr 21, 2023 at 12:31:12AM +0200, Konrad Dybcio wrote: > Document the SM6350 DPU. > > Signed-off-by: Konrad Dybcio > --- > .../bindings/display/msm/qcom,sm6350-dpu.yaml | 94 > ++ > 1 file changed, 94 insertions(+) > > diff --git > a/Documentation/devicetree/b

Re: [Freedreno] [PATCH v2 04/17] drm/msm/dpu: Fix PP_BLK_DIPHER -> DITHER typo

2023-04-25 Thread Marijn Suijten
On 2023-04-25 09:47:30, Abhinav Kumar wrote: > > > On 4/25/2023 9:33 AM, Marijn Suijten wrote: > > On 2023-04-25 09:18:58, Abhinav Kumar wrote: > >> > >> > >> On 4/24/2023 11:54 PM, Marijn Suijten wrote: > >>> On 2023-04-24 16:09:45, Abhinav Kumar wrote: > >>> > >> dither block should be pre

Re: [Freedreno] [PATCH v2 3/3] drm/msm/dpu: Pass catalog pointers directly from RM instead of IDs

2023-04-25 Thread Dmitry Baryshkov
On Tue, 25 Apr 2023 at 19:11, Abhinav Kumar wrote: > > > > On 4/25/2023 7:26 AM, Dmitry Baryshkov wrote: > > On Tue, 25 Apr 2023 at 11:55, Marijn Suijten > > wrote: > >> > >> On 2023-04-25 10:54:47, Dmitry Baryshkov wrote: > >>> On 25/04/2023 10:16, Marijn Suijten wrote: > On 2023-04-24 16:2

Re: [Freedreno] [PATCH v2 3/3] drm/msm/dpu: Pass catalog pointers directly from RM instead of IDs

2023-04-25 Thread Abhinav Kumar
On 4/25/2023 2:09 PM, Dmitry Baryshkov wrote: On Tue, 25 Apr 2023 at 19:11, Abhinav Kumar wrote: On 4/25/2023 7:26 AM, Dmitry Baryshkov wrote: On Tue, 25 Apr 2023 at 11:55, Marijn Suijten wrote: On 2023-04-25 10:54:47, Dmitry Baryshkov wrote: On 25/04/2023 10:16, Marijn Suijten wrote

Re: [Freedreno] [PATCH 01/11] drm/msm/dpu: tweak msm8998 hw catalog values

2023-04-25 Thread Abhinav Kumar
On 4/19/2023 7:41 AM, Arnaud Vrac wrote: Match the values found in the downstream msm-4.4 kernel sde driver. Signed-off-by: Arnaud Vrac --- Reviewed-by: Abhinav Kumar

Re: [Freedreno] [PATCH v2 04/17] drm/msm/dpu: Fix PP_BLK_DIPHER -> DITHER typo

2023-04-25 Thread Abhinav Kumar
On 4/25/2023 1:43 PM, Marijn Suijten wrote: On 2023-04-25 09:47:30, Abhinav Kumar wrote: On 4/25/2023 9:33 AM, Marijn Suijten wrote: On 2023-04-25 09:18:58, Abhinav Kumar wrote: On 4/24/2023 11:54 PM, Marijn Suijten wrote: On 2023-04-24 16:09:45, Abhinav Kumar wrote: dither block sho

Re: [Freedreno] [PATCH v2 04/17] drm/msm/dpu: Fix PP_BLK_DIPHER -> DITHER typo

2023-04-25 Thread Marijn Suijten
On 2023-04-25 14:37:21, Abhinav Kumar wrote: > > > On 4/25/2023 1:43 PM, Marijn Suijten wrote: > > On 2023-04-25 09:47:30, Abhinav Kumar wrote: > >> > >> > >> On 4/25/2023 9:33 AM, Marijn Suijten wrote: > >>> On 2023-04-25 09:18:58, Abhinav Kumar wrote: > > > On 4/24/2023 11:54 PM,

Re: [Freedreno] [PATCH v2 04/17] drm/msm/dpu: Fix PP_BLK_DIPHER -> DITHER typo

2023-04-25 Thread Abhinav Kumar
On 4/25/2023 2:53 PM, Marijn Suijten wrote: On 2023-04-25 14:37:21, Abhinav Kumar wrote: On 4/25/2023 1:43 PM, Marijn Suijten wrote: On 2023-04-25 09:47:30, Abhinav Kumar wrote: On 4/25/2023 9:33 AM, Marijn Suijten wrote: On 2023-04-25 09:18:58, Abhinav Kumar wrote: On 4/24/2023 11:

Re: [Freedreno] [PATCH v2 04/17] drm/msm/dpu: Fix PP_BLK_DIPHER -> DITHER typo

2023-04-25 Thread Marijn Suijten
On 2023-04-25 14:55:56, Abhinav Kumar wrote: > > I'll see whether I can include these fixes before sending v3 (got all > > the other changes in and am all-ready to send it): is there any other > > SoC you're seeing this issue on? > > > > Thats alright, you can have it in a separate series not v3

Re: [Freedreno] [PATCH v2 3/3] drm/msm/dpu: Pass catalog pointers directly from RM instead of IDs

2023-04-25 Thread Marijn Suijten
On 2023-04-25 14:32:51, Abhinav Kumar wrote: > > We can return NULL from dpu_hw_foo_init(), which would mean that the > > block was skipped or is not present. > > An then replace the `if INTF_NONE continue` logic in dpu_rm_init with a > check for NULL that skips, and a check

Re: [Freedreno] [PATCH v2 04/17] drm/msm/dpu: Fix PP_BLK_DIPHER -> DITHER typo

2023-04-25 Thread Abhinav Kumar
On 4/25/2023 3:15 PM, Marijn Suijten wrote: On 2023-04-25 14:55:56, Abhinav Kumar wrote: I'll see whether I can include these fixes before sending v3 (got all the other changes in and am all-ready to send it): is there any other SoC you're seeing this issue on? Thats alright, you can have

[Freedreno] [PATCH v3 04/21] drm/msm/dpu: Reindent REV_7xxx interrupt masks with tabs

2023-04-25 Thread Marijn Suijten
Use tabs for consistency with the other interrupt register definitions, rather than spaces. Fixes: ed6154a136e4 ("drm/msm/disp/dpu1: add intf offsets for SC7280 target") Fixes: 89688e2119b2 ("drm/msm/dpu: Add more of the INTF interrupt regions") Fixes: 4a352c2fc15a ("drm/msm/dpu: Introduce SC8280X

[Freedreno] [PATCH v3 00/21] drm/msm/dpu: Implement tearcheck support on INTF block

2023-04-25 Thread Marijn Suijten
Since DPU 5.0.0 the TEARCHECK registers and interrupts moved out of the PINGPONG block and into the INTF. Implement the necessary callbacks in the INTF block, and use these callbacks together with the INTF_TEAR interrupts. Additionally, disable previous register writes and remove unused interrupt

[Freedreno] [PATCH v3 03/21] drm/msm/dpu: Move non-MDP_TOP INTF_INTR offsets out of hwio header

2023-04-25 Thread Marijn Suijten
These offsets do not fall under the MDP TOP block and do not fit the comment right above. Move them to dpu_hw_interrupts.c next to the repsective MDP_INTF_x_OFF interrupt block offsets. Fixes: 25fdd5933e4c ("drm/msm: Add SDM845 DPU support") Signed-off-by: Marijn Suijten Reviewed-by: Konrad Dybc

[Freedreno] [PATCH v3 02/21] drm/msm/dpu: Remove TE2 block and feature from DPU >= 7.0.0 hardware

2023-04-25 Thread Marijn Suijten
No hardware beyond kona (sm8250) defines the TE2 PINGPONG sub-block offset downstream. Even though neither downstream nor upstream utilizes these registers in any way, remove the erroneous specification for SC8280XP, SM8350 and SM8450 to prevent confusion. Note that downstream enables the PPSPLIT

[Freedreno] [PATCH v3 06/21] drm/msm/dpu: Use V2 DITHER PINGPONG sub-block in SM8[34]50/SC8280XP

2023-04-25 Thread Marijn Suijten
According to downstream sources this DITHER sub-block sits at an offset of 0xe0 with version 0x2. The PP_BLK_DITHER macro is _not_ used as downstream still says the size of the PINGPONG block is 0xd4 and not 0. Fixes: 4a352c2fc15a ("drm/msm/dpu: Introduce SC8280XP") Fixes: 0e91bcbb0016 ("drm/

[Freedreno] [PATCH v3 01/21] drm/msm/dpu: Remove unused INTF0 interrupt mask from SM6115/QCM2290

2023-04-25 Thread Marijn Suijten
Neither of these SoCs has INTF0, they only have a DSI interface on index 1. Stop enabling an interrupt that can't fire. Fixes: 3581b7062cec ("drm/msm/disp/dpu1: add support for display on SM6115") Fixes: 5334087ee743 ("drm/msm: add support for QCM2290 MDSS") Signed-off-by: Marijn Suijten Reviewe

[Freedreno] [PATCH v3 05/21] drm/msm/dpu: Fix PP_BLK_DIPHER -> DITHER typo

2023-04-25 Thread Marijn Suijten
SM8550 exclusively has a DITHER sub-block inside the PINGPONG block and no other registers, hence the DITHER name of the macro and a corresponding PINGPONG block length of zero. However, the PP_BLK_ macro name was typo'd to DIPHER rather than DITHER. Fixes: efcd0107727c ("drm/msm/dpu: add support

[Freedreno] [PATCH v3 09/21] drm/msm/dpu: Sort INTF registers numerically

2023-04-25 Thread Marijn Suijten
A bunch of registers were appended at the end in e.g. commit 91143873a05d ("drm/msm/dpu: Add MISR register support for interface") rather than being inserted in a place that maintains numerical sorting: restore said numerical sorting. Signed-off-by: Marijn Suijten Reviewed-by: Konrad Dybcio Revi

[Freedreno] [PATCH v3 11/21] drm/msm/dpu: Drop unused poll_timeout_wr_ptr PINGPONG callback

2023-04-25 Thread Marijn Suijten
This callback was migrated from downstream when DPU1 was first introduced to mainline, but never used by any component. Drop it to save some lines and unnecessary confusion. Suggested-by: Dmitry Baryshkov Signed-off-by: Marijn Suijten Reviewed-by: Konrad Dybcio Reviewed-by: Dmitry Baryshkov -

[Freedreno] [PATCH v3 12/21] drm/msm/dpu: Move autorefresh disable from CMD encoder to pingpong

2023-04-25 Thread Marijn Suijten
This autorefresh disable logic in the physical command-mode encoder consumes three callbacks to the pingpong block, and will explode in unnecessary complexity when the same callbacks need to be called on the interface block instead to accommodate INTF TE support. To clean this up, move the logic i

[Freedreno] [PATCH v3 10/21] drm/msm/dpu: Take INTF index as parameter in interrupt register defines

2023-04-25 Thread Marijn Suijten
Instead of hardcoding many register defines for every INTF and AD4 index with a fixed stride, turn the defines into singular chunks of math that compute the address using the base and this fixed stride multiplied by the index given as argument to the definitions. MDP_SSPP_TOP0_OFF is dropped as th

[Freedreno] [PATCH v3 08/21] drm/msm/dpu: Remove extraneous register define indentation

2023-04-25 Thread Marijn Suijten
A bunch of registers are indented with two extra spaces, looking as if these are values corresponding to the previous register which is not the case, rather these are simply also register offsets and should only have a single space separating them and the #define keyword. Signed-off-by: Marijn Sui

[Freedreno] [PATCH v3 15/21] drm/msm/dpu: Move dpu_hw_{tear_check, pp_vsync_info} to dpu_hw_mdss.h

2023-04-25 Thread Marijn Suijten
From: Konrad Dybcio Now that newer SoCs since DPU 5.0.0 manage tearcheck in the INTF instead of PINGPONG block, move the struct definition to a common file. Also, bring in documentation from msm-4.19 techpack while at it. Signed-off-by: Konrad Dybcio [Marijn: Also move dpu_hw_pp_vsync_info] Sig

[Freedreno] [PATCH v3 16/21] drm/msm/dpu: Factor out shared interrupt register in INTF_BLK macro

2023-04-25 Thread Marijn Suijten
As the INTF block is going to attain more interrupts that don't share the same MDP_SSPP_TOP0_INTR register, factor out the _reg argument for the caller to construct the right interrupt index (register and bit index) to not make the interrupt bit arguments depend on one of multiple interrupt registe

[Freedreno] [PATCH v3 17/21] drm/msm/dpu: Describe TEAR interrupt registers for DSI interfaces

2023-04-25 Thread Marijn Suijten
All SoCs since DPU 5.0.0 have the tear interrupt registers moved out of the PINGPONG block and into the INTF block. Wire up the IRQ register masks in the interrupt table for enabling, reading and clearing them. Signed-off-by: Marijn Suijten --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c

[Freedreno] [PATCH v3 07/21] drm/msm/dpu: Remove duplicate register defines from INTF

2023-04-25 Thread Marijn Suijten
The INTF_FRAME_LINE_COUNT_EN, INTF_FRAME_COUNT and INTF_LINE_COUNT registers are already defined higher up, in the right place when sorted numerically. Fixes: 25fdd5933e4c ("drm/msm: Add SDM845 DPU support") Signed-off-by: Marijn Suijten Reviewed-by: Konrad Dybcio Reviewed-by: Dmitry Baryshkov

[Freedreno] [PATCH v3 14/21] drm/msm/dpu: Disable MDP vsync source selection on DPU 5.0.0 and above

2023-04-25 Thread Marijn Suijten
Since hardware revision 5.0.0 the TE configuration moved out of the PINGPONG block into the INTF block, including vsync source selection that was previously part of MDP top. Writing to the MDP_VSYNC_SEL register has no effect anymore and is omitted downstream via the DPU/SDE_MDP_VSYNC_SEL feature

[Freedreno] [PATCH v3 13/21] drm/msm/dpu: Disable pingpong TE on DPU 5.0.0 and above

2023-04-25 Thread Marijn Suijten
Since hardware revision 5.0.0 the TE configuration moved out of the PINGPONG block into the INTF block. Writing these registers has no effect, and is omitted downstream via the DPU/SDE_PINGPONG_TE feature flag. This flag is only added to PINGPONG blocks used by hardware prior to 5.0.0. The exist

[Freedreno] [PATCH v3 19/21] drm/msm/dpu: Merge setup_- and enable_tearcheck pingpong callbacks

2023-04-25 Thread Marijn Suijten
These functions are always called consecutively and are best bundled together for simplicity, especially when the same structure of callbacks will be replicated later on the interface block for INTF TE support. The enable_tearcheck(false) case is now replaced with a more obvious disable_tearcheck()

[Freedreno] [PATCH v3 18/21] drm/msm/dpu: Add TEAR-READ-pointer interrupt to INTF block

2023-04-25 Thread Marijn Suijten
All SoCs since DPU 5.0.0 have the tear interrupt registers moved out of the PINGPONG block and into the INTF block. The new interrupts are described in dpu_hw_interrupts.c, now wire them up in individual SoC catalog files by setting the intr_tear_rd_ptr to the IRQ index spcified in the offset tabl

[Freedreno] [PATCH v3 20/21] drm/msm/dpu: Implement tearcheck support on INTF block

2023-04-25 Thread Marijn Suijten
Since DPU 5.0.0 the TEARCHECK registers and interrupts moved out of the PINGPONG block and into the INTF. Implement the necessary callbacks in the INTF block, and use these callbacks together with the INTF_TEAR interrupts. Signed-off-by: Marijn Suijten Reviewed-by: Dmitry Baryshkov --- drivers

[Freedreno] [PATCH v3 21/21] drm/msm/dpu: Remove intr_rdptr from DPU >= 5.0.0 pingpong config

2023-04-25 Thread Marijn Suijten
Now that newer DPU platforms use a readpointer-done interrupt on the INTF block, stop providing the unused interrupt on the PINGPONG block. Signed-off-by: Marijn Suijten Reviewed-by: Dmitry Baryshkov Reviewed-by: Konrad Dybcio --- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_0_sm8150.h | 8 ++

[Freedreno] [PATCH v3 0/3] drm/msm/dpu: Drop useless for-loop HW block lookup

2023-04-25 Thread Marijn Suijten
Doing a for loop in every DPU HW block driver init to find a catalog entry matching the given ID is rather useless if the init function called by RM already has that catalog entry pointer, and uses exactly its ID to drive this init and for loop. Remove all that machinery to drop quite some lines o

[Freedreno] [PATCH v3 1/3] drm/msm/dpu: Assign missing writeback log_mask

2023-04-25 Thread Marijn Suijten
The WB debug log mask ended up never being assigned, leading to writes to this block to never be logged even if the mask is enabled in dpu_hw_util_log_mask via debugfs. Fixes: 84a33d0fd921 ("drm/msm/dpu: add dpu_hw_wb abstraction for writeback blocks") Signed-off-by: Marijn Suijten Reviewed-by:

[Freedreno] [PATCH v3 3/3] drm/msm/dpu: Pass catalog pointers in RM to replace for-loop ID lookups

2023-04-25 Thread Marijn Suijten
The Resource Manager already iterates over all available blocks from the catalog, only to pass their ID to a dpu_hw_xxx_init() function which uses an _xxx_offset() helper to search for and find the exact same catalog pointer again to initialize the block with, fallible error handling and all. Inst

[Freedreno] [PATCH v3 2/3] drm/msm/dpu: Drop unused members from HW structs

2023-04-25 Thread Marijn Suijten
Some of these members were initialized while never read, while others were not even assigned any pointer value at all. Drop them to save some space, and above all confusion when looking at or accidentally dereferencing these members. Signed-off-by: Marijn Suijten Reviewed-by: Abhinav Kumar Revi

Re: [Freedreno] [PATCH v2 04/17] drm/msm/dpu: Fix PP_BLK_DIPHER -> DITHER typo

2023-04-25 Thread Marijn Suijten
On 2023-04-25 15:37:44, Abhinav Kumar wrote: > > > On 4/25/2023 3:15 PM, Marijn Suijten wrote: > > On 2023-04-25 14:55:56, Abhinav Kumar wrote: > > > >>> I'll see whether I can include these fixes before sending v3 (got all > >>> the other changes in and am all-ready to send it): is there any ot

Re: [Freedreno] [PATCH v3 04/21] drm/msm/dpu: Reindent REV_7xxx interrupt masks with tabs

2023-04-25 Thread Dmitry Baryshkov
On 26/04/2023 02:05, Marijn Suijten wrote: Use tabs for consistency with the other interrupt register definitions, rather than spaces. Fixes: ed6154a136e4 ("drm/msm/disp/dpu1: add intf offsets for SC7280 target") Fixes: 89688e2119b2 ("drm/msm/dpu: Add more of the INTF interrupt regions") Fixes:

Re: [Freedreno] [PATCH v3 10/21] drm/msm/dpu: Take INTF index as parameter in interrupt register defines

2023-04-25 Thread Dmitry Baryshkov
On 26/04/2023 02:06, Marijn Suijten wrote: Instead of hardcoding many register defines for every INTF and AD4 index with a fixed stride, turn the defines into singular chunks of math that compute the address using the base and this fixed stride multiplied by the index given as argument to the def

Re: [Freedreno] [PATCH v3 17/21] drm/msm/dpu: Describe TEAR interrupt registers for DSI interfaces

2023-04-25 Thread Dmitry Baryshkov
On 26/04/2023 02:06, Marijn Suijten wrote: All SoCs since DPU 5.0.0 have the tear interrupt registers moved out of the PINGPONG block and into the INTF block. Wire up the IRQ register masks in the interrupt table for enabling, reading and clearing them. Signed-off-by: Marijn Suijten --- driv

Re: [Freedreno] [PATCH v3 18/21] drm/msm/dpu: Add TEAR-READ-pointer interrupt to INTF block

2023-04-25 Thread Dmitry Baryshkov
On 26/04/2023 02:06, Marijn Suijten wrote: All SoCs since DPU 5.0.0 have the tear interrupt registers moved out of the PINGPONG block and into the INTF block. The new interrupts are described in dpu_hw_interrupts.c, now wire them up in individual SoC catalog files by setting the intr_tear_rd_ptr

Re: [Freedreno] [PATCH v3 18/21] drm/msm/dpu: Add TEAR-READ-pointer interrupt to INTF block

2023-04-25 Thread Dmitry Baryshkov
On 26/04/2023 03:06, Dmitry Baryshkov wrote: On 26/04/2023 02:06, Marijn Suijten wrote: All SoCs since DPU 5.0.0 have the tear interrupt registers moved out of the PINGPONG block and into the INTF block.  The new interrupts are described in dpu_hw_interrupts.c, now wire them up in individual SoC

Re: [Freedreno] [PATCH v3 02/21] drm/msm/dpu: Remove TE2 block and feature from DPU >= 7.0.0 hardware

2023-04-25 Thread Abhinav Kumar
On 4/25/2023 4:05 PM, Marijn Suijten wrote: No hardware beyond kona (sm8250) defines the TE2 PINGPONG sub-block offset downstream. Even though neither downstream nor upstream utilizes these registers in any way, remove the erroneous specification for SC8280XP, SM8350 and SM8450 to prevent con

Re: [Freedreno] [PATCH v3 04/21] drm/msm/dpu: Reindent REV_7xxx interrupt masks with tabs

2023-04-25 Thread Abhinav Kumar
On 4/25/2023 4:05 PM, Marijn Suijten wrote: Use tabs for consistency with the other interrupt register definitions, rather than spaces. Fixes: ed6154a136e4 ("drm/msm/disp/dpu1: add intf offsets for SC7280 target") Fixes: 89688e2119b2 ("drm/msm/dpu: Add more of the INTF interrupt regions") Fix