1
0
Fork 0
alistair23-linux/drivers/misc/ocxl
Greg Kurz e1e71e2017 ocxl: Fix endiannes bug in ocxl_link_update_pe()
All fields in the PE are big-endian. Use cpu_to_be32() like everywhere
else something is written to the PE. Otherwise a wrong TID will be used
by the NPU. If this TID happens to point to an existing thread sharing
the same mm, it could be woken up by error. This is highly improbable
though. The likely outcome of this is the NPU not finding the target
thread and forcing the AFU into sending an interrupt, which userspace
is supposed to handle anyway.

Fixes: e948e06fc6 ("ocxl: Expose the thread_id needed for wait on POWER9")
Cc: stable@vger.kernel.org      # v4.18
Signed-off-by: Greg Kurz <groug@kaod.org>
Acked-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2018-12-20 22:21:20 +11:00
..
Kconfig ocxl: Add Makefile and Kconfig 2018-01-24 11:42:59 +11:00
Makefile ocxl: Add Makefile and Kconfig 2018-01-24 11:42:59 +11:00
afu_irq.c ocxl: Add trace points 2018-01-24 11:42:59 +11:00
config.c ocxl: Fix access to the AFU Descriptor Data 2018-09-19 21:58:09 +10:00
context.c ocxl: Change return type for fault handler 2018-07-02 23:54:26 +10:00
file.c ocxl: Fix missing unlock on error in afu_ioctl_enable_p9_wait() 2018-06-05 21:33:57 +10:00
link.c ocxl: Fix endiannes bug in ocxl_link_update_pe() 2018-12-20 22:21:20 +11:00
main.c ocxl: Driver code for 'generic' opencapi devices 2018-01-24 11:42:58 +11:00
ocxl_internal.h ocxl: Expose the thread_id needed for wait on POWER9 2018-06-03 20:40:32 +10:00
pasid.c ocxl: Driver code for 'generic' opencapi devices 2018-01-24 11:42:58 +11:00
pci.c misc: ocxl: use put_device() instead of device_unregister() 2018-03-15 18:12:01 +01:00
sysfs.c ocxl: Change return type for fault handler 2018-07-02 23:54:26 +10:00
trace.c ocxl: Add trace points 2018-01-24 11:42:59 +11:00
trace.h ocxl: Add trace points 2018-01-24 11:42:59 +11:00