platform/x86: intel_pmc_core: Decode Snoop / Non Snoop LTR
authorRajneesh Bhardwaj <rajneesh.bhardwaj@linux.intel.com>
Thu, 8 Nov 2018 19:02:44 +0000 (00:32 +0530)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Sat, 10 Nov 2018 14:28:10 +0000 (16:28 +0200)
commit8122e7cd806df4c696eed0c9a6ad1e69dfe783fc
treec1c5f6f3e5f9e988c9e5817bb241d6fbf1ef35d9
parent2d649d972bae50199a498f46b945ef8fd78cad5a
platform/x86: intel_pmc_core: Decode Snoop / Non Snoop LTR

The LTR values follow PCIE LTR encoding format and can be decoded as per
https://pcisig.com/sites/default/files/specification_documents/ECN_LatencyTolnReporting_14Aug08.pdf

This adds support to translate the raw LTR values as read from the PMC
to meaningful values in nanosecond units of time.

Signed-off-by: Rajneesh Bhardwaj <rajneesh.bhardwaj@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/intel_pmc_core.c
drivers/platform/x86/intel_pmc_core.h