Skip to contentSkip to conversation

sh: crash kernel resource fix

PATCH Applied Magnus Damm 2 participants 2 messages Aug 27, 2008 – Aug 28, 2008 SuperH

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sh: crash kernel resource fix

From: Magnus Damm <[email protected]>

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.

---

 arch/sh/kernel/setup.c |    6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
arch/sh/kernel/setup.c +1 -5
@@ -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);
 }
 
Applied
#1 lore raw
Quoted 3 lines · Magnus Damm

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.

Quoted 5 lines · Magnus Damm

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.

Quoted 1 line · Magnus Damm

This patch kills a section mismatch for platform_resource_setup_memory().

Quoted 2 lines · Magnus Damm

This patch updates the MigoR defconfig to include the recently merged uio_pdrv_genirq driver.

Quoted 2 lines · Magnus Damm

This patch updates the AP325RXA defconfig to include the recently merged uio_pdrv_genirq driver.

Applied, thanks.