Re: [PATCH 2/2] MAINTAINERS: remove linux-sh list from non-arch/sh sections

From: Rich Felker
Date: Fri Jan 08 2016 - 15:52:41 EST


On Fri, Jan 08, 2016 at 09:35:11PM +0100, Geert Uytterhoeven wrote:
> Hi Rich,
>
> On Fri, Jan 8, 2016 at 7:21 PM, Rich Felker <dalias@xxxxxxxx> wrote:
> > On Fri, Jan 08, 2016 at 10:01:25AM +0100, Geert Uytterhoeven wrote:
> >> Many old ARM/SH-Mobile SoCs look like SH SoCs with an ARM CPU core bolted on.
> >> Recent Renesas ARM SoCs still share many IP cores with older SH SoCs; most of
> >> them even have a secondary SH4 CPU core. Using the SH4 CPU core could be useful
> >> for doing SH4 work, until J4 becomes mainstream (cfr. old prototype in
> >> http://www.spinics.net/lists/linux-sh/msg07188.html).
> >> Probably the Jx series won't share IP cores with SH/ARM, but as arch/sh/
> >> maintainers you have to care about older Renesas SH platforms, too.
> >>
> >> For patchwork, that would mean some more delegation needs to be put in place.
> >>
> >> So far my 0.05â...
> >
> > Is that actually the case? I can't find any current support in the
> > kernel for running on these SH4 cores, and I was under the impression
> > that they were being phased out, if not already gone. And the bulk of
>
> There's no in-kernel support for these SH4 cores yet, just the prototype.

OK. Are they presently just running (non-Linux) firmware provided with
the boards? Or not being used at all? Also, is it correct that they're
all SH4, not SH5? I know on the gcc side there's interest in removing
SH5 support, and I'd probably like to do the same in the kernel if
it's not being used.

> > the driver-related discussion I've seen on linux-sh over the past year
> > does not seem to be related to hardware that's present/usable on
> > boards where you can run Linux/SH. If this is incorrect, I'd like to
> > hear some views on how/why such hardware is relevant to arch/sh.
>
> At least the following drivers are shared between ARM and SH:
>
> hspi
> rspi
> sh-cmt
> sh_fsi
> sh-mtu2
> sh-sci (covering sci, scif, scifa, scifb, hscif)
> sh-tmu
> tpu
>
> and of course the sh-pfc pinctrl subsystem.

Thanks for making this list.

> Probably I'm forgetting a few that haven't been converted to DT on ARM yet,
> and where the ARM side thus could benefit from a DT conversion on SH.

That would be nice.

> Note that you can find "shmobile" SoCs under both arch/sh/
> (sh7723/sh7724/sh7343/sh7722/sh7366) and arch/arm/mach-shmobile/.
> Some of these used to share even more code (e.g. drivers/sh/clk/), until the
> ARM ones were converted to the Common Clock Framework.

Do you know how much is involved in converting the SH ones over to
Common Clock Framework? That seems to be one obstacle for full DT
conversion that supports the old boards.

Rich