All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v5] Fixes for PCI backend for 3.19.
@ 2014-12-03 21:40 Konrad Rzeszutek Wilk
  2014-12-03 21:40 ` [PATCH v5 1/9] xen/pciback: Don't deadlock when unbinding Konrad Rzeszutek Wilk
                   ` (15 more replies)
  0 siblings, 16 replies; 45+ messages in thread
From: Konrad Rzeszutek Wilk @ 2014-12-03 21:40 UTC (permalink / raw)
  To: bhelgaas, linux-pci, linux-kernel, xen-devel, boris.ostrovsky,
	david.vrabel


Since v4 (http://lists.xen.org/archives/html/xen-devel/2014-11/msg02130.html):
 - Per David's review altered one of the patches.
v3 (https://lkml.org/lkml/2014/7/8/533):
 - Epic discussion.

These patches fix some issues with PCI back and also add proper
bus/slot reset.


 Documentation/ABI/testing/sysfs-driver-pciback |  12 ++
 drivers/pci/pci.c                              |   5 +-
 drivers/xen/xen-pciback/passthrough.c          |  14 +-
 drivers/xen/xen-pciback/pci_stub.c             | 236 +++++++++++++++++++++----
 drivers/xen/xen-pciback/pciback.h              |   7 +-
 drivers/xen/xen-pciback/vpci.c                 |  14 +-
 drivers/xen/xen-pciback/xenbus.c               |   4 +-
 include/linux/device.h                         |   5 +
 include/linux/pci.h                            |   2 +
 9 files changed, 254 insertions(+), 45 deletions(-)


Jan Beulich (1):
      xen-pciback: drop SR-IOV VFs when PF driver unloads

Konrad Rzeszutek Wilk (8):
      xen/pciback: Don't deadlock when unbinding.
      driver core: Provide an wrapper around the mutex to do lockdep warnings
      xen/pciback: Include the domain id if removing the device whilst still in use
      xen/pciback: Print out the domain owning the device.
      xen/pciback: Remove tons of dereferences
      PCI: Expose pci_load_saved_state for public consumption.
      xen/pciback: Restore configuration space when detaching from a guest.
      xen/pciback: Implement PCI reset slot or bus with 'do_flr' SysFS attribute


^ permalink raw reply	[flat|nested] 45+ messages in thread
* Re: [PATCH v5 9/9] xen/pciback: Implement PCI reset slot or bus with 'do_flr' SysFS attribute
@ 2014-12-04 12:06 ` Konrad Rzeszutek Wilk
  0 siblings, 0 replies; 45+ messages in thread
From: Konrad Rzeszutek Wilk @ 2014-12-04 12:06 UTC (permalink / raw)
  To: David Vrabel
  Cc: Boris Ostrovsky, linux-pci, xen-devel, linux-kernel, bhelgaas

Ck9uIERlYyA0LCAyMDE0IDY6MzAgQU0sIERhdmlkIFZyYWJlbCA8ZGF2aWQudnJhYmVsQGNpdHJp
eC5jb20+IHdyb3RlOgo+Cj4gT24gMDMvMTIvMTQgMjE6NDAsIEtvbnJhZCBSemVzenV0ZWsgV2ls
ayB3cm90ZTogCj4gPiAKPiA+IEluc3RlYWQgb2YgZG9pbmcgYWxsIHRoaXMgY29tcGxleCBkYW5j
ZSwgd2UgZGVwZW5kIG9uIHRoZSB0b29sc3RhY2sgCj4gPiBkb2luZyB0aGUgcmlnaHQgdGhpbmcu
IEFzIHN1Y2ggaW1wbGVtZW50IHRoZSAnZG9fZmxyJyBTeXNGUyBhdHRyaWJ1dGUgCj4gPiB3aGlj
aCAneGwnIHVzZXMgd2hlbiBhIGRldmljZSBpcyBkZXRhY2hlZCBvciBhdHRhY2hlZCBmcm9tL3Rv
IGEgZ3Vlc3QuIAo+ID4gSXQgYnlwYXNzZXMgdGhlIG5lZWQgdG8gd29ycnkgYWJvdXQgdGhlIFBD
SSBsb2NrLiAKPgo+IE5vLsKgIEdldCBwY2liYWNrIHRvIGFkZCBpdHMgb3duICJyZXNldCIgc3lz
ZnMgZmlsZSAoYXMgSSBoYXZlIHJlcGVhdGVkbHkgCj4gcHJvcG9zZWQpLiAKPgoKV2hpY2ggZG9l
cyBub3Qgd29yayBhcyB0aGUga29iaiB3aWxsIGNvbXBsYWluIChhcyB0aGVyZSBpcyBhbHJlYWR5
IGFuICdyZXNldCcgYXNzb2NpYXRlZCB3aXRoIHRoZSBQQ0kgZGV2aWNlKS4KClVubGVzcyB5b3Ug
bWVhbiBhbiBkaWZmZXJlbnQgbmFtZSAocmVzZXQyKS4KCj4gRGF2aWQgCg==


^ permalink raw reply	[flat|nested] 45+ messages in thread
* Re: [PATCH v5 9/9] xen/pciback: Implement PCI reset slot or bus with 'do_flr' SysFS attribute
@ 2014-12-04 12:06 Konrad Rzeszutek Wilk
  0 siblings, 0 replies; 45+ messages in thread
From: Konrad Rzeszutek Wilk @ 2014-12-04 12:06 UTC (permalink / raw)
  To: David Vrabel
  Cc: bhelgaas, linux-pci, Boris Ostrovsky, linux-kernel, xen-devel


On Dec 4, 2014 6:30 AM, David Vrabel <david.vrabel@citrix.com> wrote:
>
> On 03/12/14 21:40, Konrad Rzeszutek Wilk wrote: 
> > 
> > Instead of doing all this complex dance, we depend on the toolstack 
> > doing the right thing. As such implement the 'do_flr' SysFS attribute 
> > which 'xl' uses when a device is detached or attached from/to a guest. 
> > It bypasses the need to worry about the PCI lock. 
>
> No.  Get pciback to add its own "reset" sysfs file (as I have repeatedly 
> proposed). 
>

Which does not work as the kobj will complain (as there is already an 'reset' associated with the PCI device).

Unless you mean an different name (reset2).

> David 
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

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

end of thread, other threads:[~2014-12-08 16:04 UTC | newest]

Thread overview: 45+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-03 21:40 [PATCH v5] Fixes for PCI backend for 3.19 Konrad Rzeszutek Wilk
2014-12-03 21:40 ` [PATCH v5 1/9] xen/pciback: Don't deadlock when unbinding Konrad Rzeszutek Wilk
2014-12-03 21:40 ` Konrad Rzeszutek Wilk
2014-12-03 21:40 ` [PATCH v5 2/9] driver core: Provide an wrapper around the mutex to do lockdep warnings Konrad Rzeszutek Wilk
2014-12-03 21:40 ` Konrad Rzeszutek Wilk
2014-12-03 21:40 ` [PATCH v5 3/9] xen/pciback: Include the domain id if removing the device whilst still in use Konrad Rzeszutek Wilk
2014-12-03 21:40 ` Konrad Rzeszutek Wilk
2014-12-03 21:40 ` [PATCH v5 4/9] xen/pciback: Print out the domain owning the device Konrad Rzeszutek Wilk
2014-12-03 21:40 ` [PATCH v5 5/9] xen/pciback: Remove tons of dereferences Konrad Rzeszutek Wilk
2014-12-03 21:40 ` [PATCH v5 6/9] PCI: Expose pci_load_saved_state for public consumption Konrad Rzeszutek Wilk
2014-12-03 21:40 ` Konrad Rzeszutek Wilk
2014-12-03 23:49   ` Bjorn Helgaas
2014-12-03 23:49   ` Bjorn Helgaas
2014-12-03 21:40 ` [PATCH v5 7/9] xen/pciback: Restore configuration space when detaching from a guest Konrad Rzeszutek Wilk
2014-12-03 21:40 ` [PATCH v5 8/9] xen-pciback: drop SR-IOV VFs when PF driver unloads Konrad Rzeszutek Wilk
2014-12-03 21:40 ` Konrad Rzeszutek Wilk
2014-12-04 11:07   ` David Vrabel
2014-12-04 11:07   ` David Vrabel
2014-12-04 11:36     ` Jan Beulich
2014-12-04 11:36     ` Jan Beulich
2014-12-03 21:40 ` [PATCH v5 9/9] xen/pciback: Implement PCI reset slot or bus with 'do_flr' SysFS attribute Konrad Rzeszutek Wilk
2014-12-04 11:30   ` David Vrabel
2014-12-04 11:30   ` David Vrabel
2014-12-04 15:46 ` [PATCH v5] Fixes for PCI backend for 3.19 David Vrabel
2014-12-04 17:59   ` Konrad Rzeszutek Wilk
2014-12-04 17:59   ` Konrad Rzeszutek Wilk
2014-12-04 15:46 ` David Vrabel
  -- strict thread matches above, loose matches on Subject: below --
2014-12-04 12:06 [PATCH v5 9/9] xen/pciback: Implement PCI reset slot or bus with 'do_flr' SysFS attribute Konrad Rzeszutek Wilk
2014-12-04 12:06 ` Konrad Rzeszutek Wilk
2014-12-04 12:24 ` [Xen-devel] " David Vrabel
2014-12-04 13:10   ` Sander Eikelenboom
2014-12-04 13:43     ` David Vrabel
2014-12-04 13:43     ` [Xen-devel] " David Vrabel
2014-12-04 14:09       ` Sander Eikelenboom
2014-12-04 14:09       ` [Xen-devel] " Sander Eikelenboom
2014-12-04 14:14         ` Sander Eikelenboom
2014-12-04 14:31         ` David Vrabel
2014-12-04 14:31         ` [Xen-devel] " David Vrabel
2014-12-04 14:50           ` Sander Eikelenboom
2014-12-04 14:50           ` [Xen-devel] " Sander Eikelenboom
2014-12-04 15:39             ` Alex Williamson
2014-12-04 16:25               ` Sander Eikelenboom
2014-12-04 16:25               ` [Xen-devel] " Sander Eikelenboom
2014-12-04 16:55                 ` Alex Williamson
2014-12-05 10:30               ` David Vrabel
2014-12-05 10:30               ` [Xen-devel] " David Vrabel
2014-12-05 17:22                 ` Konrad Rzeszutek Wilk
2014-12-05 17:22                 ` [Xen-devel] " Konrad Rzeszutek Wilk
2014-12-08 10:38                   ` David Vrabel
2014-12-08 10:38                   ` [Xen-devel] " David Vrabel
2014-12-08 16:04                     ` Konrad Rzeszutek Wilk
2014-12-04 15:39             ` Alex Williamson
2014-12-04 19:05           ` Konrad Rzeszutek Wilk
2014-12-04 12:24 ` David Vrabel
2014-12-04 12:06 Konrad Rzeszutek Wilk

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.