public inbox for linux-sh@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sh: crash kernel resource fix
@ 2008-08-27  9:15 Magnus Damm
  2008-08-28  6:41 ` Paul Mundt
  0 siblings, 1 reply; 2+ messages in thread
From: Magnus Damm @ 2008-08-27  9:15 UTC (permalink / raw)
  To: linux-sh

From: Magnus Damm <damm@igel.co.jp>

The reserved crash kernel memory range is currently missing from
/proc/iomem. crashk_res is mistakenly setup after __add_active_range().
Reorder things to make sure the resource shows up in /proc/iomem.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
---

 arch/sh/kernel/setup.c |    6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

--- 0001/arch/sh/kernel/setup.c
+++ work/arch/sh/kernel/setup.c	2008-08-25 12:20:04.000000000 +0900
@@ -171,6 +171,7 @@ static void __init reserve_crashkernel(v
 				(unsigned long)(free_mem >> 20));
 		crashk_res.start = crash_base;
 		crashk_res.end   = crash_base + crash_size - 1;
+		insert_resource(&iomem_resource, &crashk_res);
 	}
 }
 #else
@@ -204,11 +205,6 @@ void __init __add_active_range(unsigned 
 	request_resource(res, &data_resource);
 	request_resource(res, &bss_resource);
 
-#ifdef CONFIG_KEXEC
-	if (crashk_res.start != crashk_res.end)
-		request_resource(res, &crashk_res);
-#endif
-
 	add_active_range(nid, start_pfn, end_pfn);
 }
 

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

* Re: [PATCH] sh: crash kernel resource fix
  2008-08-27  9:15 [PATCH] sh: crash kernel resource fix Magnus Damm
@ 2008-08-28  6:41 ` Paul Mundt
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Mundt @ 2008-08-28  6:41 UTC (permalink / raw)
  To: linux-sh

On Wed, Aug 27, 2008 at 06:15:43PM +0900, Magnus Damm wrote:
> The reserved crash kernel memory range is currently missing from
> /proc/iomem. crashk_res is mistakenly setup after __add_active_range().
> Reorder things to make sure the resource shows up in /proc/iomem.

On Wed, Aug 27, 2008 at 06:19:01PM +0900, Magnus Damm wrote:
> The crash kernel entry point is currently checked by the kexec kernel
> code and only physical addresses in the reserved memory window are
> accepted. This means that we can't pass P2 or P1 addresses as entry
> points in the case of crash kernels. This patch makes sure we can start
> crash kernels by adding support for physical address entry points.

On Wed, Aug 27, 2008 at 06:21:29PM +0900, Magnus Damm wrote:
> This patch kills a section mismatch for platform_resource_setup_memory().

On Wed, Aug 27, 2008 at 06:22:49PM +0900, Magnus Damm wrote:
> This patch updates the MigoR defconfig to include the recently merged
> uio_pdrv_genirq driver.

On Wed, Aug 27, 2008 at 06:23:52PM +0900, Magnus Damm wrote:
> This patch updates the AP325RXA defconfig to include the recently merged
> uio_pdrv_genirq driver.

Applied, thanks.

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

end of thread, other threads:[~2008-08-28  6:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-27  9:15 [PATCH] sh: crash kernel resource fix Magnus Damm
2008-08-28  6:41 ` Paul Mundt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox