Return the PRG Response PASID Required bit in the Page Request Status Register. As per PCIe spec r4.0, sec 10.5.2.3, if this bit is Set, the device expects a PASID TLP Prefix on PRG Response Messages when the corresponding Page Requests had a PASID TLP Prefix. If Clear, the device does not expect PASID TLP Prefixes on any PRG Response Message, and the device behavior is undefined if the device receives a PRG Response Message with a PASID TLP Prefix. Also the device behavior is undefined if this bit is Set and the device receives a PRG Response Message with no PASID TLP Prefix when the corresponding Page Requests had a PASID TLP Prefix. This function will be used by drivers like IOMMU, if it is required to check the status of the PRG Response PASID Required bit before enabling the PASID support of the device.
Showing the changes to include/linux (1 of 3 files). Show all
Unified · Split
| @@ -40,6 +40,7 @@ void pci_disable_pasid(struct pci_dev *pdev); · 39 unmodified lines | |||
| 40 | void pci_restore_pasid_state(struct pci_dev *pdev); | 40 | void pci_restore_pasid_state(struct pci_dev *pdev); |
| 41 | int pci_pasid_features(struct pci_dev *pdev); | 41 | int pci_pasid_features(struct pci_dev *pdev); |
| 42 | int pci_max_pasids(struct pci_dev *pdev); | 42 | int pci_max_pasids(struct pci_dev *pdev); |
| 43 | int pci_prg_resp_pasid_required(struct pci_dev *pdev); | ||
| 43 | 44 | ||
| 44 | #else /* CONFIG_PCI_PASID */ | 45 | #else /* CONFIG_PCI_PASID */ |
| 45 | 46 | ||
| @@ -66,6 +67,10 @@ static inline int pci_max_pasids(struct pci_dev *pdev) · 20 unmodified lines | |||
| 66 | return -EINVAL; | 67 | return -EINVAL; |
| 67 | } | 68 | } |
| 68 | 69 | ||
| 70 | static int pci_prg_resp_pasid_required(struct pci_dev *pdev) | ||
| 71 | { | ||
| 72 | return 0; | ||
| 73 | } | ||
| 69 | #endif /* CONFIG_PCI_PASID */ | 74 | #endif /* CONFIG_PCI_PASID */ |
| 70 | 75 | ||
| 71 | 76 | ||