Commit 413d6ed3 authored by Haren Myneni's avatar Haren Myneni Committed by Michael Ellerman
Browse files

powerpc/vas: Move VAS API to book3s common platform



The pseries platform will share vas and nx code and interfaces
with the PowerNV platform, so create the
arch/powerpc/platforms/book3s/ directory and move VAS API code
there. Functionality is not changed.

Signed-off-by: default avatarHaren Myneni <haren@linux.ibm.com>
Reviewed-by: default avatarNicholas Piggin <npiggin@gmail.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/e05c8db17b9eabe3545b902d034238e4c6c08180.camel@linux.ibm.com
parent 91cdbb95
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -162,6 +162,9 @@ int vas_copy_crb(void *crb, int offset);
 */
int vas_paste_crb(struct vas_window *win, int offset, bool re);

void vas_win_paste_addr(struct vas_window *window, u64 *addr,
			int *len);

/*
 * Register / unregister coprocessor type to VAS API which will be exported
 * to user space. Applications can use this API to open / close window
+1 −0
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@ source "arch/powerpc/platforms/embedded6xx/Kconfig"
source "arch/powerpc/platforms/44x/Kconfig"
source "arch/powerpc/platforms/40x/Kconfig"
source "arch/powerpc/platforms/amigaone/Kconfig"
source "arch/powerpc/platforms/book3s/Kconfig"

config KVM_GUEST
	bool "KVM Guest support"
+1 −0
Original line number Diff line number Diff line
@@ -22,3 +22,4 @@ obj-$(CONFIG_PPC_CELL) += cell/
obj-$(CONFIG_PPC_PS3)		+= ps3/
obj-$(CONFIG_EMBEDDED6xx)	+= embedded6xx/
obj-$(CONFIG_AMIGAONE)		+= amigaone/
obj-$(CONFIG_PPC_BOOK3S)	+= book3s/
+15 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0
config PPC_VAS
	bool "IBM Virtual Accelerator Switchboard (VAS)"
	depends on (PPC_POWERNV || PPC_PSERIES) && PPC_64K_PAGES
	default y
	help
	  This enables support for IBM Virtual Accelerator Switchboard (VAS).

	  VAS devices are found in POWER9-based and later systems, they
	  provide access to accelerator coprocessors such as NX-GZIP and
	  NX-842. This config allows the kernel to use NX-842 accelerators,
	  and user-mode APIs for the NX-GZIP accelerator on POWER9 PowerNV
	  and POWER10 PowerVM platforms.

	  If unsure, say "N".
+2 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0-only
obj-$(CONFIG_PPC_VAS)	+= vas-api.o
Loading