diff mbox

[v2,3/5] ARM: ep93xx: increase NR_BANKS to 16 for support of 128MB RAM

Message ID 1307891100-31123-4-git-send-email-ynezz@true.cz
State New
Headers show

Commit Message

Petr Štetiar June 12, 2011, 3:04 p.m. UTC
I've got hands on one ts-7300 board, which is equiped with 128MB RAM in two
64MB memory chips, so it's 16 banks/8MB each. Without this patch, the bootmem
init code complains about small NR_BANKS number and only lower 64MB is
accessible.

Cc: Russell King <linux@arm.linux.org.uk>
Cc: Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ryan Mallon <ryan@bluewatersys.com>
Signed-off-by: Petr Štetiar <ynezz@true.cz>
---
 arch/arm/include/asm/setup.h |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

Comments

Hartley Sweeten June 13, 2011, 5:43 p.m. UTC | #1
On Sunday, June 12, 2011 8:05 AM, Petr Štetiar wrote:
>

> I've got hands on one ts-7300 board, which is equiped with 128MB RAM in two

> 64MB memory chips, so it's 16 banks/8MB each. Without this patch, the bootmem

> init code complains about small NR_BANKS number and only lower 64MB is

> accessible.

>

> Cc: Russell King <linux@arm.linux.org.uk>

> Cc: Hartley Sweeten <hsweeten@visionengravers.com>

> Cc: Ryan Mallon <ryan@bluewatersys.com>

> Signed-off-by: Petr Štetiar <ynezz@true.cz>

> ---

>  arch/arm/include/asm/setup.h |    6 +++++-

>  1 files changed, 5 insertions(+), 1 deletions(-)

> 

> diff --git a/arch/arm/include/asm/setup.h b/arch/arm/include/asm/setup.h

> index ee2ad8a..b13720d 100644

> --- a/arch/arm/include/asm/setup.h

> +++ b/arch/arm/include/asm/setup.h

> @@ -192,7 +192,11 @@ static struct tagtable __tagtable_##fn __tag = { tag, fn }

>  /*

>   * Memory map description

>   */

> -#define NR_BANKS 8

> +#ifdef CONFIG_ARCH_EP93XX

> +# define NR_BANKS 16

> +#else

> +# define NR_BANKS 8

> +#endif

>  

>  struct membank {

>  	phys_addr_t start;


I would like Russell's opinion on this patch before it's accepted into his
Patch Tracker.

But, as far as the ep93xx support goes...

Acked-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Petr Štetiar June 17, 2011, 10:32 a.m. UTC | #2
H Hartley Sweeten <hartleys@visionengravers.com> [2011-06-13 12:43:25]:

> On Sunday, June 12, 2011 8:05 AM, Petr Štetiar wrote:
> >
> > I've got hands on one ts-7300 board, which is equiped with 128MB RAM in two
> > 64MB memory chips, so it's 16 banks/8MB each. Without this patch, the bootmem
> > init code complains about small NR_BANKS number and only lower 64MB is
> > accessible.
> >
> > Cc: Russell King <linux@arm.linux.org.uk>
> > Cc: Hartley Sweeten <hsweeten@visionengravers.com>
> > Cc: Ryan Mallon <ryan@bluewatersys.com>
> > Signed-off-by: Petr Štetiar <ynezz@true.cz>
> > ---
> >  arch/arm/include/asm/setup.h |    6 +++++-
> >  1 files changed, 5 insertions(+), 1 deletions(-)
> > 
> > diff --git a/arch/arm/include/asm/setup.h b/arch/arm/include/asm/setup.h
> > index ee2ad8a..b13720d 100644
> > --- a/arch/arm/include/asm/setup.h
> > +++ b/arch/arm/include/asm/setup.h
> > @@ -192,7 +192,11 @@ static struct tagtable __tagtable_##fn __tag = { tag, fn }
> >  /*
> >   * Memory map description
> >   */
> > -#define NR_BANKS 8
> > +#ifdef CONFIG_ARCH_EP93XX
> > +# define NR_BANKS 16
> > +#else
> > +# define NR_BANKS 8
> > +#endif
> >  
> >  struct membank {
> >  	phys_addr_t start;
> 
> I would like Russell's opinion on this patch before it's accepted into his
> Patch Tracker.
> 
> But, as far as the ep93xx support goes...
> 
> Acked-by: H Hartley Sweeten <hsweeten@visionengravers.com>

Hello Russell,

could I kindly ask you about your opinnion on this patch? Thanks a lot.

-- ynezz
Petr Štetiar July 9, 2011, 8:20 a.m. UTC | #3
Petr Štetiar <ynezz@true.cz> [2011-06-17 12:32:49]:

> H Hartley Sweeten <hartleys@visionengravers.com> [2011-06-13 12:43:25]:
> 
> > On Sunday, June 12, 2011 8:05 AM, Petr Štetiar wrote:
> > >
> > > I've got hands on one ts-7300 board, which is equiped with 128MB RAM in two
> > > 64MB memory chips, so it's 16 banks/8MB each. Without this patch, the bootmem
> > > init code complains about small NR_BANKS number and only lower 64MB is
> > > accessible.
> > >
> > > Cc: Russell King <linux@arm.linux.org.uk>
> > > Cc: Hartley Sweeten <hsweeten@visionengravers.com>
> > > Cc: Ryan Mallon <ryan@bluewatersys.com>
> > > Signed-off-by: Petr Štetiar <ynezz@true.cz>
> > > ---
> > >  arch/arm/include/asm/setup.h |    6 +++++-
> > >  1 files changed, 5 insertions(+), 1 deletions(-)
> > > 
> > > diff --git a/arch/arm/include/asm/setup.h b/arch/arm/include/asm/setup.h
> > > index ee2ad8a..b13720d 100644
> > > --- a/arch/arm/include/asm/setup.h
> > > +++ b/arch/arm/include/asm/setup.h
> > > @@ -192,7 +192,11 @@ static struct tagtable __tagtable_##fn __tag = { tag, fn }
> > >  /*
> > >   * Memory map description
> > >   */
> > > -#define NR_BANKS 8
> > > +#ifdef CONFIG_ARCH_EP93XX
> > > +# define NR_BANKS 16
> > > +#else
> > > +# define NR_BANKS 8
> > > +#endif
> > >  
> > >  struct membank {
> > >  	phys_addr_t start;
> > 
> > I would like Russell's opinion on this patch before it's accepted into his
> > Patch Tracker.
> > 
> > But, as far as the ep93xx support goes...
> > 
> > Acked-by: H Hartley Sweeten <hsweeten@visionengravers.com>
> 
> Hello Russell,
> 
> could I kindly ask you about your opinnion on this patch? Thanks a lot.

Ping. Thanks a lot.

-- ynezz
Russell King - ARM Linux July 9, 2011, 8:20 a.m. UTC | #4
On Sat, Jul 09, 2011 at 10:20:08AM +0200, Petr Štetiar wrote:
> Petr Štetiar <ynezz@true.cz> [2011-06-17 12:32:49]:
> 
> > H Hartley Sweeten <hartleys@visionengravers.com> [2011-06-13 12:43:25]:
> > 
> > > On Sunday, June 12, 2011 8:05 AM, Petr Štetiar wrote:
> > > >
> > > > I've got hands on one ts-7300 board, which is equiped with 128MB RAM in two
> > > > 64MB memory chips, so it's 16 banks/8MB each. Without this patch, the bootmem
> > > > init code complains about small NR_BANKS number and only lower 64MB is
> > > > accessible.
> > > >
> > > > Cc: Russell King <linux@arm.linux.org.uk>
> > > > Cc: Hartley Sweeten <hsweeten@visionengravers.com>
> > > > Cc: Ryan Mallon <ryan@bluewatersys.com>
> > > > Signed-off-by: Petr Štetiar <ynezz@true.cz>
> > > > ---
> > > >  arch/arm/include/asm/setup.h |    6 +++++-
> > > >  1 files changed, 5 insertions(+), 1 deletions(-)
> > > > 
> > > > diff --git a/arch/arm/include/asm/setup.h b/arch/arm/include/asm/setup.h
> > > > index ee2ad8a..b13720d 100644
> > > > --- a/arch/arm/include/asm/setup.h
> > > > +++ b/arch/arm/include/asm/setup.h
> > > > @@ -192,7 +192,11 @@ static struct tagtable __tagtable_##fn __tag = { tag, fn }
> > > >  /*
> > > >   * Memory map description
> > > >   */
> > > > -#define NR_BANKS 8
> > > > +#ifdef CONFIG_ARCH_EP93XX
> > > > +# define NR_BANKS 16
> > > > +#else
> > > > +# define NR_BANKS 8
> > > > +#endif
> > > >  
> > > >  struct membank {
> > > >  	phys_addr_t start;
> > > 
> > > I would like Russell's opinion on this patch before it's accepted into his
> > > Patch Tracker.
> > > 
> > > But, as far as the ep93xx support goes...
> > > 
> > > Acked-by: H Hartley Sweeten <hsweeten@visionengravers.com>
> > 
> > Hello Russell,
> > 
> > could I kindly ask you about your opinnion on this patch? Thanks a lot.
> 
> Ping. Thanks a lot.

It's fine.
diff mbox

Patch

diff --git a/arch/arm/include/asm/setup.h b/arch/arm/include/asm/setup.h
index ee2ad8a..b13720d 100644
--- a/arch/arm/include/asm/setup.h
+++ b/arch/arm/include/asm/setup.h
@@ -192,7 +192,11 @@  static struct tagtable __tagtable_##fn __tag = { tag, fn }
 /*
  * Memory map description
  */
-#define NR_BANKS 8
+#ifdef CONFIG_ARCH_EP93XX
+# define NR_BANKS 16
+#else
+# define NR_BANKS 8
+#endif
 
 struct membank {
 	phys_addr_t start;