Re: [PATCH v6 11/16] firmware: arm_sdei: Add support for CPU and system power states

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Mon, Jan 08, 2018 at 05:22:26PM +0000, Lorenzo Pieralisi wrote:
> On Mon, Jan 08, 2018 at 03:38:13PM +0000, James Morse wrote:
> 
> [...]
> 
> > +/* When entering idle, mask/unmask events for this cpu */
> 
> Just mentioning (since I know you know), this notifier is called also
> through syscore_ops so it is not just idle (CPUidle or Suspend-to-idle).
> 
> > +static int sdei_pm_notifier(struct notifier_block *nb, unsigned long action,
> > +			    void *data)
> > +{
> > +	int rv;
> > +
> > +	switch (action) {
> > +	case CPU_PM_ENTER:
> > +		rv = sdei_mask_local_cpu();
> > +		break;
> > +	case CPU_PM_EXIT:
> > +		rv = sdei_unmask_local_cpu();
> 
> You should handle CPU_PM_ENTER_FAILED here for correctness,
> in case the notifier chain fails.

So, just to confirm, the CPU_PM_ENTER_FAILED case goes together with
CPU_PM_EXIT so that we unmask the SDE again for the CPU.

-- 
Catalin
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux