From: Tony Lindgren <tony@atomide.com>
To: Aaro Koskinen <aaro.koskinen@iki.fi>
Cc: "Felipe Balbi" <balbi@ti.com>,
"Peter Kümmel" <syntheticpp@gmx.net>,
linux-omap@vger.kernel.org, "Pavel Machek" <pavel@ucw.cz>,
"Russell King" <rmk+kernel@arm.linux.org.uk>,
"Santosh Shilimkar" <ssantosh@kernel.org>
Subject: Re: 3.18.1->3.19-rc2: In-band Error seen by MPU
Date: Mon, 5 Jan 2015 16:12:51 -0800 [thread overview]
Message-ID: <20150106001251.GQ4081@atomide.com> (raw)
In-Reply-To: <20150105231620.GC30544@fuloong-minipc.musicnaut.iki.fi>
* Aaro Koskinen <aaro.koskinen@iki.fi> [150105 15:19]:
> Hi,
>
> On Mon, Jan 05, 2015 at 09:43:13AM -0600, Felipe Balbi wrote:
> > On Sat, Jan 03, 2015 at 02:16:22PM +0200, Aaro Koskinen wrote:
> > > > > > > > >>>When updating (custom DM3730 board) from 3.18.1 ro 3.19-rc2
> > > > > > > > >>>I see a "In-band ERROR" warning which wasn't present in 3.18.1.
> > > > > > > > >>>Could it be that I missed some DT updates?
> > > > > > > > >>
> > > > > > > > >>>[ 0.366882] In-band Error seen by MPU at address 0
> > > > > > > > >>>[ 0.366912] ------------[ cut here ]------------
> > > > > > > > >>>[ 0.366943] WARNING: CPU: 0 PID: 1 at drivers/bus/omap_l3_smx.c:166 omap3_l3_app_irq+0x100/0x134()
> > > > > > > > >>
> > > > > > > > >>This appears also on N900/N950/N9...
> > > > > > > > >
> > > > > > > > >Do you have CONFIG_PREEMPT enabled? It seems there's some
> > > > > > > > >regression related to CONFIG_PREEMPT that started happening
> > > > > > > > >with the merge window?
> > > > > > > >
> > > > > > > > Indeed, when I disable CONFIG_PREEMPT the warning is gone.
> > > > > > >
> > > > > > > Yeah, disabling CONFIG_PREEMPT helps here too. Is there some e-mail
> > > > > > > thread / patch set for this already; or should we try to bisect this?
> > > > > >
> > > > > > AFAIK I'm not aware of other threads, I noticied it with the
> > > > > > "OMAP 4430 SDP: rather sick with recent kernels" thread, but
> > > > > > never got anywhere with it.
> > > > > >
> > > > > > Yeah it seems it's somewhere between v3.18 and v3.19-rc1, but
> > > > > > that too should be verified. Sounds like running git bisect on
> > > > > > this one is needed.
> > > > >
> > > > > I tried to bisect this on N950, and it resulted in:
> > > > >
> > > > > aa25729cfd9709156661bea0f9293deb7729f57a is the first bad commit
> > > > > commit aa25729cfd9709156661bea0f9293deb7729f57a
> > > > > Author: Tony Lindgren <tony@atomide.com>
> > > > > Date: Wed Nov 5 09:21:23 2014 -0800
> > > > >
> > > > > ARM: OMAP3: Fix errors for omap_l3_smx when booted with device tree
> > > > >
> > > > > But when I tried to revert this from 3.19-rc2, my board won't boot at
> > > > > all...
> > > >
> > > > Hmm OK that commit just fixed the omap_l3_smx so we now see
> > > > warnings about the unclocked register access.
> > > >
> > > > It seems that probably the CONFIG_PREEMPT issue has been lurking
> > > > around for longer but we have not seen any errors because
> > > > omap_l3_smx just recently started exposing them.
> > > >
> > > > Does v3.18 + commit aa25729cfd9 manually applied also produce
> > > > the CONFIG_PREEMPT errors?
> > >
> > > Yes it does, so I made another bisection between 3.17 and 3.18
> > > using the above patch to trigger the issue, and I got:
> > >
> > > 55601c9f24670ba926ebdd4d712ac3b177232330 is the first bad commit
> > > commit 55601c9f24670ba926ebdd4d712ac3b177232330
> > > Author: Felipe Balbi <balbi@ti.com>
> > > Date: Mon Sep 8 17:54:58 2014 -0700
> > >
> > > arm: omap: intc: switch over to linear irq domain
> >
> > Just booted AM335x with CONFIG_PREEMPT and haven't seen any problem.
> > Perhaps this is something related to another OMAP3-only driver ? Perhaps
> > HSI/SSI ?
>
> I did some debugging and it seems the "In-band Error"
> occurs when omap_system_dma_probe() is being run, specifically when
> the interrupt is enabled. I believe the "DMA" interrupt it's trying
> set up is completely wrong:
>
> 28: 0 GPIO 2 DMA
>
> GPIO 2?! Where is that coming from?
>
> With the commit before the "arm: omap: intc: switch over
> to linear irq domain" it seems to be more reasonable:
>
> 28: 0 INTC 12 DMA
Hmm stange. Felipe, chances are this wrong interrupt issue also
exists on am33xx but it's not showing up as the legacy DMA is not
being used.
Note that currently legacy DMA and drivers/dma/omap-dma.c are
using separate interrupts as they are mappable. It seems this
issue is affecting legacy DMA.
Regards,
Tony
next prev parent reply other threads:[~2015-01-06 0:16 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-01 18:12 3.18.1->3.19-rc2: In-band Error seen by MPU Peter Kümmel
2015-01-01 18:20 ` Aaro Koskinen
2015-01-02 16:19 ` Tony Lindgren
2015-01-02 18:31 ` Peter Kümmel
2015-01-02 20:19 ` Aaro Koskinen
2015-01-02 20:40 ` Tony Lindgren
2015-01-02 22:34 ` Aaro Koskinen
2015-01-03 0:02 ` Tony Lindgren
2015-01-03 11:24 ` Peter Kümmel
2015-01-03 12:16 ` Aaro Koskinen
2015-01-05 15:43 ` Felipe Balbi
2015-01-05 23:16 ` Aaro Koskinen
2015-01-06 0:12 ` Tony Lindgren [this message]
2015-01-06 2:02 ` Felipe Balbi
2015-01-06 2:01 ` Felipe Balbi
2015-01-06 12:38 ` Aaro Koskinen
2015-01-06 16:51 ` [PATCH] irqchip: omap-intc: fix legacy DMA regression Felipe Balbi
2015-01-06 17:48 ` Aaro Koskinen
2015-01-06 17:52 ` Tony Lindgren
2015-01-06 18:05 ` Russell King - ARM Linux
2015-01-06 18:24 ` Aaro Koskinen
2015-01-06 18:30 ` Tony Lindgren
2015-01-06 20:38 ` [PATCH v2] " Felipe Balbi
2015-01-07 3:00 ` Jason Cooper
2015-01-19 18:34 ` Tony Lindgren
2015-01-07 11:12 ` [PATCH] " Peter Kümmel
2015-01-06 11:25 ` 3.18.1->3.19-rc2: In-band Error seen by MPU Peter Kümmel
2015-01-06 11:52 ` Sebastian Reichel
2015-01-06 12:47 ` Aaro Koskinen
2015-01-06 13:47 ` Peter Kümmel
2015-01-06 13:04 ` Peter Kümmel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150106001251.GQ4081@atomide.com \
--to=tony@atomide.com \
--cc=aaro.koskinen@iki.fi \
--cc=balbi@ti.com \
--cc=linux-omap@vger.kernel.org \
--cc=pavel@ucw.cz \
--cc=rmk+kernel@arm.linux.org.uk \
--cc=ssantosh@kernel.org \
--cc=syntheticpp@gmx.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).