summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorChristophe Lombard <clombard@linux.vnet.ibm.com>2017-09-26 10:15:21 +0200
committerMichael Ellerman <mpe@ellerman.id.au>2017-09-29 06:19:44 +0200
commit4fc0870d7e462fe3b86e0f938ae75ce884728c7d (patch)
tree8158b9a7dff59c19adef53198ecd7f89dc8ac4ed /arch
parentpowerpc: Fix workaround for spurious MCE on POWER9 (diff)
downloadlinux-4fc0870d7e462fe3b86e0f938ae75ce884728c7d.tar.xz
linux-4fc0870d7e462fe3b86e0f938ae75ce884728c7d.zip
cxl: Fix memory page not handled
The in-kernel 'library' API can be called by drivers to help interaction with an IBM XSL on a POWER9 system. The cxllib_handle_fault() API is used to handle memory fault. All memory pages of the specified buffer have to be handled but under certain conditions,the last page may not be touched, and the address the adapter is trying to access is never sent to the kernel for resolution. This patch reworks start address of the loop with an address aligned on the page size. In this context, the last page is not missed. Signed-off-by: Christophe Lombard <clombard@linux.vnet.ibm.com> Acked-by: Frederic Barrat <fbarrat@linux.vnet.ibm.com> Acked-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com> Fixes: 3ced8d730063 ("cxl: Export library to support IBM XSL"); Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions