I checked the ACPI spec and it says the UEFI RuntimeCode/RuntimeData is treated 
as AddressRangeReserved type by OS (see ACPI spec 15.3 UEFI GetMemoryMap() Boot 
Services Function)

I think the AddressRangeReserved type is NOT restored by OS when resuming from 
S4.
Can you double check?



Thanks,
Ray

________________________________
From: devel@edk2.groups.io <devel@edk2.groups.io> on behalf of 张辰 
<zhangc...@loongson.cn>
Sent: Friday, January 17, 2025 16:42
To: devel@edk2.groups.io <devel@edk2.groups.io>
Cc: gaoliming <gaolim...@byosoft.com.cn>; lichao <lic...@loongson.cn>; 钱东彦 
<qiandong...@loongson.cn>; Kinney, Michael D <michael.d.kin...@intel.com>
Subject: [edk2-devel] Problems with modifying variables after S4 recovery

Hello,

An issue regarding the variable has been encountered on the LoongArch platform. 
Modifying the variable using efivar after S4 resume will cause data corruption 
in the flash.
It was found that when starting from S4, the BIOS might write to the variable. 
After the system resumes, the data in the runtime memory will also be restored, 
resulting in inconsistent data between that in the VARIABLE_MODULE_GLOBAL 
structure and the actual data. There is already data in the flash area 
corresponding to NonVolatileLastVariableOffset.
It's suspected that there will also be problems on other platforms. I'd like to 
know whether other platforms have encountered similar problems and if there are 
any solutions?

Thanks
________________________________
zhangc...@loongson.cn


本邮件及其附件含有龙芯中科的商业秘密信息,仅限于发送给上面地址中列出的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制或散发)本邮件及其附件中的信息。如果您错收本邮件,请您立即电话或邮件通知发件人并删除本邮件。
This email and its attachments contain confidential information from Loongson 
Technology , which is intended only for the person or entity whose address is 
listed above. Any use of the information contained herein in any way 
(including, but not limited to, total or partial disclosure, reproduction or 
dissemination) by persons other than the intended recipient(s) is prohibited. 
If you receive this email in error, please notify the sender by phone or email 
immediately and delete it.



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#121040): https://edk2.groups.io/g/devel/message/121040
Mute This Topic: https://groups.io/mt/110712299/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to