[PATCH 0/6] enable PM debug messages for S3 + S4 (LP: #1772563)

Colin King colin.king at canonical.com
Thu Jun 7 14:05:50 UTC 2018


From: Colin Ian King <colin.king at canonical.com>

This patch set fixes the fwts_set API and uses it to add two
helper functions to get and set the /sys/power/pm_debug_messages
setting.  This allows the S3 and S4 tests to force the debug on
so that the kernel will emit the necessary debug data to the kernel
log that the tests require to analyze the S3 and S4 cycle for
failures.

Also fix the S4 swap detection to consider file backed swap as this
is now being used in Ubuntu instead of raw device swap.

Colin Ian King (6):
  lib: fwts_set: fix API for fwts_set, add fwts_set_int
  lib: add small helpers top get/set /sys/power/pm_debug_messages
  acpi: s3: force enable /sys/power/pm_debug_messages
  acpi: s4: also check for file based swap files
  acpi: s4: force enable /sys/power/pm_debug_messages
  acpi: s3power: force enable /sys/power/pm_debug_messages

 src/acpi/s3/s3.c                |  8 ++++++
 src/acpi/s3power/s3power.c      |  8 ++++++
 src/acpi/s4/s4.c                | 11 +++++++-
 src/lib/include/fwts.h          |  1 +
 src/lib/include/fwts_pm_debug.h | 25 ++++++++++++++++++
 src/lib/include/fwts_set.h      |  3 ++-
 src/lib/src/Makefile.am         |  1 +
 src/lib/src/fwts_pm_debug.c     | 47 +++++++++++++++++++++++++++++++++
 src/lib/src/fwts_set.c          | 26 +++++++++++++++---
 9 files changed, 125 insertions(+), 5 deletions(-)
 create mode 100644 src/lib/include/fwts_pm_debug.h
 create mode 100644 src/lib/src/fwts_pm_debug.c

-- 
2.17.0




More information about the fwts-devel mailing list