]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
powerpc/powernv: Enable tunneled operations
authorPhilippe Bergheaud <felix@linux.vnet.ibm.com>
Fri, 2 Mar 2018 09:56:11 +0000 (10:56 +0100)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Tue, 10 Apr 2018 16:43:43 +0000 (13:43 -0300)
commit942c22df85ac30e734a4077be785f3a8a06df53d
treea89079f3408040ce50aceab2329cc8a4e3110ab4
parent7759cb2c2abe13f85fb7c52452d91b9d27321771
powerpc/powernv: Enable tunneled operations

BugLink: http://bugs.launchpad.net/bugs/1762448
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>
(cherry picked from commit d6a90bb83b5084829558788ea5b8818c9be3da63)
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
arch/powerpc/include/asm/opal-api.h
arch/powerpc/include/asm/opal.h
arch/powerpc/include/asm/pnv-pci.h
arch/powerpc/platforms/powernv/opal-wrappers.S
arch/powerpc/platforms/powernv/pci-cxl.c
arch/powerpc/platforms/powernv/pci.c