summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorHaren Myneni <haren@linux.ibm.com>2020-04-16 09:07:36 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2020-04-20 09:53:01 +0300
commit1d955f981895464d8f112179a20bfdb92e6c63d4 (patch)
treec74077e57ebf711a0bb5c2fe8e276f71f4d524aa /arch
parentbd4da68dbd5fd2e83841b3500ac575967a948cfa (diff)
downloadlinux-1d955f981895464d8f112179a20bfdb92e6c63d4.tar.xz
powerpc/vas: Free send window in VAS instance after credits returned
NX may be processing requests while trying to close window. Wait until all credits are returned and then free send window from VAS instance. Signed-off-by: Haren Myneni <haren@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/1587017256.2275.1076.camel@hbabu-laptop
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/platforms/powernv/vas-window.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/platforms/powernv/vas-window.c b/arch/powerpc/platforms/powernv/vas-window.c
index d0c07cf03f68..e15b40596746 100644
--- a/arch/powerpc/platforms/powernv/vas-window.c
+++ b/arch/powerpc/platforms/powernv/vas-window.c
@@ -1316,14 +1316,14 @@ int vas_win_close(struct vas_window *window)
unmap_paste_region(window);
- clear_vinst_win(window);
-
poll_window_busy_state(window);
unpin_close_window(window);
poll_window_credits(window);
+ clear_vinst_win(window);
+
poll_window_castout(window);
/* if send window, drop reference to matching receive window */