PCI: Restore PRI and PASID state after Function-Level Reset
authorCQ Tang <cq.tang@intel.com>
Tue, 30 May 2017 16:25:49 +0000 (09:25 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 30 May 2017 20:40:50 +0000 (15:40 -0500)
commit4ebeb1ec56d4c54a56b6f43c2603d9a4688c83ba
tree8d5adc040423e0c4bd7374a4f4679c8e238f337b
parenta4f4fa681add289ebfec6d776376ad7a2ffda669
PCI: Restore PRI and PASID state after Function-Level Reset

After a Function-Level Reset, PCI states need to be restored.  Save PASID
features and PRI reqs cached.

[bhelgaas: search for capability only if PRI/PASID were enabled]
Signed-off-by: CQ Tang <cq.tang@intel.com>
Signed-off-by: Ashok Raj <ashok.raj@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: Joerg Roedel <joro@8bytes.org>
Cc: Jean-Phillipe Brucker <jean-philippe.brucker@arm.com>
Cc: David Woodhouse <dwmw2@infradead.org>
drivers/pci/ats.c
drivers/pci/pci.c
include/linux/pci-ats.h
include/linux/pci.h