linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* keystone breakage
@ 2014-06-05 18:32 Russell King - ARM Linux
  2014-06-05 19:22 ` Santosh Shilimkar
  0 siblings, 1 reply; 4+ messages in thread
From: Russell King - ARM Linux @ 2014-06-05 18:32 UTC (permalink / raw)
  To: linux-arm-kernel

It's worth pointing out that with Laura's removal of meminfo, keystone
is now broken - I see that despite Laura's patches being on LAKML for
a while, this fact has been ignored, and now that Keystone support
for the LPAE mappings has been merged, Keystone now breaks:

arch/arm/mach-keystone/keystone.c: In function 'keystone_init_meminfo':
arch/arm/mach-keystone/keystone.c:71:31: error: 'meminfo' undeclared (first use in this function)

I guess this is something that will have to be fixed later.

-- 
FTTC broadband for 0.8mile line: now at 9.7Mbps down 460kbps up... slowly
improving, and getting towards what was expected from it.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* keystone breakage
  2014-06-05 18:32 keystone breakage Russell King - ARM Linux
@ 2014-06-05 19:22 ` Santosh Shilimkar
  2014-06-05 20:22   ` Arnd Bergmann
  0 siblings, 1 reply; 4+ messages in thread
From: Santosh Shilimkar @ 2014-06-05 19:22 UTC (permalink / raw)
  To: linux-arm-kernel

On Thursday 05 June 2014 02:32 PM, Russell King - ARM Linux wrote:
> It's worth pointing out that with Laura's removal of meminfo, keystone
> is now broken - I see that despite Laura's patches being on LAKML for
> a while, this fact has been ignored, and now that Keystone support
> for the LPAE mappings has been merged, Keystone now breaks:
>
> arch/arm/mach-keystone/keystone.c: In function 'keystone_init_meminfo':
> arch/arm/mach-keystone/keystone.c:71:31: error: 'meminfo' undeclared (first use in this function)
>
> I guess this is something that will have to be fixed later.
> 
I have tried Laura's series(v3 or v4 mostly) in past while
reviewing it. But since I wasn't sure about when it is going
to get merged, the meminfo usage remained in my code. I
should have removed the usage of meminfo irrespectively.

Thanks for reporting the issue. So far neither Laura's series nor my
series is showing up in Linus's tip so I couldn't see the
breakage myself but patch at the end of the email should fix
the breakage.

Arnd, Olof,
Will you be able to pick up the below fix from this email ?
If you prefer, I can send the same after rc1 is tagged.


>From 661e238f98171082a7b080720b837283551ff80d Mon Sep 17 00:00:00 2001
From: Santosh Shilimkar <santosh.shilimkar@ti.com>
Date: Thu, 5 Jun 2014 14:51:33 -0400
Subject: [PATCH] ARM: keystone: Drop use of meminfo since its not available
 anymore

Laura's series removed the meminfo structure and its no longer available.
Update keystone code to remove the usage of it.

Reported-by: Russell King - ARM Linux <linux@arm.linux.org.uk>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
---
 arch/arm/mach-keystone/keystone.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/arm/mach-keystone/keystone.c b/arch/arm/mach-keystone/keystone.c
index 59b8383..4388267 100644
--- a/arch/arm/mach-keystone/keystone.c
+++ b/arch/arm/mach-keystone/keystone.c
@@ -14,6 +14,7 @@
 #include <linux/init.h>
 #include <linux/of_platform.h>
 #include <linux/of_address.h>
+#include <linux/memblock.h>
 
 #include <asm/setup.h>
 #include <asm/mach/map.h>
@@ -83,9 +84,8 @@ static void __init keystone_init_meminfo(void)
 	phys_addr_t offset = PHYS_OFFSET - KEYSTONE_LOW_PHYS_START;
 	phys_addr_t mem_start, mem_end;
 
-	BUG_ON(meminfo.nr_banks < 1);
-	mem_start = meminfo.bank[0].start;
-	mem_end = mem_start + meminfo.bank[0].size - 1;
+	mem_start = memblock_start_of_DRAM();
+	mem_end = memblock_end_of_DRAM();
 
 	/* nothing to do if we are running out of the <32-bit space */
 	if (mem_start >= KEYSTONE_LOW_PHYS_START &&
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* keystone breakage
  2014-06-05 19:22 ` Santosh Shilimkar
@ 2014-06-05 20:22   ` Arnd Bergmann
  2014-06-05 22:46     ` Santosh Shilimkar
  0 siblings, 1 reply; 4+ messages in thread
From: Arnd Bergmann @ 2014-06-05 20:22 UTC (permalink / raw)
  To: linux-arm-kernel

On Thursday 05 June 2014 15:22:52 Santosh Shilimkar wrote:
> On Thursday 05 June 2014 02:32 PM, Russell King - ARM Linux wrote:

> Thanks for reporting the issue. So far neither Laura's series nor my
> series is showing up in Linus's tip so I couldn't see the
> breakage myself but patch at the end of the email should fix
> the breakage.
> 
> Arnd, Olof,
> Will you be able to pick up the below fix from this email ?
> If you prefer, I can send the same after rc1 is tagged.
> 
> 
> From 661e238f98171082a7b080720b837283551ff80d Mon Sep 17 00:00:00 2001
> From: Santosh Shilimkar <santosh.shilimkar@ti.com>
> Date: Thu, 5 Jun 2014 14:51:33 -0400
> Subject: [PATCH] ARM: keystone: Drop use of meminfo since its not available
>  anymore
> 
> Laura's series removed the meminfo structure and its no longer available.
> Update keystone code to remove the usage of it.
> 
> Reported-by: Russell King - ARM Linux <linux@arm.linux.org.uk>
> Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>

Applied on top of next/soc2, thanks a lot!

	Arnd

^ permalink raw reply	[flat|nested] 4+ messages in thread

* keystone breakage
  2014-06-05 20:22   ` Arnd Bergmann
@ 2014-06-05 22:46     ` Santosh Shilimkar
  0 siblings, 0 replies; 4+ messages in thread
From: Santosh Shilimkar @ 2014-06-05 22:46 UTC (permalink / raw)
  To: linux-arm-kernel

On Thursday 05 June 2014 04:22 PM, Arnd Bergmann wrote:
> On Thursday 05 June 2014 15:22:52 Santosh Shilimkar wrote:
>> On Thursday 05 June 2014 02:32 PM, Russell King - ARM Linux wrote:
> 
>> Thanks for reporting the issue. So far neither Laura's series nor my
>> series is showing up in Linus's tip so I couldn't see the
>> breakage myself but patch at the end of the email should fix
>> the breakage.
>>
>> Arnd, Olof,
>> Will you be able to pick up the below fix from this email ?
>> If you prefer, I can send the same after rc1 is tagged.
>>
>>
>> From 661e238f98171082a7b080720b837283551ff80d Mon Sep 17 00:00:00 2001
>> From: Santosh Shilimkar <santosh.shilimkar@ti.com>
>> Date: Thu, 5 Jun 2014 14:51:33 -0400
>> Subject: [PATCH] ARM: keystone: Drop use of meminfo since its not available
>>  anymore
>>
>> Laura's series removed the meminfo structure and its no longer available.
>> Update keystone code to remove the usage of it.
>>
>> Reported-by: Russell King - ARM Linux <linux@arm.linux.org.uk>
>> Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
> 
> Applied on top of next/soc2, thanks a lot!
> 
Thanks Arnd !!

Regards,
Santosh

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-06-05 22:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-05 18:32 keystone breakage Russell King - ARM Linux
2014-06-05 19:22 ` Santosh Shilimkar
2014-06-05 20:22   ` Arnd Bergmann
2014-06-05 22:46     ` Santosh Shilimkar

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).