Skip to content

xen-pciback: allow device reset to work more often

David Vrabel linux-pci xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2pci: export pci_probe_reset_function()drivers/pci/pci.c drivers/pci/pci.h include/linux/pci.h+2 -10 replies
1/2pci: export pci_probe_reset_function()drivers/pci/pci.c drivers/pci/pci.h include/linux/pci.h+2 -10 replies
2/2xen-pciback: provide a "reset" sysfs file to try harder at an SBRdrivers/xen/xen-pciback/pci_stub.c drivers/xen/xen-pciback/pciback.h+105 -38 replies
2/2xen-pciback: provide a "reset" sysfs file to try harder at an SBRdrivers/xen/xen-pciback/pci_stub.c drivers/xen/xen-pciback/pciback.h+105 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCHv1 0/2] xen-pciback: allow device reset to work more often

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