Hi Chang,
First bad commit (maybe != root cause):
tree:
https://github.com/intel/linux-intel-lts.git 5.10/yocto
head: c1454bb2993a11fdcd48794cdd65569c3b33a5b0
commit: a3595cf89d33d08bb53ff3e31160e3f1fb45a1e5 [19765/19803] x86/cpu: Enable Key Locker
and add a chicken bit
config: x86_64-buildonly-randconfig-r005-20211214
(
https://download.01.org/0day-ci/archive/20211216/202112161208.ocGnA7IL-lk...)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
#
https://github.com/intel/linux-intel-lts/commit/a3595cf89d33d08bb53ff3e31...
git remote add intel-lts
https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-lts 5.10/yocto
git checkout a3595cf89d33d08bb53ff3e31160e3f1fb45a1e5
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash arch/x86/kernel/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
arch/x86/kernel/keylocker.c: In function 'check_keylocker_readiness':
> arch/x86/kernel/keylocker.c:31:7: error: implicit declaration of
function 'acpi_sleep_state_supported' [-Werror=implicit-function-declaration]
31 | (acpi_sleep_state_supported(ACPI_STATE_S3) ||
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/acpi_sleep_state_supported +31 arch/x86/kernel/keylocker.c
f8928662d77653 Chang S. Bae 2019-10-23 16
60adaad4f7cfbd Chang S. Bae 2019-10-23 17 bool check_keylocker_readiness(void)
60adaad4f7cfbd Chang S. Bae 2019-10-23 18 {
60adaad4f7cfbd Chang S. Bae 2019-10-23 19 u32 eax, ebx, ecx, edx;
60adaad4f7cfbd Chang S. Bae 2019-10-23 20
60adaad4f7cfbd Chang S. Bae 2019-10-23 21 cpuid_count(KL_CPUID, 0, &eax, &ebx,
&ecx, &edx);
60adaad4f7cfbd Chang S. Bae 2019-10-23 22 /* BIOS may not enable it on some systems.
*/
60adaad4f7cfbd Chang S. Bae 2019-10-23 23 if (!(ebx & KL_CPUID_EBX_AESKLE)) {
60adaad4f7cfbd Chang S. Bae 2019-10-23 24 pr_debug("x86/keylocker: not fully
enabled\n");
60adaad4f7cfbd Chang S. Bae 2019-10-23 25 return false;
60adaad4f7cfbd Chang S. Bae 2019-10-23 26 }
60adaad4f7cfbd Chang S. Bae 2019-10-23 27
f8928662d77653 Chang S. Bae 2019-10-23 28 iwkeybackup_available = (ebx &
KL_CPUID_EBX_BACKUP);
f8928662d77653 Chang S. Bae 2019-10-23 29 /* IWKey backup is essential with S3/4 states
*/
f8928662d77653 Chang S. Bae 2019-10-23 30 if (!iwkeybackup_available &&
f8928662d77653 Chang S. Bae 2019-10-23 @31
(acpi_sleep_state_supported(ACPI_STATE_S3) ||
f8928662d77653 Chang S. Bae 2019-10-23 32
acpi_sleep_state_supported(ACPI_STATE_S4))) {
f8928662d77653 Chang S. Bae 2019-10-23 33 pr_debug("x86/keylocker: no key backup
support with possible S3/4\n");
f8928662d77653 Chang S. Bae 2019-10-23 34 return false;
f8928662d77653 Chang S. Bae 2019-10-23 35 }
60adaad4f7cfbd Chang S. Bae 2019-10-23 36 return true;
60adaad4f7cfbd Chang S. Bae 2019-10-23 37 }
60adaad4f7cfbd Chang S. Bae 2019-10-23 38
:::::: The code at line 31 was first introduced by commit
:::::: f8928662d77653e9fdbd10c84f4be00641cba84f x86/power: Restore Key Locker's
internal key from Sleep or Hibernate state
:::::: TO: Chang S. Bae <chang.seok.bae(a)intel.com>
:::::: CC: nanli2x <nanx.li(a)intel.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org