[PATCH 03/17] ARM: gic: Use cpu pm notifiers to save gic state

Kukjin Kim kgene.kim at samsung.com
Fri Jul 8 03:08:58 EDT 2011


Santosh Shilimkar wrote:
> 
> On 7/7/2011 6:41 PM, Colin Cross wrote:

Hi all,

Now Samsung prepares updating PM on EXYNOS4210 and save/restore GIC is
needed for that.
Actually, it works fine on EXYNOS4210 with this.

But we have some concern about following.

> +/*
> + * Saves the GIC distributor registers during suspend or idle.  Must be
called
> + * with interrupts disabled but before powering down the GIC.  After
calling
> + * this function, no interrupts will be delivered by the GIC, and another
> + * platform-specific wakeup source must be enabled.
> + */

PMU needs to detect interrupt which can be a wakeup source via GIC before
calling WFI.
Seems there is no problem but I think that can be a hole during very short
time...

So is it needed to disable GIC after saving context?

Thanks.

Best regards,
Kgene.
--
Kukjin Kim <kgene.kim at samsung.com>, Senior Engineer,
SW Solution Development Team, Samsung Electronics Co., Ltd.




More information about the linux-arm-kernel mailing list