History

PCI/ATS: Add pci_prg_resp_pasid_required() interface.

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.

Kuppuswamy Sathyanarayanan committed 7 years ago

Commit e5567f51 parent 3f0c6253 files · +36 −0Browse files

Showing the changes to include/linux (1 of 3 files). Show all

Unified · Split

include/linux/pci-ats.h+5−0
@@ -40,6 +40,7 @@ void pci_disable_pasid(struct pci_dev *pdev); · 39 unmodified lines
4040 void pci_restore_pasid_state(struct pci_dev *pdev);
4141 int pci_pasid_features(struct pci_dev *pdev);
4242 int pci_max_pasids(struct pci_dev *pdev);
43+int pci_prg_resp_pasid_required(struct pci_dev *pdev);
4344
4445 #else /* CONFIG_PCI_PASID */
4546
@@ -66,6 +67,10 @@ static inline int pci_max_pasids(struct pci_dev *pdev) · 20 unmodified lines
6667 return -EINVAL;
6768 }
6869
70+static int pci_prg_resp_pasid_required(struct pci_dev *pdev)
71+{
72+ return 0;
73+}
6974 #endif /* CONFIG_PCI_PASID */
7075
7176

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t