Re: [Xen-devel] [RFC PATCH v3 06/12] xen-blkfront: add callbacks for PM suspend and hibernation

2020-03-13 Thread Anchal Agarwal
On Thu, Mar 12, 2020 at 10:04:35AM +0100, Roger Pau Monné wrote: > CAUTION: This email originated from outside of the organization. Do not click > links or open attachments unless you can confirm the sender and know the > content is safe. > > > > On Wed, Mar 11, 2020 at 10:25:15PM +,

Re: [Xen-devel] [RFC PATCH v3 06/12] xen-blkfront: add callbacks for PM suspend and hibernation

2020-03-09 Thread Roger Pau Monné
On Fri, Mar 06, 2020 at 06:40:33PM +, Anchal Agarwal wrote: > On Fri, Feb 21, 2020 at 03:24:45PM +0100, Roger Pau Monné wrote: > > On Fri, Feb 14, 2020 at 11:25:34PM +, Anchal Agarwal wrote: > > > blkfront_gather_backend_features(info); > > > /* Reset limits changed by

Re: [Xen-devel] [RFC PATCH v3 06/12] xen-blkfront: add callbacks for PM suspend and hibernation

2020-03-06 Thread Anchal Agarwal
On Fri, Feb 21, 2020 at 03:24:45PM +0100, Roger Pau Monné wrote: > On Fri, Feb 14, 2020 at 11:25:34PM +, Anchal Agarwal wrote: > > From: Munehisa Kamata > > > Add freeze, thaw and restore callbacks for PM suspend and hibernation > > support. All frontend drivers that needs to use

Re: [Xen-devel] [RFC PATCH v3 06/12] xen-blkfront: add callbacks for PM suspend and hibernation

2020-02-21 Thread Roger Pau Monné
On Fri, Feb 14, 2020 at 11:25:34PM +, Anchal Agarwal wrote: > From: Munehisa Kamata > Add freeze, thaw and restore callbacks for PM suspend and hibernation > support. All frontend drivers that needs to use PM_HIBERNATION/PM_SUSPEND > events, need to implement these xenbus_driver callbacks. >

Re: [Xen-devel] [RFC PATCH v3 06/12] xen-blkfront: add callbacks for PM suspend and hibernation

2020-02-21 Thread Roger Pau Monné
onrad.w...@oracle.com; > > > > b...@alien8.de; boris.ostrov...@oracle.com; jgr...@suse.com; > > > > net...@vger.kernel.org; linux...@vger.kernel.org; r...@rjwysocki.net; > > > > linux-ker...@vger.kernel.org; vkuzn...@redhat.com; > > da...@davemloft.net; > > &

Re: [Xen-devel] [RFC PATCH v3 06/12] xen-blkfront: add callbacks for PM suspend and hibernation

2020-02-21 Thread Durrant, Paul
com; > net...@vger.kernel.org; linux...@vger.kernel.org; r...@rjwysocki.net; > linux-ker...@vger.kernel.org; vkuzn...@redhat.com; da...@davemloft.net; > Woodhouse, David > Subject: Re: [Xen-devel] [RFC PATCH v3 06/12] xen-blkfront: add callbacks > for PM suspend and hibernation > > On F

Re: [Xen-devel] [RFC PATCH v3 06/12] xen-blkfront: add callbacks for PM suspend and hibernation

2020-02-21 Thread Roger Pau Monné
> ; ax...@kernel.dk; konrad.w...@oracle.com; > > b...@alien8.de; boris.ostrov...@oracle.com; jgr...@suse.com; > > net...@vger.kernel.org; linux...@vger.kernel.org; r...@rjwysocki.net; > > linux-ker...@vger.kernel.org; vkuzn...@redhat.com; da...@davemloft.net; > > Woodh

Re: [Xen-devel] [RFC PATCH v3 06/12] xen-blkfront: add callbacks for PM suspend and hibernation

2020-02-21 Thread Durrant, Paul
com; > net...@vger.kernel.org; linux...@vger.kernel.org; r...@rjwysocki.net; > linux-ker...@vger.kernel.org; vkuzn...@redhat.com; da...@davemloft.net; > Woodhouse, David > Subject: Re: [Xen-devel] [RFC PATCH v3 06/12] xen-blkfront: add callbacks > for PM suspend and hibernation > > On T

Re: [Xen-devel] [RFC PATCH v3 06/12] xen-blkfront: add callbacks for PM suspend and hibernation

2020-02-21 Thread Roger Pau Monné
l.org; r...@rjwysocki.net; > > > linux-ker...@vger.kernel.org; vkuzn...@redhat.com; da...@davemloft.net; > > > Woodhouse, David > > > Subject: Re: [Xen-devel] [RFC PATCH v3 06/12] xen-blkfront: add callbacks > > > for PM suspend and hibernation > > > F

Re: [Xen-devel] [RFC PATCH v3 06/12] xen-blkfront: add callbacks for PM suspend and hibernation

2020-02-21 Thread Roger Pau Monné
On Thu, Feb 20, 2020 at 05:01:52PM +, Durrant, Paul wrote: > > > Hopefully what I said above illustrates why it may not be 100% common. > > > > Yes, that's fine. I don't expect it to be 100% common (as I guess > > that the hooks will have different prototypes), but I expect > > that routines

Re: [Xen-devel] [RFC PATCH v3 06/12] xen-blkfront: add callbacks for PM suspend and hibernation

2020-02-20 Thread Anchal Agarwal
onrad.w...@oracle.com; > > > > b...@alien8.de; boris.ostrov...@oracle.com; jgr...@suse.com; > > > > net...@vger.kernel.org; linux...@vger.kernel.org; r...@rjwysocki.net; > > > > linux-ker...@vger.kernel.org; vkuzn...@redhat.com; > > da...@davemloft.net; > > >

Re: [Xen-devel] [RFC PATCH v3 06/12] xen-blkfront: add callbacks for PM suspend and hibernation

2020-02-20 Thread Durrant, Paul
com; > net...@vger.kernel.org; linux...@vger.kernel.org; r...@rjwysocki.net; > linux-ker...@vger.kernel.org; vkuzn...@redhat.com; da...@davemloft.net; > Woodhouse, David > Subject: Re: [Xen-devel] [RFC PATCH v3 06/12] xen-blkfront: add callbacks > for PM suspend and hibernation > > On T

Re: [Xen-devel] [RFC PATCH v3 06/12] xen-blkfront: add callbacks for PM suspend and hibernation

2020-02-20 Thread Roger Pau Monné
@kernel.dk; > > > > konrad.w...@oracle.com; b...@alien8.de; boris.ostrov...@oracle.com; > > > > jgr...@suse.com; net...@vger.kernel.org; linux...@vger.kernel.org; > > > > r...@rjwysocki.net; linux-ker...@vger.kernel.org; vkuzn...@redhat.com; > > > > da...@davemloft.

Re: [Xen-devel] [RFC PATCH v3 06/12] xen-blkfront: add callbacks for PM suspend and hibernation

2020-02-20 Thread Durrant, Paul
com; > net...@vger.kernel.org; linux...@vger.kernel.org; r...@rjwysocki.net; > linux-ker...@vger.kernel.org; vkuzn...@redhat.com; da...@davemloft.net; > Woodhouse, David > Subject: Re: [Xen-devel] [RFC PATCH v3 06/12] xen-blkfront: add callbacks > for PM suspend and hibernation > > On T

Re: [Xen-devel] [RFC PATCH v3 06/12] xen-blkfront: add callbacks for PM suspend and hibernation

2020-02-20 Thread Roger Pau Monné
gt; Singh, Balbir ; ax...@kernel.dk; > > konrad.w...@oracle.com; b...@alien8.de; boris.ostrov...@oracle.com; > > jgr...@suse.com; net...@vger.kernel.org; linux...@vger.kernel.org; > > r...@rjwysocki.net; linux-ker...@vger.kernel.org; vkuzn...@redhat.com; > > da...@davemloft.net; Woodh

Re: [Xen-devel] [RFC PATCH v3 06/12] xen-blkfront: add callbacks for PM suspend and hibernation

2020-02-20 Thread Durrant, Paul
suse.com; net...@vger.kernel.org; linux...@vger.kernel.org; > r...@rjwysocki.net; linux-ker...@vger.kernel.org; vkuzn...@redhat.com; > da...@davemloft.net; Woodhouse, David > Subject: Re: [Xen-devel] [RFC PATCH v3 06/12] xen-blkfront: add callbacks > for PM suspend and hibernation > >

Re: [Xen-devel] [RFC PATCH v3 06/12] xen-blkfront: add callbacks for PM suspend and hibernation

2020-02-20 Thread Roger Pau Monné
Thanks for this work, please see below. On Wed, Feb 19, 2020 at 06:04:24PM +, Anchal Agarwal wrote: > On Tue, Feb 18, 2020 at 10:16:11AM +0100, Roger Pau Monné wrote: > > On Mon, Feb 17, 2020 at 11:05:53PM +, Anchal Agarwal wrote: > > > On Mon, Feb 17, 2020 at 11:05:09AM +0100, Roger Pau

Re: [Xen-devel] [RFC PATCH v3 06/12] xen-blkfront: add callbacks for PM suspend and hibernation

2020-02-19 Thread Anchal Agarwal
On Tue, Feb 18, 2020 at 10:16:11AM +0100, Roger Pau Monné wrote: > On Mon, Feb 17, 2020 at 11:05:53PM +, Anchal Agarwal wrote: > > On Mon, Feb 17, 2020 at 11:05:09AM +0100, Roger Pau Monné wrote: > > > On Fri, Feb 14, 2020 at 11:25:34PM +, Anchal Agarwal wrote: > > > > From: Munehisa

Re: [Xen-devel] [RFC PATCH v3 06/12] xen-blkfront: add callbacks for PM suspend and hibernation

2020-02-18 Thread Roger Pau Monné
On Mon, Feb 17, 2020 at 11:05:53PM +, Anchal Agarwal wrote: > On Mon, Feb 17, 2020 at 11:05:09AM +0100, Roger Pau Monné wrote: > > On Fri, Feb 14, 2020 at 11:25:34PM +, Anchal Agarwal wrote: > > > From: Munehisa Kamata > > > > > Add freeze, thaw and restore callbacks for PM suspend and

Re: [Xen-devel] [RFC PATCH v3 06/12] xen-blkfront: add callbacks for PM suspend and hibernation

2020-02-17 Thread Anchal Agarwal
On Mon, Feb 17, 2020 at 11:05:09AM +0100, Roger Pau Monné wrote: > On Fri, Feb 14, 2020 at 11:25:34PM +, Anchal Agarwal wrote: > > From: Munehisa Kamata > > > Add freeze, thaw and restore callbacks for PM suspend and hibernation > > support. All frontend drivers that needs to use

Re: [Xen-devel] [RFC PATCH v3 06/12] xen-blkfront: add callbacks for PM suspend and hibernation

2020-02-17 Thread Roger Pau Monné
On Fri, Feb 14, 2020 at 11:25:34PM +, Anchal Agarwal wrote: > From: Munehisa Kamata > Add freeze, thaw and restore callbacks for PM suspend and hibernation > support. All frontend drivers that needs to use PM_HIBERNATION/PM_SUSPEND > events, need to implement these xenbus_driver callbacks. >

[Xen-devel] [RFC PATCH v3 06/12] xen-blkfront: add callbacks for PM suspend and hibernation

2020-02-14 Thread Anchal Agarwal
From: Munehisa Kamata Signed-off-by: Munehisa Kamata --- drivers/block/xen-blkfront.c | 119 --- 1 file changed, 112 insertions(+), 7 deletions(-) diff --git a/drivers/block/xen-blkfront.c b/drivers/block/xen-blkfront.c index 478120233750..d715ed3cb69a 100644

[Xen-devel] [RFC PATCH v3 06/12] xen-blkfront: add callbacks for PM suspend and hibernation

2020-02-12 Thread Anchal Agarwal
From: Munehisa Kamata Add freeze, thaw and restore callbacks for PM suspend and hibernation support. All frontend drivers that needs to use PM_HIBERNATION/PM_SUSPEND events, need to implement these xenbus_driver callbacks. The freeze handler stops a block-layer queue and disconnect the frontend