Bug 8084 - [Anolis23.1][RC2][loongarch64]dmesg检查有error报错
Summary: [Anolis23.1][RC2][loongarch64]dmesg检查有error报错
Status: CLOSED FIXED
Alias: None
Product: ANCK 5.10 Dev
Classification: ANCK
Component: general/others (show other bugs) general/others
Version: 5.10.y-16.2
Hardware: loongarch Linux
: P3-Medium S3-normal
Target Milestone: rc
Assignee: maqiao
QA Contact: bolong_tbl
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-30 11:28 UTC by liqianwen
Modified: 2024-03-29 10:49 UTC (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description liqianwen loongson_group 2024-01-30 11:28:16 UTC
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:
Comment 1 yunmeng365524 2024-01-31 10:55:12 UTC
ima的报错可以忽略,其他的子札请帮忙确认一下。
Comment 2 wangming01 loongson_group 2024-01-31 11:36:36 UTC
问题已经确认。需要修改内核公共代码。

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);
Comment 3 wangming01 loongson_group 2024-02-01 09:34:30 UTC
以下错误信息已经修复:

[二 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支持。
Comment 4 小龙 admin 2024-02-01 10:02:17 UTC
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/2730
Comment 5 banye97 alibaba_cloud_group 2024-02-20 16:28:07 UTC
merged
Comment 6 liqianwen loongson_group 2024-02-23 17:04:38 UTC
更新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)
报错已修复
Comment 7 maqiao alibaba_cloud_group 2024-02-29 10:07:15 UTC
经确认,是固件下acpi的某些属性配置不正确导致的,不影响版本发布