Description of problem: dmesg检查有error报错 软件版本: #内核版本 # uname -r 5.10.134-16.2_rc2.an23.loongarch64 #系统版本 # cat /etc/os-release NAME="Anolis OS" VERSION="23" ID="anolis" VERSION_ID="23" PLATFORM_ID="platform:an23" PRETTY_NAME="Anolis OS 23" ANSI_COLOR="0;31" HOME_URL="https://openanolis.cn/" BUG_REPORT_URL="https://bugzilla.openanolis.cn/" iso下载: https://build.openanolis.cn/kojifiles/output/anolis-23-20240128.3/compose/os/loongarch64/iso/anolis-23-loongarch64-dvd1-20240128.3.iso Steps to Reproduce: 1.系统安装启动后,在终端执行dmesg -l err -T Actual results: [root@bogon ~]# dmesg -l err -T [二 1月 30 10:20:45 2024] ACPI Error: Could not enable GlobalLock event (20200925/evxfevnt-182) [二 1月 30 10:20:45 2024] ACPI Error: No response from Global Lock hardware, disabling lock (20200925/evglock-59) [二 1月 30 10:20:45 2024] acpi PNP0A08:00: 0000:[bus 00-ff] ECAM region not found, use default value [二 1月 30 10:20:46 2024] ACPI S3 is not support! [二 1月 30 10:20:47 2024] Failed to init iommu by ivrs [二 1月 30 10:20:48 2024] integrity: Unable to open file: /etc/keys/x509_ima.der (-2) [二 1月 30 10:20:48 2024] integrity: Unable to open file: /etc/keys/x509_evm.der (-2) Expected results: dmesg检查无报错 Additional info:
ima的报错可以忽略,其他的子札请帮忙确认一下。
问题已经确认。需要修改内核公共代码。 diff --git a/drivers/acpi/acpica/evevent.c b/drivers/acpi/acpica/evevent.c index 70f10c8..11de0dc 100644 --- a/drivers/acpi/acpica/evevent.c +++ b/drivers/acpi/acpica/evevent.c @@ -98,6 +98,7 @@ return_ACPI_STATUS(status); } +#if !defined(CONFIG_LOONGARCH) /* Install the handler for the Global Lock */ status = acpi_ev_init_global_lock_handler(); @@ -106,6 +107,7 @@ "Unable to initialize Global Lock handler")); return_ACPI_STATUS(status); } +#endif acpi_gbl_events_initialized = TRUE; return_ACPI_STATUS(status);
以下错误信息已经修复: [二 1月 30 10:20:45 2024] ACPI Error: Could not enable GlobalLock event (20200925/evxfevnt-182) [二 1月 30 10:20:45 2024] ACPI Error: No response from Global Lock hardware, disabling lock (20200925/evglock-59) [二 1月 30 10:20:45 2024] acpi PNP0A08:00: 0000:[bus 00-ff] ECAM region not found, use default value 以下错误信息可以忽略: 因为固件未通过acpi传递suspend_addr,报错属于正常现象。 ACPI S3 is not support! 服务器不做s3支持。
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/2730
merged
更新RC3内核后测试: https://build.openanolis.cn/taskinfo?taskID=792801 内核版本:5.10.134-16.2_rc3.an23.loongarch64 复测结果: dmesg -l err -T [五 2月 23 16:56:38 2024] acpi PNP0A08:00: 0000:[bus 00-ff] ECAM region not found, use default value [五 2月 23 16:56:39 2024] Failed to init iommu by ivrs [五 2月 23 16:56:40 2024] integrity: Unable to open file: /etc/keys/x509_ima.der (-2) [五 2月 23 16:56:40 2024] integrity: Unable to open file: /etc/keys/x509_evm.der (-2) [五 2月 23 16:56:42 2024] radeon 0000:04:00.0: failed VCE resume (-110). 测试结论: acpi PNP0A08:00: 0000:[bus 00-ff] ECAM region not found, use default value 报错没有解决 ACPI Error: Could not enable GlobalLock event (20200925/evxfevnt-182) ACPI Error: No response from Global Lock hardware, disabling lock (20200925/evglock-59) 报错已修复
经确认,是固件下acpi的某些属性配置不正确导致的,不影响版本发布