Skip to contentSkip to conversation

powerpc/pseries: Disable relocation on exception while going down during crash.

PATCH New Mahesh J Salgaonkar 1 participant 1 message Jan 30, 2014 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc/pseries: Disable relocation on exception while going down during crash.

From: Mahesh Salgaonkar <[email protected]>

Disable relocation on exception while going down even in kdump case. This is because we are about clear htab mappings while kexec-ing into kdump kernel and we may run into issues if we still have AIL ON.

---
 arch/powerpc/platforms/pseries/setup.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
arch/powerpc/platforms/pseries/setup.c +1 -2
index c1f1908..3925173 100644
@@ -430,8 +430,7 @@ static void pSeries_machine_kexec(struct kimage *image)
 {
 	long rc;
 
-	if (firmware_has_feature(FW_FEATURE_SET_MODE) &&
-	    (image->type != KEXEC_TYPE_CRASH)) {
+	if (firmware_has_feature(FW_FEATURE_SET_MODE)) {
 		rc = pSeries_disable_reloc_on_exc();
 		if (rc != H_SUCCESS)
 			pr_warning("Warning: Failed to disable relocation on "