From: Tony Lindgren <tony@atomide•com>
To: Arnd Bergmann <arnd@arndb•de>
Cc: Rob Herring <robh@kernel•org>,
Grygorii Strashko <grygorii.strashko@ti•com>,
Geert Uytterhoeven <geert+renesas@glider•be>,
Lokesh Vutla <lokeshvutla@ti•com>, Keerthy <j-keerthy@ti•com>,
Santosh Shilimkar <santosh.shilimkar@oracle•com>,
"linux-kernel@vger•kernel.org" <linux-kernel@vger•kernel.org>,
Tero Kristo <t-kristo@ti•com>, arm-soc <arm@kernel•org>,
Olof Johansson <olof@lixom•net>,
linux-omap <linux-omap@vger•kernel.org>,
afzal mohammed <afzal.mohd.ma@gmail•com>,
Linux ARM <linux-arm-kernel@lists•infradead.org>
Subject: Re: [PATCH] ARM: omap2: drop broken broadcast timer hack
Date: Thu, 28 May 2020 13:38:10 -0700 [thread overview]
Message-ID: <20200528203810.GQ37466@atomide.com> (raw)
In-Reply-To: <CAK8P3a0AaH+pAdhu7jzEAGC-bECgmz7w=D8PN6NOUjj2kxevkg@mail.gmail.com>
* Arnd Bergmann <arnd@arndb•de> [200528 20:35]:
> On Thu, May 28, 2020 at 6:18 PM <santosh.shilimkar@oracle•com> wrote:
> > On 5/28/20 8:57 AM, Tony Lindgren wrote:
> > > * Tony Lindgren <tony@atomide•com> [200528 13:51]:
> > >> * Tony Lindgren <tony@atomide•com> [200528 13:47]:
> > >>> * Arnd Bergmann <arnd@arndb•de> [200528 09:20]:
> > >>>> The OMAP4 timer code had a special hack for using the broadcast timer
> > >>>> without SMP. Since the dmtimer is now gone, this also needs to be dropped
> > >>>> to avoid a link failure for non-SMP AM43xx configurations:
> > >>>>
> > >>>> kernel/time/tick-broadcast.o: in function `tick_device_uses_broadcast':
> > >>>> tick-broadcast.c:(.text+0x130): undefined reference to `tick_broadcast'
> > >>>
> > >>> Hmm this sounds like a regression though. Isn't this needed for using
> > >>> the ARM local timers on non-SMP SoC, so a separate timer from dmtimer?
> > >>>
> > >>> I've probably removed something accidentally to cause this.
> > >>
> > >> Sounds like arch/arm/mach-omap2/Makefile change needs to be removed
> > >> to always still build in timer.o. And probably timer.c needs back
> > >> the ifdef for CONFIG_SOC_HAS_REALTIME_COUNTER.
> > >>
> > >> I'll take a look today.
> > >
> > > I've sent a patch along those lines as:
> > >
> > > [PATCH] ARM: OMAP2+: Fix regression for using local timer on non-SMP SoCs
> > >
> > > A link for the patch at [0] below.
> > >
> > CPU local timers not being in always ON power domain use to be the
> > reason on early version of the SOCs but later SOC moved the CPU local
> > timer also in always on domain. Probably AM43xx does loose local timer
> > on CPU PD in low power so yes broadcast would be needed with dmtimer
> > help.
> >
> > >
> > > [0] https://lore.kernel.org/linux-omap/20200528155453.8585-1-tony@atomide.com/T/#u
> > >
> > This should restore it.
>
> Should I apply the fix directly to the arm/soc branch that has the
> other changes then?
Sure please do, that saves a single-fix pull request.
Regards,
Tony
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists•infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
prev parent reply other threads:[~2020-05-28 20:38 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-28 9:19 [PATCH] ARM: omap2: drop broken broadcast timer hack Arnd Bergmann
2020-05-28 13:46 ` Tony Lindgren
2020-05-28 13:50 ` Tony Lindgren
2020-05-28 15:57 ` Tony Lindgren
2020-05-28 16:18 ` santosh.shilimkar
2020-05-28 20:33 ` Arnd Bergmann
2020-05-28 20:38 ` Tony Lindgren [this message]
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=20200528203810.GQ37466@atomide.com \
--to=tony@atomide$(echo .)com \
--cc=afzal.mohd.ma@gmail$(echo .)com \
--cc=arm@kernel$(echo .)org \
--cc=arnd@arndb$(echo .)de \
--cc=geert+renesas@glider$(echo .)be \
--cc=grygorii.strashko@ti$(echo .)com \
--cc=j-keerthy@ti$(echo .)com \
--cc=linux-arm-kernel@lists$(echo .)infradead.org \
--cc=linux-kernel@vger$(echo .)kernel.org \
--cc=linux-omap@vger$(echo .)kernel.org \
--cc=lokeshvutla@ti$(echo .)com \
--cc=olof@lixom$(echo .)net \
--cc=robh@kernel$(echo .)org \
--cc=santosh.shilimkar@oracle$(echo .)com \
--cc=t-kristo@ti$(echo .)com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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