History

PCI/ATS: Cache PRI Capability offset

Previously each PRI interface searched for the PRI Capability. Cache the capability offset the first time we use it instead of searching each time. [bhelgaas: commit log, reorder patch to later, call pci_pri_init() from pci_init_capabilities()] Link: https://lore.kernel.org/r/0c5495d376faf6dbb8eb2165204c474438aaae65.156 7029860.git.sathyanarayanan.kuppuswamy@linux.intel.com Link: https://lore.kernel.org/r/20190905193146.90250-5-helgaas@kernel.org Signed-off-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>

Kuppuswamy Sathyanarayanan committed 7 years ago

Commit c0651901 parent 3ad62194 files · +36 −25Browse files

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

Unified · Split

include/linux/pci.h+1−0
@@ -454,6 +454,7 @@ struct pci_dev { · 453 unmodified lines
454 u8 ats_stu; /* ATS Smallest Translation Unit */454 u8 ats_stu; /* ATS Smallest Translation Unit */
455#endif455#endif
456#ifdef CONFIG_PCI_PRI456#ifdef CONFIG_PCI_PRI
457 u16 pri_cap; /* PRI Capability offset */
457 u32 pri_reqs_alloc; /* Number of PRI requests allocated */458 u32 pri_reqs_alloc; /* Number of PRI requests allocated */
458#endif459#endif
459#ifdef CONFIG_PCI_PASID460#ifdef CONFIG_PCI_PASID

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