Skip to content

powerpc/powernv: Correctly detect optional OPAL calls

Stewart Smith linuxppc-dev lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3powerpc/powernv: only register log if OPAL supports doing soarch/powerpc/platforms/powernv/opal.c+5 -10 replies
2/3powerpc/powernv: only call OPAL_ELOG_RESEND if firmware supports itarch/powerpc/platforms/powernv/opal-elog.c+2 -10 replies
3/3powerpc/powernv: only call OPAL_RESEND_DUMP if firmware supports itarch/powerpc/platforms/powernv/opal-dump.c+2 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] powerpc/powernv: Correctly detect optional OPAL calls

This series fixes three possible warnings that OPAL firmware would emit when booting on hardware/simulator that didn't support certain functionality.

The correct thing for Linux to do is to detect firmware capability by using the OPAL_CHECK_TOKEN call or examining device tree. In the case of these three warnings, it was OPAL_CHECK_TOKEN.

Stewart Smith (3):
powerpc/powernv: only register log if OPAL supports doing so powerpc/powernv: only call OPAL_ELOG_RESEND if firmware supports it powerpc/powernv: only call OPAL_RESEND_DUMP if firmware supports it

 arch/powerpc/platforms/powernv/opal-dump.c |    3 ++-
 arch/powerpc/platforms/powernv/opal-elog.c |    3 ++-
 arch/powerpc/platforms/powernv/opal.c      |    6 +++++-
 3 files changed, 9 insertions(+), 3 deletions(-)
Signature · 1 line
1.7.10.4