Messages in this thread Patch in this message | | | From | Sukadev Bhattiprolu <> | Subject | [PATCH v6 10/17] powerpc/vas: Define vas_rx_win_open() interface | Date | Tue, 8 Aug 2017 16:06:55 -0700 |
| |
Define the vas_rx_win_open() interface. This interface is intended to be used by the Nest Accelerator (NX) driver(s) to setup receive windows for one or more NX engines (which implement compression/encryption algorithms in the hardware).
Follow-on patches will provide an interface to close the window and to open a send window that kenrel subsystems can use to access the NX engines.
The interface to open a receive window is expected to be invoked for each instance of VAS in the system.
Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com> ---
Changelog[v6]: - Add support for FTW windows
Changelog[v4]: - Export the symbols
Changelog[v3]: - Fault receive windows must enable interrupts and disable notifications. NX Windows are opposite. - Use macros rather than enum for threshold-control mode - Ignore irq_ports for in-kernel windows. They are needed for user space windows and will be added later --- arch/powerpc/platforms/powernv/vas-window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/powerpc/platforms/powernv/vas-window.c b/arch/powerpc/platforms/powernv/vas-window.c index ff64022..dfa7e67 100644 --- a/arch/powerpc/platforms/powernv/vas-window.c +++ b/arch/powerpc/platforms/powernv/vas-window.c @@ -717,7 +717,7 @@ void clear_vinst_win(struct vas_window *window) mutex_lock(&vinst->mutex); - if (!window->tx_win) { + if (!window->user_win && !window->tx_win) { WARN_ON_ONCE(!vinst->rxwin[window->cop]); vinst->rxwin[window->cop] = NULL; } -- 2.7.4
| |