mirror of https://lore.kernel.org/lkml/
 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
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ 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	[flat|nested] 5+ 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
  2026-12-03 22:24 ` Bjorn Andersson
  2 siblings, 0 replies; 5+ 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] 5+ 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
  2026-12-03 22:24 ` Bjorn Andersson
  2 siblings, 0 replies; 5+ 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] 5+ 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
@ 2026-12-03 22:24 ` Bjorn Andersson
  2026-12-03 23:06   ` Vladimir Bely
  2 siblings, 1 reply; 5+ messages in thread
From: Bjorn Andersson @ 2026-12-03 22:24 UTC (permalink / raw)
  To: Konrad Dybcio, Vladimir Bely
  Cc: Abel Vesa, Stephan Gerhold, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, linux-arm-msm, devicetree, linux-kernel


On Sun, 29 Nov 2026 02:59:12 +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.
> 
> [...]

Applied, thanks!

[1/1] arm64: dts: qcom: msm8916: Add mdp0-mem interconnect to mdss_mdp
      commit: 4b8b733f3b2d999cd5f90d817c11f33725796a8a

Best regards,
-- 
Bjorn Andersson <andersson@kernel.org>

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

* Re: [PATCH] arm64: dts: qcom: msm8916: Add mdp0-mem interconnect to mdss_mdp
  2026-12-03 22:24 ` Bjorn Andersson
@ 2026-12-03 23:06   ` Vladimir Bely
  0 siblings, 0 replies; 5+ messages in thread
From: Vladimir Bely @ 2026-12-03 23:06 UTC (permalink / raw)
  To: Bjorn Andersson, Stephan Gerhold
  Cc: Konrad Dybcio, Abel Vesa, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, linux-arm-msm, devicetree, linux-kernel

On Thu, Dec 03, 2026 at 04:24:30PM -0600, Bjorn Andersson wrote:
> Applied, thanks!
>
> [1/1] arm64: dts: qcom: msm8916: Add mdp0-mem interconnect to mdss_mdp
>       commit: 4b8b733f3b2d999cd5f90d817c11f33725796a8a

Hi Bjorn,

Please drop this commit for now -- Stephan raised a valid concern
earlier in this thread.

I re-tested on SM-A300F without mdp0-mem and couldn't reproduce the
underruns, so the original issue was most likely fixed by another change
we made around the same time. Looking at other msm89xx platforms, none
of them wire up a single consumer on its own either.

As Stephan pointed out, adding just mdp0-mem without the remaining
consumers and sync_state() doesn't help and only complicates DT ABI, so
it makes sense to hold off on this until full interconnect support is
ready for msm8916.

Sorry for the noise!

Thanks,
Vladimir

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

end of thread, other threads:[~2026-12-03 23:07 UTC | newest]

Thread overview: 5+ 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
2026-12-03 22:24 ` Bjorn Andersson
2026-12-03 23:06   ` Vladimir Bely

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

all inboxes | Powered by JetHome®