All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH v8 1/4] pci: add PCI_SBDF and PCI_SEG macros
@ 2015-07-09 15:53 Elena Ufimtseva
  2015-07-09 16:00 ` Jan Beulich
  0 siblings, 1 reply; 11+ messages in thread
From: Elena Ufimtseva @ 2015-07-09 15:53 UTC (permalink / raw)
  To: JBeulich; +Cc: kevin.tian, tim, xen-devel, yang.z.zhang, boris.ostrovsky


----- JBeulich@suse.com wrote:

> >>> On 09.07.15 at 14:07, <elena.ufimtseva@oracle.com> wrote:
> > You are right, it needs to be rebased. I can post later rebased on
> memory 
> > leak fix version, if you thin its a way to go.
> 
> I didn't look at v9 yet, and can't predict when I will be able to.
> 
> Jan

Jan 

Would you like me to post v10 with memory leak patch included in the patchset before you start looking at v9?

Elena

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH v8 1/4] pci: add PCI_SBDF and PCI_SEG macros
  2015-07-09 15:53 [PATCH v8 1/4] pci: add PCI_SBDF and PCI_SEG macros Elena Ufimtseva
@ 2015-07-09 16:00 ` Jan Beulich
  2015-07-09 16:51   ` Wei Liu
  0 siblings, 1 reply; 11+ messages in thread
From: Jan Beulich @ 2015-07-09 16:00 UTC (permalink / raw)
  To: Elena Ufimtseva
  Cc: kevin.tian, Wei Liu, tim, xen-devel, yang.z.zhang, boris.ostrovsky

>>> On 09.07.15 at 17:53, <elena.ufimtseva@oracle.com> wrote:
> ----- JBeulich@suse.com wrote:
>> >>> On 09.07.15 at 14:07, <elena.ufimtseva@oracle.com> wrote:
>> > You are right, it needs to be rebased. I can post later rebased on
>> memory 
>> > leak fix version, if you thin its a way to go.
>> 
>> I didn't look at v9 yet, and can't predict when I will be able to.
> 
> Would you like me to post v10 with memory leak patch included in the 
> patchset before you start looking at v9?

If there is a dependency on the changes in the leak fix v6, then
this would be a good idea. If not, you can keep things as they are
now. I view the entire set more as a bug fix than a feature anyway,
and hence see no reason not to get this in after the freeze. But I'm
adding Wei just in case...

Jan

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH v8 1/4] pci: add PCI_SBDF and PCI_SEG macros
  2015-07-09 16:00 ` Jan Beulich
@ 2015-07-09 16:51   ` Wei Liu
  0 siblings, 0 replies; 11+ messages in thread
From: Wei Liu @ 2015-07-09 16:51 UTC (permalink / raw)
  To: Jan Beulich
  Cc: Elena Ufimtseva, kevin.tian, Wei Liu, tim, xen-devel,
	yang.z.zhang, boris.ostrovsky

On Thu, Jul 09, 2015 at 05:00:45PM +0100, Jan Beulich wrote:
> >>> On 09.07.15 at 17:53, <elena.ufimtseva@oracle.com> wrote:
> > ----- JBeulich@suse.com wrote:
> >> >>> On 09.07.15 at 14:07, <elena.ufimtseva@oracle.com> wrote:
> >> > You are right, it needs to be rebased. I can post later rebased on
> >> memory 
> >> > leak fix version, if you thin its a way to go.
> >> 
> >> I didn't look at v9 yet, and can't predict when I will be able to.
> > 
> > Would you like me to post v10 with memory leak patch included in the 
> > patchset before you start looking at v9?
> 
> If there is a dependency on the changes in the leak fix v6, then
> this would be a good idea. If not, you can keep things as they are
> now. I view the entire set more as a bug fix than a feature anyway,
> and hence see no reason not to get this in after the freeze. But I'm
> adding Wei just in case...
> 

I just looked at v9. The first three patches are quite mechanical. The
fourth patch is relatively bigger but it's also quite straightforward
(mostly parsing input). All in all, this series itself is
self-contained.

I'm don't think OSSTest is able to test that, so it would not cause
visible regression on our side.

I also agree it's a bug fix. Preferably this series should be applied
before first RC.

Wei.

> Jan

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH v8 1/4] pci: add PCI_SBDF and PCI_SEG macros
@ 2015-07-09 18:13 Elena Ufimtseva
  0 siblings, 0 replies; 11+ messages in thread
From: Elena Ufimtseva @ 2015-07-09 18:13 UTC (permalink / raw)
  To: wei.liu2
  Cc: kevin.tian, tim, xen-devel, JBeulich, yang.z.zhang, boris.ostrovsky


----- wei.liu2@citrix.com wrote:

> On Thu, Jul 09, 2015 at 05:00:45PM +0100, Jan Beulich wrote:
> > >>> On 09.07.15 at 17:53, <elena.ufimtseva@oracle.com> wrote:
> > > ----- JBeulich@suse.com wrote:
> > >> >>> On 09.07.15 at 14:07, <elena.ufimtseva@oracle.com> wrote:
> > >> > You are right, it needs to be rebased. I can post later rebased
> on
> > >> memory 
> > >> > leak fix version, if you thin its a way to go.
> > >> 
> > >> I didn't look at v9 yet, and can't predict when I will be able
> to.
> > > 
> > > Would you like me to post v10 with memory leak patch included in
> the 
> > > patchset before you start looking at v9?
> > 
> > If there is a dependency on the changes in the leak fix v6, then
> > this would be a good idea. If not, you can keep things as they are
> > now. I view the entire set more as a bug fix than a feature anyway,
> > and hence see no reason not to get this in after the freeze. But
> I'm
> > adding Wei just in case...
> > 
> 

Thanks Jan.
The dependency exists on memory leak patch, so I will add it to this series and 
squash the first patch from v9.
 
> I just looked at v9. The first three patches are quite mechanical.
> The
> fourth patch is relatively bigger but it's also quite straightforward
> (mostly parsing input). All in all, this series itself is
> self-contained.
> 
> I'm don't think OSSTest is able to test that, so it would not cause
> visible regression on our side.
> 
> I also agree it's a bug fix. Preferably this series should be applied
> before first RC.
> 
> Wei.

Thank you Wei.
> 
> > Jan

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH v8 1/4] pci: add PCI_SBDF and PCI_SEG macros
  2015-07-09 12:07 Elena Ufimtseva
@ 2015-07-09 12:10 ` Jan Beulich
  0 siblings, 0 replies; 11+ messages in thread
From: Jan Beulich @ 2015-07-09 12:10 UTC (permalink / raw)
  To: Elena Ufimtseva; +Cc: kevin.tian, tim, xen-devel, yang.z.zhang, boris.ostrovsky

>>> On 09.07.15 at 14:07, <elena.ufimtseva@oracle.com> wrote:
> You are right, it needs to be rebased. I can post later rebased on memory 
> leak fix version, if you thin its a way to go.

I didn't look at v9 yet, and can't predict when I will be able to.

Jan

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH v8 1/4] pci: add PCI_SBDF and PCI_SEG macros
@ 2015-07-09 12:07 Elena Ufimtseva
  2015-07-09 12:10 ` Jan Beulich
  0 siblings, 1 reply; 11+ messages in thread
From: Elena Ufimtseva @ 2015-07-09 12:07 UTC (permalink / raw)
  To: JBeulich; +Cc: kevin.tian, tim, xen-devel, yang.z.zhang, boris.ostrovsky


----- JBeulich@suse.com wrote:

> >>> On 09.07.15 at 13:13, <elena.ufimtseva@oracle.com> wrote:
> > On Thu, Jul 09, 2015 at 09:10:06AM +0100, Jan Beulich wrote:
> >> >>> On 08.07.15 at 19:27, <konrad.wilk@oracle.com> wrote:
> >> > On Tue, Jun 30, 2015 at 07:33:59PM -0400,
> elena.ufimtseva@oracle.com wrote:
> >> >> From: Elena Ufimtseva <elena.ufimtseva@oracle.com>
> >> >> 
> >> > 
> >> > You usually say why you need this patch. Something as simple as:
> >> > 
> >> > "In preperation for patch XXXX which will use it" is OK.
> >> 
> >> Or, even better, add such macros when the first user appears. Iirc
> >> I said so before...
> >>
> > Yes, I realized this late. Will move over in the next version if
> needed. 
> 
> Don't you need to rebase on top of v6 of "dmar: device scope mem
> leak fix" anyway? Or does the series not conflict with those changes?

You are right, it needs to be rebased. I can post later rebased on memory leak fix version, if you thin its a way to go.
> 
> Jan

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH v8 1/4] pci: add PCI_SBDF and PCI_SEG macros
  2015-07-09 11:13       ` Elena Ufimtseva
@ 2015-07-09 12:03         ` Jan Beulich
  0 siblings, 0 replies; 11+ messages in thread
From: Jan Beulich @ 2015-07-09 12:03 UTC (permalink / raw)
  To: Elena Ufimtseva; +Cc: kevin.tian, tim, xen-devel, yang.z.zhang, boris.ostrovsky

>>> On 09.07.15 at 13:13, <elena.ufimtseva@oracle.com> wrote:
> On Thu, Jul 09, 2015 at 09:10:06AM +0100, Jan Beulich wrote:
>> >>> On 08.07.15 at 19:27, <konrad.wilk@oracle.com> wrote:
>> > On Tue, Jun 30, 2015 at 07:33:59PM -0400, elena.ufimtseva@oracle.com wrote:
>> >> From: Elena Ufimtseva <elena.ufimtseva@oracle.com>
>> >> 
>> > 
>> > You usually say why you need this patch. Something as simple as:
>> > 
>> > "In preperation for patch XXXX which will use it" is OK.
>> 
>> Or, even better, add such macros when the first user appears. Iirc
>> I said so before...
>>
> Yes, I realized this late. Will move over in the next version if needed. 

Don't you need to rebase on top of v6 of "dmar: device scope mem
leak fix" anyway? Or does the series not conflict with those changes?

Jan

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH v8 1/4] pci: add PCI_SBDF and PCI_SEG macros
  2015-07-09  8:10     ` Jan Beulich
@ 2015-07-09 11:13       ` Elena Ufimtseva
  2015-07-09 12:03         ` Jan Beulich
  0 siblings, 1 reply; 11+ messages in thread
From: Elena Ufimtseva @ 2015-07-09 11:13 UTC (permalink / raw)
  To: Jan Beulich; +Cc: kevin.tian, tim, xen-devel, yang.z.zhang, boris.ostrovsky

On Thu, Jul 09, 2015 at 09:10:06AM +0100, Jan Beulich wrote:
> >>> On 08.07.15 at 19:27, <konrad.wilk@oracle.com> wrote:
> > On Tue, Jun 30, 2015 at 07:33:59PM -0400, elena.ufimtseva@oracle.com wrote:
> >> From: Elena Ufimtseva <elena.ufimtseva@oracle.com>
> >> 
> > 
> > You usually say why you need this patch. Something as simple as:
> > 
> > "In preperation for patch XXXX which will use it" is OK.
> 
> Or, even better, add such macros when the first user appears. Iirc
> I said so before...
>
Yes, I realized this late. Will move over in the next version if needed. 
> Jan
> 

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH v8 1/4] pci: add PCI_SBDF and PCI_SEG macros
  2015-07-08 17:27   ` Konrad Rzeszutek Wilk
@ 2015-07-09  8:10     ` Jan Beulich
  2015-07-09 11:13       ` Elena Ufimtseva
  0 siblings, 1 reply; 11+ messages in thread
From: Jan Beulich @ 2015-07-09  8:10 UTC (permalink / raw)
  To: elena.ufimtseva, Konrad Rzeszutek Wilk
  Cc: yang.z.zhang, kevin.tian, tim, boris.ostrovsky, xen-devel

>>> On 08.07.15 at 19:27, <konrad.wilk@oracle.com> wrote:
> On Tue, Jun 30, 2015 at 07:33:59PM -0400, elena.ufimtseva@oracle.com wrote:
>> From: Elena Ufimtseva <elena.ufimtseva@oracle.com>
>> 
> 
> You usually say why you need this patch. Something as simple as:
> 
> "In preperation for patch XXXX which will use it" is OK.

Or, even better, add such macros when the first user appears. Iirc
I said so before...

Jan

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH v8 1/4] pci: add PCI_SBDF and PCI_SEG macros
  2015-06-30 23:33 ` [PATCH v8 1/4] pci: add PCI_SBDF and PCI_SEG macros elena.ufimtseva
@ 2015-07-08 17:27   ` Konrad Rzeszutek Wilk
  2015-07-09  8:10     ` Jan Beulich
  0 siblings, 1 reply; 11+ messages in thread
From: Konrad Rzeszutek Wilk @ 2015-07-08 17:27 UTC (permalink / raw)
  To: elena.ufimtseva
  Cc: kevin.tian, tim, xen-devel, jbeulich, yang.z.zhang, boris.ostrovsky

On Tue, Jun 30, 2015 at 07:33:59PM -0400, elena.ufimtseva@oracle.com wrote:
> From: Elena Ufimtseva <elena.ufimtseva@oracle.com>
> 

You usually say why you need this patch. Something as simple as:

"In preperation for patch XXXX which will use it" is OK.

> Signed-off-by: Elena Ufimtseva <elena.ufimtseva@oracle.com>
> ---
>  xen/include/xen/pci.h | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/xen/include/xen/pci.h b/xen/include/xen/pci.h
> index 3908146..414106a 100644
> --- a/xen/include/xen/pci.h
> +++ b/xen/include/xen/pci.h
> @@ -33,6 +33,8 @@
>  #define PCI_DEVFN2(bdf) ((bdf) & 0xff)
>  #define PCI_BDF(b,d,f)  ((((b) & 0xff) << 8) | PCI_DEVFN(d,f))
>  #define PCI_BDF2(b,df)  ((((b) & 0xff) << 8) | ((df) & 0xff))
> +#define PCI_SBDF(s,b,d,f) ((((s) & 0xffff) << 16) | PCI_BDF(b,d,f))
> +#define PCI_SEG(sbdf) (((sbdf) >> 16) & 0xffff)
>  
>  struct pci_dev_info {
>      bool_t is_extfn;
> -- 
> 2.1.3
> 

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [PATCH v8 1/4] pci: add PCI_SBDF and PCI_SEG macros
  2015-06-30 23:33 [PATCH v8 0/4] iommu: add rmrr Xen command line option elena.ufimtseva
@ 2015-06-30 23:33 ` elena.ufimtseva
  2015-07-08 17:27   ` Konrad Rzeszutek Wilk
  0 siblings, 1 reply; 11+ messages in thread
From: elena.ufimtseva @ 2015-06-30 23:33 UTC (permalink / raw)
  To: xen-devel
  Cc: Elena Ufimtseva, kevin.tian, tim, jbeulich, yang.z.zhang,
	boris.ostrovsky

From: Elena Ufimtseva <elena.ufimtseva@oracle.com>

Signed-off-by: Elena Ufimtseva <elena.ufimtseva@oracle.com>
---
 xen/include/xen/pci.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/xen/include/xen/pci.h b/xen/include/xen/pci.h
index 3908146..414106a 100644
--- a/xen/include/xen/pci.h
+++ b/xen/include/xen/pci.h
@@ -33,6 +33,8 @@
 #define PCI_DEVFN2(bdf) ((bdf) & 0xff)
 #define PCI_BDF(b,d,f)  ((((b) & 0xff) << 8) | PCI_DEVFN(d,f))
 #define PCI_BDF2(b,df)  ((((b) & 0xff) << 8) | ((df) & 0xff))
+#define PCI_SBDF(s,b,d,f) ((((s) & 0xffff) << 16) | PCI_BDF(b,d,f))
+#define PCI_SEG(sbdf) (((sbdf) >> 16) & 0xffff)
 
 struct pci_dev_info {
     bool_t is_extfn;
-- 
2.1.3

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2015-07-09 18:13 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-09 15:53 [PATCH v8 1/4] pci: add PCI_SBDF and PCI_SEG macros Elena Ufimtseva
2015-07-09 16:00 ` Jan Beulich
2015-07-09 16:51   ` Wei Liu
  -- strict thread matches above, loose matches on Subject: below --
2015-07-09 18:13 Elena Ufimtseva
2015-07-09 12:07 Elena Ufimtseva
2015-07-09 12:10 ` Jan Beulich
2015-06-30 23:33 [PATCH v8 0/4] iommu: add rmrr Xen command line option elena.ufimtseva
2015-06-30 23:33 ` [PATCH v8 1/4] pci: add PCI_SBDF and PCI_SEG macros elena.ufimtseva
2015-07-08 17:27   ` Konrad Rzeszutek Wilk
2015-07-09  8:10     ` Jan Beulich
2015-07-09 11:13       ` Elena Ufimtseva
2015-07-09 12:03         ` Jan Beulich

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.