]> www.infradead.org Git - users/jedix/linux-maple.git/commit
platform/x86: intel/pmc: Ignore all LTRs during suspend
authorXi Pardee <xi.pardee@intel.com>
Fri, 6 Sep 2024 18:40:03 +0000 (11:40 -0700)
committerHans de Goede <hdegoede@redhat.com>
Wed, 11 Sep 2024 12:11:14 +0000 (14:11 +0200)
commitcedf233530cc375343c5a0b612fe94392f246c99
tree23715125c38480df930bef0646d77a4ac5cd2b7d
parentf5dd17e30a59791ba3523aeaab04bafe001b7f67
platform/x86: intel/pmc: Ignore all LTRs during suspend

Add support to ignore all LTRs before suspend and restore the previous
LTR values after suspend. This feature could be turned off with module
parameter ltr_ignore_all_suspend.

LTR value is a mechanism for a device to indicate tolerance to access
the corresponding resource. When system suspends, the resource is not
available and therefore the LTR value could be ignored. Ignoring all
LTR values prevents problematic device from blocking the system to get
to the deepest package state during suspend.

Suggested-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Xi Pardee <xi.pardee@intel.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20240906184016.268153-1-xi.pardee@linux.intel.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/intel/pmc/core.c
drivers/platform/x86/intel/pmc/core.h