Re: [PATCH 1/8] PCI: MSI: Move MSI-X entry definition to pci_regs.h

2010-10-20 Thread Matthew Wilcox
-by: Matthew Wilcox wi...@linux.intel.com -- Matthew Wilcox Intel Open Source Technology Centre Bill, look, we understand that you're interested in selling us this operating system, but compare it to ours. We can't possibly take such a retrograde step. -- To unsubscribe from

Re: [PATCH] msi-x: let drivers retry when not enough vectors

2009-05-07 Thread Matthew Wilcox
. It reduces the amount of work the driver has to do without requiring any additional work in the core. I don't see the disadvantage to it. Reviewed-by: Matthew Wilcox wi...@linux.intel.com -- Matthew Wilcox Intel Open Source Technology Centre Bill, look, we understand

Re: [PATCH] msi-x: let drivers retry when not enough vectors

2009-05-07 Thread Matthew Wilcox
tested. -- Matthew Wilcox Intel Open Source Technology Centre Bill, look, we understand that you're interested in selling us this operating system, but compare it to ours. We can't possibly take such a retrograde step. -- To unsubscribe from this list: send the line

Re: [PATCH] msi-x: let drivers retry when not enough vectors

2009-05-07 Thread Matthew Wilcox
they wouldn't. What a lot of drivers seem to do is fall back either to a single MSI or just pin-based interrupts when they can't get as many interrupts as they would like. They don't try to get a single MSI-X interrupt. I feel an update to the MSI-HOWTO coming on. -- Matthew Wilcox

Re: [PATCH v4 0/6] PCI: support the ATS capability

2009-03-29 Thread Matthew Wilcox
On Thu, Mar 26, 2009 at 04:15:56PM -0700, Jesse Barnes wrote: 2, avoid using pci_find_ext_capability every time when reading ATS Invalidate Queue Depth (Matthew Wilcox) I asked a question about how that was used, and got back a version which changed how it was done. I still don't have

Re: [PATCH v11 1/8] PCI: initialize and release SR-IOV capability

2009-03-19 Thread Matthew Wilcox
*sriov;/* SR-IOV capability related */ Should be ifdeffed? -- Matthew Wilcox Intel Open Source Technology Centre Bill, look, we understand that you're interested in selling us this operating system, but compare it to ours. We can't possibly take such a retrograde

Re: [PATCH v11 1/8] PCI: initialize and release SR-IOV capability

2009-03-19 Thread Matthew Wilcox
On Thu, Mar 19, 2009 at 06:20:16PM -0700, Jesse Barnes wrote: Ok Yu, I'm ready to apply this set, can you send an updated one with the fixes Matthew mentioned? And please add Reviewed-by: Matthew Wilcox wi...@linux.intel.com to each of the patches. -- Matthew Wilcox

Re: [PATCH v10 0/7] PCI: Linux kernel SR-IOV support

2009-03-08 Thread Matthew Wilcox
On Sun, Mar 08, 2009 at 04:30:16PM +0200, Avi Kivity wrote: Matthew Wilcox wrote: On Tue, Feb 24, 2009 at 12:47:38PM +0200, Avi Kivity wrote: Do those patches allow using a VF on the host (in other words, does the kernel emulate config space accesses)? SR-IOV hardware handles config space

Re: [PATCH v10 0/7] PCI: Linux kernel SR-IOV support

2009-03-06 Thread Matthew Wilcox
of it. -- Matthew Wilcox Intel Open Source Technology Centre Bill, look, we understand that you're interested in selling us this operating system, but compare it to ours. We can't possibly take such a retrograde step. -- To unsubscribe from this list: send the line unsubscribe kvm

Re: [PATCH v10 0/7] PCI: Linux kernel SR-IOV support

2009-03-06 Thread Matthew Wilcox
://patchwork.kernel.org/patch/8063/ http://patchwork.kernel.org/patch/8064/ http://patchwork.kernel.org/patch/8065/ http://patchwork.kernel.org/patch/8066/ I need to review this driver; I haven't done that yet. Has anyone else? -- Matthew Wilcox Intel Open Source Technology

Re: [PATCH v10 1/7] PCI: initialize and release SR-IOV capability

2009-03-06 Thread Matthew Wilcox
; [...] } -- Matthew Wilcox Intel Open Source Technology Centre Bill, look, we understand that you're interested in selling us this operating system, but compare it to ours. We can't possibly take such a retrograde step. -- To unsubscribe from this list: send the line unsubscribe kvm

Re: [PATCH v10 2/7] PCI: restore saved SR-IOV state

2009-03-06 Thread Matthew Wilcox
device + */ +void pci_restore_iov_state(struct pci_dev *dev) +{ + if (dev-sriov) + sriov_restore_state(dev); +} Apart from the design pattern I mentioned in my previous email also appearing here, I see no problems with this patch. -- Matthew Wilcox

Re: [PATCH v10 3/7] PCI: reserve bus range for SR-IOV device

2009-03-06 Thread Matthew Wilcox
invoke virtfn_bdf more than once. -- Matthew Wilcox Intel Open Source Technology Centre Bill, look, we understand that you're interested in selling us this operating system, but compare it to ours. We can't possibly take such a retrograde step. -- To unsubscribe from

Re: [PATCH v10 4/7] PCI: add SR-IOV API for Physical Function driver

2009-03-06 Thread Matthew Wilcox
, dep_link); I skipped to the end and read patch 7/7 and I still don't understand what dep_link is for. Can you explain please? In particular, how is it different from physfn? -- Matthew Wilcox Intel Open Source Technology Centre Bill, look, we understand that you're

Re: [PATCH v10 6/7] PCI: document SR-IOV sysfs entries

2009-03-06 Thread Matthew Wilcox
-- Matthew Wilcox Intel Open Source Technology Centre Bill, look, we understand that you're interested in selling us this operating system, but compare it to ours. We can't possibly take such a retrograde step. -- To unsubscribe from this list: send the line unsubscribe kvm

Re: [PATCH v10 7/7] PCI: manual for SR-IOV user and driver developer

2009-03-06 Thread Matthew Wilcox
to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html -- Matthew Wilcox Intel Open Source Technology Centre Bill, look, we understand that you're interested in selling us this operating system, but compare it to ours. We can't

Re: KVM PCI device assignment issues

2009-02-13 Thread Matthew Wilcox
and reset; if it works then the device is assignable. If we expose a 'reset' file in the /sys/bus/pci/devices/*/ directories for devices that are resettable, that should be enough, I would think. -- Matthew Wilcox Intel Open Source Technology Centre Bill, look, we

Re: [PATCH v8 1/7] PCI: initialize and release SR-IOV capability

2009-02-13 Thread Matthew Wilcox
clearing this bit. -- Matthew Wilcox Intel Open Source Technology Centre Bill, look, we understand that you're interested in selling us this operating system, but compare it to ours. We can't possibly take such a retrograde step. -- To unsubscribe from this list: send the line

Re: [PATCH v3 0/6] ATS capability support for Intel IOMMU

2009-02-12 Thread Matthew Wilcox
On Thu, Feb 12, 2009 at 08:50:32PM +0800, Yu Zhao wrote: 2, avoid using pci_find_ext_capability every time when reading ATS Invalidate Queue Depth (Matthew Wilcox) er ... I didn't say it was a problem. I said I couldn't tell if it was a problem. There's no point in taking up an extra 4

Re: [PATCH v2 1/6] PCI: support the ATS capability

2009-02-11 Thread Matthew Wilcox
is that the empty ? : is really confusing and generally to be avoided. GCC should be able to figure out that it's a pure/const function anyway and avoid recalculating it. -- Matthew Wilcox Intel Open Source Technology Centre Bill, look, we understand that you're interested in selling us

Re: [PATCH 0/13 v7] PCI: Linux kernel SR-IOV support

2008-12-17 Thread Matthew Wilcox
resources _not_ in this array (and indeed, I'd like to see PCI bridges keep their producer resources somewhere other than in this array). I accept that there are still some problems with this, but patch #2 moves us further from being able to achieve this goal, not closer. -- Matthew Wilcox

Re: [PATCH 0/16 v6] PCI: Linux kernel SR-IOV support

2008-11-06 Thread Matthew Wilcox
don't think we really know what the One True Usage model is for VF devices. Chris Wright has some ideas, I have some ideas and Yu Zhao has some ideas. I bet there's other people who have other ideas too. -- Matthew Wilcox Intel Open Source Technology Centre Bill, look, we

Re: [PATCH 0/16 v6] PCI: Linux kernel SR-IOV support

2008-11-06 Thread Matthew Wilcox
on patch review. -- Matthew Wilcox Intel Open Source Technology Centre Bill, look, we understand that you're interested in selling us this operating system, but compare it to ours. We can't possibly take such a retrograde step. -- To unsubscribe from this list: send the line

Re: [PATCH 0/16 v6] PCI: Linux kernel SR-IOV support

2008-11-06 Thread Matthew Wilcox
this list: send the line unsubscribe linux-pci in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html -- Matthew Wilcox Intel Open Source Technology Centre Bill, look, we understand that you're interested

Re: [PATCH 16/16 v6] PCI: document the new PCI boot parameters

2008-11-06 Thread Matthew Wilcox
changing. -- Matthew Wilcox Intel Open Source Technology Centre Bill, look, we understand that you're interested in selling us this operating system, but compare it to ours. We can't possibly take such a retrograde step. -- To unsubscribe from this list: send the line

Re: [PATCH 6/8 v4] PCI: support the SR-IOV capability

2008-10-14 Thread Matthew Wilcox
the number of resources in struct pci_dev instead of putting the new resources in struct pci_iov? -- Matthew Wilcox Intel Open Source Technology Centre Bill, look, we understand that you're interested in selling us this operating system, but compare it to ours. We can't possibly

Re: [PATCH 6/6 v3] PCI: document the change

2008-10-13 Thread Matthew Wilcox
On Tue, Oct 14, 2008 at 08:23:34AM +0800, Dong, Eddie wrote: Matthew Wilcox wrote: Wouldn't it be more useful to have the iov/N directories be a symlink to the actual pci_dev used by the virtual function? The main concern here is that a VF may be disabed such as when PF enter D3 state

Re: [PATCH 6/6 v3] PCI: document the change

2008-10-13 Thread Matthew Wilcox
is associated with. This means PF driver has to receive parameters that are used to configure its VFs. These parameters obviously can be passed by traditional tools, if without modification for SR-IOV. I think that idea also covers this point. -- Matthew Wilcox Intel Open

Re: [PATCH 6/6 v3] PCI: document the change

2008-10-13 Thread Matthew Wilcox
On Tue, Oct 14, 2008 at 12:18:40PM +0800, Dong, Eddie wrote: Matthew Wilcox wrote: On Tue, Oct 14, 2008 at 10:14:35AM +0800, Yu Zhao wrote: As Eddie said, we have two problems here: 1) User has to set device specific parameters of a VF when he wants to use this VF with KVM (assign

Re: [PATCH 6/6 v3] PCI: document the change

2008-10-01 Thread Matthew Wilcox
, +#endif +}; From my reading of the SR-IOV spec, this isn't how it's supposed to work. The device is supposed to be a fully functional PCI device that on demand can start peeling off virtual functions; it's not supposed to boot up and initialise all its virtual functions at once. -- Matthew Wilcox

Re: [PATCH 1/6 v3] PCI: export some functions and macros

2008-09-27 Thread Matthew Wilcox
[PCI_BRIDGE_RESOURCES+i]; - Er, this is rather important. Why can you just delete it? -- Matthew Wilcox Intel Open Source Technology Centre Bill, look, we understand that you're interested in selling us this operating system, but compare it to ours. We can't possibly take

Re: [PATCH 2/4 v2] PCI: support ARI capability

2008-09-10 Thread Matthew Wilcox
, or is there some hardware that won't work? Or some other reason I haven't thought of? -- Matthew Wilcox Intel Open Source Technology Centre Bill, look, we understand that you're interested in selling us this operating system, but compare it to ours. We can't possibly take

Re: [PATCH retry] arch/ia64/kvm/kvm-ia64.c: Add local_irq_restore in error handling code

2008-07-22 Thread Matthew Wilcox
On Tue, Jul 22, 2008 at 09:38:18PM +0200, Julia Lawall wrote: There is a call to local_irq_restore in the normal exit case, so it would seem that there should be one on an error return as well. Patch looks good to me: Reviewed-by: Matthew Wilcox [EMAIL PROTECTED] -- Intel are signing my