[PATCH 17/35] drm/msm/dpu: get rid of DPU_INTF_INPUT_CTRL

2024-12-13 Thread Dmitry Baryshkov
Continue migration to the MDSS-revision based checks and replace DPU_INTF_INPUT_CTRL feature bit with the core_major_ver >= 5 check. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_10_0_sm8650.h | 4 drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_0_sm8150.h |

[PATCH 15/35] drm/msm/dpu: get rid of DPU_DATA_HCTL_EN

2024-12-13 Thread Dmitry Baryshkov
Continue migration to the MDSS-revision based checks and replace DPU_DATA_HCTL_EN feature bit with the core_major_ver >= 5 check. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 3 +-- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h | 3 --- drivers/gpu/drm/ms

[PATCH 10/35] drm/msm/dpu: get rid of DPU_CTL_HAS_LAYER_EXT4

2024-12-13 Thread Dmitry Baryshkov
Continue migration to the MDSS-revision based checks and replace DPU_CTL_HAS_LAYER_EXT4 feature bit with the core_major_ver >= 9 check. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_10_0_sm8650.h | 12 ++-- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_0_sm

[PATCH 01/35] drm/msm/dpu: skip watchdog timer programming through TOP on >= SM8450

2024-12-13 Thread Dmitry Baryshkov
The SM8450 and later chips have DPU_MDP_PERIPH_0_REMOVED feature bit set, which means that those platforms have dropped some of the registers, including the WD TIMER-related ones. Stop providing the callback to program WD timer on those platforms. Fixes: 100d7ef6995d ("drm/msm/dpu: add support for

[PATCH 06/35] drm/msm/dpu: inline _setup_dsc_ops()

2024-12-13 Thread Dmitry Baryshkov
Inline the _setup_dsc_ops() function, it makes it easier to handle different conditions involving DSC configuration. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_dsc.c | 17 ++--- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/drivers/gpu/d

[PATCH 04/35] drm/msm/dpu: drop INTF_SC7280_MASK

2024-12-13 Thread Dmitry Baryshkov
The INTF_SC7280_MASK is equal to the INTF_SC7180_MASK. Stop defining a separate symbol and use the INTF_SC7180_MASK instead. Signed-off-by: Dmitry Baryshkov --- .../gpu/drm/msm/disp/dpu1/catalog/dpu_10_0_sm8650.h| 8 drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h | 8 -

[PATCH 00/35] drm/msm/dpu: rework HW block feature handling

2024-12-13 Thread Dmitry Baryshkov
| 2 +- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c| 4 +- drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c | 17 ++- 50 files changed, 295 insertions(+), 836 deletions(-) --- base-commit: 789384eb1437aed94155dc0eac8a8a6ba1baf578 change-id: 20241213-dpu-drop-features-7603dc3ee1

[PATCH 02/35] drm/msm/dpu: enable DPU_WB_INPUT_CTRL for DPU 5.x

2024-12-13 Thread Dmitry Baryshkov
Several DPU 5.x platforms are supposed to be using DPU_WB_INPUT_CTRL, to bind WB and PINGPONG blocks, but they do not. Change those platforms to use WB_SM8250_MASK, which includes that bit. Fixes: 1f5bcc4316b3 ("drm/msm/dpu: enable writeback on SC8108X") Fixes: ab2b03d73a66 ("drm/msm/dpu: enable w

[PATCH 25/35] drm/msm/dpu: get rid of DPU_DSC_HW_REV_1_2

2024-12-13 Thread Dmitry Baryshkov
Continue migration to the MDSS-revision based checks and replace DPU_DSC_HW_REV_1_2 feature bit with the core_major_ver >= 7 check. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_10_0_sm8650.h | 10 -- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h

[PATCH 09/35] drm/msm/dpu: remove DSPP_SC7180_MASK

2024-12-13 Thread Dmitry Baryshkov
Stop declaring DPU_DSPP_PCC as a part of the DSPP features, use the presence of the PCC sblk to check whether PCC is present in the hardware or not. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_10_0_sm8650.h | 4 drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_1_

[PATCH 08/35] drm/msm/dpu: inline _setup_mixer_ops()

2024-12-13 Thread Dmitry Baryshkov
Inline the _setup_mixer_ops() function, it makes it easier to handle different conditions involving LM configuration. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_lm.c | 24 +--- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/driver

[PATCH 12/35] drm/msm/dpu: get rid of DPU_CTL_FETCH_ACTIVE

2024-12-13 Thread Dmitry Baryshkov
Continue migration to the MDSS-revision based checks and replace DPU_CTL_FETCH_ACTIVE feature bit with the core_major_ver >= 7 check. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 3 +-- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h | 2 -- drivers/gpu/drm

[PATCH 14/35] drm/msm/dpu: get rid of DPU_CTL_VM_CFG

2024-12-13 Thread Dmitry Baryshkov
Continue migration to the MDSS-revision based checks and replace DPU_CTL_VM_CFG feature bit with the core_major_ver >= 7 check. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_10_0_sm8650.h | 8 ++-- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h | 8

[PATCH 16/35] drm/msm/dpu: get rid of DPU_INTF_STATUS_SUPPORTED

2024-12-13 Thread Dmitry Baryshkov
Continue migration to the MDSS-revision based checks and replace DPU_INTF_STATUS_SUPPORTED feature bit with the core_major_ver >= 5 check. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 3 +-- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h | 2 -- drivers/gp

[PATCH 07/35] drm/msm/dpu: inline _setup_dspp_ops()

2024-12-13 Thread Dmitry Baryshkov
Inline the _setup_dspp_ops() function, it makes it easier to handle different conditions involving DSPP configuration. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_dspp.c | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/ms

[PATCH 13/35] drm/msm/dpu: get rid of DPU_CTL_DSPP_SUB_BLOCK_FLUSH

2024-12-13 Thread Dmitry Baryshkov
Continue migration to the MDSS-revision based checks and replace DPU_CTL_DSPP_SUB_BLOCK_FLUSH feature bit with the core_major_ver >= 7 check. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 3 +-- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h | 2 -- drivers

[PATCH 11/35] drm/msm/dpu: get rid of DPU_CTL_ACTIVE_CFG

2024-12-13 Thread Dmitry Baryshkov
Continue migration to the MDSS-revision based checks and replace DPU_CTL_ACTIVE_CFG feature bit with the core_major_ver >= 5 check. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_0_sm8150.h | 8 ++-- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h |

[PATCH 34/35] drm/msm/dpu: get rid of DPU_CTL_SPLIT_DISPLAY

2024-12-13 Thread Dmitry Baryshkov
Continue cleanup of the feature flags and replace the last remaining CTL feature with a bitfield flag, simplifying corresponding data structures and access. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_10_0_sm8650.h | 6 +++--- drivers/gpu/drm/msm/disp/dpu1/cat

[PATCH 35/35] drm/msm/dpu: move features out of the DPU_HW_BLK_INFO

2024-12-13 Thread Dmitry Baryshkov
Only SSPP, WB and VBIF still have feature bits remaining, all other hardware blocks don't have feature bits anymore. Remove the 'features' from the DPU_HW_BLK_INFO so that it doesn't get included into hw info structures by default and only include it when necessary. Signed-off-by: Dmitry Baryshkov

[PATCH 33/35] drm/msm/dpu: get rid of DPU_DSC_NATIVE_42x_EN

2024-12-13 Thread Dmitry Baryshkov
Continue cleanup of the feature flags and replace the last remaining LM feature with a bitfield flag, simplifying corresponding data structures and access. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_10_0_sm8650.h | 8 drivers/gpu/drm/msm/disp/dpu1/ca

[PATCH 32/35] drm/msm/dpu: get rid of DPU_MIXER_SOURCESPLIT

2024-12-13 Thread Dmitry Baryshkov
Continue cleanup of the feature flags and replace the last remaining LM feature with a bitfield flag, simplifying corresponding data structures and access. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_10_0_sm8650.h | 12 ++-- drivers/gpu/drm/msm/disp/dpu

[PATCH 28/35] drm/msm/dpu: get rid of DPU_SSPP_QOS_8LVL

2024-12-13 Thread Dmitry Baryshkov
Continue migration to the MDSS-revision based checks and replace DPU_SSPP_QOS_8LVL feature bit with the core_major_ver >= 4 check. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 6 +++--- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h | 2 -- drivers/gpu/drm

[PATCH 26/35] drm/msm/dpu: get rid of DPU_DSC_OUTPUT_CTRL

2024-12-13 Thread Dmitry Baryshkov
Continue migration to the MDSS-revision based checks and replace DPU_DSC_OUTPUT_CTRL feature bit with the core_major_ver >= 5 check. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_0_sm8150.h | 4 drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h | 6 -

[PATCH 30/35] drm/msm/dpu: drop ununused PINGPONG features

2024-12-13 Thread Dmitry Baryshkov
The DPU_PINGPONG_TE2 is unused by the current code (and can further be replaced by the checking for the te2 sblk presense). Other feature bits are completely unused. Drop them from the current codebase. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_1_7_msm8996.h |

[PATCH 22/35] drm/msm/dpu: get rid of DPU_MDP_AUDIO_SELECT

2024-12-13 Thread Dmitry Baryshkov
Continue migration to the MDSS-revision based checks and replace DPU_MDP_AUDIO_SELECT feature bit with the core_major_ver == 8 || core_major_ver == 5 check. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_4_0_sdm845.h | 1 - drivers/gpu/drm/msm/disp/dpu1/catalog/dp

[PATCH 23/35] drm/msm/dpu: get rid of DPU_MIXER_COMBINED_ALPHA

2024-12-13 Thread Dmitry Baryshkov
Continue migration to the MDSS-revision based checks and replace DPU_MIXER_COMBINED_ALPHA feature bit with the core_major_ver >= 4 check. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 4 ++-- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h | 2 -- drivers/gp

[PATCH 31/35] drm/msm/dpu: drop ununused MIXER features

2024-12-13 Thread Dmitry Baryshkov
Drop unused LM features from the current codebase. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw

[PATCH 29/35] drm/msm/dpu: drop unused MDP TOP features

2024-12-13 Thread Dmitry Baryshkov
Drop unused MDP TOP features from the current codebase. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h | 13 - 1 file changed, 13 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_cata

[PATCH 27/35] drm/msm/dpu: get rid of DPU_WB_INPUT_CTRL

2024-12-13 Thread Dmitry Baryshkov
Continue migration to the MDSS-revision based checks and replace DPU_WB_INPUT_CTRL feature bit with the core_major_ver >= 5 check. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_10_0_sm8650.h | 2 +- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_0_sm8150.h | 2 +-

[PATCH 18/35] drm/msm/dpu: get rid of DPU_PINGPONG_DSC

2024-12-13 Thread Dmitry Baryshkov
Continue migration to the MDSS-revision based checks and replace DPU_PINGPONG_DSC feature bit with the core_major_ver < 7 check. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_1_14_msm8937.h | 2 -- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_1_15_msm8917.h | 1 -

[PATCH 19/35] drm/msm/dpu: get rid of DPU_PINGPONG_DITHER

2024-12-13 Thread Dmitry Baryshkov
Continue migration to the MDSS-revision based checks and replace DPU_PINGPONG_DITHER feature bit with the core_major_ver >= 3 check. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_10_0_sm8650.h | 10 -- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998

[PATCH 20/35] drm/msm/dpu: get rid of DPU_MDP_VSYNC_SEL

2024-12-13 Thread Dmitry Baryshkov
Continue migration to the MDSS-revision based checks and replace DPU_MDP_VSYNC_SEL feature bit with the core_major_ver < 5 check. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_1_14_msm8937.h | 1 - drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_1_15_msm8917.h | 1 - dr

[PATCH 05/35] drm/msm/dpu: inline _setup_ctl_ops()

2024-12-13 Thread Dmitry Baryshkov
Inline the _setup_ctl_ops() function, it makes it easier to handle different conditions involving CTL configuration. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c | 96 ++ 1 file changed, 46 insertions(+), 50 deletions(-) diff --git a

[PATCH 21/35] drm/msm/dpu: get rid of DPU_MDP_PERIPH_0_REMOVED

2024-12-13 Thread Dmitry Baryshkov
Continue migration to the MDSS-revision based checks and replace DPU_MDP_PERIPH_0_REMOVED feature bit with the core_major_ver >= 8 check. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_10_0_sm8650.h | 1 - drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h |

[PATCH 24/35] drm/msm/dpu: get rid of DPU_DIM_LAYER

2024-12-13 Thread Dmitry Baryshkov
Continue migration to the MDSS-revision based checks and drop the DPU_DIM_LAYER feature bit. It is currently unused, but can be replaed with the core_major_ver >= 4 check. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_4_sm6125.h | 2 -- drivers/gpu/drm/msm/disp

[PATCH v3] drm/msm/a6xx: Add support for Adreno 612

2024-12-13 Thread Akhil P Oommen
From: Jie Zhang Add support for Adreno 612 GPU found in SM6150/QCS615 chipsets. A612 falls under ADRENO_6XX_GEN1 family and is a cut down version of A615 GPU. A612 has a new IP called Reduced Graphics Management Unit or RGMU which is a small state machine which helps to toggle GX GDSC (connected

Re: [PATCH v4 9/9] arm64: dts: qcom: Add display support for QCS615 RIDE board

2024-12-13 Thread fange zhang
On 2024/12/10 19:02, Dmitry Baryshkov wrote: On Tue, Dec 10, 2024 at 02:54:00PM +0800, Fange Zhang wrote: From: Li Liu Add display MDSS and DSI configuration for QCS615 RIDE board. QCS615 has a DP port, and DP support will be added in a later patch. Signed-off-by: Li Liu Signed-off-by: Fa

Re: [PATCH v4 9/9] arm64: dts: qcom: Add display support for QCS615 RIDE board

2024-12-13 Thread Dmitry Baryshkov
On Fri, 13 Dec 2024 at 11:21, fange zhang wrote: > > > > On 2024/12/10 19:02, Dmitry Baryshkov wrote: > > On Tue, Dec 10, 2024 at 02:54:00PM +0800, Fange Zhang wrote: > >> From: Li Liu > >> > >> Add display MDSS and DSI configuration for QCS615 RIDE board. > >> QCS615 has a DP port, and DP suppor

Re: [PATCH v2 2/4] dt-bindings: display/msm/gmu: Document RGMU

2024-12-13 Thread Konrad Dybcio
On 13.12.2024 11:35 AM, Akhil P Oommen wrote: > RGMU a.k.a Reduced Graphics Management Unit is a small state machine > with the sole purpose of providing IFPC support. Compared to GMU, it > doesn't manage GPU clock, voltage scaling, bw voting or any other > functionalities. All it does is detect an

Re: [PATCH v2 3/4] arm64: dts: qcom: qcs615: Add gpu and gmu nodes

2024-12-13 Thread Konrad Dybcio
On 13.12.2024 11:35 AM, Akhil P Oommen wrote: > From: Jie Zhang > > Add gpu and gmu nodes for qcs615 chipset. > > Signed-off-by: Jie Zhang > Signed-off-by: Akhil P Oommen > Reviewed-by: Dmitry Baryshkov > --- > arch/arm64/boot/dts/qcom/qcs615.dtsi | 88 >

Re: [PATCH v2 4/4] arm64: dts: qcom: qcs615-ride: Enable Adreno 612 GPU

2024-12-13 Thread Konrad Dybcio
On 13.12.2024 11:35 AM, Akhil P Oommen wrote: > From: Jie Zhang > > Enable GPU for qcs615-ride platform and provide path for zap > shader. > > Signed-off-by: Jie Zhang > Signed-off-by: Akhil P Oommen > --- Reviewed-by: Konrad Dybcio Konrad

Re: [PATCH v2 0/4] Devicetree changes for QCS615's GPU

2024-12-13 Thread Akhil P Oommen
On 12/13/2024 4:05 PM, Akhil P Oommen wrote: > This series adds support for Adreno 612 to QCS615 chipset's devicetree. > DRM driver's support was posted earlier and can be found here: > https://patchwork.freedesktop.org/patch/626066/ > > Patch#1 & #2 are for Rob Clark and the other 2 for Bjo

[PATCH RESEND v2 01/26] dt-bindings: qcom,pdc: document QCS615 Power Domain Controller

2024-12-13 Thread Akhil P Oommen
From: Lijuan Gao Add a compatible for the Power Domain Controller on QCS615 platform. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Lijuan Gao --- Documentation/devicetree/bindings/interrupt-controller/qcom,pdc.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetr

[PATCH RESEND v2 0/4] Devicetree changes for QCS615's GPU

2024-12-13 Thread Akhil P Oommen
This series adds support for Adreno 612 to QCS615 chipset's devicetree. DRM driver's support was posted earlier and can be found here: https://patchwork.freedesktop.org/patch/626066/ Patch#1 & #2 are for Rob Clark and the other 2 for Bjorn Signed-off-by: Akhil P Oommen --- Changes in v2:

[PATCH RESEND v2 2/4] dt-bindings: display/msm/gmu: Document RGMU

2024-12-13 Thread Akhil P Oommen
RGMU a.k.a Reduced Graphics Management Unit is a small state machine with the sole purpose of providing IFPC support. Compared to GMU, it doesn't manage GPU clock, voltage scaling, bw voting or any other functionalities. All it does is detect an idle GPU and toggle the GDSC switch. So it doesn't re

[PATCH RESEND v2 1/4] dt-bindings: display/msm: gpu: Document A612 GPU

2024-12-13 Thread Akhil P Oommen
A612 GPU requires an additional smmu_vote clock. Update the bindings to reflect this. Signed-off-by: Akhil P Oommen --- .../devicetree/bindings/display/msm/gpu.yaml | 36 ++ 1 file changed, 36 insertions(+) diff --git a/Documentation/devicetree/bindings/display/msm/gpu

[PATCH RESEND v2 3/4] arm64: dts: qcom: qcs615: Add gpu and gmu nodes

2024-12-13 Thread Akhil P Oommen
From: Jie Zhang Add gpu and gmu nodes for qcs615 chipset. Signed-off-by: Jie Zhang Signed-off-by: Akhil P Oommen Reviewed-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/qcs615.dtsi | 88 1 file changed, 88 insertions(+) diff --git a/arch/arm64/boot/dt

[PATCH RESEND v2 4/4] arm64: dts: qcom: qcs615-ride: Enable Adreno 612 GPU

2024-12-13 Thread Akhil P Oommen
From: Jie Zhang Enable GPU for qcs615-ride platform and provide path for zap shader. Signed-off-by: Jie Zhang Signed-off-by: Akhil P Oommen --- arch/arm64/boot/dts/qcom/qcs615-ride.dts | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qcs615-ride.dts b/arch

[PATCH RESEND v2 00/26] Devicetree changes for QCS615's GPU

2024-12-13 Thread Akhil P Oommen
This series adds support for Adreno 612 to QCS615 chipset's devicetree. DRM driver's support was posted earlier and can be found here: https://patchwork.freedesktop.org/patch/626066/ Patch#1 & #2 are for Rob Clark and the other 2 for Bjorn Signed-off-by: Akhil P Oommen --- Changes in v2:

Re: [PATCH RESEND v2 01/26] dt-bindings: qcom,pdc: document QCS615 Power Domain Controller

2024-12-13 Thread Akhil P Oommen
On 12/13/2024 4:54 PM, Akhil P Oommen wrote: > From: Lijuan Gao > > Add a compatible for the Power Domain Controller on QCS615 platform. > > Reviewed-by: Krzysztof Kozlowski > Signed-off-by: Lijuan Gao > --- > Documentation/devicetree/bindings/interrupt-controller/qcom,pdc.yaml | 1 + > 1 fil

Re: [PATCH RESEND v2 00/26] Devicetree changes for QCS615's GPU

2024-12-13 Thread Akhil P Oommen
On 12/13/2024 4:54 PM, Akhil P Oommen wrote: > This series adds support for Adreno 612 to QCS615 chipset's devicetree. > DRM driver's support was posted earlier and can be found here: > https://patchwork.freedesktop.org/patch/626066/ > > Patch#1 & #2 are for Rob Clark and the other 2 for Bjo

[PATCH v2 0/4] Devicetree changes for QCS615's GPU

2024-12-13 Thread Akhil P Oommen
This series adds support for Adreno 612 to QCS615 chipset's devicetree. DRM driver's support was posted earlier and can be found here: https://patchwork.freedesktop.org/patch/626066/ Patch#1 & #2 are for Rob Clark and the other 2 for Bjorn Signed-off-by: Akhil P Oommen --- Changes in v2:

[PATCH v2 1/4] dt-bindings: display/msm: gpu: Document A612 GPU

2024-12-13 Thread Akhil P Oommen
A612 GPU requires an additional smmu_vote clock. Update the bindings to reflect this. Signed-off-by: Akhil P Oommen --- .../devicetree/bindings/display/msm/gpu.yaml | 36 ++ 1 file changed, 36 insertions(+) diff --git a/Documentation/devicetree/bindings/display/msm/gpu

[PATCH v2 2/4] dt-bindings: display/msm/gmu: Document RGMU

2024-12-13 Thread Akhil P Oommen
RGMU a.k.a Reduced Graphics Management Unit is a small state machine with the sole purpose of providing IFPC support. Compared to GMU, it doesn't manage GPU clock, voltage scaling, bw voting or any other functionalities. All it does is detect an idle GPU and toggle the GDSC switch. So it doesn't re

[PATCH v2 3/4] arm64: dts: qcom: qcs615: Add gpu and gmu nodes

2024-12-13 Thread Akhil P Oommen
From: Jie Zhang Add gpu and gmu nodes for qcs615 chipset. Signed-off-by: Jie Zhang Signed-off-by: Akhil P Oommen Reviewed-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/qcs615.dtsi | 88 1 file changed, 88 insertions(+) diff --git a/arch/arm64/boot/dt

[PATCH v2 4/4] arm64: dts: qcom: qcs615-ride: Enable Adreno 612 GPU

2024-12-13 Thread Akhil P Oommen
From: Jie Zhang Enable GPU for qcs615-ride platform and provide path for zap shader. Signed-off-by: Jie Zhang Signed-off-by: Akhil P Oommen --- arch/arm64/boot/dts/qcom/qcs615-ride.dts | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qcs615-ride.dts b/arch

Re: [PATCH v5 5/7] drm/msm: adreno: enable GMU bandwidth for A740 and A750

2024-12-13 Thread Konrad Dybcio
On 12.12.2024 10:36 PM, Neil Armstrong wrote: > On 12/12/2024 21:32, Konrad Dybcio wrote: >> On 11.12.2024 9:29 AM, Neil Armstrong wrote: >>> Now all the DDR bandwidth voting via the GPU Management Unit (GMU) >>> is in place, declare the Bus Control Modules (BCMs) and the >>> corresponding paramete

Re: [PATCH] drm/ci: add kms_cursor_legacy@torture-bo to apq8016 flakes

2024-12-13 Thread Abhinav Kumar
Hi Vignesh On 12/11/2024 9:10 PM, Vignesh Raman wrote: Hi Abhinav / Helen, On 12/12/24 01:48, Abhinav Kumar wrote: Hi Helen / Vignesh On 12/4/2024 12:33 PM, Helen Mae Koike Fornazier wrote: On Wed, 04 Dec 2024 16:21:26 -0300 Abhinav Kumar  wrote ---   > Hi Helen   >   > On 12/4/202

Re: [RFC] drm/msm: Add UABI to request perfcntr usage

2024-12-13 Thread Rob Clark
On Fri, Dec 13, 2024 at 8:47 AM Akhil P Oommen wrote: > > On 12/12/2024 10:42 PM, Rob Clark wrote: > > On Thu, Dec 12, 2024 at 9:08 AM Rob Clark wrote: > >> > >> On Thu, Dec 12, 2024 at 7:59 AM Akhil P Oommen > >> wrote: > >>> > >>> On 12/5/2024 10:24 PM, Rob Clark wrote: > From: Rob Clark

Re: [PATCH] drm/msm/dpu: Filter modes based on adjusted mode clock

2024-12-13 Thread Abhinav Kumar
On 12/12/2024 5:05 PM, Dmitry Baryshkov wrote: On Thu, Dec 12, 2024 at 11:11:54AM -0800, Jessica Zhang wrote: Filter out modes that have a clock rate greater than the max core clock rate when adjusted for the perf clock factor This is especially important for chipsets such as QCS615 that hav

Re: [PATCH] drm/msm/dpu: Filter modes based on adjusted mode clock

2024-12-13 Thread Dmitry Baryshkov
On Fri, 13 Dec 2024 at 21:15, Abhinav Kumar wrote: > > > > On 12/12/2024 5:05 PM, Dmitry Baryshkov wrote: > > On Thu, Dec 12, 2024 at 11:11:54AM -0800, Jessica Zhang wrote: > >> Filter out modes that have a clock rate greater than the max core clock > >> rate when adjusted for the perf clock facto

Re: [PATCH RESEND v2 4/4] arm64: dts: qcom: qcs615-ride: Enable Adreno 612 GPU

2024-12-13 Thread Dmitry Baryshkov
On Fri, 13 Dec 2024 at 13:32, Akhil P Oommen wrote: > > From: Jie Zhang > > Enable GPU for qcs615-ride platform and provide path for zap > shader. > > Signed-off-by: Jie Zhang > Signed-off-by: Akhil P Oommen > --- > arch/arm64/boot/dts/qcom/qcs615-ride.dts | 8 > 1 file changed, 8 ins

Re: [RFC] drm/msm: Add UABI to request perfcntr usage

2024-12-13 Thread Akhil P Oommen
On 12/12/2024 10:42 PM, Rob Clark wrote: > On Thu, Dec 12, 2024 at 9:08 AM Rob Clark wrote: >> >> On Thu, Dec 12, 2024 at 7:59 AM Akhil P Oommen >> wrote: >>> >>> On 12/5/2024 10:24 PM, Rob Clark wrote: From: Rob Clark Performance counter usage falls into two categories: >>>

Re: [RFC] drm/msm: Add UABI to request perfcntr usage

2024-12-13 Thread Akhil P Oommen
On 12/12/2024 9:44 PM, Antonino Maniscalco wrote: > On 12/12/24 4:58 PM, Akhil P Oommen wrote: >> On 12/5/2024 10:24 PM, Rob Clark wrote: >>> From: Rob Clark >>> >>> Performance counter usage falls into two categories: >>> >>> 1. Local usage, where the counter configuration, start, and end read >>

Re: [PATCH v5 4/7] drm/msm: adreno: find bandwidth index of OPP and set it along freq index

2024-12-13 Thread Akhil P Oommen
On 12/13/2024 10:10 PM, neil.armstr...@linaro.org wrote: > On 13/12/2024 17:31, Konrad Dybcio wrote: >> On 13.12.2024 5:28 PM, neil.armstr...@linaro.org wrote: >>> On 13/12/2024 16:37, Konrad Dybcio wrote: On 13.12.2024 2:12 PM, Akhil P Oommen wrote: > On 12/13/2024 3:07 AM, Neil Armstrong

Re: [PATCH v5 4/7] drm/msm: adreno: find bandwidth index of OPP and set it along freq index

2024-12-13 Thread Konrad Dybcio
On 13.12.2024 2:12 PM, Akhil P Oommen wrote: > On 12/13/2024 3:07 AM, Neil Armstrong wrote: >> On 12/12/2024 21:21, Konrad Dybcio wrote: >>> On 11.12.2024 9:29 AM, Neil Armstrong wrote: The Adreno GPU Management Unit (GMU) can also scale the DDR Bandwidth along the Frequency and Power Dom

Re: [PATCH RESEND v2 3/4] arm64: dts: qcom: qcs615: Add gpu and gmu nodes

2024-12-13 Thread Konrad Dybcio
On 13.12.2024 12:31 PM, Akhil P Oommen wrote: > From: Jie Zhang > > Add gpu and gmu nodes for qcs615 chipset. > > Signed-off-by: Jie Zhang > Signed-off-by: Akhil P Oommen > Reviewed-by: Dmitry Baryshkov > --- Reviewed-by: Konrad Dybcio Konrad

Re: [PATCH RESEND v2 3/4] arm64: dts: qcom: qcs615: Add gpu and gmu nodes

2024-12-13 Thread Konrad Dybcio
On 13.12.2024 4:09 PM, Konrad Dybcio wrote: > On 13.12.2024 12:31 PM, Akhil P Oommen wrote: >> From: Jie Zhang >> >> Add gpu and gmu nodes for qcs615 chipset. >> >> Signed-off-by: Jie Zhang >> Signed-off-by: Akhil P Oommen >> Reviewed-by: Dmitry Baryshkov >> --- > > Reviewed-by: Konrad Dybcio

Re: [PATCH] drm/msm: UAPI error reporting

2024-12-13 Thread Konrad Dybcio
On 13.12.2024 4:55 PM, Rob Clark wrote: > On Fri, Dec 13, 2024 at 5:11 AM Konrad Dybcio > wrote: >> >> On 23.11.2024 3:41 AM, Rob Clark wrote: >>> On Fri, Nov 22, 2024 at 4:19 PM Konrad Dybcio >>> wrote: On 22.11.2024 4:51 PM, Rob Clark wrote: > On Fri, Nov 22, 2024 at 4:21 AM Konra

Re: [PATCH v5 4/7] drm/msm: adreno: find bandwidth index of OPP and set it along freq index

2024-12-13 Thread neil . armstrong
On 13/12/2024 16:37, Konrad Dybcio wrote: On 13.12.2024 2:12 PM, Akhil P Oommen wrote: On 12/13/2024 3:07 AM, Neil Armstrong wrote: On 12/12/2024 21:21, Konrad Dybcio wrote: On 11.12.2024 9:29 AM, Neil Armstrong wrote: The Adreno GPU Management Unit (GMU) can also scale the DDR Bandwidth alon

Re: [PATCH v5 5/7] drm/msm: adreno: enable GMU bandwidth for A740 and A750

2024-12-13 Thread Akhil P Oommen
On 12/13/2024 6:09 PM, Konrad Dybcio wrote: > On 12.12.2024 10:36 PM, Neil Armstrong wrote: >> On 12/12/2024 21:32, Konrad Dybcio wrote: >>> On 11.12.2024 9:29 AM, Neil Armstrong wrote: Now all the DDR bandwidth voting via the GPU Management Unit (GMU) is in place, declare the Bus Control

Re: [PATCH v2 3/4] arm64: dts: qcom: qcs615: Add gpu and gmu nodes

2024-12-13 Thread Akhil P Oommen
On 12/13/2024 4:27 PM, Konrad Dybcio wrote: > On 13.12.2024 11:35 AM, Akhil P Oommen wrote: >> From: Jie Zhang >> >> Add gpu and gmu nodes for qcs615 chipset. >> >> Signed-off-by: Jie Zhang >> Signed-off-by: Akhil P Oommen >> Reviewed-by: Dmitry Baryshkov >> --- >> arch/arm64/boot/dts/qcom/qcs

Re: [PATCH v2 2/4] dt-bindings: display/msm/gmu: Document RGMU

2024-12-13 Thread Akhil P Oommen
On 12/13/2024 4:23 PM, Konrad Dybcio wrote: > On 13.12.2024 11:35 AM, Akhil P Oommen wrote: >> RGMU a.k.a Reduced Graphics Management Unit is a small state machine >> with the sole purpose of providing IFPC support. Compared to GMU, it >> doesn't manage GPU clock, voltage scaling, bw voting or any

Re: [PATCH v5 4/7] drm/msm: adreno: find bandwidth index of OPP and set it along freq index

2024-12-13 Thread Konrad Dybcio
On 13.12.2024 5:28 PM, neil.armstr...@linaro.org wrote: > On 13/12/2024 16:37, Konrad Dybcio wrote: >> On 13.12.2024 2:12 PM, Akhil P Oommen wrote: >>> On 12/13/2024 3:07 AM, Neil Armstrong wrote: On 12/12/2024 21:21, Konrad Dybcio wrote: > On 11.12.2024 9:29 AM, Neil Armstrong wrote:

Re: [PATCH v5 4/7] drm/msm: adreno: find bandwidth index of OPP and set it along freq index

2024-12-13 Thread neil . armstrong
On 13/12/2024 17:31, Konrad Dybcio wrote: On 13.12.2024 5:28 PM, neil.armstr...@linaro.org wrote: On 13/12/2024 16:37, Konrad Dybcio wrote: On 13.12.2024 2:12 PM, Akhil P Oommen wrote: On 12/13/2024 3:07 AM, Neil Armstrong wrote: On 12/12/2024 21:21, Konrad Dybcio wrote: On 11.12.2024 9:29 A

Re: [PATCH v5 4/7] drm/msm: adreno: find bandwidth index of OPP and set it along freq index

2024-12-13 Thread Akhil P Oommen
On 12/13/2024 3:07 AM, Neil Armstrong wrote: > On 12/12/2024 21:21, Konrad Dybcio wrote: >> On 11.12.2024 9:29 AM, Neil Armstrong wrote: >>> The Adreno GPU Management Unit (GMU) can also scale the DDR Bandwidth >>> along the Frequency and Power Domain level, until now we left the OPP >>> core scale

Re: [PATCH] drm/msm: UAPI error reporting

2024-12-13 Thread Rob Clark
On Fri, Dec 13, 2024 at 5:11 AM Konrad Dybcio wrote: > > On 23.11.2024 3:41 AM, Rob Clark wrote: > > On Fri, Nov 22, 2024 at 4:19 PM Konrad Dybcio > > wrote: > >> > >> On 22.11.2024 4:51 PM, Rob Clark wrote: > >>> On Fri, Nov 22, 2024 at 4:21 AM Konrad Dybcio > >>> wrote: > > On 21.11.

Re: [PATCH] drm/msm: UAPI error reporting

2024-12-13 Thread Konrad Dybcio
On 23.11.2024 3:41 AM, Rob Clark wrote: > On Fri, Nov 22, 2024 at 4:19 PM Konrad Dybcio > wrote: >> >> On 22.11.2024 4:51 PM, Rob Clark wrote: >>> On Fri, Nov 22, 2024 at 4:21 AM Konrad Dybcio >>> wrote: On 21.11.2024 5:48 PM, Rob Clark wrote: > From: Rob Clark > > Debuggin

Re: [RFC] drm/msm: Add UABI to request perfcntr usage

2024-12-13 Thread Antonino Maniscalco
On 12/13/24 5:50 PM, Akhil P Oommen wrote: On 12/12/2024 9:44 PM, Antonino Maniscalco wrote: On 12/12/24 4:58 PM, Akhil P Oommen wrote: On 12/5/2024 10:24 PM, Rob Clark wrote: From: Rob Clark Performance counter usage falls into two categories: 1. Local usage, where the counter configuratio

Re: [PATCH v5 4/7] drm/msm: adreno: find bandwidth index of OPP and set it along freq index

2024-12-13 Thread Konrad Dybcio
On 13.12.2024 5:55 PM, Akhil P Oommen wrote: > On 12/13/2024 10:10 PM, neil.armstr...@linaro.org wrote: >> On 13/12/2024 17:31, Konrad Dybcio wrote: >>> On 13.12.2024 5:28 PM, neil.armstr...@linaro.org wrote: On 13/12/2024 16:37, Konrad Dybcio wrote: > On 13.12.2024 2:12 PM, Akhil P Oommen

[PATCH 03/35] drm/msm/dpu: stop passing mdss_ver to setup_timing_gen()

2024-12-13 Thread Dmitry Baryshkov
As a preparation to further MDSS-revision cleanups stop passing MDSS revision to the setup_timing_gen() callback. Instead store a pointer to it inside struct dpu_hw_intf and use it diretly. It's not that the MDSS revision can chance between dpu_hw_intf_init() and dpu_encoder_phys_vid_setup_timing_e