irqchip: fixed S3 could not resume after suspend
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 11 lines · On Fri, 09 Apr 2021 11:10:09 +0100, [email protected] wrote:
From: Mengguang Peng <[email protected]>
On arm64 platform, found that the machine could not wake up after suspend, this patch updates the its suspend and resume handling code.
- Add a variable named
ctlr_savein struct rdists.
- When suspend, save the value ofGICR_CTLRto memmory inits_save_disable().
- When resume, write the value of memory saved toGICR_CTLRinits_restore_enable().
This really is the kind of things that must be handled by firmware. How comes yours doesn't handle it?
That is what you should be fixing. See the ATF code for a (working) reference implementation
Thanks,
M.
Signature · 1 line
Without deviation from the norm, progress is not possible.