diff options
author | Anton Blanchard <anton@samba.org> | 2014-11-02 16:34:01 -0500 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2014-11-09 17:59:33 -0500 |
commit | 20f1aae6cb0120fa54c0fe81614f6983df3b420a (patch) | |
tree | e2632d7af470eaedf4675361c44656b82397edf0 | |
parent | 7aa189c8f57f2141b8655c2a13c7486d0844d490 (diff) |
powerpc/pseries: Quieten relocation on exceptions warning
The H_SET_MODE hcall returns H_P2 if a function is not implemented
and all callers should handle this case.
The call to enable relocation on exceptions currently prints an error
message if the feature is not implemented. While H_SET_MODE was
first introduced on POWER8 (which has relocation on exceptions), it
has been now added on some POWER7 configurations (which does not).
Check for H_P2 and print an informational message instead.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
-rw-r--r-- | arch/powerpc/platforms/pseries/setup.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/pseries/setup.c b/arch/powerpc/platforms/pseries/setup.c index db0fc0c07568..8b8fb19a4097 100644 --- a/arch/powerpc/platforms/pseries/setup.c +++ b/arch/powerpc/platforms/pseries/setup.c | |||
@@ -499,7 +499,11 @@ static void __init pSeries_setup_arch(void) | |||
499 | 499 | ||
500 | if (firmware_has_feature(FW_FEATURE_SET_MODE)) { | 500 | if (firmware_has_feature(FW_FEATURE_SET_MODE)) { |
501 | long rc; | 501 | long rc; |
502 | if ((rc = pSeries_enable_reloc_on_exc()) != H_SUCCESS) { | 502 | |
503 | rc = pSeries_enable_reloc_on_exc(); | ||
504 | if (rc == H_P2) { | ||
505 | pr_info("Relocation on exceptions not supported\n"); | ||
506 | } else if (rc != H_SUCCESS) { | ||
503 | pr_warn("Unable to enable relocation on exceptions: " | 507 | pr_warn("Unable to enable relocation on exceptions: " |
504 | "%ld\n", rc); | 508 | "%ld\n", rc); |
505 | } | 509 | } |