]> git.baikalelectronics.ru Git - kernel.git/commit
PCI/PTM: Save/restore Precision Time Measurement Capability for suspend/resume
authorDavid E. Box <david.e.box@linux.intel.com>
Mon, 7 Dec 2020 22:39:50 +0000 (14:39 -0800)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 10 Dec 2020 20:43:54 +0000 (14:43 -0600)
commit8acd02071458148f30a6f029250f4f7d4bcf1e6e
treeb8cb10061b1aecb2eb14001219f1bf8277565354
parent1a1a5d6cd1062ccc15f5dedff6e1f10224f45f11
PCI/PTM: Save/restore Precision Time Measurement Capability for suspend/resume

The PCI subsystem does not currently save and restore the configuration
space for the Precision Time Measurement (PTM) Extended Capability leading
to the possibility of the feature returning disabled on S3 resume.  This
has been observed on Intel Coffee Lake desktops. Add save/restore of the
PTM control register. This saves the PTM Enable, Root Select, and Effective
Granularity bits.

Suggested-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://lore.kernel.org/r/20201207223951.19667-1-david.e.box@linux.intel.com
Signed-off-by: David E. Box <david.e.box@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pci.c
drivers/pci/pci.h
drivers/pci/pcie/ptm.c