Felix Held has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/42207 )
Change subject: soc/amd/picasso/acpi/sb_fch: mark _CRS methods as Serialized ......................................................................
soc/amd/picasso/acpi/sb_fch: mark _CRS methods as Serialized
ACPI objects are created inside these methods, so they need to be serialized.
TEST=iasl stops complaining about those methods not being serialized
Change-Id: Ic43fcaed5a8b19dbd5634c17f34a159803ba8577 Signed-off-by: Felix Held felix-coreboot@felixheld.de --- M src/soc/amd/picasso/acpi/sb_fch.asl 1 file changed, 9 insertions(+), 9 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/07/42207/1
diff --git a/src/soc/amd/picasso/acpi/sb_fch.asl b/src/soc/amd/picasso/acpi/sb_fch.asl index a7f60c2..3dccaf5 100644 --- a/src/soc/amd/picasso/acpi/sb_fch.asl +++ b/src/soc/amd/picasso/acpi/sb_fch.asl @@ -26,7 +26,7 @@ Name (_UID, 0) Name (_DDN, GPIO_DEVICE_DESC)
- Method (_CRS, 0) { + Method (_CRS, 0, Serialized) { Name (RBUF, ResourceTemplate() { Interrupt ( ResourceConsumer, @@ -61,7 +61,7 @@ { Name (_HID, "AMDI0040") Name (_UID, 0x0) - Method (_CRS, 0) { + Method (_CRS, 0, Serialized) { Name (RBUF, ResourceTemplate() { Interrupt ( ResourceConsumer, @@ -96,7 +96,7 @@ { Name (_HID, "AMD0020") Name (_UID, 0x0) - Method (_CRS, 0) { + Method (_CRS, 0, Serialized) { Name (RBUF, ResourceTemplate() { Interrupt ( ResourceConsumer, @@ -132,7 +132,7 @@ Device (FUR1) { Name (_HID, "AMD0020") Name (_UID, 0x1) - Method (_CRS, 0) { + Method (_CRS, 0, Serialized) { Name (RBUF, ResourceTemplate() { Interrupt ( ResourceConsumer, @@ -168,7 +168,7 @@ Device (FUR2) { Name (_HID, "AMD0020") Name (_UID, 0x2) - Method (_CRS, 0) { + Method (_CRS, 0, Serialized) { Name (RBUF, ResourceTemplate() { Interrupt ( ResourceConsumer, @@ -204,7 +204,7 @@ Device (FUR3) { Name (_HID, "AMD0020") Name (_UID, 0x3) - Method (_CRS, 0) { + Method (_CRS, 0, Serialized) { Name (RBUF, ResourceTemplate() { Interrupt ( ResourceConsumer, @@ -240,7 +240,7 @@ Device (I2C2) { Name (_HID, "AMD0010") Name (_UID, 0x2) - Method (_CRS, 0) { + Method (_CRS, 0, Serialized) { Name (RBUF, ResourceTemplate() { Interrupt ( ResourceConsumer, @@ -275,7 +275,7 @@ { Name (_HID, "AMD0010") Name (_UID, 0x3) - Method (_CRS, 0) { + Method (_CRS, 0, Serialized) { Name (RBUF, ResourceTemplate() { Interrupt ( ResourceConsumer, @@ -308,7 +308,7 @@ Device (I2C4) { Name (_HID, "AMD0010") Name (_UID, 0x4) - Method (_CRS, 0) { + Method (_CRS, 0, Serialized) { Name (RBUF, ResourceTemplate() { Interrupt ( ResourceConsumer,
Furquan Shaikh has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/42207 )
Change subject: soc/amd/picasso/acpi/sb_fch: mark _CRS methods as Serialized ......................................................................
Patch Set 1: Code-Review+2
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/42207 )
Change subject: soc/amd/picasso/acpi/sb_fch: mark _CRS methods as Serialized ......................................................................
Patch Set 1: Code-Review+2
Raul Rangel has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/42207 )
Change subject: soc/amd/picasso/acpi/sb_fch: mark _CRS methods as Serialized ......................................................................
Patch Set 1: Code-Review+2
(1 comment)
https://review.coreboot.org/c/coreboot/+/42207/1/src/soc/amd/picasso/acpi/sb... File src/soc/amd/picasso/acpi/sb_fch.asl:
https://review.coreboot.org/c/coreboot/+/42207/1/src/soc/amd/picasso/acpi/sb... PS1, Line 65: RBUF Did this happen because I named this resource instead of using local0?
Felix Held has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/42207 )
Change subject: soc/amd/picasso/acpi/sb_fch: mark _CRS methods as Serialized ......................................................................
Patch Set 1: Code-Review-1
(1 comment)
https://review.coreboot.org/c/coreboot/+/42207/1/src/soc/amd/picasso/acpi/sb... File src/soc/amd/picasso/acpi/sb_fch.asl:
https://review.coreboot.org/c/coreboot/+/42207/1/src/soc/amd/picasso/acpi/sb... PS1, Line 65: RBUF
Did this happen because I named this resource instead of using local0?
yeah. i'll rewrite this and push a new changeset
Hello build bot (Jenkins), Jason Glenesk, Raul Rangel, Furquan Shaikh, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/42207
to look at the new patch set (#2).
Change subject: soc/amd/picasso/acpi/sb_fch: use local variable in _CRS methods ......................................................................
soc/amd/picasso/acpi/sb_fch: use local variable in _CRS methods
Use a local variable for the ResourceTemplate in the _CRS methods instead of the RBUF object. When using RBUF, iasl complained that the _CRS methods need to be serialized, since objects were created in there. Since those are only used as local variables, just use local variables for this.
TEST=iasl stops complaining about those methods not being serialized and Linux still boots and there aren't any related ACPI errors or warnings.
Change-Id: Ic43fcaed5a8b19dbd5634c17f34a159803ba8577 Signed-off-by: Felix Held felix-coreboot@felixheld.de --- M src/soc/amd/picasso/acpi/sb_fch.asl 1 file changed, 36 insertions(+), 36 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/07/42207/2
Felix Held has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/42207 )
Change subject: soc/amd/picasso/acpi/sb_fch: use local variable in _CRS methods ......................................................................
Patch Set 2:
(1 comment)
Patch Set 1: Code-Review+2
(1 comment)
https://review.coreboot.org/c/coreboot/+/42207/1/src/soc/amd/picasso/acpi/sb... File src/soc/amd/picasso/acpi/sb_fch.asl:
https://review.coreboot.org/c/coreboot/+/42207/1/src/soc/amd/picasso/acpi/sb... PS1, Line 65: RBUF
yeah. […]
Done. This is definitely a better fix
Raul Rangel has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/42207 )
Change subject: soc/amd/picasso/acpi/sb_fch: use local variable in _CRS methods ......................................................................
Patch Set 2: Code-Review+2
Felix Held has submitted this change. ( https://review.coreboot.org/c/coreboot/+/42207 )
Change subject: soc/amd/picasso/acpi/sb_fch: use local variable in _CRS methods ......................................................................
soc/amd/picasso/acpi/sb_fch: use local variable in _CRS methods
Use a local variable for the ResourceTemplate in the _CRS methods instead of the RBUF object. When using RBUF, iasl complained that the _CRS methods need to be serialized, since objects were created in there. Since those are only used as local variables, just use local variables for this.
TEST=iasl stops complaining about those methods not being serialized and Linux still boots and there aren't any related ACPI errors or warnings.
Change-Id: Ic43fcaed5a8b19dbd5634c17f34a159803ba8577 Signed-off-by: Felix Held felix-coreboot@felixheld.de Reviewed-on: https://review.coreboot.org/c/coreboot/+/42207 Tested-by: build bot (Jenkins) no-reply@coreboot.org Reviewed-by: Raul Rangel rrangel@chromium.org --- M src/soc/amd/picasso/acpi/sb_fch.asl 1 file changed, 36 insertions(+), 36 deletions(-)
Approvals: build bot (Jenkins): Verified Raul Rangel: Looks good to me, approved
diff --git a/src/soc/amd/picasso/acpi/sb_fch.asl b/src/soc/amd/picasso/acpi/sb_fch.asl index a7f60c2..0bc9b8c 100644 --- a/src/soc/amd/picasso/acpi/sb_fch.asl +++ b/src/soc/amd/picasso/acpi/sb_fch.asl @@ -27,7 +27,7 @@ Name (_DDN, GPIO_DEVICE_DESC)
Method (_CRS, 0) { - Name (RBUF, ResourceTemplate() { + Local0 = ResourceTemplate() { Interrupt ( ResourceConsumer, Level, @@ -35,8 +35,8 @@ Exclusive, , , IRQR) { 0 } Memory32Fixed (ReadWrite, 0xFED81500, 0x300) - }) - CreateDWordField (RBUF, IRQR._INT, IRQN) + } + CreateDWordField (Local0, IRQR._INT, IRQN) If (PMOD) { IRQN = IGPI } Else { @@ -47,7 +47,7 @@ Memory32Fixed (ReadWrite, 0xFED81500, 0x300) }) } Else { - Return (RBUF) + Return (Local0) } }
@@ -62,7 +62,7 @@ Name (_HID, "AMDI0040") Name (_UID, 0x0) Method (_CRS, 0) { - Name (RBUF, ResourceTemplate() { + Local0 = ResourceTemplate() { Interrupt ( ResourceConsumer, Level, @@ -70,8 +70,8 @@ Exclusive, , , IRQR) { 0 } Memory32Fixed (ReadWrite, APU_EMMC_BASE, 0x1000) - }) - CreateDWordField (RBUF, IRQR._INT, IRQN) + } + CreateDWordField (Local0, IRQR._INT, IRQN) If (PMOD) { IRQN = IMMC } Else { @@ -82,7 +82,7 @@ Memory32Fixed (ReadWrite, APU_EMMC_BASE, 0x1000) }) } Else { - Return (RBUF) + Return (Local0) } }
@@ -97,7 +97,7 @@ Name (_HID, "AMD0020") Name (_UID, 0x0) Method (_CRS, 0) { - Name (RBUF, ResourceTemplate() { + Local0 = ResourceTemplate() { Interrupt ( ResourceConsumer, Edge, @@ -106,8 +106,8 @@ { 0 } Memory32Fixed (ReadWrite, APU_UART0_BASE, 0x1000) Memory32Fixed (ReadWrite, APU_DMAC0_BASE, 0x1000) - }) - CreateDWordField (RBUF, IRQR._INT, IRQN) + } + CreateDWordField (Local0, IRQR._INT, IRQN) If (PMOD) { IRQN = IUA0 } Else { @@ -119,7 +119,7 @@ Memory32Fixed (ReadWrite, APU_DMAC0_BASE, 0x1000) }) } Else { - Return (RBUF) + Return (Local0) } }
@@ -133,7 +133,7 @@ Name (_HID, "AMD0020") Name (_UID, 0x1) Method (_CRS, 0) { - Name (RBUF, ResourceTemplate() { + Local0 = ResourceTemplate() { Interrupt ( ResourceConsumer, Edge, @@ -142,8 +142,8 @@ { 0 } Memory32Fixed (ReadWrite, APU_UART1_BASE, 0x1000) Memory32Fixed (ReadWrite, APU_DMAC1_BASE, 0x1000) - }) - CreateDWordField (RBUF, IRQR._INT, IRQN) + } + CreateDWordField (Local0, IRQR._INT, IRQN) If (PMOD) { IRQN = IUA1 } Else { @@ -155,7 +155,7 @@ Memory32Fixed (ReadWrite, APU_DMAC1_BASE, 0x1000) }) } Else { - Return (RBUF) + Return (Local0) } }
@@ -169,7 +169,7 @@ Name (_HID, "AMD0020") Name (_UID, 0x2) Method (_CRS, 0) { - Name (RBUF, ResourceTemplate() { + Local0 = ResourceTemplate() { Interrupt ( ResourceConsumer, Edge, @@ -178,8 +178,8 @@ { 0 } Memory32Fixed (ReadWrite, APU_UART2_BASE, 0x1000) Memory32Fixed (ReadWrite, APU_DMAC2_BASE, 0x1000) - }) - CreateDWordField (RBUF, IRQR._INT, IRQN) + } + CreateDWordField (Local0, IRQR._INT, IRQN) If (PMOD) { IRQN = IUA2 } Else { @@ -191,7 +191,7 @@ Memory32Fixed (ReadWrite, APU_DMAC2_BASE, 0x1000) }) } Else { - Return (RBUF) + Return (Local0) } }
@@ -205,7 +205,7 @@ Name (_HID, "AMD0020") Name (_UID, 0x3) Method (_CRS, 0) { - Name (RBUF, ResourceTemplate() { + Local0 = ResourceTemplate() { Interrupt ( ResourceConsumer, Edge, @@ -214,8 +214,8 @@ { 0 } Memory32Fixed (ReadWrite, APU_UART3_BASE, 0x1000) Memory32Fixed (ReadWrite, APU_DMAC3_BASE, 0x1000) - }) - CreateDWordField (RBUF, IRQR._INT, IRQN) + } + CreateDWordField (Local0, IRQR._INT, IRQN) If (PMOD) { IRQN = IUA3 } Else { @@ -227,7 +227,7 @@ Memory32Fixed (ReadWrite, APU_DMAC3_BASE, 0x1000) }) } Else { - Return (RBUF) + Return (Local0) } }
@@ -241,7 +241,7 @@ Name (_HID, "AMD0010") Name (_UID, 0x2) Method (_CRS, 0) { - Name (RBUF, ResourceTemplate() { + Local0 = ResourceTemplate() { Interrupt ( ResourceConsumer, Edge, @@ -249,8 +249,8 @@ Exclusive, , , IRQR) { 0 } Memory32Fixed (ReadWrite, APU_I2C2_BASE, 0x1000) - }) - CreateDWordField (RBUF, IRQR._INT, IRQN) + } + CreateDWordField (Local0, IRQR._INT, IRQN) If (PMOD) { IRQN = II22 } Else { @@ -261,7 +261,7 @@ Memory32Fixed (ReadWrite, APU_I2C2_BASE, 0x1000) }) } Else { - Return (RBUF) + Return (Local0) } }
@@ -276,7 +276,7 @@ Name (_HID, "AMD0010") Name (_UID, 0x3) Method (_CRS, 0) { - Name (RBUF, ResourceTemplate() { + Local0 = ResourceTemplate() { Interrupt ( ResourceConsumer, Edge, @@ -284,8 +284,8 @@ Exclusive, , , IRQR) { 0 } Memory32Fixed (ReadWrite, APU_I2C3_BASE, 0x1000) - }) - CreateDWordField (RBUF, IRQR._INT, IRQN) + } + CreateDWordField (Local0, IRQR._INT, IRQN) If (PMOD) { IRQN = II23 } Else { @@ -296,7 +296,7 @@ Memory32Fixed (ReadWrite, APU_I2C3_BASE, 0x1000) }) } Else { - Return (RBUF) + Return (Local0) } } Method (_STA, 0x0, NotSerialized) @@ -309,7 +309,7 @@ Name (_HID, "AMD0010") Name (_UID, 0x4) Method (_CRS, 0) { - Name (RBUF, ResourceTemplate() { + Local0 = ResourceTemplate() { Interrupt ( ResourceConsumer, Edge, @@ -317,8 +317,8 @@ Exclusive, , , IRQR) { 0 } Memory32Fixed (ReadWrite, APU_I2C4_BASE, 0x1000) - }) - CreateDWordField (RBUF, IRQR._INT, IRQN) + } + CreateDWordField (Local0, IRQR._INT, IRQN) If (PMOD) { IRQN = II24 } Else { @@ -329,7 +329,7 @@ Memory32Fixed (ReadWrite, APU_I2C4_BASE, 0x1000) }) } Else { - Return (RBUF) + Return (Local0) } }