Re: [PATCH v1 1/2] PCI: ATS: Add function to check ATS page aligned request status.

From: sathyanarayanan kuppuswamy
Date: Thu Feb 07 2019 - 17:17:43 EST



On 2/7/19 12:38 PM, Sinan Kaya wrote:

On 2/7/2019 1:41 PM, sathyanarayanan.kuppuswamy@xxxxxxxxxxxxxxx wrote:
+ * As per PCI spec, If page aligned request bit is set, it indicates
+ * the untranslated address is always aligned to a 4096 byte boundary.
+ */
+int pci_ats_page_aligned(struct pci_dev *pdev)
+{
+ÂÂÂ u16 cap;
+
+ÂÂÂ if (!pdev->ats_cap)
+ÂÂÂÂÂÂÂ return 0;
+
+ÂÂÂ pci_read_config_word(pdev, pdev->ats_cap + PCI_ATS_CAP, &cap);

If I remember this right, aligned request is only supported on ATS v1.1
but not supported on v1.0.
Its added in v1.1.

Can you please check the spec?

--
Sathyanarayanan Kuppuswamy
Linux kernel developer