diff options
author | Philippe Bergheaud <felix@linux.vnet.ibm.com> | 2018-03-02 10:56:11 +0100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2018-03-13 05:50:30 +0100 |
commit | d6a90bb83b5084829558788ea5b8818c9be3da63 (patch) | |
tree | bbd573a1c9fcf7d7157f451d00614b0e7f3b20f0 /drivers/misc/cxl/pci.c | |
parent | powerpc/powernv/npu: Fix deadlock in mmio_invalidate() (diff) | |
download | linux-d6a90bb83b5084829558788ea5b8818c9be3da63.tar.xz linux-d6a90bb83b5084829558788ea5b8818c9be3da63.zip |
powerpc/powernv: Enable tunneled operations
P9 supports PCI tunneled operations (atomics and as_notify). This
patch adds support for tunneled operations on powernv, with a new
API, to be called by device drivers:
pnv_pci_enable_tunnel()
Enable tunnel operations, tell driver the 16-bit ASN indication
used by kernel.
pnv_pci_disable_tunnel()
Disable tunnel operations.
pnv_pci_set_tunnel_bar()
Tell kernel the Tunnel BAR Response address used by driver.
This function uses two new OPAL calls, as the PBCQ Tunnel BAR
register is configured by skiboot.
pnv_pci_get_as_notify_info()
Return the ASN info of the thread to be woken up.
Signed-off-by: Philippe Bergheaud <felix@linux.vnet.ibm.com>
Reviewed-by: Frederic Barrat <fbarrat@linux.vnet.ibm.com>
Reviewed-by: Christophe Lombard <clombard@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'drivers/misc/cxl/pci.c')
0 files changed, 0 insertions, 0 deletions