public inbox for linux-kernel@vger.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
                   ` (9 more replies)
  0 siblings, 10 replies; 17+ 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] 17+ 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; 17+ 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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=utf-8, Size: 830 bytes --]


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 
ÿôèº{.nÇ+‰·Ÿ®‰­†+%ŠËÿ±éݶ\x17¥Šwÿº{.nÇ+‰·¥Š{±þG«éÿŠ{ayº\x1dʇڙë,j\a­¢f£¢·hšïêÿ‘êçz_è®\x03(­éšŽŠÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?™¨è­Ú&£ø§~á¶iO•æ¬z·švØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?–I¥

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

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

Thread overview: 17+ 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 ` [PATCH v5 2/9] driver core: Provide an wrapper around the mutex to do lockdep warnings 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 ` [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 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-04 11:07   ` David Vrabel
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 15:46 ` [PATCH v5] Fixes for PCI backend for 3.19 David Vrabel
2014-12-04 17:59   ` Konrad Rzeszutek Wilk
  -- 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox