linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fixes to xen-pciback for v3.7 (v1)
@ 2012-09-25 21:27 Konrad Rzeszutek Wilk
  2012-09-25 21:27 ` [PATCH 1/2] xen/pciback: Restore the PCI config space after an FLR Konrad Rzeszutek Wilk
  2012-09-25 21:27 ` [PATCH 2/2] xen/pciback: When resetting the device don't disable twice Konrad Rzeszutek Wilk
  0 siblings, 2 replies; 4+ messages in thread
From: Konrad Rzeszutek Wilk @ 2012-09-25 21:27 UTC (permalink / raw)
  To: linux-kernel, xen-devel

One fixes that I thought I had fixed but not so. This was discovered
when trying to passthrough an PCIe network card to an PVHVM guest
and finding that it can't use MSIs. I thought I had it fixed with 
git commit 80ba77dfbce85f2d1be54847de3c866de1b18a9a
"xen/pciback: Fix proper FLR steps." but that fixed only one use
case (bind the device to xen-pciback, then unbind it).
    
The underlaying reason was that after we do an FLR (if the card supports it),
we also do a D3 (so turn off the PCIe card), then followed by a D0
(power is back).  However we did not the follow the rest of the process
that pci_reset_function does - restore the device's PCI configuration state!

(Note: We cannot use pci_reset_function as it holds a mutex that we
hold as well - so we use the low-level reset functions that we can
invoke and hold a mutex - and we forgot to do the right calls that
pci_reset_function does).

With this patch:
 [PATCH 1/2] xen/pciback: Restore the PCI config space after an FLR.

I can pass through an PCIe e1000e card succesfully to my Win7 and Linux
guest.

This patch:
 [PATCH 2/2] xen/pciback: When resetting the device don't disable

is just a cleanup.

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

end of thread, other threads:[~2012-09-26  8:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-25 21:27 [PATCH] fixes to xen-pciback for v3.7 (v1) Konrad Rzeszutek Wilk
2012-09-25 21:27 ` [PATCH 1/2] xen/pciback: Restore the PCI config space after an FLR Konrad Rzeszutek Wilk
2012-09-25 21:27 ` [PATCH 2/2] xen/pciback: When resetting the device don't disable twice Konrad Rzeszutek Wilk
2012-09-26  8:58   ` [Xen-devel] " Jan Beulich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).