powerpc/powernv: Change NPU PE# assignment
authorAlistair Popple <alistair@popple.id.au>
Mon, 11 Jan 2016 05:53:49 +0000 (16:53 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 11 Jan 2016 09:30:51 +0000 (20:30 +1100)
commitb521549a09ddfac3bed38e261168cda92d04ce81
tree2d8ff3ff19270c0e0338b6b8ae163c0a098a7b37
parent419dbd5e1ff0e45a6e1d28c1f7b74d121d2a56e7
powerpc/powernv: Change NPU PE# assignment

The P8+ hardware supports four partitionable endpoints (PEs) however
the hardware reports all errors as occurring on PE#0. This means we
need to reserve this PE for error handling (EEH) and not assign it to
a NPU device, implying that some devices will need to share PEs.

This patch changes the PE assignment for NPU devices such that NPU
devices which connect to the same GPU are assigned to the same
PE#.

Signed-off-by: Alistair Popple <alistair@popple.id.au>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/pci-ioda.c