]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pseries/npu: Enable platform support
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Wed, 19 Dec 2018 08:52:19 +0000 (19:52 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 21 Dec 2018 05:20:46 +0000 (16:20 +1100)
commita69b548b6b37b26489be9d7ec7d177c7474a8834
tree5d2e366a9f39a47fe3e65be6b34460f29bd26a24
parentd0569d43f00c82ca1ba724f55e970b980dbd897e
powerpc/pseries/npu: Enable platform support

We already changed NPU API for GPUs to not to call OPAL and the remaining
bit is initializing NPU structures.

This searches for POWER9 NVLinks attached to any device on a PHB and
initializes an NPU structure if any found.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/pseries/pci.c