]> asedeno.scripts.mit.edu Git - linux.git/commit
platform/x86: intel_pmc_core: Allow to dump debug registers on S0ix failure
authorRajat Jain <rajatja@google.com>
Wed, 17 Apr 2019 23:01:54 +0000 (16:01 -0700)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 6 May 2019 14:54:42 +0000 (17:54 +0300)
commit2ac8d46dce1b62d19be6a4fa37334c185b1c75fa
treeb2999144eebb31b970973d11ba5a6b20cb96b600
parent6c96a78c7b3201ac012c6e3b487e41e4558fa621
platform/x86: intel_pmc_core: Allow to dump debug registers on S0ix failure

Add a module parameter which when enabled, will check on resume, if the
last S0ix attempt was successful. If not, the driver would warn and provide
helpful debug information (which gets latched during the failed suspend
attempt) to debug the S0ix failure.

This information is very useful to debug S0ix failures. Specially since
the latched debug information will be lost (over-written) if the system
attempts to go into runtime (or imminent) S0ix again after that failed
suspend attempt.

Signed-off-by: Rajat Jain <rajatja@google.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