linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] OPAL message log interface
@ 2014-04-01  3:58 Joel Stanley
  2014-04-01  3:58 ` [PATCH v2 1/2] powerpc/powernv: Add " Joel Stanley
  2014-04-01  3:58 ` [PATCH v2 2/2] powerpc/powernv: Add invalid OPAL call Joel Stanley
  0 siblings, 2 replies; 3+ messages in thread
From: Joel Stanley @ 2014-04-01  3:58 UTC (permalink / raw)
  To: benh, paulus, anton, shangw, hegdevasant, michael, mikey, stewart
  Cc: linuxppc-dev

These two patches add support for the message log, and expose a new OPAL call
called opal_invalid that allow me to cause OPAL to inject messages into the
log.

The naming is a bit mixed, as our device tree node is opal-memcons and I
retained the naming of the header structure 'struct memcons', but all other
references are to the OPAL message log.

They have been tested on a POWER7+ machine running some recent firmware.

Changes in V2:

The guts of the function used to read the console has been reworked. In doing
so, I've addressed the comments from Mikey and Ben:

 - Added barrier between reading header and data
 - Only read out_pos once
 - Check the return code before adding it to the number of bytes read

Unlike V1, this version correctly reads out a wrapped buffer.

Joel Stanley (2):
  powerpc/powernv: Add OPAL message log interface
  powerpc/powernv: Add invalid OPAL call

 arch/powerpc/include/asm/opal.h                |   6 ++
 arch/powerpc/platforms/powernv/Makefile        |   1 +
 arch/powerpc/platforms/powernv/opal-msglog.c   | 120 +++++++++++++++++++++++++
 arch/powerpc/platforms/powernv/opal-wrappers.S |   1 +
 arch/powerpc/platforms/powernv/opal.c          |   7 +-
 5 files changed, 134 insertions(+), 1 deletion(-)
 create mode 100644 arch/powerpc/platforms/powernv/opal-msglog.c

-- 
1.9.1

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-04-01  4:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-01  3:58 [PATCH v2 0/2] OPAL message log interface Joel Stanley
2014-04-01  3:58 ` [PATCH v2 1/2] powerpc/powernv: Add " Joel Stanley
2014-04-01  3:58 ` [PATCH v2 2/2] powerpc/powernv: Add invalid OPAL call Joel Stanley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).