powerpc/vas: Define and use common vas_window struct
authorHaren Myneni <haren@linux.ibm.com>
Thu, 17 Jun 2021 20:33:28 +0000 (13:33 -0700)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 20 Jun 2021 11:58:56 +0000 (21:58 +1000)
commit7bc6f71bdff5f8921e324da0a8fad6f4e2e63a85
treeb64774777dc2a0af9aee69a6a326a21a35915fdc
parent3b26797350352479f37216d674c8e5d126faab66
powerpc/vas: Define and use common vas_window struct

Many elements in vas_struct are used on PowerNV and PowerVM
platforms. vas_window is used for both TX and RX windows on
PowerNV and for TX windows on PowerVM. So some elements are
specific to these platforms.

So this patch defines common vas_window and platform
specific window structs (pnv_vas_window on PowerNV). Also adds
the corresponding changes in PowerNV vas code.

Signed-off-by: Haren Myneni <haren@linux.ibm.com>
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/1698c35c158dfe52c6d2166667823d3d4a463353.camel@linux.ibm.com
arch/powerpc/include/asm/vas.h
arch/powerpc/platforms/powernv/vas-debug.c
arch/powerpc/platforms/powernv/vas-fault.c
arch/powerpc/platforms/powernv/vas-trace.h
arch/powerpc/platforms/powernv/vas-window.c
arch/powerpc/platforms/powernv/vas.h