History

PCI: Add PTM clock granularity information

The PTM Control register (PCIe r3.1, sec 7.32.3) contains an Effective Granularity field: This provides information relating to the expected accuracy of the PTM clock, but does not otherwise affect the PTM mechanism. Set the Effective Granularity based on the PTM Root and any intervening PTM Time Sources. This does not set Effective Granularity for Root Complex Integrated Endpoints because I don't know how to figure out clock granularity for them. The spec says: ... system software must set [Effective Granularity] to the value reported in the Local Clock Granularity field by the associated PTM Time Source. but I don't know how to identify the associated PTM Time Source. Normally it's the upstream bridge, but an integrated endpoint has no upstream bridge.

Bjorn Helgaas committed 10 years ago

Commit 8b2ec311 parent eec097d3 files · +31 −2Browse files

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

Unified · Split

include/uapi/linux/pci_regs.h+1−0
@@ -969,6 +969,7 @@ · 968 unmodified lines
969969 #define PCI_PTM_CAP 0x04 /* PTM Capability */
970970 #define PCI_PTM_CAP_REQ 0x00000001 /* Requester capable */
971971 #define PCI_PTM_CAP_ROOT 0x00000004 /* Root capable */
972+#define PCI_PTM_GRANULARITY_MASK 0x0000FF00 /* Clock granularity */
972973 #define PCI_PTM_CTRL 0x08 /* PTM Control */
973974 #define PCI_PTM_CTRL_ENABLE 0x00000001 /* PTM enable */
974975 #define PCI_PTM_CTRL_ROOT 0x00000002 /* Root select */

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