powerpc/rtas: lockdep annotations
authorNathan Lynch <nathanl@linux.ibm.com>
Mon, 6 Mar 2023 21:33:45 +0000 (15:33 -0600)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 30 Mar 2023 12:36:35 +0000 (23:36 +1100)
commitaf8bc68263b2184e63ee67ca70cecff4636f7901
tree50d0f973be986a800fb159e30a3bd46fb62ccc03
parent32740fce09f98d30f3c71a09ee4e9d90b3965427
powerpc/rtas: lockdep annotations

Add lockdep annotations for the following properties that must hold:

* Any error log retrieval must be atomically coupled with the prior
  RTAS call, without a window for another RTAS call to occur before the
  error log can be retrieved.

* All users of the core rtas_args parameter block must hold rtas_lock.

Move the definitions of rtas_lock and rtas_args up in the file so that
__do_enter_rtas_trace() can refer to them.

Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com>
Reviewed-by: Andrew Donnellan <ajd@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230220-rtas-queue-for-6-4-v1-6-010e4416f13f@linux.ibm.com
arch/powerpc/kernel/rtas.c