From: kernel test robot <lkp@intel.com>
To: Antheas Kapenekakis <lkml@antheas.dev>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: Re: [RFC v1 7/8] PM: hibernate: Enter s2idle sleep state before hibernation
Date: Sat, 27 Dec 2025 19:39:33 +0800 [thread overview]
Message-ID: <202512271901.0fiprS0M-lkp@intel.com> (raw)
In-Reply-To: <20251226102656.6296-8-lkml@antheas.dev>
Hi Antheas,
[This is a private test report for your RFC patch.]
kernel test robot noticed the following build warnings:
[auto build test WARNING on 9448598b22c50c8a5bb77a9103e2d49f134c9578]
url: https://github.com/intel-lab-lkp/linux/commits/Antheas-Kapenekakis/Documentation-PM-Add-documentation-for-Runtime-Standby-States/20251226-183746
base: 9448598b22c50c8a5bb77a9103e2d49f134c9578
patch link: https://lore.kernel.org/r/20251226102656.6296-8-lkml%40antheas.dev
patch subject: [RFC v1 7/8] PM: hibernate: Enter s2idle sleep state before hibernation
config: i386-randconfig-002-20251227 (https://download.01.org/0day-ci/archive/20251227/202512271901.0fiprS0M-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251227/202512271901.0fiprS0M-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202512271901.0fiprS0M-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> kernel/power/hibernate.c:823:5: warning: 'CONFIG_SUSPEND' is not defined, evaluates to 0 [-Wundef]
823 | #if CONFIG_SUSPEND
| ^
kernel/power/hibernate.c:913:5: warning: 'CONFIG_SUSPEND' is not defined, evaluates to 0 [-Wundef]
913 | #if CONFIG_SUSPEND
| ^
>> kernel/power/hibernate.c:794:7: warning: variable 'powered_down' set but not used [-Wunused-but-set-variable]
794 | bool powered_down = false;
| ^
3 warnings generated.
vim +/CONFIG_SUSPEND +823 kernel/power/hibernate.c
784
785 /**
786 * hibernate - Carry out system hibernation, including saving the image.
787 */
788 int hibernate(void)
789 {
790 #ifdef CONFIG_SUSPEND
791 standby_state_t previous_standby;
792 #endif
793 bool snapshot_test = false;
> 794 bool powered_down = false;
795 unsigned int sleep_flags;
796 int error;
797
798 if (!hibernation_available()) {
799 pm_pr_dbg("Hibernation not available.\n");
800 return -EPERM;
801 }
802
803 /*
804 * Query for the compression algorithm support if compression is enabled.
805 */
806 if (!nocompress) {
807 strscpy(hib_comp_algo, hibernate_compressor);
808 if (!crypto_has_acomp(hib_comp_algo, 0, CRYPTO_ALG_ASYNC)) {
809 pr_err("%s compression is not available\n", hib_comp_algo);
810 return -EOPNOTSUPP;
811 }
812 }
813
814 sleep_flags = lock_system_sleep();
815 /* The snapshot device should not be opened while we're running */
816 if (!hibernate_acquire()) {
817 error = -EBUSY;
818 goto Unlock;
819 }
820
821 pr_info("hibernation entry\n");
822
> 823 #if CONFIG_SUSPEND
824 /* Enter the standby screen off state in case userspace has not. */
825 previous_standby = pm_standby_get_state();
826 pm_standby_transition(PM_STANDBY_INACTIVE);
827 #endif
828
829 pm_prepare_console();
830 error = pm_notifier_call_chain_robust(PM_HIBERNATION_PREPARE, PM_POST_HIBERNATION);
831 if (error)
832 goto Restore;
833
834 error = pm_sleep_fs_sync();
835 if (error)
836 goto Notify;
837
838 filesystems_freeze(filesystem_freeze_enabled);
839
840 error = freeze_processes();
841 if (error)
842 goto Exit;
843
844 lock_device_hotplug();
845 /* Allocate memory management structures */
846 error = create_basic_memory_bitmaps();
847 if (error)
848 goto Thaw;
849
850 error = hibernation_snapshot(hibernation_mode == HIBERNATION_PLATFORM);
851 if (error || freezer_test_done)
852 goto Free_bitmaps;
853
854 if (in_suspend) {
855 unsigned int flags = 0;
856
857 if (hibernation_mode == HIBERNATION_PLATFORM)
858 flags |= SF_PLATFORM_MODE;
859 if (nocompress) {
860 flags |= SF_NOCOMPRESS_MODE;
861 } else {
862 flags |= SF_CRC32_MODE;
863
864 /*
865 * By default, LZO compression is enabled. Use SF_COMPRESSION_ALG_LZ4
866 * to override this behaviour and use LZ4.
867 *
868 * Refer kernel/power/power.h for more details
869 */
870
871 if (!strcmp(hib_comp_algo, COMPRESSION_ALGO_LZ4))
872 flags |= SF_COMPRESSION_ALG_LZ4;
873 else
874 flags |= SF_COMPRESSION_ALG_LZO;
875 }
876
877 pm_pr_dbg("Writing hibernation image.\n");
878 error = swsusp_write(flags);
879 swsusp_free();
880 if (!error) {
881 if (hibernation_mode == HIBERNATION_TEST_RESUME) {
882 snapshot_test = true;
883 } else {
884 powered_down = true;
885 power_down();
886 }
887 }
888 in_suspend = 0;
889 pm_restore_gfp_mask();
890 } else {
891 pm_pr_dbg("Hibernation image restored successfully.\n");
892 }
893
894 Free_bitmaps:
895 free_basic_memory_bitmaps();
896 Thaw:
897 unlock_device_hotplug();
898 if (snapshot_test) {
899 pm_pr_dbg("Checking hibernation image\n");
900 error = swsusp_check(false);
901 if (!error)
902 error = load_image_and_restore();
903 }
904 thaw_processes();
905
906 /* Don't bother checking whether freezer_test_done is true */
907 freezer_test_done = false;
908 Exit:
909 filesystems_thaw();
910 Notify:
911 pm_notifier_call_chain(PM_POST_HIBERNATION);
912 Restore:
913 #if CONFIG_SUSPEND
914 /*
915 * If we resumed from S5, we are in the active standby state. However,
916 * the kernel restored a stale value. Sync it. Otherwise, in e.g., the
917 * case of a failed hibernation, transition to the previous value.
918 */
919 if (powered_down)
920 pm_standby_set_state(PM_STANDBY_ACTIVE);
921 else
922 pm_standby_transition(previous_standby);
923 #endif
924
925 pm_restore_console();
926 hibernate_release();
927 Unlock:
928 unlock_system_sleep(sleep_flags);
929 pr_info("hibernation exit\n");
930
931 return error;
932 }
933
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2025-12-27 11:40 UTC|newest]
Thread overview: 49+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-26 10:26 [RFC v1 0/8] acpi/x86: s2idle: Introduce and implement runtime standby ABI for ACPI s0ix platforms Antheas Kapenekakis
2025-12-26 10:26 ` [RFC v1 1/8] Documentation: PM: Add documentation for Runtime Standby States Antheas Kapenekakis
2026-03-13 20:07 ` Rafael J. Wysocki
2026-03-16 19:54 ` Antheas Kapenekakis
2025-12-26 10:26 ` [RFC v1 2/8] acpi/x86: s2idle: Rename LPS0 constants so they mirror their function Antheas Kapenekakis
2026-03-13 20:12 ` Rafael J. Wysocki
2026-03-16 20:01 ` Antheas Kapenekakis
2025-12-26 10:26 ` [RFC v1 3/8] acpi/x86: s2idle: add runtime standby transition function Antheas Kapenekakis
2025-12-27 7:25 ` kernel test robot
2026-03-13 20:29 ` Rafael J. Wysocki
2026-03-16 20:06 ` Antheas Kapenekakis
2025-12-26 10:26 ` [RFC v1 4/8] acpi/x86: s2idle: add support for querying runtime standby state support Antheas Kapenekakis
2025-12-26 10:26 ` [RFC v1 5/8] acpi/x86: s2idle: move DSM notifications to do_notification callback Antheas Kapenekakis
2025-12-26 10:26 ` [RFC v1 6/8] acpi/x86: s2idle: implement turn on display DSM as resume notification Antheas Kapenekakis
2025-12-26 10:26 ` [RFC v1 7/8] PM: hibernate: Enter s2idle sleep state before hibernation Antheas Kapenekakis
2025-12-27 11:39 ` kernel test robot [this message]
2026-03-13 20:33 ` Rafael J. Wysocki
2026-03-16 20:09 ` Antheas Kapenekakis
2025-12-26 10:26 ` [RFC v1 8/8] PM: standby: Add sysfs attribute for runtime standby transitions Antheas Kapenekakis
2026-01-12 20:33 ` [RFC v1 0/8] acpi/x86: s2idle: Introduce and implement runtime standby ABI for ACPI s0ix platforms Antheas Kapenekakis
2026-01-13 9:48 ` Dmitry Osipenko
2026-01-13 10:11 ` Antheas Kapenekakis
2026-01-14 23:07 ` Dmitry Osipenko
2026-01-15 7:49 ` Antheas Kapenekakis
2026-03-16 19:02 ` Dmitry Osipenko
2026-03-16 19:33 ` Antheas Kapenekakis
2026-03-16 19:36 ` Antheas Kapenekakis
2026-03-17 11:04 ` Dmitry Osipenko
2026-04-22 0:56 ` Dmitry Osipenko
2026-04-22 8:51 ` Antheas Kapenekakis
2026-04-22 8:58 ` Antheas Kapenekakis
2026-04-24 1:35 ` Dmitry Osipenko
2026-04-24 13:48 ` Mario Limonciello
2026-04-24 16:13 ` Antheas Kapenekakis
2026-02-27 14:59 ` Antheas Kapenekakis
2026-02-27 18:42 ` Rafael J. Wysocki
2026-03-13 19:36 ` Rafael J. Wysocki
2026-03-16 19:52 ` Antheas Kapenekakis
2026-03-17 11:56 ` Dmitry Osipenko
2026-03-17 12:09 ` Rafael J. Wysocki
2026-03-17 15:13 ` Mario Limonciello
2026-03-19 12:35 ` Antheas Kapenekakis
2026-03-20 20:41 ` Mario Limonciello (AMD) (kernel.org)
2026-03-21 13:46 ` Antheas Kapenekakis
2026-03-21 13:52 ` Antheas Kapenekakis
2026-03-21 18:43 ` Mario Limonciello
2026-03-21 22:33 ` Antheas Kapenekakis
2026-03-23 4:36 ` Mario Limonciello
2026-03-23 9:26 ` Antheas Kapenekakis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202512271901.0fiprS0M-lkp@intel.com \
--to=lkp@intel.com \
--cc=lkml@antheas.dev \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.