[Skiboot] [PATCH v2 14/16] npu2-opencapi: Activate PCI hotplug on opencapi slot

christophe lombard clombard at linux.vnet.ibm.com
Mon Oct 14 23:42:44 AEDT 2019

On 09/10/2019 21:38, Frederic Barrat wrote:
> Implement the get_power_state() and set_power_state() callbacks for
> the opencapi slot and add properties in the device tree to mark the
> opencapi slot as hot-pluggable.
> We don't really power off/on the opencapi adapter. The slot at play
> here is the virtual slot associated to the virtual opencapi PHB. The
> real PCIe slot where the card is drawing its power from is
> untouched (skiboot is not even aware which PCIe slot the card is
> seated on). So the 'fake' power off is fencing the card and set it in
> reset so that the FPGA image can be updated. The 'fake' power on is
> not doing much, as the unfencing happens on the subsequent link
> training.
> Opencapi slots are named 'OPENCAPI-xxxx' where xxxx is the opal ID of
> the PHB/slot. This is meant to easily identify the slot used by an AFU
> device, as the AFU device names are also built around that ID.
> For example, the device /dev/ocxl/AFP3.0006:00:00.1.0 uses the slot
> OPENCAPI-0006.
> Signed-off-by: Frederic Barrat <fbarrat at linux.ibm.com>
> ---

Reviewed-by: Christophe Lombard <clombard at linux.vnet.ibm.com>

More information about the Skiboot mailing list