Re: [PATCH v2 3/3] soc: qcom: rpmh: Conditionally check lockdep_assert_irqs_disabled()

2021-02-03 Thread Doug Anderson
Hi, On Sun, Jan 24, 2021 at 10:21 PM Maulik Shah wrote: > > @@ -136,6 +136,6 @@ void rpmh_rsc_invalidate(struct rsc_drv *drv); > int rpmh_rsc_mode_solver_set(struct rsc_drv *drv, bool enable); > > void rpmh_tx_done(const struct tcs_request *msg, int r); > -int rpmh_flush(struct rpmh_ctrlr *ctrl

[PATCH v2 3/3] soc: qcom: rpmh: Conditionally check lockdep_assert_irqs_disabled()

2021-01-24 Thread Maulik Shah
lockdep_assert_irqs_disabled() was added to check rpmh_flush() can only be invoked when irqs are disabled from last CPU, this is true for APPS RSC as the last CPU going to deepest low power mode is writing sleep and wake TCSes. However platform drivers can invoke rpmh_write_sleep_and_wake() to imm