All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Edgar E. Iglesias" <edgar.iglesias@xilinx.com>
To: Mirela Simonovic <mirela.simonovic@aggios.com>
Cc: Oleksandr Tyshchenko <olekstysh@gmail.com>,
	Julien Grall <julien.grall@linaro.org>,
	Stefano Stabellini <sstabellini@kernel.org>,
	Xen Devel <xen-devel@lists.xen.org>
Subject: Re: [RFC v2] xen/arm: Suspend to RAM Support in Xen for ARM
Date: Thu, 25 Jan 2018 21:15:44 +0700	[thread overview]
Message-ID: <20180125141544.GD1706@toto> (raw)
In-Reply-To: <ec2de564-f4e7-eeef-8426-d8858dcdac41@aggios.com>

On Wed, Jan 24, 2018 at 07:04:35PM +0100, Mirela Simonovic wrote:
> Hi Oleksandr, Edgar,
> 
> 
> Thanks, you're right.
> 
> 
> On 01/23/2018 12:58 PM, Edgar E. Iglesias wrote:
> >On Tue, Jan 23, 2018 at 01:52:50PM +0200, Oleksandr Tyshchenko wrote:
> >>Hi Mirela,
> >>
> >>Just some remarks regarding the scope of work:
> >>
> >>+In addition, the following have to be implemented:
> >>+* Suspend/resume vCPU (triggered by vSYSTEM_SUSPEND call)
> >>+* Suspend/resume Xen (triggered by vSYSTEM_SUSPEND called by Dom0), including:
> >>+       * Disable wathdog on suspend, enable it on resume
> >>+       * Pause domains on suspend, unpause them on resume
> >>+       * Disable non-boot pCPUs on suspend, enable them on resume
> >>+       * Save/restore of GIC configuration
> >>+       * Suspend/resume timer
> >>+       * Save/restore of EL2 context
> >>+       * Implement resume entry point in Xen, including MMU configuration
> >>
> >>I think that saving/restoring IOMMU registers/context should be
> >>implemented as well.
> >Yes, good point.
> >Mirela, I think that in the ZU+ case the IOMMU actually gets powered down
> >with the FPD.
> 
> Yes, it is in FPD.

Having said that it may still be useful from a patch review perspective
to incrementally add things. Perhaps the IOMMU suspending support could
come in follow-up patch series if others agree.

Best regards,
Edgar



> >
> >
> >>In other words, each involved platform device driver in Xen on ARM
> >>(IOMMU-XX, UART-XX, etc) should have suspend/resume callbacks
> >>implemented.
> 
> Yes, callback should be platform specific but not each platform has to have
> all callbacks implemented. E.g. on ZU+ UART is in differrent power domain
> compared to APU/Xen. Xen can suspend and its power domain can go down even
> if UART is not suspended. However, suspending UART even in this case may be
> beneficial from power perspective. We should definitely provide the option
> to implement the callback.
> 
> AFAIU, the following devices has to be suspended:
> 1. timer
> 2. IOMMU
> 3. UART
> 4. GIC
> 
> Please let me know if I missed something. I'll update this in next design
> spec version. Thank you very much for good feedback!
> 
> Cheers,
> Mirela
> >Yes agreed.
> >
> >Best regards,
> >Edgar
> >
> >
> >>-- 
> >>Regards,
> >>
> >>Oleksandr Tyshchenko
> 

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

  reply	other threads:[~2018-01-25 14:15 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-22 17:41 [RFC v2] xen/arm: Suspend to RAM Support in Xen for ARM Mirela Simonovic
2018-01-11  0:55 ` Stefano Stabellini
2018-01-11 14:00 ` Julien Grall
2018-01-23 11:52   ` Oleksandr Tyshchenko
2018-01-23 11:58     ` Edgar E. Iglesias
2018-01-24 18:04       ` Mirela Simonovic
2018-01-25 14:15         ` Edgar E. Iglesias [this message]
2018-01-26 15:37           ` Julien Grall
2018-01-24 17:55   ` Mirela Simonovic
2018-01-26 16:08     ` Julien Grall
2018-04-17 12:13       ` Mirela Simonovic
2018-03-26  9:51 ` Peng Fan
2018-03-26 11:42   ` Edgar E. Iglesias
2018-04-12  2:26     ` Peng Fan
2018-04-12 14:13       ` Mirela Simonovic

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180125141544.GD1706@toto \
    --to=edgar.iglesias@xilinx.com \
    --cc=julien.grall@linaro.org \
    --cc=mirela.simonovic@aggios.com \
    --cc=olekstysh@gmail.com \
    --cc=sstabellini@kernel.org \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.