Re: [Freedreno] [PATCH v5 25/32] iommu/mtk: Migrate to aggregate driver

2022-01-11 Thread Stephen Boyd
Quoting Yong Wu (2022-01-11 04:22:23) > Hi Stephen, > > Thanks for helping update here. > > On Thu, 2022-01-06 at 13:45 -0800, Stephen Boyd wrote: > > Use an aggregate driver instead of component ops so that we can get > > proper driver probe ordering of the aggregate device with respect to > > all

Re: [Freedreno] [RFC PATCH 2/7] drm/msm/dp: support attaching bridges to the DP encoder

2022-01-11 Thread Dmitry Baryshkov
On Wed, 12 Jan 2022 at 02:12, Kuogee Hsieh wrote: > > > On 1/6/2022 9:26 PM, Dmitry Baryshkov wrote: > > On 07/01/2022 06:42, Stephen Boyd wrote: > >> Quoting Dmitry Baryshkov (2022-01-06 18:01:27) > >>> Currently DP driver will allocate panel bridge for eDP panels. > >>> Simplify this code to jus

Re: [Freedreno] [RFC PATCH 2/7] drm/msm/dp: support attaching bridges to the DP encoder

2022-01-11 Thread Kuogee Hsieh
On 1/6/2022 9:26 PM, Dmitry Baryshkov wrote: On 07/01/2022 06:42, Stephen Boyd wrote: Quoting Dmitry Baryshkov (2022-01-06 18:01:27) Currently DP driver will allocate panel bridge for eDP panels. Simplify this code to just check if there is any next bridge in the chain (be it a panel bridge o

Re: [Freedreno] [PATCH 1/4] drm/msm/adreno: Add support for Adreno 8c Gen 3

2022-01-11 Thread Rob Clark
On Tue, Jan 11, 2022 at 1:31 PM Akhil P Oommen wrote: > > Add support for "Adreno 8c Gen 3" gpu along with the necessary speedbin > support. > > Signed-off-by: Akhil P Oommen > --- > > drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 21 + > drivers/gpu/drm/msm/adreno/adreno_devi

[Freedreno] [PATCH 3/4] drm/msm/adreno: Expose speedbin to userspace

2022-01-11 Thread Akhil P Oommen
Expose speedbin through MSM_PARAM_CHIP_ID parameter to help userspace identify the sku. Signed-off-by: Akhil P Oommen --- drivers/gpu/drm/msm/adreno/adreno_gpu.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/msm/adreno/adreno_gpu.c b/drivers/gpu/d

[Freedreno] [PATCH 4/4] drm/msm/adreno: Update the name of 7c3 gpu

2022-01-11 Thread Akhil P Oommen
Update the name in the gpulist for 7c3 gpu as per the latest recommendation. Signed-off-by: Akhil P Oommen --- drivers/gpu/drm/msm/adreno/adreno_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/adreno/adreno_device.c b/drivers/gpu/drm/msm/adreno/

[Freedreno] [PATCH 1/4] drm/msm/adreno: Add support for Adreno 8c Gen 3

2022-01-11 Thread Akhil P Oommen
Add support for "Adreno 8c Gen 3" gpu along with the necessary speedbin support. Signed-off-by: Akhil P Oommen --- drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 21 + drivers/gpu/drm/msm/adreno/adreno_device.c | 29 ++--- drivers/gpu/drm/msm/adreno/adr

[Freedreno] [PATCH 2/4] arm64: dts: qcom: sc7280: Support gpu speedbin

2022-01-11 Thread Akhil P Oommen
Add the speedbin fuse and the required opps to support gpu sku. Signed-off-by: Akhil P Oommen --- arch/arm64/boot/dts/qcom/sc7280.dtsi | 46 1 file changed, 46 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qcom/sc728

[Freedreno] [PATCH 3/4] drm/msm/adreno: Expose speedbin to userspace

2022-01-11 Thread Akhil P Oommen
Expose speedbin through MSM_PARAM_CHIP_ID parameter to help userspace identify the sku. Signed-off-by: Akhil P Oommen --- drivers/gpu/drm/msm/adreno/adreno_gpu.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/msm/adreno/adreno_gpu.c b/drivers/gpu/d

[Freedreno] [PATCH 4/4] drm/msm/adreno: Update the name of 7c3 gpu

2022-01-11 Thread Akhil P Oommen
Update the name in the gpulist for 7c3 gpu as per the latest recommendation. Signed-off-by: Akhil P Oommen --- drivers/gpu/drm/msm/adreno/adreno_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/adreno/adreno_device.c b/drivers/gpu/drm/msm/adreno/

[Freedreno] [PATCH 1/4] drm/msm/adreno: Add support for Adreno 8c Gen 3

2022-01-11 Thread Akhil P Oommen
Add support for "Adreno 8c Gen 3" gpu along with the necessary speedbin support. Signed-off-by: Akhil P Oommen --- drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 21 + drivers/gpu/drm/msm/adreno/adreno_device.c | 29 ++--- drivers/gpu/drm/msm/adreno/adr

[Freedreno] [PATCH 2/4] arm64: dts: qcom: sc7280: Support gpu speedbin

2022-01-11 Thread Akhil P Oommen
Add the speedbin fuse and the required opps to support gpu sku. Signed-off-by: Akhil P Oommen --- arch/arm64/boot/dts/qcom/sc7280.dtsi | 46 1 file changed, 46 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qcom/sc728

Re: [Freedreno] [Nouveau] [PATCH v2 3/5] drm/dp: Move DisplayPort helpers into separate helper module

2022-01-11 Thread Lyude Paul
Acked-by: Lyude Paul On Wed, 2021-12-15 at 11:43 +0100, Thomas Zimmermann wrote: > Move DisplayPort functions into a separate module to reduce the size > of the KMS helpers. Select DRM_DP_HELPER for all users of the code. To > avoid naming conflicts, rename drm_dp_helper.c to drm_dp.c > > This c

[Freedreno] [PATCH v11 4/4] drm/msm/dp: stop link training after link training 2 failed

2022-01-11 Thread Kuogee Hsieh
Each DP link training contains link training 1 followed by link training 2. There is maximum of 5 retries of DP link training before declared link training failed. It is required to stop link training at end of link training 2 if it is failed so that next link training 1 can start freshly. This pa

[Freedreno] [PATCH v11 3/4] drm/msm/dp: add support of tps4 (training pattern 4) for HBR3

2022-01-11 Thread Kuogee Hsieh
From: Kuogee Hsieh Some DP sinkers prefer to use tps4 instead of tps3 during training #2. This patch will use tps4 to perform link training #2 if sinker's DPCD supports it. Changes in V2: -- replace dp_catalog_ctrl_set_pattern() with dp_catalog_ctrl_set_pattern_state_bit() Changes in V3: --

[Freedreno] [PATCH v11 2/4] drm/msm/dp: populate connector of struct dp_panel

2022-01-11 Thread Kuogee Hsieh
DP CTS test case 4.2.2.6 has valid edid with bad checksum on purpose and expect DP source return correct checksum. During drm edid read, correct edid checksum is calculated and stored at connector::real_edid_checksum. The problem is struct dp_panel::connector never be assigned, instead the connect

[Freedreno] [PATCH v11 1/4] drm/msm/dp: do not initialize phy until plugin interrupt received

2022-01-11 Thread Kuogee Hsieh
Current DP drivers have regulators, clocks, irq and phy are grouped together within a function and executed not in a symmetric manner. This increase difficulty of code maintenance and limited code scalability. This patch divides the driver life cycle of operation into four states, resume (including

[Freedreno] [PATCH v11 0/4] group dp driver related patches into one series

2022-01-11 Thread Kuogee Hsieh
Group below 4 dp driver related patches into one series. Kuogee Hsieh (4): drm/msm/dp: do not initialize phy until plugin interrupt received drm/msm/dp: populate connector of struct dp_panel drm/msm/dp: add support of tps4 (training pattern 4) for HBR3 drm/msm/dp: stop link training afte

Re: [Freedreno] [PATCH v5 25/32] iommu/mtk: Migrate to aggregate driver

2022-01-11 Thread Yong Wu
Hi Stephen, Thanks for helping update here. On Thu, 2022-01-06 at 13:45 -0800, Stephen Boyd wrote: > Use an aggregate driver instead of component ops so that we can get > proper driver probe ordering of the aggregate device with respect to > all > the component devices that make up the aggregate

Re: [Freedreno] [PATCH v2 3/5] drm/dp: Move DisplayPort helpers into separate helper module

2022-01-11 Thread Javier Martinez Canillas
On Wed, Dec 15, 2021 at 12:12 PM Thomas Zimmermann wrote: > > Hi > > Am 15.12.21 um 12:04 schrieb Jani Nikula: > > On Wed, 15 Dec 2021, Thomas Zimmermann wrote: > >> * move DP helper code into dp/ (Jani) > > > > I suggested adding the subdirectory, but I'm going to bikeshed the name, > > whi

Re: [Freedreno] [PATCH v10 0/5] group dp driver related patches into one series

2022-01-11 Thread Dmitry Baryshkov
On 10/01/2022 23:55, Kuogee Hsieh wrote: Group below 5 dp driver related patches into one series. Could you please rebase this on top of msm-next? Kuogee Hsieh (5): drm/msm/dp: dp_link_parse_sink_count() return immediately if aux read failed This patch is already a part of the tree