Hi Jeshua, On Tue, Jan 09, 2024 at 06:37:43PM +0000, Jeshua Smith wrote: > > From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Sunil V L > > via groups.io > > Sent: Tuesday, January 9, 2024 9:29 AM > > DynamicTablesPkg can be used by RISC-V platforms to generate ACPI tables > > from FDT passed from previous stage FW. However, DynamicTablesPkg > > currently is ARM specific even though several parsers and ACPI generators > > can > > be used across architectures. For ex: SSDT (PCIe), SSDT (CPU), MCFG, SPCR, > > DBG2, FADT, SRAT, Raw (DSDT) are mostly common across architectures. Only > > MADT, IORT and GTDT are ARM specific. > > > > This series tries to refactor the DynamicTablesPkg so that RISC-V support > > can > > be added fairly easily later. > > It looks like instead of moving the common code to EObjNameSpaceStandard > namespace or a new (Arch? Common?) namespace, you're renaming the entire > EObjNameSpaceArm namespace to EObjNameSpaceArch. It seems to me that if ARM > code vs. common code is being separated out, then the EObjNameSpaceArm > namespace should continue to be used for the ARM-specific code and a common > namespace should be used for the common code.
I agree. I started with separating common things into new common space and create one for risc-v. However, I dropped that approach for two reasons. 1) The commit "b2bbe3df5470 DynamicTablesPkg: Remove PPTT ID structure from ACPI 6.4 generator" when removed one of the enums from ArmObjectID, didn't change the other values for other enums but reserved the removed one. So, I thought there may be some assumptions which will break if the enum value changes. 2) DynamicPlatformRepositoryInfo structure has ArmCmObjList and ArmCmObjArray. With separate spaces for Arm, RiscV and Common, list management needs some redesign and I was not sure it is worth it. Hence, I thought a single list of all possible Obj Ids for all architectures and common things would be a good trade off. But I can go back to that approach in v2 if above issues are fine. Thanks! Sunil -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#113511): https://edk2.groups.io/g/devel/message/113511 Mute This Topic: https://groups.io/mt/103622702/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-