The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH] arm64: dts: qcom: msm8916: Add mdp0-mem interconnect to mdss_mdp
@ 2026-11-28 23:59 Vladimir Bely
  2026-11-30  8:20 ` Konrad Dybcio
  2026-12-01 18:00 ` Stephan Gerhold
  0 siblings, 2 replies; 3+ messages in thread
From: Vladimir Bely @ 2026-11-28 23:59 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio
  Cc: Abel Vesa, Stephan Gerhold, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, linux-arm-msm, devicetree, linux-kernel,
	Vladimir Bely

MSM8916 already defines the bimc/snoc interconnect providers and the
qnoc-msm8916 driver is enabled by default on arm64, but the mdss_mdp node
is missing the mdp0-mem interconnect path.

Without it, mdp5 logs "No interconnect support may cause display
underflows!" on boot and does not vote for memory bus bandwidth, leading
to display interface underruns (MDP5_IRQ_INTF1_UNDER_RUN), vblank
timeouts, and subsequent IOMMU context faults under memory/I/O load.

Wire up the mdp0-mem interconnect path from SNOC MASTER_MDP_PORT0 to BIMC
SLAVE_EBI_CH0 as documented in the qcom,mdp5 binding. Tested on Samsung
Galaxy A3 (SM-A300F).

Signed-off-by: Vladimir Bely <vlwwwwww@gmail.com>
---
 arch/arm64/boot/dts/qcom/msm8916.dtsi | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi
index e39743e22..c15d13f4b 100644
--- a/arch/arm64/boot/dts/qcom/msm8916.dtsi
+++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi
@@ -1588,6 +1588,9 @@
 					      "core",
 					      "vsync";
 
+				interconnects = <&snoc MASTER_MDP_PORT0 &bimc SLAVE_EBI_CH0>;
+				interconnect-names = "mdp0-mem";
+
 				iommus = <&apps_iommu 4>;
 
 				ports {

base-commit: dde0308a2f8867806a444df1fdd7e685b1c56d5b
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] arm64: dts: qcom: msm8916: Add mdp0-mem interconnect to mdss_mdp
  2026-11-28 23:59 [PATCH] arm64: dts: qcom: msm8916: Add mdp0-mem interconnect to mdss_mdp Vladimir Bely
@ 2026-11-30  8:20 ` Konrad Dybcio
  2026-12-01 18:00 ` Stephan Gerhold
  1 sibling, 0 replies; 3+ messages in thread
From: Konrad Dybcio @ 2026-11-30  8:20 UTC (permalink / raw)
  To: Vladimir Bely, Bjorn Andersson, Konrad Dybcio
  Cc: Abel Vesa, Stephan Gerhold, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, linux-arm-msm, devicetree, linux-kernel

On 11/29/26 12:59 AM, Vladimir Bely wrote:
> MSM8916 already defines the bimc/snoc interconnect providers and the
> qnoc-msm8916 driver is enabled by default on arm64, but the mdss_mdp node
> is missing the mdp0-mem interconnect path.
> 
> Without it, mdp5 logs "No interconnect support may cause display
> underflows!" on boot and does not vote for memory bus bandwidth, leading
> to display interface underruns (MDP5_IRQ_INTF1_UNDER_RUN), vblank
> timeouts, and subsequent IOMMU context faults under memory/I/O load.
> 
> Wire up the mdp0-mem interconnect path from SNOC MASTER_MDP_PORT0 to BIMC
> SLAVE_EBI_CH0 as documented in the qcom,mdp5 binding. Tested on Samsung
> Galaxy A3 (SM-A300F).
> 
> Signed-off-by: Vladimir Bely <vlwwwwww@gmail.com>
> ---

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>

Konrad

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] arm64: dts: qcom: msm8916: Add mdp0-mem interconnect to mdss_mdp
  2026-11-28 23:59 [PATCH] arm64: dts: qcom: msm8916: Add mdp0-mem interconnect to mdss_mdp Vladimir Bely
  2026-11-30  8:20 ` Konrad Dybcio
@ 2026-12-01 18:00 ` Stephan Gerhold
  1 sibling, 0 replies; 3+ messages in thread
From: Stephan Gerhold @ 2026-12-01 18:00 UTC (permalink / raw)
  To: Vladimir Bely
  Cc: Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, linux-arm-msm, devicetree,
	linux-kernel

On Sun, Nov 29, 2026 at 02:59:12AM +0300, Vladimir Bely wrote:
> MSM8916 already defines the bimc/snoc interconnect providers and the
> qnoc-msm8916 driver is enabled by default on arm64, but the mdss_mdp node
> is missing the mdp0-mem interconnect path.
> 
> Without it, mdp5 logs "No interconnect support may cause display
> underflows!" on boot and does not vote for memory bus bandwidth, leading
> to display interface underruns (MDP5_IRQ_INTF1_UNDER_RUN), vblank
> timeouts, and subsequent IOMMU context faults under memory/I/O load.
> 

Is that something you actually reproduced or just a theory based on the
harmless log message? The current setup has been used on hundreds of
devices over the past years and I have never seen any reports of actual
display underflows.

The reason why it should work fine without this property is that the
MSM8916 interconnect driver does not have .sync_state() defined, so
effectively we should run with all interconnect clocks maxed all the
time.

It would be nice to enable proper interconnect scaling on these older
SoCs, but in practice this is a "all or nothing" thing. All drivers must
vote for neccessary bandwidth or we'll run into bad performance as soon
as the display gets disabled.

I would expect that adding individual interconnect properties without
enabling sync_state() makes no or only very little difference in
practice. On the other hand, it adds yet another setup that we will need
to support for DT ABI compatibility later. The current setup is easy to
detect because there are no interconnect consumers at all, merging this
patch would make this more complex.

Investigating which drivers currently still lack interconnect support in
msm8916.dtsi and adding support for these would be much appreciated on
the other hand. :-)

Thanks,
Stephan

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-12-01 18:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-28 23:59 [PATCH] arm64: dts: qcom: msm8916: Add mdp0-mem interconnect to mdss_mdp Vladimir Bely
2026-11-30  8:20 ` Konrad Dybcio
2026-12-01 18:00 ` Stephan Gerhold

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox