platform/x86: intel_pmc_core: Ignore GBE LTR on Tiger Lake platforms
authorDavid E. Box <david.e.box@linux.intel.com>
Fri, 19 Mar 2021 20:18:44 +0000 (13:18 -0700)
committerHans de Goede <hdegoede@redhat.com>
Tue, 23 Mar 2021 20:11:19 +0000 (21:11 +0100)
commit36974daf53888e5eac986517b5ffac5bdd47b74d
tree128e7fb38610211bf3559e6d6a86cf7b6cabb760
parenta01be40c6313d3bb6e121820847c6650c358be88
platform/x86: intel_pmc_core: Ignore GBE LTR on Tiger Lake platforms

Due to a HW limitation, the Latency Tolerance Reporting (LTR) value
programmed in the Tiger Lake GBE controller is not large enough to allow
the platform to enter Package C10, which in turn prevents the platform from
achieving its low power target during suspend-to-idle.  Ignore the GBE LTR
value on Tiger Lake. LTR ignore functionality is currently performed solely
by a debugfs write call. Split out the LTR code into its own function that
can be called by both the debugfs writer and by this work around.

Signed-off-by: David E. Box <david.e.box@linux.intel.com>
Reviewed-by: Sasha Neftin <sasha.neftin@intel.com>
Cc: intel-wired-lan@lists.osuosl.org
Reviewed-by: Rajneesh Bhardwaj <irenic.rajneesh@gmail.com>
Link: https://lore.kernel.org/r/20210319201844.3305399-2-david.e.box@linux.intel.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/intel_pmc_core.c