* [edk2-devel] [PATCH edk2-platforms v2 0/2] SbsaQemu: some cleanups
@ 2024-04-24 11:32 Marcin Juszkiewicz
2024-04-24 11:32 ` [edk2-devel] [PATCH edk2-platforms v2 1/2] SbsaQemu: do not set Timer interrupts Marcin Juszkiewicz
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Marcin Juszkiewicz @ 2024-04-24 11:32 UTC (permalink / raw)
To: devel; +Cc: Leif Lindholm, Ard Biesheuvel, Graeme Gregory, Marcin Juszkiewicz
I am working on some changes to SbsaQemu and got some cleanups in
meantime.
First patch gets rid of setting Pcds for Timer interrupts. ArmPkg does
it for us so we do not have to.
Second changes DSDT nodes so iasl does not complain.
Marcin Juszkiewicz (2):
SbsaQemu: do not set Timer interrupts
SbsaQemu: remove some methods from DSDT
Platform/Qemu/SbsaQemu/SbsaQemu.dsc | 10 ----------
Silicon/Qemu/SbsaQemu/AcpiTables/Dsdt.asl | 23 ++++++++---------------
2 files changed, 8 insertions(+), 25 deletions(-)
--
2.44.0
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#118205): https://edk2.groups.io/g/devel/message/118205
Mute This Topic: https://groups.io/mt/105707991/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 4+ messages in thread
* [edk2-devel] [PATCH edk2-platforms v2 1/2] SbsaQemu: do not set Timer interrupts
2024-04-24 11:32 [edk2-devel] [PATCH edk2-platforms v2 0/2] SbsaQemu: some cleanups Marcin Juszkiewicz
@ 2024-04-24 11:32 ` Marcin Juszkiewicz
2024-04-24 11:32 ` [edk2-devel] [PATCH edk2-platforms v2 2/2] SbsaQemu: remove some methods from DSDT Marcin Juszkiewicz
2024-04-24 11:47 ` [edk2-devel] [PATCH edk2-platforms v2 0/2] SbsaQemu: some cleanups Leif Lindholm
2 siblings, 0 replies; 4+ messages in thread
From: Marcin Juszkiewicz @ 2024-04-24 11:32 UTC (permalink / raw)
To: devel; +Cc: Leif Lindholm, Ard Biesheuvel, Graeme Gregory, Marcin Juszkiewicz
Timer interrupts are set by ArmPkg.dec to recommended values.
We do not need to repeat it (and we missed HypVirtIntrNum one).
Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
---
Platform/Qemu/SbsaQemu/SbsaQemu.dsc | 10 ----------
1 file changed, 10 deletions(-)
diff --git a/Platform/Qemu/SbsaQemu/SbsaQemu.dsc b/Platform/Qemu/SbsaQemu/SbsaQemu.dsc
index fefb7a7ae92d..e246db8b0a23 100644
--- a/Platform/Qemu/SbsaQemu/SbsaQemu.dsc
+++ b/Platform/Qemu/SbsaQemu/SbsaQemu.dsc
@@ -437,16 +437,6 @@ [PcdsFixedAtBuild.common]
# PL011 - Serial Terminal
gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0x60000000
- # Timer IRQs
- # PPI #13
- gArmTokenSpaceGuid.PcdArmArchTimerSecIntrNum|29
- # PPI #14
- gArmTokenSpaceGuid.PcdArmArchTimerIntrNum|30
- # PPI #11
- gArmTokenSpaceGuid.PcdArmArchTimerVirtIntrNum|27
- # PPI #10
- gArmTokenSpaceGuid.PcdArmArchTimerHypIntrNum|26
-
## PL031 RealTimeClock
gArmPlatformTokenSpaceGuid.PcdPL031RtcBase|0x60010000
--
2.44.0
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#118206): https://edk2.groups.io/g/devel/message/118206
Mute This Topic: https://groups.io/mt/105707992/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [edk2-devel] [PATCH edk2-platforms v2 2/2] SbsaQemu: remove some methods from DSDT
2024-04-24 11:32 [edk2-devel] [PATCH edk2-platforms v2 0/2] SbsaQemu: some cleanups Marcin Juszkiewicz
2024-04-24 11:32 ` [edk2-devel] [PATCH edk2-platforms v2 1/2] SbsaQemu: do not set Timer interrupts Marcin Juszkiewicz
@ 2024-04-24 11:32 ` Marcin Juszkiewicz
2024-04-24 11:47 ` [edk2-devel] [PATCH edk2-platforms v2 0/2] SbsaQemu: some cleanups Leif Lindholm
2 siblings, 0 replies; 4+ messages in thread
From: Marcin Juszkiewicz @ 2024-04-24 11:32 UTC (permalink / raw)
To: devel; +Cc: Leif Lindholm, Ard Biesheuvel, Graeme Gregory, Marcin Juszkiewicz
IASL complained that DSDT is not optimal:
Dsdt.iiii
83: Name (RBUF, ResourceTemplate() {
Remark 2173 - Creation of named objects within a method is highly
inefficient, use globals or method local variables instead ^
(\_SB.USB0._CRS)
Dsdt.iiii
377: Name (RBUF, ResourceTemplate () {
Remark 2173 - Creation of named objects within a method is highly
inefficient, use globals or method local variables instead ^
(\_SB.PCI0._CRS)
Simplified some _CRS nodes.
Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
---
Silicon/Qemu/SbsaQemu/AcpiTables/Dsdt.asl | 23 ++++++++---------------
1 file changed, 8 insertions(+), 15 deletions(-)
diff --git a/Silicon/Qemu/SbsaQemu/AcpiTables/Dsdt.asl b/Silicon/Qemu/SbsaQemu/AcpiTables/Dsdt.asl
index b55ad6c5cc07..c134fb66e860 100644
--- a/Silicon/Qemu/SbsaQemu/AcpiTables/Dsdt.asl
+++ b/Silicon/Qemu/SbsaQemu/AcpiTables/Dsdt.asl
@@ -77,15 +77,12 @@ DefinitionBlock ("DsdtTable.aml", "DSDT",
Method (_STA) {
Return (XHCI)
}
- Method (_CRS, 0x0, Serialized) {
- Name (RBUF, ResourceTemplate() {
- Memory32Fixed (ReadWrite,
- FixedPcdGet32 (PcdPlatformXhciBase),
- FixedPcdGet32 (PcdPlatformXhciSize))
- Interrupt (ResourceConsumer, Level, ActiveHigh, Exclusive) { 43 }
- })
- Return (RBUF)
- }
+ Name (_CRS, ResourceTemplate() {
+ Memory32Fixed (ReadWrite,
+ FixedPcdGet32 (PcdPlatformXhciBase),
+ FixedPcdGet32 (PcdPlatformXhciSize))
+ Interrupt (ResourceConsumer, Level, ActiveHigh, Exclusive) { 43 }
+ })
// Root Hub
Device (RHUB) {
@@ -371,8 +368,7 @@ DefinitionBlock ("DsdtTable.aml", "DSDT",
})
// Root complex resources
- Method (_CRS, 0, Serialized) {
- Name (RBUF, ResourceTemplate () {
+ Name (_CRS, ResourceTemplate () {
WordBusNumber ( // Bus numbers assigned to this root
ResourceProducer,
MinFixed, MaxFixed, PosDecode,
@@ -418,10 +414,7 @@ DefinitionBlock ("DsdtTable.aml", "DSDT",
FixedPcdGet32 (PcdPciIoSize), // Length
,,,TypeTranslation
)
- }) // Name(RBUF)
-
- Return (RBUF)
- } // Method(_CRS)
+ }) // Name(_CRS)
Device (RES0)
{
--
2.44.0
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#118207): https://edk2.groups.io/g/devel/message/118207
Mute This Topic: https://groups.io/mt/105707993/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [edk2-devel] [PATCH edk2-platforms v2 0/2] SbsaQemu: some cleanups
2024-04-24 11:32 [edk2-devel] [PATCH edk2-platforms v2 0/2] SbsaQemu: some cleanups Marcin Juszkiewicz
2024-04-24 11:32 ` [edk2-devel] [PATCH edk2-platforms v2 1/2] SbsaQemu: do not set Timer interrupts Marcin Juszkiewicz
2024-04-24 11:32 ` [edk2-devel] [PATCH edk2-platforms v2 2/2] SbsaQemu: remove some methods from DSDT Marcin Juszkiewicz
@ 2024-04-24 11:47 ` Leif Lindholm
2 siblings, 0 replies; 4+ messages in thread
From: Leif Lindholm @ 2024-04-24 11:47 UTC (permalink / raw)
To: devel, marcin.juszkiewicz; +Cc: Ard Biesheuvel, Graeme Gregory
On Wed, Apr 24, 2024 at 13:32:33 +0200, Marcin Juszkiewicz wrote:
> I am working on some changes to SbsaQemu and got some cleanups in
> meantime.
>
> First patch gets rid of setting Pcds for Timer interrupts. ArmPkg does
> it for us so we do not have to.
>
> Second changes DSDT nodes so iasl does not complain.
>
> Marcin Juszkiewicz (2):
> SbsaQemu: do not set Timer interrupts
> SbsaQemu: remove some methods from DSDT
For series:
Reviewed-by: Leif Lindholm <quic_llindhol@quicinc.com>
Thanks!
/
Leif
> Platform/Qemu/SbsaQemu/SbsaQemu.dsc | 10 ----------
> Silicon/Qemu/SbsaQemu/AcpiTables/Dsdt.asl | 23 ++++++++---------------
> 2 files changed, 8 insertions(+), 25 deletions(-)
>
> --
> 2.44.0
>
>
>
>
>
>
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#118210): https://edk2.groups.io/g/devel/message/118210
Mute This Topic: https://groups.io/mt/105707991/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-04-24 11:47 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-24 11:32 [edk2-devel] [PATCH edk2-platforms v2 0/2] SbsaQemu: some cleanups Marcin Juszkiewicz
2024-04-24 11:32 ` [edk2-devel] [PATCH edk2-platforms v2 1/2] SbsaQemu: do not set Timer interrupts Marcin Juszkiewicz
2024-04-24 11:32 ` [edk2-devel] [PATCH edk2-platforms v2 2/2] SbsaQemu: remove some methods from DSDT Marcin Juszkiewicz
2024-04-24 11:47 ` [edk2-devel] [PATCH edk2-platforms v2 0/2] SbsaQemu: some cleanups Leif Lindholm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox