]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit669fc8079687f28a2dbe11ce7a89b74751a91086
treec64d4825954a9a0e0696f25dbace9fd4f4fd051d
parent0377e193a87e6aac4a35f7507df1832ba495b6cb
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