* [PATCH 1/1] Drivers: hv: vmbus: Enable interrupt driven flow control
@ 2014-09-05 18:23 K. Y. Srinivasan
2014-09-05 19:11 ` Greg KH
0 siblings, 1 reply; 4+ messages in thread
From: K. Y. Srinivasan @ 2014-09-05 18:23 UTC (permalink / raw)
To: gregkh, linux-kernel, devel, olaf, apw, jasowang; +Cc: K. Y. Srinivasan
This is a win8 feature that has been implemented. Turn on the feature bit
to enable the feature. With this feature turned on, when the host is waiting
for space to become available on the ringbuffer (host to guest), the guest
will interrupt the host when space becomes available (as part of draining
the ring buffer).
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
---
drivers/hv/ring_buffer.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/drivers/hv/ring_buffer.c b/drivers/hv/ring_buffer.c
index 15db66b..6361d12 100644
--- a/drivers/hv/ring_buffer.c
+++ b/drivers/hv/ring_buffer.c
@@ -361,6 +361,11 @@ int hv_ringbuffer_init(struct hv_ring_buffer_info *ring_info,
ring_info->ring_buffer->read_index =
ring_info->ring_buffer->write_index = 0;
+ /*
+ * Set the feature bit for enabling flow control.
+ */
+ ring_info->ring_buffer->feature_bits.value = 1;
+
ring_info->ring_size = buflen;
ring_info->ring_datasize = buflen - sizeof(struct hv_ring_buffer);
--
1.7.4.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] Drivers: hv: vmbus: Enable interrupt driven flow control
2014-09-05 18:23 [PATCH 1/1] Drivers: hv: vmbus: Enable interrupt driven flow control K. Y. Srinivasan
@ 2014-09-05 19:11 ` Greg KH
2014-09-05 20:53 ` KY Srinivasan
0 siblings, 1 reply; 4+ messages in thread
From: Greg KH @ 2014-09-05 19:11 UTC (permalink / raw)
To: K. Y. Srinivasan; +Cc: linux-kernel, devel, olaf, apw, jasowang
On Fri, Sep 05, 2014 at 11:23:22AM -0700, K. Y. Srinivasan wrote:
> This is a win8 feature that has been implemented. Turn on the feature bit
> to enable the feature.
What does those two sentances even mean?
> With this feature turned on,
What is "this"?
> when the host is waiting
> for space to become available on the ringbuffer (host to guest), the guest
> will interrupt the host when space becomes available (as part of draining
> the ring buffer).
>
> Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
> ---
> drivers/hv/ring_buffer.c | 5 +++++
> 1 files changed, 5 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/hv/ring_buffer.c b/drivers/hv/ring_buffer.c
> index 15db66b..6361d12 100644
> --- a/drivers/hv/ring_buffer.c
> +++ b/drivers/hv/ring_buffer.c
> @@ -361,6 +361,11 @@ int hv_ringbuffer_init(struct hv_ring_buffer_info *ring_info,
> ring_info->ring_buffer->read_index =
> ring_info->ring_buffer->write_index = 0;
>
> + /*
> + * Set the feature bit for enabling flow control.
> + */
> + ring_info->ring_buffer->feature_bits.value = 1;
What happens if you are running on an old system that doesn't support
this new "feature"?
thanks,
greg k-h
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [PATCH 1/1] Drivers: hv: vmbus: Enable interrupt driven flow control
2014-09-05 19:11 ` Greg KH
@ 2014-09-05 20:53 ` KY Srinivasan
2014-09-05 21:26 ` Greg KH
0 siblings, 1 reply; 4+ messages in thread
From: KY Srinivasan @ 2014-09-05 20:53 UTC (permalink / raw)
To: Greg KH
Cc: linux-kernel@vger.kernel.org, devel@linuxdriverproject.org,
olaf@aepfle.de, apw@canonical.com, jasowang@redhat.com
> -----Original Message-----
> From: Greg KH [mailto:gregkh@linuxfoundation.org]
> Sent: Friday, September 5, 2014 12:12 PM
> To: KY Srinivasan
> Cc: linux-kernel@vger.kernel.org; devel@linuxdriverproject.org;
> olaf@aepfle.de; apw@canonical.com; jasowang@redhat.com
> Subject: Re: [PATCH 1/1] Drivers: hv: vmbus: Enable interrupt driven flow
> control
>
> On Fri, Sep 05, 2014 at 11:23:22AM -0700, K. Y. Srinivasan wrote:
> > This is a win8 feature that has been implemented. Turn on the feature
> > bit to enable the feature.
>
> What does those two sentances even mean?
Greg,
The feature has been implemented and has been in the tree for a while.
However, the feature was not advertised to the host and this patch does just that.
>
> > With this feature turned on,
>
> What is "this"?
"this" refers to the feature bit.
>
> > when the host is waiting
> > for space to become available on the ringbuffer (host to guest), the
> > guest will interrupt the host when space becomes available (as part of
> > draining the ring buffer).
> >
> > Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
> > ---
> > drivers/hv/ring_buffer.c | 5 +++++
> > 1 files changed, 5 insertions(+), 0 deletions(-)
> >
> > diff --git a/drivers/hv/ring_buffer.c b/drivers/hv/ring_buffer.c index
> > 15db66b..6361d12 100644
> > --- a/drivers/hv/ring_buffer.c
> > +++ b/drivers/hv/ring_buffer.c
> > @@ -361,6 +361,11 @@ int hv_ringbuffer_init(struct hv_ring_buffer_info
> *ring_info,
> > ring_info->ring_buffer->read_index =
> > ring_info->ring_buffer->write_index = 0;
> >
> > + /*
> > + * Set the feature bit for enabling flow control.
> > + */
> > + ring_info->ring_buffer->feature_bits.value = 1;
>
> What happens if you are running on an old system that doesn't support this
> new "feature"?
The control structure for the ring buffer (where this feature bit is) has not changed and so, for
hosts that don't understand this, it does not matter.
Hope this helps. Let me know if you want me to rewrite comment and resend this patch.
Regards,
K. Y
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] Drivers: hv: vmbus: Enable interrupt driven flow control
2014-09-05 20:53 ` KY Srinivasan
@ 2014-09-05 21:26 ` Greg KH
0 siblings, 0 replies; 4+ messages in thread
From: Greg KH @ 2014-09-05 21:26 UTC (permalink / raw)
To: KY Srinivasan
Cc: linux-kernel@vger.kernel.org, devel@linuxdriverproject.org,
olaf@aepfle.de, apw@canonical.com, jasowang@redhat.com
On Fri, Sep 05, 2014 at 08:53:01PM +0000, KY Srinivasan wrote:
>
>
> > -----Original Message-----
> > From: Greg KH [mailto:gregkh@linuxfoundation.org]
> > Sent: Friday, September 5, 2014 12:12 PM
> > To: KY Srinivasan
> > Cc: linux-kernel@vger.kernel.org; devel@linuxdriverproject.org;
> > olaf@aepfle.de; apw@canonical.com; jasowang@redhat.com
> > Subject: Re: [PATCH 1/1] Drivers: hv: vmbus: Enable interrupt driven flow
> > control
> >
> > On Fri, Sep 05, 2014 at 11:23:22AM -0700, K. Y. Srinivasan wrote:
> > > This is a win8 feature that has been implemented. Turn on the feature
> > > bit to enable the feature.
> >
> > What does those two sentances even mean?
> Greg,
>
> The feature has been implemented and has been in the tree for a while.
What feature? What is "This" in the first sentance?
> However, the feature was not advertised to the host and this patch does just that.
> >
> > > With this feature turned on,
> >
> > What is "this"?
> "this" refers to the feature bit.
> >
> > > when the host is waiting
> > > for space to become available on the ringbuffer (host to guest), the
> > > guest will interrupt the host when space becomes available (as part of
> > > draining the ring buffer).
> > >
> > > Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
> > > ---
> > > drivers/hv/ring_buffer.c | 5 +++++
> > > 1 files changed, 5 insertions(+), 0 deletions(-)
> > >
> > > diff --git a/drivers/hv/ring_buffer.c b/drivers/hv/ring_buffer.c index
> > > 15db66b..6361d12 100644
> > > --- a/drivers/hv/ring_buffer.c
> > > +++ b/drivers/hv/ring_buffer.c
> > > @@ -361,6 +361,11 @@ int hv_ringbuffer_init(struct hv_ring_buffer_info
> > *ring_info,
> > > ring_info->ring_buffer->read_index =
> > > ring_info->ring_buffer->write_index = 0;
> > >
> > > + /*
> > > + * Set the feature bit for enabling flow control.
> > > + */
> > > + ring_info->ring_buffer->feature_bits.value = 1;
> >
> > What happens if you are running on an old system that doesn't support this
> > new "feature"?
> The control structure for the ring buffer (where this feature bit is) has not changed and so, for
> hosts that don't understand this, it does not matter.
>
> Hope this helps. Let me know if you want me to rewrite comment and resend this patch.
Please do, it's confusing :)
thanks,
greg k-h
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-09-05 21:26 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-05 18:23 [PATCH 1/1] Drivers: hv: vmbus: Enable interrupt driven flow control K. Y. Srinivasan
2014-09-05 19:11 ` Greg KH
2014-09-05 20:53 ` KY Srinivasan
2014-09-05 21:26 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox