ocxl: Fix endiannes bug in ocxl_link_update_pe()

Michael Ellerman patch-notifications at ellerman.id.au
Sat Dec 22 20:54:50 AEDT 2018


On Sun, 2018-12-16 at 21:28:50 UTC, Greg Kurz wrote:
> 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: e948e06fc63a ("ocxl: Expose the thread_id needed for wait on POWER9")
> Cc: stable at vger.kernel.org      # v4.18
> Signed-off-by: Greg Kurz <groug at kaod.org>
> Acked-by: Andrew Donnellan <andrew.donnellan at au1.ibm.com>
> Reviewed-by: Alastair D'Silva <alastair at d-silva.org>

Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/e1e71e201703500f708bdeaf64660a

cheers


More information about the Linuxppc-dev mailing list