Re: [PATCH 10/12] powerpc: powernv: Annotate data races in opal events

2023-05-08 Thread Nicholas Piggin
On Mon May 8, 2023 at 12:01 PM AEST, Rohan McLure wrote: > 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 as

[PATCH 10/12] powerpc: powernv: Annotate data races in opal events

2023-05-07 Thread Rohan McLure
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