platform/x86/intel/pmc: Allow reenabling LTRs
authorDavid E. Box <david.e.box@linux.intel.com>
Sat, 23 Dec 2023 03:25:44 +0000 (19:25 -0800)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Fri, 29 Dec 2023 13:31:15 +0000 (15:31 +0200)
commit6f9cc5c1f94daa98846b2073733d03ced709704b
treef985dd33f99e1841e3ba87bbaf58f598f718f413
parent7c13f365aee68b01e7e68ee293a71fdc7571c111
platform/x86/intel/pmc: Allow reenabling LTRs

Commit 804951203aa5 ("platform/x86:intel/pmc: Combine core_init() and
core_configure()") caused a network performance regression due to the GBE
LTR ignore that it added during probe. The fix will move the ignore to
occur at suspend-time (so as to not affect suspend power). This will
require the ability to enable the LTR again on resume. Modify
pmc_core_send_ltr_ignore() to allow enabling an LTR.

Fixes: 804951203aa5 ("platform/x86:intel/pmc: Combine core_init() and core_configure()")
Signed-off-by: "David E. Box" <david.e.box@linux.intel.com>
Link: https://lore.kernel.org/r/20231223032548.1680738-5-david.e.box@linux.intel.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/intel/pmc/adl.c
drivers/platform/x86/intel/pmc/cnp.c
drivers/platform/x86/intel/pmc/core.c
drivers/platform/x86/intel/pmc/core.h
drivers/platform/x86/intel/pmc/mtl.c
drivers/platform/x86/intel/pmc/tgl.c