* [PATCH v2 00/05] ARM: shmobile: sh73a0 and kzm9g Multiplatform revisit
@ 2014-12-17 9:42 Magnus Damm
2014-12-18 0:22 ` Simon Horman
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: Magnus Damm @ 2014-12-17 9:42 UTC (permalink / raw)
To: linux-sh
ARM: shmobile: sh73a0 and kzm9g Multiplatform revisit
[PATCH v2 01/05] ARM: shmobile: kzm9g-reference: 0x48008000 load address
[PATCH v2 02/05] ARM: shmobile: sh73a0: Introduce generic setup callback
[PATCH v2 03/05] ARM: shmobile: sh73a0: Add Multiplatform support
[PATCH v2 04/05] ARM: shmobile: kzm9g: Sync with DT reference
[PATCH v2 05/05] ARM: shmobile: kzm9g: Build DTS for Multiplatform
This patch series enables sh73a0 Multiplatform support. At this point
the KZM9G board code written in C is left as-is, but future updates will
make sure to get rid of DT reference DTS and C board code.
To make it work you need the sh73a0 CCF v7 series and the DIV6 v7
series from Ulrich Hecht.
Patch 1-3 should be possible to merge without any special dependencies.
Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
---
Built on top of renesas-devel-20141217-v3.18
arch/arm/boot/dts/Makefile | 3
arch/arm/boot/dts/sh73a0-kzm9g.dts | 342 ++++++++++++++++++++++++++++++++-
arch/arm/mach-shmobile/Kconfig | 5
arch/arm/mach-shmobile/Makefile | 4
arch/arm/mach-shmobile/Makefile.boot | 2
arch/arm/mach-shmobile/setup-sh73a0.c | 21 +-
arch/arm/mach-shmobile/smp-sh73a0.c | 2
7 files changed, 369 insertions(+), 10 deletions(-)
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2 00/05] ARM: shmobile: sh73a0 and kzm9g Multiplatform revisit
2014-12-17 9:42 [PATCH v2 00/05] ARM: shmobile: sh73a0 and kzm9g Multiplatform revisit Magnus Damm
@ 2014-12-18 0:22 ` Simon Horman
2014-12-18 0:24 ` Simon Horman
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Simon Horman @ 2014-12-18 0:22 UTC (permalink / raw)
To: linux-sh
On Wed, Dec 17, 2014 at 06:42:04PM +0900, Magnus Damm wrote:
> ARM: shmobile: sh73a0 and kzm9g Multiplatform revisit
>
> [PATCH v2 01/05] ARM: shmobile: kzm9g-reference: 0x48008000 load address
> [PATCH v2 02/05] ARM: shmobile: sh73a0: Introduce generic setup callback
> [PATCH v2 03/05] ARM: shmobile: sh73a0: Add Multiplatform support
> [PATCH v2 04/05] ARM: shmobile: kzm9g: Sync with DT reference
> [PATCH v2 05/05] ARM: shmobile: kzm9g: Build DTS for Multiplatform
>
> This patch series enables sh73a0 Multiplatform support. At this point
> the KZM9G board code written in C is left as-is, but future updates will
> make sure to get rid of DT reference DTS and C board code.
>
> To make it work you need the sh73a0 CCF v7 series and the DIV6 v7
> series from Ulrich Hecht.
>
> Patch 1-3 should be possible to merge without any special dependencies.
Thanks. I agree that should be possible.
I see there has been some discussion of at least patches 1 and 3.
I would like that discussion to come to a conclusion (has it already?)
before I merge any patches from this series. And ideally I would like
some Acks from Geert.
> Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
> ---
>
> Built on top of renesas-devel-20141217-v3.18
>
> arch/arm/boot/dts/Makefile | 3
> arch/arm/boot/dts/sh73a0-kzm9g.dts | 342 ++++++++++++++++++++++++++++++++-
> arch/arm/mach-shmobile/Kconfig | 5
> arch/arm/mach-shmobile/Makefile | 4
> arch/arm/mach-shmobile/Makefile.boot | 2
> arch/arm/mach-shmobile/setup-sh73a0.c | 21 +-
> arch/arm/mach-shmobile/smp-sh73a0.c | 2
> 7 files changed, 369 insertions(+), 10 deletions(-)
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2 00/05] ARM: shmobile: sh73a0 and kzm9g Multiplatform revisit
2014-12-17 9:42 [PATCH v2 00/05] ARM: shmobile: sh73a0 and kzm9g Multiplatform revisit Magnus Damm
2014-12-18 0:22 ` Simon Horman
@ 2014-12-18 0:24 ` Simon Horman
2014-12-18 0:34 ` Simon Horman
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Simon Horman @ 2014-12-18 0:24 UTC (permalink / raw)
To: linux-sh
On Thu, Dec 18, 2014 at 09:22:33AM +0900, Simon Horman wrote:
> On Wed, Dec 17, 2014 at 06:42:04PM +0900, Magnus Damm wrote:
> > ARM: shmobile: sh73a0 and kzm9g Multiplatform revisit
> >
> > [PATCH v2 01/05] ARM: shmobile: kzm9g-reference: 0x48008000 load address
> > [PATCH v2 02/05] ARM: shmobile: sh73a0: Introduce generic setup callback
> > [PATCH v2 03/05] ARM: shmobile: sh73a0: Add Multiplatform support
> > [PATCH v2 04/05] ARM: shmobile: kzm9g: Sync with DT reference
> > [PATCH v2 05/05] ARM: shmobile: kzm9g: Build DTS for Multiplatform
> >
> > This patch series enables sh73a0 Multiplatform support. At this point
> > the KZM9G board code written in C is left as-is, but future updates will
> > make sure to get rid of DT reference DTS and C board code.
> >
> > To make it work you need the sh73a0 CCF v7 series and the DIV6 v7
> > series from Ulrich Hecht.
> >
> > Patch 1-3 should be possible to merge without any special dependencies.
>
> Thanks. I agree that should be possible.
>
> I see there has been some discussion of at least patches 1 and 3.
> I would like that discussion to come to a conclusion (has it already?)
> before I merge any patches from this series. And ideally I would like
> some Acks from Geert.
I have marked patches 4 and 5 as deferred. Please repost them when
their dependencies are in place. And if that is during the v3.20 cycle
please note what those dependencies were so I make sure the branches
have dependencies arranges as necessary.
> > Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
> > ---
> >
> > Built on top of renesas-devel-20141217-v3.18
> >
> > arch/arm/boot/dts/Makefile | 3
> > arch/arm/boot/dts/sh73a0-kzm9g.dts | 342 ++++++++++++++++++++++++++++++++-
> > arch/arm/mach-shmobile/Kconfig | 5
> > arch/arm/mach-shmobile/Makefile | 4
> > arch/arm/mach-shmobile/Makefile.boot | 2
> > arch/arm/mach-shmobile/setup-sh73a0.c | 21 +-
> > arch/arm/mach-shmobile/smp-sh73a0.c | 2
> > 7 files changed, 369 insertions(+), 10 deletions(-)
> >
> --
> To unsubscribe from this list: send the line "unsubscribe linux-sh" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2 00/05] ARM: shmobile: sh73a0 and kzm9g Multiplatform revisit
2014-12-17 9:42 [PATCH v2 00/05] ARM: shmobile: sh73a0 and kzm9g Multiplatform revisit Magnus Damm
2014-12-18 0:22 ` Simon Horman
2014-12-18 0:24 ` Simon Horman
@ 2014-12-18 0:34 ` Simon Horman
2014-12-18 8:03 ` Geert Uytterhoeven
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Simon Horman @ 2014-12-18 0:34 UTC (permalink / raw)
To: linux-sh
On Thu, Dec 18, 2014 at 09:24:29AM +0900, Simon Horman wrote:
> On Thu, Dec 18, 2014 at 09:22:33AM +0900, Simon Horman wrote:
> > On Wed, Dec 17, 2014 at 06:42:04PM +0900, Magnus Damm wrote:
> > > ARM: shmobile: sh73a0 and kzm9g Multiplatform revisit
> > >
> > > [PATCH v2 01/05] ARM: shmobile: kzm9g-reference: 0x48008000 load address
> > > [PATCH v2 02/05] ARM: shmobile: sh73a0: Introduce generic setup callback
> > > [PATCH v2 03/05] ARM: shmobile: sh73a0: Add Multiplatform support
> > > [PATCH v2 04/05] ARM: shmobile: kzm9g: Sync with DT reference
> > > [PATCH v2 05/05] ARM: shmobile: kzm9g: Build DTS for Multiplatform
> > >
> > > This patch series enables sh73a0 Multiplatform support. At this point
> > > the KZM9G board code written in C is left as-is, but future updates will
> > > make sure to get rid of DT reference DTS and C board code.
> > >
> > > To make it work you need the sh73a0 CCF v7 series and the DIV6 v7
> > > series from Ulrich Hecht.
> > >
> > > Patch 1-3 should be possible to merge without any special dependencies.
> >
> > Thanks. I agree that should be possible.
> >
> > I see there has been some discussion of at least patches 1 and 3.
> > I would like that discussion to come to a conclusion (has it already?)
> > before I merge any patches from this series. And ideally I would like
> > some Acks from Geert.
>
> I have marked patches 4 and 5 as deferred. Please repost them when
> their dependencies are in place. And if that is during the v3.20 cycle
> please note what those dependencies were so I make sure the branches
> have dependencies arranges as necessary.
Many emails on the same topic...
Alternatively could we queue up the entire series, once discussion is
concluded, and leave removing the legacy code until the multiplatform is
working when its dependencies are merged. I think this is the approach we
have taken for ape6evm.
> > > Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
> > > ---
> > >
> > > Built on top of renesas-devel-20141217-v3.18
> > >
> > > arch/arm/boot/dts/Makefile | 3
> > > arch/arm/boot/dts/sh73a0-kzm9g.dts | 342 ++++++++++++++++++++++++++++++++-
> > > arch/arm/mach-shmobile/Kconfig | 5
> > > arch/arm/mach-shmobile/Makefile | 4
> > > arch/arm/mach-shmobile/Makefile.boot | 2
> > > arch/arm/mach-shmobile/setup-sh73a0.c | 21 +-
> > > arch/arm/mach-shmobile/smp-sh73a0.c | 2
> > > 7 files changed, 369 insertions(+), 10 deletions(-)
> > >
> > --
> > To unsubscribe from this list: send the line "unsubscribe linux-sh" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at http://vger.kernel.org/majordomo-info.html
> >
> --
> To unsubscribe from this list: send the line "unsubscribe linux-sh" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2 00/05] ARM: shmobile: sh73a0 and kzm9g Multiplatform revisit
2014-12-17 9:42 [PATCH v2 00/05] ARM: shmobile: sh73a0 and kzm9g Multiplatform revisit Magnus Damm
` (2 preceding siblings ...)
2014-12-18 0:34 ` Simon Horman
@ 2014-12-18 8:03 ` Geert Uytterhoeven
2014-12-18 9:09 ` Magnus Damm
2014-12-18 9:48 ` Geert Uytterhoeven
5 siblings, 0 replies; 7+ messages in thread
From: Geert Uytterhoeven @ 2014-12-18 8:03 UTC (permalink / raw)
To: linux-sh
Hi Magnus, Simon,
On Wed, Dec 17, 2014 at 10:42 AM, Magnus Damm <magnus.damm@gmail.com> wrote:
> ARM: shmobile: sh73a0 and kzm9g Multiplatform revisit
>
> [PATCH v2 01/05] ARM: shmobile: kzm9g-reference: 0x48008000 load address
> [PATCH v2 02/05] ARM: shmobile: sh73a0: Introduce generic setup callback
> [PATCH v2 03/05] ARM: shmobile: sh73a0: Add Multiplatform support
> [PATCH v2 04/05] ARM: shmobile: kzm9g: Sync with DT reference
> [PATCH v2 05/05] ARM: shmobile: kzm9g: Build DTS for Multiplatform
>
> This patch series enables sh73a0 Multiplatform support. At this point
> the KZM9G board code written in C is left as-is, but future updates will
> make sure to get rid of DT reference DTS and C board code.
>
> To make it work you need the sh73a0 CCF v7 series and the DIV6 v7
> series from Ulrich Hecht.
>
> Patch 1-3 should be possible to merge without any special dependencies.
>
> Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
EXCEPT for "[PATCH v2 01/05] ARM: shmobile: kzm9g-reference: 0x48008000 load
address", which I'd like to NAK because it drops 25% of RAM.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2 00/05] ARM: shmobile: sh73a0 and kzm9g Multiplatform revisit
2014-12-17 9:42 [PATCH v2 00/05] ARM: shmobile: sh73a0 and kzm9g Multiplatform revisit Magnus Damm
` (3 preceding siblings ...)
2014-12-18 8:03 ` Geert Uytterhoeven
@ 2014-12-18 9:09 ` Magnus Damm
2014-12-18 9:48 ` Geert Uytterhoeven
5 siblings, 0 replies; 7+ messages in thread
From: Magnus Damm @ 2014-12-18 9:09 UTC (permalink / raw)
To: linux-sh
Hi Geert,
On Thu, Dec 18, 2014 at 5:03 PM, Geert Uytterhoeven
<geert@linux-m68k.org> wrote:
> Hi Magnus, Simon,
>
> On Wed, Dec 17, 2014 at 10:42 AM, Magnus Damm <magnus.damm@gmail.com> wrote:
>> ARM: shmobile: sh73a0 and kzm9g Multiplatform revisit
>>
>> [PATCH v2 01/05] ARM: shmobile: kzm9g-reference: 0x48008000 load address
>> [PATCH v2 02/05] ARM: shmobile: sh73a0: Introduce generic setup callback
>> [PATCH v2 03/05] ARM: shmobile: sh73a0: Add Multiplatform support
>> [PATCH v2 04/05] ARM: shmobile: kzm9g: Sync with DT reference
>> [PATCH v2 05/05] ARM: shmobile: kzm9g: Build DTS for Multiplatform
>>
>> This patch series enables sh73a0 Multiplatform support. At this point
>> the KZM9G board code written in C is left as-is, but future updates will
>> make sure to get rid of DT reference DTS and C board code.
>>
>> To make it work you need the sh73a0 CCF v7 series and the DIV6 v7
>> series from Ulrich Hecht.
>>
>> Patch 1-3 should be possible to merge without any special dependencies.
>>
>> Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
>
> Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Thanks.
> EXCEPT for "[PATCH v2 01/05] ARM: shmobile: kzm9g-reference: 0x48008000 load
> address", which I'd like to NAK because it drops 25% of RAM.
Ok, but the patch isn't dropping 25% of the RAM, the memory node is
the same as before. It is just the ARM memory handling implementation
that skips over that memory for some reason. =)
So how do you think we should fix it?
Thanks,
/ magnus
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2 00/05] ARM: shmobile: sh73a0 and kzm9g Multiplatform revisit
2014-12-17 9:42 [PATCH v2 00/05] ARM: shmobile: sh73a0 and kzm9g Multiplatform revisit Magnus Damm
` (4 preceding siblings ...)
2014-12-18 9:09 ` Magnus Damm
@ 2014-12-18 9:48 ` Geert Uytterhoeven
5 siblings, 0 replies; 7+ messages in thread
From: Geert Uytterhoeven @ 2014-12-18 9:48 UTC (permalink / raw)
To: linux-sh
Hi Magnus,
On Thu, Dec 18, 2014 at 10:09 AM, Magnus Damm <magnus.damm@gmail.com> wrote:
>> EXCEPT for "[PATCH v2 01/05] ARM: shmobile: kzm9g-reference: 0x48008000 load
>> address", which I'd like to NAK because it drops 25% of RAM.
>
> Ok, but the patch isn't dropping 25% of the RAM, the memory node is
> the same as before. It is just the ARM memory handling implementation
> that skips over that memory for some reason. =)
>
> So how do you think we should fix it?
Historically, Linux didn't support memory with a physical address that's
below the physical address where the kernel lives. That's a relic from PCs,
where memory starts at address zero (and is contiguous). So you best load
the kernel at the lowest possible address, else you loose all memory below it.
Only when SMP NUMA arrived, support for memory below the kernel was
added. To use it, you have to enable CONFIG_SPARSEMEM, IIRC.
IMHO the simplest solution is to reclaim the first 16 MiB, which was reserved
for the SH core.
Is anyone using the SH core? Perhaps it can use the last 16 MiB of RAM
instead?
(Sidenote: On m68k, where you typically have many discontiguous memory
chunks, and the kernel is not always running in the chunk with the lowest
physical address, we used to have a special trick. We used the MMU to
map all memory chunks in the order we wanted to form one big virtual
memory block. So instead of having one big physical block starting at
address zero like on PC, we had one big virtual block starting at some
specific virtual address. However, this code had to be dropped when the
mm subsystem was changed.
So now we make sure we order the chunks are ordered by physical address,
and that the kernel is loaded in the first chunk. This is suboptimal, as the
first memory chunk is not necessarily the fastest one, but so far no one has
stepped up to write the code to use SPARSEMEM on m68k.)
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2014-12-18 9:48 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-17 9:42 [PATCH v2 00/05] ARM: shmobile: sh73a0 and kzm9g Multiplatform revisit Magnus Damm
2014-12-18 0:22 ` Simon Horman
2014-12-18 0:24 ` Simon Horman
2014-12-18 0:34 ` Simon Horman
2014-12-18 8:03 ` Geert Uytterhoeven
2014-12-18 9:09 ` Magnus Damm
2014-12-18 9:48 ` Geert Uytterhoeven
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).