Skip to contentSkip to conversation

powerpc/pseries: Quieten relocation on exceptions warning

PATCH In review Anton Blanchard 2 participants 2 messages Oct 19, 2014 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc/pseries: Quieten relocation on exceptions warning

The hypervisor returns H_P2 if relocation on exceptions are not supported. If we get this, just print a lower priority informational message.

---
 arch/powerpc/platforms/pseries/setup.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
arch/powerpc/platforms/pseries/setup.c +5 -1
index 125c589..fcc9227 100644
@@ -499,7 +499,11 @@ static void __init pSeries_setup_arch(void)
 
 	if (firmware_has_feature(FW_FEATURE_SET_MODE)) {
 		long rc;
-		if ((rc = pSeries_enable_reloc_on_exc()) != H_SUCCESS) {
+
+		rc = pSeries_enable_reloc_on_exc();
+		if (rc == H_P2) {
+			pr_info("Relocation on exceptions not supported\n");
+		} else if (rc != H_SUCCESS) {
 			pr_warn("Unable to enable relocation on exceptions: "
 				"%ld\n", rc);
 		}
Signature · 1 line
1.9.1
#1 lore raw
Quoted 3 lines

The hypervisor returns H_P2 if relocation on exceptions are not supported. If we get this, just print a lower priority informational message.

Can you add something about why this is needed? Something about h_set_mode being available so we can enable LE but not supporting any of the other calls like AIL?

Mikey

arch/powerpc/platfo=

Quoted 6 lines
---
 arch/powerpc/platforms/pseries/setup.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

=20

arch/powerpc/platfo= renamed from arch/powerpc/platforms/pseries/setup.c +0 -0

rms/pseries/setup.c

Quoted 16 lines

index 125c589..fcc9227 100644

arch/powerpc/platforms/pseries/setup.c +0 -0
@@ -499,7 +499,11 @@ static void __init pSeries_setup_arch(void)

=20

arch/powerpc/platforms/pseries/setup.c +5 -1
 	if (firmware_has_feature(FW_FEATURE_SET_MODE)) {
 		long rc;
-		if ((rc =3D pSeries_enable_reloc_on_exc()) !=3D H_SUCCESS) {
+
+		rc =3D pSeries_enable_reloc_on_exc();
+		if (rc =3D=3D H_P2) {
+			pr_info("Relocation on exceptions not supported\n");
+		} else if (rc !=3D H_SUCCESS) {
 			pr_warn("Unable to enable relocation on exceptions: "
 				"%ld\n", rc);
 		}