powerpc/powernv: Add IMC OPAL APIs
authorMadhavan Srinivasan <maddy@linux.vnet.ibm.com>
Tue, 18 Jul 2017 21:36:32 +0000 (03:06 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 24 Jul 2017 13:00:22 +0000 (23:00 +1000)
commit28a5db0061014c8afbbb98560cf420c29bc4d8e1
treec64d4825954a9a0e0696f25dbace9fd4f4fd051d
parent7e7dc66adcf490a619bc3c7763a8cebadfba73e3
powerpc/powernv: Add IMC OPAL APIs

In-Memory Collection (IMC) counters are performance monitoring
infrastructure. These counters need special sequence of SCOMs to
init/start/stop which is handled by OPAL. And OPAL provides three APIs
to init and control these IMC engines.

OPAL API documentation:
  https://github.com/open-power/skiboot/blob/master/doc/opal-api/opal-imc-counters.rst

Patch updates the kernel side powernv platform code to support the new
OPAL APIs

Signed-off-by: Hemant Kumar <hemant@linux.vnet.ibm.com>
Signed-off-by: Anju T Sudhakar <anju@linux.vnet.ibm.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/opal-api.h
arch/powerpc/include/asm/opal.h
arch/powerpc/platforms/powernv/opal-wrappers.S