[coreboot-gerrit] Change in coreboot[master]: x86/acpigen: Fix ACPI _ROM method
Marc Jones (Code Review)
gerrit at coreboot.org
Thu Aug 16 19:51:04 CEST 2018
Marc Jones has uploaded this change for review. ( https://review.coreboot.org/28124
Change subject: x86/acpigen: Fix ACPI _ROM method
......................................................................
x86/acpigen: Fix ACPI _ROM method
Fix the following Error:
FAILED [LOW] AMLAsmASL_MSG_SERIALIZED_REQUIRED: Test 1, Assembler remark in line
142
Line | AML source
--------------------------------------------------------------------------------
00139|
00140| Scope (\_SB.PCI0.IGFX)
00141| {
00142| Method (_ROM, 2, NotSerialized) // _ROM: Read-Only Memory
| ^
| Remark 2120: Control Method should be made Serialized (due to creation of named objects within)
00143| {
00144| OperationRegion (ROMS, SystemMemory, 0xCD520000, 0xFE00)
00145| Field (ROMS, AnyAcc, NoLock, Preserve)
================================================================================
ADVICE: (for Remark #2120, ASL_MSG_SERIALIZED_REQUIRED): A named object is
created inside a non-serialized method - this method should be serialized. It is
possible that one thread enters the method and blocks and then a second thread
also executes the method, ending up in two attempts to create the object and
causing a failure.
Use the acpigen_write_method_serialized() to correct the error.
BUG=b:112476331
TEST=Run FWTS.
Change-Id: I145c3c3103efb4a02b4e02dd177f4bf50a2c7b3e
Signed-off-by: Marc Jones <marcj303 at gmail.com>
---
M src/arch/x86/acpigen.c
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/24/28124/1
diff --git a/src/arch/x86/acpigen.c b/src/arch/x86/acpigen.c
index a614efb..c842cca 100644
--- a/src/arch/x86/acpigen.c
+++ b/src/arch/x86/acpigen.c
@@ -1405,7 +1405,7 @@
ASSERT(length)
/* Method (_ROM, 2, NotSerialized) */
- acpigen_write_method("_ROM", 2);
+ acpigen_write_method_serialized("_ROM", 2);
/* OperationRegion("ROMS", SYSTEMMEMORY, current, length) */
struct opregion opreg = OPREGION("ROMS", SYSTEMMEMORY,
--
To view, visit https://review.coreboot.org/28124
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I145c3c3103efb4a02b4e02dd177f4bf50a2c7b3e
Gerrit-Change-Number: 28124
Gerrit-PatchSet: 1
Gerrit-Owner: Marc Jones <marc at marcjonesconsulting.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180816/06b6dc73/attachment-0001.html>
More information about the coreboot-gerrit
mailing list