linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCHv1 0/2] xen-pciback: allow device reset to work more often
@ 2014-07-10 13:03 David Vrabel
  2014-07-10 13:03 ` [PATCH 1/2] pci: export pci_probe_reset_function() David Vrabel
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: David Vrabel @ 2014-07-10 13:03 UTC (permalink / raw)
  To: linux-pci
  Cc: David Vrabel, Bjorn Helgaas, xen-devel, Konrad Rzeszutek Wilk,
	Boris Ostrovsky

When a PCI device is passed through to a different domain, it must be
reset to ensure it works correctly in the new domain.  Usually the
toolstack will request a device reset via the "reset" sysfs file.  But
this file is not present if a function reset is not available.

A common use case is a GPU device and its associated audio function.
In the case where these two devices are simultaneously co-assigned to
the same domain, it is safe to reset them with an SBR.

Patch #1 export pci_probe_reset_function() so pciback can know if an
alternate reset mechanism needs to be proved.

Patch #2 adds a "reset" file to devices bound to pciback that performs
the SBR if it is safe to do so.

David


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

end of thread, other threads:[~2014-07-11 14:29 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-10 13:03 [PATCHv1 0/2] xen-pciback: allow device reset to work more often David Vrabel
2014-07-10 13:03 ` [PATCH 1/2] pci: export pci_probe_reset_function() David Vrabel
2014-07-10 13:03 ` [PATCH 2/2] xen-pciback: provide a "reset" sysfs file to try harder at an SBR David Vrabel
2014-07-10 23:14   ` Alex Williamson
2014-07-11  9:53     ` David Vrabel
2014-07-11 13:45       ` Konrad Rzeszutek Wilk
2014-07-11 14:29       ` Alex Williamson
2014-07-10 16:25 ` [PATCHv1 0/2] xen-pciback: allow device reset to work more often Bjorn Helgaas

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).