Maxim Polyakov has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/44866 )
Change subject: Makefile.inc: Ignore unknown IASL method when SMBus ACPI is used
......................................................................
Makefile.inc: Ignore unknown IASL method when SMBus ACPI is used
Methods _SBI, _SBR, _SBW from the "SMBus Control Methods Interface
Specification" (Ver 1.0, 1999) are needed to control the SMBus, but
they are not included in the last ACPI specification version 6.3 [1].
Therefore, building the image fails:
dsdt.asl 1088: Method (_SBI, 0, NotSerialized)
Warning 3133 - ^ Unknown reserved name (_SBI)
dsdt.asl 1101: Method (_SBR, 3, NotSerialized)
Warning 3133 - ^ Unknown reserved name (_SBR)
dsdt.asl 1105: Method (_SBW, 5, NotSerialized)
Warning 3133 - ^ Unknown reserved name (_SBW)
This patch adds warning 3133 to the ignored list to allow build image
with these ACPI methods.
TEST = Build image for the Kontron mAL10 COMe (Apollo Lake) [2] with
SMBus ACPI code [3].
[1] https://bugs.acpica.org/show_bug.cgi?id=1530
[2] https://review.coreboot.org/c/coreboot/+/39133
[3] https://review.coreboot.org/c/coreboot/+/44475
Change-Id: Ibb4a6e472445ab08bf333ff16d7a7fac220ac96d
Signed-off-by: Maxim Polyakov <max.senia.poliak(a)gmail.com>
---
M Makefile.inc
1 file changed, 9 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/66/44866/1
diff --git a/Makefile.inc b/Makefile.inc
index b650957..df37c22 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -265,6 +265,8 @@
# See cb:38803 & cb:38802
# "Multiple types (Device object requires either a _HID or _ADR, but not both)"
MULTIPLE_TYPES_WARNING = 3073
+# Ignore the warning about "Unknown reserved name".
+UNKNOWN_RESERVED_NAME_TYPES_WARNING = 3133
IASL_WARNINGS_LIST = $(EMPTY_RESOURCE_TEMPLATE_WARNING) $(REDUNDANT_OFFSET_REMARK)
@@ -272,6 +274,13 @@
IASL_WARNINGS_LIST += $(MULTIPLE_TYPES_WARNING)
endif
+ifeq ($(CONFIG_SOC_INTEL_COMMON_BLOCK_SMBUS_ACPI_DRIVER),y)
+# Methods _SBI, _SBR, _SBW from the "SMBus Control Methods Interface Specification"
+# (Ver 1.0, 1999) are needed to control the SMBus, but they are not included in the
+# last ACPI specification version 6.3 (https://bugs.acpica.org/show_bug.cgi?id=1530)
+IASL_WARNINGS_LIST += $(UNKNOWN_RESERVED_NAME_TYPES_WARNING)
+endif
+
IGNORED_IASL_WARNINGS = $(addprefix -vw , $(IASL_WARNINGS_LIST))
define asl_template
--
To view, visit https://review.coreboot.org/c/coreboot/+/44866
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ibb4a6e472445ab08bf333ff16d7a7fac220ac96d
Gerrit-Change-Number: 44866
Gerrit-PatchSet: 1
Gerrit-Owner: Maxim Polyakov <max.senia.poliak(a)gmail.com>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-MessageType: newchange
Patrick Rudolph has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/46839 )
Change subject: arch/x86/spinlock: Drop linker section in inline assembly
......................................................................
arch/x86/spinlock: Drop linker section in inline assembly
The linker section isn't required or specified in the linker script.
This confuses GCC and prevents garbage collecting functions using
spinlocks, which might cause linker errors.
Tested by compiling the C SIPI vector with spinlocks.
Change-Id: Ia4f5a8f4aec0e05bc35359b334845c177867d4a4
Signed-off-by: Patrick Rudolph <patrick.rudolph(a)9elements.com>
---
M src/arch/x86/include/arch/smp/spinlock.h
1 file changed, 1 insertion(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/39/46839/1
diff --git a/src/arch/x86/include/arch/smp/spinlock.h b/src/arch/x86/include/arch/smp/spinlock.h
index 799ac2c..37e3eaf 100644
--- a/src/arch/x86/include/arch/smp/spinlock.h
+++ b/src/arch/x86/include/arch/smp/spinlock.h
@@ -35,13 +35,11 @@
"\n1:\t" \
"lock ; decb %0\n\t" \
"js 2f\n" \
- ".section .text.lock,\"ax\"\n" \
"2:\t" \
"cmpb $0,%0\n\t" \
"rep;nop\n\t" \
"jle 2b\n\t" \
- "jmp 1b\n" \
- ".previous"
+ "jmp 1b\n"
/*
* This works. Despite all the confusion.
--
To view, visit https://review.coreboot.org/c/coreboot/+/46839
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ia4f5a8f4aec0e05bc35359b334845c177867d4a4
Gerrit-Change-Number: 46839
Gerrit-PatchSet: 1
Gerrit-Owner: Patrick Rudolph <patrick.rudolph(a)9elements.com>
Gerrit-MessageType: newchange