powerpc: powernv: Annotate data races in opal events
authorRohan McLure <rmclure@linux.ibm.com>
Wed, 10 May 2023 03:31:15 +0000 (13:31 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 21 Jun 2023 05:13:57 +0000 (15:13 +1000)
commit331e2cad6d168ac5ccb25ae34bdc305b8b731bc0
treeb0599c92a1ac5d9958abed5d407de616a9c7f53d
parent86dacd967b80114c0c6cf0648ed1dcaea8853937
powerpc: powernv: Annotate data races in opal events

The kopald thread handles opal events as they appear, but by polling a
static bit-vector in last_outstanding_events. Annotate these data races
accordingly. We are not at risk of missing events, but use of READ_ONCE,
WRITE_ONCE will assist readers in seeing that kopald only consumes the
events it is aware of when it is scheduled. Also removes extraneous
KCSAN warnings.

Signed-off-by: Rohan McLure <rmclure@linux.ibm.com>
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230510033117.1395895-10-rmclure@linux.ibm.com
arch/powerpc/platforms/powernv/opal-irqchip.c