[edk2-devel] [edk2-platforms: PATCH 0/9] Marvell Octeon CN913X SoC family support

Marcin Wojtas posted 9 patches 4 years, 8 months ago
Failed in applying to current master (apply log)
There is a newer version of this series
Platform/Marvell/Cn913xDb/Cn9130DbA.dsc.inc                                    | 107 ++++
Platform/Marvell/Cn913xDb/Cn9131DbA.dsc.inc                                    |  72 +++
Platform/Marvell/Cn913xDb/Cn9132DbA.dsc.inc                                    |  72 +++
Platform/Marvell/Cn913xDb/Cn9130DbA.dsc                                        |  46 ++
Platform/Marvell/Cn913xDb/Cn9131DbA.dsc                                        |  47 ++
Platform/Marvell/Cn913xDb/Cn9132DbA.dsc                                        |  45 ++
Platform/Marvell/Cn913xDb/BoardDescriptionLib/Cn9130DbABoardDescLib.inf        |  29 +
Platform/Marvell/Cn913xDb/BoardDescriptionLib/Cn9132DbABoardDescLib.inf        |  29 +
Platform/Marvell/Cn913xDb/NonDiscoverableInitLib/NonDiscoverableInitLib.inf    |  37 ++
Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn9130DbA.inf                          |  56 ++
Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn9131DbA.inf                          |  57 ++
Silicon/Marvell/OcteonTx/DeviceTree/T91/Cn9130DbA.inf                          |  22 +
Silicon/Marvell/OcteonTx/DeviceTree/T91/Cn9131DbA.inf                          |  22 +
Silicon/Marvell/OcteonTx/DeviceTree/T91/Cn9132DbA.inf                          |  22 +
Platform/Marvell/Cn913xDb/NonDiscoverableInitLib/NonDiscoverableInitLib.h      |  25 +
Silicon/Marvell/Armada7k8k/Library/Armada7k8kSoCDescLib/Armada7k8kSoCDescLib.h |   5 +-
Silicon/Marvell/OcteonTx/AcpiTables/T91/AcpiHeader.h                           |  39 ++
Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn913xDbA/Pcie.h                       |  20 +
Silicon/Marvell/OcteonTx/AcpiTables/T91/IcuInterrupts.h                        |  36 ++
Platform/Marvell/Cn913xDb/BoardDescriptionLib/Cn9130DbABoardDescLib.c          | 126 +++++
Platform/Marvell/Cn913xDb/BoardDescriptionLib/Cn9132DbABoardDescLib.c          | 135 +++++
Platform/Marvell/Cn913xDb/NonDiscoverableInitLib/NonDiscoverableInitLib.c      | 215 ++++++++
Silicon/Marvell/Armada7k8k/Library/Armada7k8kSoCDescLib/Armada7k8kSoCDescLib.c |  34 +-
Silicon/Marvell/Drivers/SmbiosPlatformDxe/SmbiosPlatformDxe.c                  |   4 +-
Silicon/Marvell/Library/IcuLib/IcuLib.c                                        |   4 +-
Silicon/Marvell/Library/MppLib/MppLib.c                                        |   4 +-
Platform/Marvell/Cn913xDb/Cn9130DbA.fdf.inc                                    |  17 +
Platform/Marvell/Cn913xDb/Cn9131DbA.fdf.inc                                    |  18 +
Platform/Marvell/Cn913xDb/Cn9132DbA.fdf.inc                                    |  13 +
Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn9131DbA/Ssdt.asl                     |  98 ++++
Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn913xDbA/Dsdt.asl                     | 324 ++++++++++++
Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn913xDbA/Mcfg.aslc                    |  41 ++
Silicon/Marvell/OcteonTx/AcpiTables/T91/Fadt.aslc                              |  80 +++
Silicon/Marvell/OcteonTx/AcpiTables/T91/Gtdt.aslc                              |  58 ++
Silicon/Marvell/OcteonTx/AcpiTables/T91/Madt.aslc                              | 135 +++++
Silicon/Marvell/OcteonTx/AcpiTables/T91/Pptt.aslc                              | 210 ++++++++
Silicon/Marvell/OcteonTx/AcpiTables/T91/Spcr.aslc                              |  49 ++
Silicon/Marvell/OcteonTx/DeviceTree/T91/armada-ap806-quad.dtsi                 |  43 ++
Silicon/Marvell/OcteonTx/DeviceTree/T91/armada-ap806.dtsi                      | 264 ++++++++++
Silicon/Marvell/OcteonTx/DeviceTree/T91/armada-common.dtsi                     |  10 +
Silicon/Marvell/OcteonTx/DeviceTree/T91/armada-cp110.dtsi                      | 552 ++++++++++++++++++++
Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9130-db-A.dts                        | 185 +++++++
Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9130-db.dtsi                         | 168 ++++++
Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9130.dtsi                            | 126 +++++
Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9131-db-A.dts                        |  29 +
Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9131-db.dtsi                         | 175 +++++++
Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9132-db-A.dts                        |  70 +++
Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9132-db.dtsi                         | 159 ++++++
48 files changed, 4113 insertions(+), 21 deletions(-)
create mode 100644 Platform/Marvell/Cn913xDb/Cn9130DbA.dsc.inc
create mode 100644 Platform/Marvell/Cn913xDb/Cn9131DbA.dsc.inc
create mode 100644 Platform/Marvell/Cn913xDb/Cn9132DbA.dsc.inc
create mode 100644 Platform/Marvell/Cn913xDb/Cn9130DbA.dsc
create mode 100644 Platform/Marvell/Cn913xDb/Cn9131DbA.dsc
create mode 100644 Platform/Marvell/Cn913xDb/Cn9132DbA.dsc
create mode 100644 Platform/Marvell/Cn913xDb/BoardDescriptionLib/Cn9130DbABoardDescLib.inf
create mode 100644 Platform/Marvell/Cn913xDb/BoardDescriptionLib/Cn9132DbABoardDescLib.inf
create mode 100644 Platform/Marvell/Cn913xDb/NonDiscoverableInitLib/NonDiscoverableInitLib.inf
create mode 100644 Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn9130DbA.inf
create mode 100644 Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn9131DbA.inf
create mode 100644 Silicon/Marvell/OcteonTx/DeviceTree/T91/Cn9130DbA.inf
create mode 100644 Silicon/Marvell/OcteonTx/DeviceTree/T91/Cn9131DbA.inf
create mode 100644 Silicon/Marvell/OcteonTx/DeviceTree/T91/Cn9132DbA.inf
create mode 100644 Platform/Marvell/Cn913xDb/NonDiscoverableInitLib/NonDiscoverableInitLib.h
create mode 100644 Silicon/Marvell/OcteonTx/AcpiTables/T91/AcpiHeader.h
create mode 100644 Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn913xDbA/Pcie.h
create mode 100644 Silicon/Marvell/OcteonTx/AcpiTables/T91/IcuInterrupts.h
create mode 100644 Platform/Marvell/Cn913xDb/BoardDescriptionLib/Cn9130DbABoardDescLib.c
create mode 100644 Platform/Marvell/Cn913xDb/BoardDescriptionLib/Cn9132DbABoardDescLib.c
create mode 100644 Platform/Marvell/Cn913xDb/NonDiscoverableInitLib/NonDiscoverableInitLib.c
create mode 100644 Platform/Marvell/Cn913xDb/Cn9130DbA.fdf.inc
create mode 100644 Platform/Marvell/Cn913xDb/Cn9131DbA.fdf.inc
create mode 100644 Platform/Marvell/Cn913xDb/Cn9132DbA.fdf.inc
create mode 100644 Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn9131DbA/Ssdt.asl
create mode 100644 Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn913xDbA/Dsdt.asl
create mode 100644 Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn913xDbA/Mcfg.aslc
create mode 100644 Silicon/Marvell/OcteonTx/AcpiTables/T91/Fadt.aslc
create mode 100644 Silicon/Marvell/OcteonTx/AcpiTables/T91/Gtdt.aslc
create mode 100644 Silicon/Marvell/OcteonTx/AcpiTables/T91/Madt.aslc
create mode 100644 Silicon/Marvell/OcteonTx/AcpiTables/T91/Pptt.aslc
create mode 100644 Silicon/Marvell/OcteonTx/AcpiTables/T91/Spcr.aslc
create mode 100644 Silicon/Marvell/OcteonTx/DeviceTree/T91/armada-ap806-quad.dtsi
create mode 100644 Silicon/Marvell/OcteonTx/DeviceTree/T91/armada-ap806.dtsi
create mode 100644 Silicon/Marvell/OcteonTx/DeviceTree/T91/armada-common.dtsi
create mode 100644 Silicon/Marvell/OcteonTx/DeviceTree/T91/armada-cp110.dtsi
create mode 100644 Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9130-db-A.dts
create mode 100644 Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9130-db.dtsi
create mode 100644 Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9130.dtsi
create mode 100644 Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9131-db-A.dts
create mode 100644 Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9131-db.dtsi
create mode 100644 Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9132-db-A.dts
create mode 100644 Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9132-db.dtsi
[edk2-devel] [edk2-platforms: PATCH 0/9] Marvell Octeon CN913X SoC family support
Posted by Marcin Wojtas 4 years, 8 months ago
Hi,

Marvell Octeon CN913X SoC is a new device, which is built of
upgraded hardware blocks known from previously supported line
of SoCs. It is avaialble in 3 variants - CN9130/CN9131/CN9132.

CN9130 is made of a single Application Processor unit
(AP807) and one internal south bridge (CP115). It can
be extended to CN9131 (internal + external south bridges).
The CN9132 has 3 south bridge units.

This patchset adds all necessary components (.dsc/.fdf,
libraries, ACPI, DT) to support all 3 variants, which
are available on a modular CN913x Development Board.

The patches are available in the github:
https://github.com/MarvellEmbeddedProcessors/edk2-open-platform/commits/cn913x-upstream-r20190808

I'm looking forward to your comments or remarks.

Best regards,
Marcin


Marcin Wojtas (9):
  Marvell/Cn9130Db: Add ACPI tables
  Marvell/Cn9130Db: Add DeviceTree
  Marvell/Cn9130Db: Introduce board support
  Marvell/Library: ArmadaSoCDescLib: Extend Xenon information
  Marvell/Library: MppLib: Allow to configure more Xenon PHYs
  Marvell/Library: IcuLib: Fix debug information
  Marvell/Cn9131Db: Introduce board support
  Marvell/Cn9132Db: Introduce board support
  Marvell/Drivers: SmbiosPlatformDxe: Use more generic board name

 Platform/Marvell/Cn913xDb/Cn9130DbA.dsc.inc                                    | 107 ++++
 Platform/Marvell/Cn913xDb/Cn9131DbA.dsc.inc                                    |  72 +++
 Platform/Marvell/Cn913xDb/Cn9132DbA.dsc.inc                                    |  72 +++
 Platform/Marvell/Cn913xDb/Cn9130DbA.dsc                                        |  46 ++
 Platform/Marvell/Cn913xDb/Cn9131DbA.dsc                                        |  47 ++
 Platform/Marvell/Cn913xDb/Cn9132DbA.dsc                                        |  45 ++
 Platform/Marvell/Cn913xDb/BoardDescriptionLib/Cn9130DbABoardDescLib.inf        |  29 +
 Platform/Marvell/Cn913xDb/BoardDescriptionLib/Cn9132DbABoardDescLib.inf        |  29 +
 Platform/Marvell/Cn913xDb/NonDiscoverableInitLib/NonDiscoverableInitLib.inf    |  37 ++
 Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn9130DbA.inf                          |  56 ++
 Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn9131DbA.inf                          |  57 ++
 Silicon/Marvell/OcteonTx/DeviceTree/T91/Cn9130DbA.inf                          |  22 +
 Silicon/Marvell/OcteonTx/DeviceTree/T91/Cn9131DbA.inf                          |  22 +
 Silicon/Marvell/OcteonTx/DeviceTree/T91/Cn9132DbA.inf                          |  22 +
 Platform/Marvell/Cn913xDb/NonDiscoverableInitLib/NonDiscoverableInitLib.h      |  25 +
 Silicon/Marvell/Armada7k8k/Library/Armada7k8kSoCDescLib/Armada7k8kSoCDescLib.h |   5 +-
 Silicon/Marvell/OcteonTx/AcpiTables/T91/AcpiHeader.h                           |  39 ++
 Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn913xDbA/Pcie.h                       |  20 +
 Silicon/Marvell/OcteonTx/AcpiTables/T91/IcuInterrupts.h                        |  36 ++
 Platform/Marvell/Cn913xDb/BoardDescriptionLib/Cn9130DbABoardDescLib.c          | 126 +++++
 Platform/Marvell/Cn913xDb/BoardDescriptionLib/Cn9132DbABoardDescLib.c          | 135 +++++
 Platform/Marvell/Cn913xDb/NonDiscoverableInitLib/NonDiscoverableInitLib.c      | 215 ++++++++
 Silicon/Marvell/Armada7k8k/Library/Armada7k8kSoCDescLib/Armada7k8kSoCDescLib.c |  34 +-
 Silicon/Marvell/Drivers/SmbiosPlatformDxe/SmbiosPlatformDxe.c                  |   4 +-
 Silicon/Marvell/Library/IcuLib/IcuLib.c                                        |   4 +-
 Silicon/Marvell/Library/MppLib/MppLib.c                                        |   4 +-
 Platform/Marvell/Cn913xDb/Cn9130DbA.fdf.inc                                    |  17 +
 Platform/Marvell/Cn913xDb/Cn9131DbA.fdf.inc                                    |  18 +
 Platform/Marvell/Cn913xDb/Cn9132DbA.fdf.inc                                    |  13 +
 Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn9131DbA/Ssdt.asl                     |  98 ++++
 Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn913xDbA/Dsdt.asl                     | 324 ++++++++++++
 Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn913xDbA/Mcfg.aslc                    |  41 ++
 Silicon/Marvell/OcteonTx/AcpiTables/T91/Fadt.aslc                              |  80 +++
 Silicon/Marvell/OcteonTx/AcpiTables/T91/Gtdt.aslc                              |  58 ++
 Silicon/Marvell/OcteonTx/AcpiTables/T91/Madt.aslc                              | 135 +++++
 Silicon/Marvell/OcteonTx/AcpiTables/T91/Pptt.aslc                              | 210 ++++++++
 Silicon/Marvell/OcteonTx/AcpiTables/T91/Spcr.aslc                              |  49 ++
 Silicon/Marvell/OcteonTx/DeviceTree/T91/armada-ap806-quad.dtsi                 |  43 ++
 Silicon/Marvell/OcteonTx/DeviceTree/T91/armada-ap806.dtsi                      | 264 ++++++++++
 Silicon/Marvell/OcteonTx/DeviceTree/T91/armada-common.dtsi                     |  10 +
 Silicon/Marvell/OcteonTx/DeviceTree/T91/armada-cp110.dtsi                      | 552 ++++++++++++++++++++
 Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9130-db-A.dts                        | 185 +++++++
 Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9130-db.dtsi                         | 168 ++++++
 Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9130.dtsi                            | 126 +++++
 Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9131-db-A.dts                        |  29 +
 Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9131-db.dtsi                         | 175 +++++++
 Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9132-db-A.dts                        |  70 +++
 Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9132-db.dtsi                         | 159 ++++++
 48 files changed, 4113 insertions(+), 21 deletions(-)
 create mode 100644 Platform/Marvell/Cn913xDb/Cn9130DbA.dsc.inc
 create mode 100644 Platform/Marvell/Cn913xDb/Cn9131DbA.dsc.inc
 create mode 100644 Platform/Marvell/Cn913xDb/Cn9132DbA.dsc.inc
 create mode 100644 Platform/Marvell/Cn913xDb/Cn9130DbA.dsc
 create mode 100644 Platform/Marvell/Cn913xDb/Cn9131DbA.dsc
 create mode 100644 Platform/Marvell/Cn913xDb/Cn9132DbA.dsc
 create mode 100644 Platform/Marvell/Cn913xDb/BoardDescriptionLib/Cn9130DbABoardDescLib.inf
 create mode 100644 Platform/Marvell/Cn913xDb/BoardDescriptionLib/Cn9132DbABoardDescLib.inf
 create mode 100644 Platform/Marvell/Cn913xDb/NonDiscoverableInitLib/NonDiscoverableInitLib.inf
 create mode 100644 Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn9130DbA.inf
 create mode 100644 Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn9131DbA.inf
 create mode 100644 Silicon/Marvell/OcteonTx/DeviceTree/T91/Cn9130DbA.inf
 create mode 100644 Silicon/Marvell/OcteonTx/DeviceTree/T91/Cn9131DbA.inf
 create mode 100644 Silicon/Marvell/OcteonTx/DeviceTree/T91/Cn9132DbA.inf
 create mode 100644 Platform/Marvell/Cn913xDb/NonDiscoverableInitLib/NonDiscoverableInitLib.h
 create mode 100644 Silicon/Marvell/OcteonTx/AcpiTables/T91/AcpiHeader.h
 create mode 100644 Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn913xDbA/Pcie.h
 create mode 100644 Silicon/Marvell/OcteonTx/AcpiTables/T91/IcuInterrupts.h
 create mode 100644 Platform/Marvell/Cn913xDb/BoardDescriptionLib/Cn9130DbABoardDescLib.c
 create mode 100644 Platform/Marvell/Cn913xDb/BoardDescriptionLib/Cn9132DbABoardDescLib.c
 create mode 100644 Platform/Marvell/Cn913xDb/NonDiscoverableInitLib/NonDiscoverableInitLib.c
 create mode 100644 Platform/Marvell/Cn913xDb/Cn9130DbA.fdf.inc
 create mode 100644 Platform/Marvell/Cn913xDb/Cn9131DbA.fdf.inc
 create mode 100644 Platform/Marvell/Cn913xDb/Cn9132DbA.fdf.inc
 create mode 100644 Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn9131DbA/Ssdt.asl
 create mode 100644 Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn913xDbA/Dsdt.asl
 create mode 100644 Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn913xDbA/Mcfg.aslc
 create mode 100644 Silicon/Marvell/OcteonTx/AcpiTables/T91/Fadt.aslc
 create mode 100644 Silicon/Marvell/OcteonTx/AcpiTables/T91/Gtdt.aslc
 create mode 100644 Silicon/Marvell/OcteonTx/AcpiTables/T91/Madt.aslc
 create mode 100644 Silicon/Marvell/OcteonTx/AcpiTables/T91/Pptt.aslc
 create mode 100644 Silicon/Marvell/OcteonTx/AcpiTables/T91/Spcr.aslc
 create mode 100644 Silicon/Marvell/OcteonTx/DeviceTree/T91/armada-ap806-quad.dtsi
 create mode 100644 Silicon/Marvell/OcteonTx/DeviceTree/T91/armada-ap806.dtsi
 create mode 100644 Silicon/Marvell/OcteonTx/DeviceTree/T91/armada-common.dtsi
 create mode 100644 Silicon/Marvell/OcteonTx/DeviceTree/T91/armada-cp110.dtsi
 create mode 100644 Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9130-db-A.dts
 create mode 100644 Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9130-db.dtsi
 create mode 100644 Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9130.dtsi
 create mode 100644 Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9131-db-A.dts
 create mode 100644 Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9131-db.dtsi
 create mode 100644 Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9132-db-A.dts
 create mode 100644 Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9132-db.dtsi

-- 
2.7.4


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#45041): https://edk2.groups.io/g/devel/message/45041
Mute This Topic: https://groups.io/mt/32793666/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-

Re: [edk2-devel] [edk2-platforms: PATCH 0/9] Marvell Octeon CN913X SoC family support
Posted by Leif Lindholm 4 years, 8 months ago
Hi Marcin,

On Thu, Aug 08, 2019 at 01:30:21AM +0200, Marcin Wojtas wrote:
> Hi,
> 
> Marvell Octeon CN913X SoC is a new device, which is built of
> upgraded hardware blocks known from previously supported line
> of SoCs. It is avaialble in 3 variants - CN9130/CN9131/CN9132.
> 
> CN9130 is made of a single Application Processor unit
> (AP807) and one internal south bridge (CP115). It can
> be extended to CN9131 (internal + external south bridges).
> The CN9132 has 3 south bridge units.
> 
> This patchset adds all necessary components (.dsc/.fdf,
> libraries, ACPI, DT) to support all 3 variants, which
> are available on a modular CN913x Development Board.

Thanks for this contribution.
Do you have any further information on this SoC/Devboard?
Searching only gets me the CN8xxx SoCs.

> The patches are available in the github:
> https://github.com/MarvellEmbeddedProcessors/edk2-open-platform/commits/cn913x-upstream-r20190808
> 
> I'm looking forward to your comments or remarks.

First issue I run into is that 9130/9131 bail out on DSDT.aml:
"iasl"
-p/work/git/tianocore/Build/Cn9130DbA-AARCH64/DEBUG_GCC5/AARCH64/Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn9130DbA/OUTPUT/Cn913xDbA/Dsdt.aml
/work/git/tianocore/Build/Cn9130DbA-AARCH64/DEBUG_GCC5/AARCH64/Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn9130DbA/OUTPUT/Cn913xDbA/Dsdt.iiii
/work/git/tianocore/Build/Cn9130DbA-AARCH64/DEBUG_GCC5/AARCH64/Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn9130DbA/OUTPUT/Cn913xDbA/Dsdt.iiii
17: DefinitionBlock ("DSDT.aml", "DSDT", 2, "MVEBU ", "CN9130DBA", 3)

Intel ACPI Component Architecture
ASL+ Optimizing Compiler/Disassembler version 20181213
Copyright (c) 2000 - 2018 Intel Corporation

ASL Input:
/work/git/tianocore/Build/Cn9130DbA-AARCH64/DEBUG_GCC5/AARCH64/Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn9130DbA/OUTPUT/Cn913xDbA/Dsdt.iiii
- 328 lines, 9303 bytes, 97 keywords

Compilation complete. 1 Errors, 0 Warnings, 0 Remarks, 34
Optimizations
Error    6155 -
Invalid OEM Table ID ^  (Length cannot exceed 8 characters)

This does not affect Cn9132DbA, since that one does not include the
ACPI module. Is this intenional?

Which version of iasl has this been tested with?

(Plese don't respin a v2, I will go through things a bit more and
provide feedback.)

Best Regards,

Leif

> Best regards,
> Marcin
> 
> 
> Marcin Wojtas (9):
>   Marvell/Cn9130Db: Add ACPI tables
>   Marvell/Cn9130Db: Add DeviceTree
>   Marvell/Cn9130Db: Introduce board support
>   Marvell/Library: ArmadaSoCDescLib: Extend Xenon information
>   Marvell/Library: MppLib: Allow to configure more Xenon PHYs
>   Marvell/Library: IcuLib: Fix debug information
>   Marvell/Cn9131Db: Introduce board support
>   Marvell/Cn9132Db: Introduce board support
>   Marvell/Drivers: SmbiosPlatformDxe: Use more generic board name
> 
>  Platform/Marvell/Cn913xDb/Cn9130DbA.dsc.inc                                    | 107 ++++
>  Platform/Marvell/Cn913xDb/Cn9131DbA.dsc.inc                                    |  72 +++
>  Platform/Marvell/Cn913xDb/Cn9132DbA.dsc.inc                                    |  72 +++
>  Platform/Marvell/Cn913xDb/Cn9130DbA.dsc                                        |  46 ++
>  Platform/Marvell/Cn913xDb/Cn9131DbA.dsc                                        |  47 ++
>  Platform/Marvell/Cn913xDb/Cn9132DbA.dsc                                        |  45 ++
>  Platform/Marvell/Cn913xDb/BoardDescriptionLib/Cn9130DbABoardDescLib.inf        |  29 +
>  Platform/Marvell/Cn913xDb/BoardDescriptionLib/Cn9132DbABoardDescLib.inf        |  29 +
>  Platform/Marvell/Cn913xDb/NonDiscoverableInitLib/NonDiscoverableInitLib.inf    |  37 ++
>  Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn9130DbA.inf                          |  56 ++
>  Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn9131DbA.inf                          |  57 ++
>  Silicon/Marvell/OcteonTx/DeviceTree/T91/Cn9130DbA.inf                          |  22 +
>  Silicon/Marvell/OcteonTx/DeviceTree/T91/Cn9131DbA.inf                          |  22 +
>  Silicon/Marvell/OcteonTx/DeviceTree/T91/Cn9132DbA.inf                          |  22 +
>  Platform/Marvell/Cn913xDb/NonDiscoverableInitLib/NonDiscoverableInitLib.h      |  25 +
>  Silicon/Marvell/Armada7k8k/Library/Armada7k8kSoCDescLib/Armada7k8kSoCDescLib.h |   5 +-
>  Silicon/Marvell/OcteonTx/AcpiTables/T91/AcpiHeader.h                           |  39 ++
>  Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn913xDbA/Pcie.h                       |  20 +
>  Silicon/Marvell/OcteonTx/AcpiTables/T91/IcuInterrupts.h                        |  36 ++
>  Platform/Marvell/Cn913xDb/BoardDescriptionLib/Cn9130DbABoardDescLib.c          | 126 +++++
>  Platform/Marvell/Cn913xDb/BoardDescriptionLib/Cn9132DbABoardDescLib.c          | 135 +++++
>  Platform/Marvell/Cn913xDb/NonDiscoverableInitLib/NonDiscoverableInitLib.c      | 215 ++++++++
>  Silicon/Marvell/Armada7k8k/Library/Armada7k8kSoCDescLib/Armada7k8kSoCDescLib.c |  34 +-
>  Silicon/Marvell/Drivers/SmbiosPlatformDxe/SmbiosPlatformDxe.c                  |   4 +-
>  Silicon/Marvell/Library/IcuLib/IcuLib.c                                        |   4 +-
>  Silicon/Marvell/Library/MppLib/MppLib.c                                        |   4 +-
>  Platform/Marvell/Cn913xDb/Cn9130DbA.fdf.inc                                    |  17 +
>  Platform/Marvell/Cn913xDb/Cn9131DbA.fdf.inc                                    |  18 +
>  Platform/Marvell/Cn913xDb/Cn9132DbA.fdf.inc                                    |  13 +
>  Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn9131DbA/Ssdt.asl                     |  98 ++++
>  Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn913xDbA/Dsdt.asl                     | 324 ++++++++++++
>  Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn913xDbA/Mcfg.aslc                    |  41 ++
>  Silicon/Marvell/OcteonTx/AcpiTables/T91/Fadt.aslc                              |  80 +++
>  Silicon/Marvell/OcteonTx/AcpiTables/T91/Gtdt.aslc                              |  58 ++
>  Silicon/Marvell/OcteonTx/AcpiTables/T91/Madt.aslc                              | 135 +++++
>  Silicon/Marvell/OcteonTx/AcpiTables/T91/Pptt.aslc                              | 210 ++++++++
>  Silicon/Marvell/OcteonTx/AcpiTables/T91/Spcr.aslc                              |  49 ++
>  Silicon/Marvell/OcteonTx/DeviceTree/T91/armada-ap806-quad.dtsi                 |  43 ++
>  Silicon/Marvell/OcteonTx/DeviceTree/T91/armada-ap806.dtsi                      | 264 ++++++++++
>  Silicon/Marvell/OcteonTx/DeviceTree/T91/armada-common.dtsi                     |  10 +
>  Silicon/Marvell/OcteonTx/DeviceTree/T91/armada-cp110.dtsi                      | 552 ++++++++++++++++++++
>  Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9130-db-A.dts                        | 185 +++++++
>  Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9130-db.dtsi                         | 168 ++++++
>  Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9130.dtsi                            | 126 +++++
>  Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9131-db-A.dts                        |  29 +
>  Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9131-db.dtsi                         | 175 +++++++
>  Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9132-db-A.dts                        |  70 +++
>  Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9132-db.dtsi                         | 159 ++++++
>  48 files changed, 4113 insertions(+), 21 deletions(-)
>  create mode 100644 Platform/Marvell/Cn913xDb/Cn9130DbA.dsc.inc
>  create mode 100644 Platform/Marvell/Cn913xDb/Cn9131DbA.dsc.inc
>  create mode 100644 Platform/Marvell/Cn913xDb/Cn9132DbA.dsc.inc
>  create mode 100644 Platform/Marvell/Cn913xDb/Cn9130DbA.dsc
>  create mode 100644 Platform/Marvell/Cn913xDb/Cn9131DbA.dsc
>  create mode 100644 Platform/Marvell/Cn913xDb/Cn9132DbA.dsc
>  create mode 100644 Platform/Marvell/Cn913xDb/BoardDescriptionLib/Cn9130DbABoardDescLib.inf
>  create mode 100644 Platform/Marvell/Cn913xDb/BoardDescriptionLib/Cn9132DbABoardDescLib.inf
>  create mode 100644 Platform/Marvell/Cn913xDb/NonDiscoverableInitLib/NonDiscoverableInitLib.inf
>  create mode 100644 Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn9130DbA.inf
>  create mode 100644 Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn9131DbA.inf
>  create mode 100644 Silicon/Marvell/OcteonTx/DeviceTree/T91/Cn9130DbA.inf
>  create mode 100644 Silicon/Marvell/OcteonTx/DeviceTree/T91/Cn9131DbA.inf
>  create mode 100644 Silicon/Marvell/OcteonTx/DeviceTree/T91/Cn9132DbA.inf
>  create mode 100644 Platform/Marvell/Cn913xDb/NonDiscoverableInitLib/NonDiscoverableInitLib.h
>  create mode 100644 Silicon/Marvell/OcteonTx/AcpiTables/T91/AcpiHeader.h
>  create mode 100644 Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn913xDbA/Pcie.h
>  create mode 100644 Silicon/Marvell/OcteonTx/AcpiTables/T91/IcuInterrupts.h
>  create mode 100644 Platform/Marvell/Cn913xDb/BoardDescriptionLib/Cn9130DbABoardDescLib.c
>  create mode 100644 Platform/Marvell/Cn913xDb/BoardDescriptionLib/Cn9132DbABoardDescLib.c
>  create mode 100644 Platform/Marvell/Cn913xDb/NonDiscoverableInitLib/NonDiscoverableInitLib.c
>  create mode 100644 Platform/Marvell/Cn913xDb/Cn9130DbA.fdf.inc
>  create mode 100644 Platform/Marvell/Cn913xDb/Cn9131DbA.fdf.inc
>  create mode 100644 Platform/Marvell/Cn913xDb/Cn9132DbA.fdf.inc
>  create mode 100644 Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn9131DbA/Ssdt.asl
>  create mode 100644 Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn913xDbA/Dsdt.asl
>  create mode 100644 Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn913xDbA/Mcfg.aslc
>  create mode 100644 Silicon/Marvell/OcteonTx/AcpiTables/T91/Fadt.aslc
>  create mode 100644 Silicon/Marvell/OcteonTx/AcpiTables/T91/Gtdt.aslc
>  create mode 100644 Silicon/Marvell/OcteonTx/AcpiTables/T91/Madt.aslc
>  create mode 100644 Silicon/Marvell/OcteonTx/AcpiTables/T91/Pptt.aslc
>  create mode 100644 Silicon/Marvell/OcteonTx/AcpiTables/T91/Spcr.aslc
>  create mode 100644 Silicon/Marvell/OcteonTx/DeviceTree/T91/armada-ap806-quad.dtsi
>  create mode 100644 Silicon/Marvell/OcteonTx/DeviceTree/T91/armada-ap806.dtsi
>  create mode 100644 Silicon/Marvell/OcteonTx/DeviceTree/T91/armada-common.dtsi
>  create mode 100644 Silicon/Marvell/OcteonTx/DeviceTree/T91/armada-cp110.dtsi
>  create mode 100644 Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9130-db-A.dts
>  create mode 100644 Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9130-db.dtsi
>  create mode 100644 Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9130.dtsi
>  create mode 100644 Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9131-db-A.dts
>  create mode 100644 Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9131-db.dtsi
>  create mode 100644 Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9132-db-A.dts
>  create mode 100644 Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9132-db.dtsi
> 
> -- 
> 2.7.4
> 

-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#45165): https://edk2.groups.io/g/devel/message/45165
Mute This Topic: https://groups.io/mt/32793666/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-

Re: [edk2-devel] [edk2-platforms: PATCH 0/9] Marvell Octeon CN913X SoC family support
Posted by Marcin Wojtas 4 years, 8 months ago
Hi Leif,

czw., 8 sie 2019 o 13:51 Leif Lindholm <leif.lindholm@linaro.org> napisał(a):
>
> Hi Marcin,
>
> On Thu, Aug 08, 2019 at 01:30:21AM +0200, Marcin Wojtas wrote:
> > Hi,
> >
> > Marvell Octeon CN913X SoC is a new device, which is built of
> > upgraded hardware blocks known from previously supported line
> > of SoCs. It is avaialble in 3 variants - CN9130/CN9131/CN9132.
> >
> > CN9130 is made of a single Application Processor unit
> > (AP807) and one internal south bridge (CP115). It can
> > be extended to CN9131 (internal + external south bridges).
> > The CN9132 has 3 south bridge units.
> >
> > This patchset adds all necessary components (.dsc/.fdf,
> > libraries, ACPI, DT) to support all 3 variants, which
> > are available on a modular CN913x Development Board.
>
> Thanks for this contribution.
> Do you have any further information on this SoC/Devboard?
> Searching only gets me the CN8xxx SoCs.
>

Indeed :/ I guess there should be some public information soon,
unfortunately I'm not in charge of it.

FYI, 2 days ago the support for it was submitted to the Linux lists:
https://www.spinics.net/lists/arm-kernel/msg746208.html

In high level this SoC is successor of Armada - enhanced modularity,
more interfaces, higher freq, new DDR controller and so on.

> > The patches are available in the github:
> > https://github.com/MarvellEmbeddedProcessors/edk2-open-platform/commits/cn913x-upstream-r20190808
> >
> > I'm looking forward to your comments or remarks.
>
> First issue I run into is that 9130/9131 bail out on DSDT.aml:
> "iasl"
> -p/work/git/tianocore/Build/Cn9130DbA-AARCH64/DEBUG_GCC5/AARCH64/Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn9130DbA/OUTPUT/Cn913xDbA/Dsdt.aml
> /work/git/tianocore/Build/Cn9130DbA-AARCH64/DEBUG_GCC5/AARCH64/Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn9130DbA/OUTPUT/Cn913xDbA/Dsdt.iiii
> /work/git/tianocore/Build/Cn9130DbA-AARCH64/DEBUG_GCC5/AARCH64/Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn9130DbA/OUTPUT/Cn913xDbA/Dsdt.iiii
> 17: DefinitionBlock ("DSDT.aml", "DSDT", 2, "MVEBU ", "CN9130DBA", 3)
>
> Intel ACPI Component Architecture
> ASL+ Optimizing Compiler/Disassembler version 20181213
> Copyright (c) 2000 - 2018 Intel Corporation
>
> ASL Input:
> /work/git/tianocore/Build/Cn9130DbA-AARCH64/DEBUG_GCC5/AARCH64/Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn9130DbA/OUTPUT/Cn913xDbA/Dsdt.iiii
> - 328 lines, 9303 bytes, 97 keywords
>
> Compilation complete. 1 Errors, 0 Warnings, 0 Remarks, 34
> Optimizations
> Error    6155 -
> Invalid OEM Table ID ^  (Length cannot exceed 8 characters)
>
> This does not affect Cn9132DbA, since that one does not include the
> ACPI module. Is this intenional?
>

Maybe I should've mention this explicitly - yes, as for now we do not
support ACPI on triple-CP115 variant. The reason is following -
currently we have a static configuration of the ICU (CP115 interrupt
controller) to GIC. Thanks to that, we can assign GIC interrupts in
static ACPI tables. Unfortunately dual CP115/CP110 setup uses all
available GIC IRQs for this. We need to create mapping only for the
used devices and pass it to the ACPI tables.

What is needed to fix it properly:
- create ICU-GIC dynamic mapping
- dynamically fill this information in DSDT/SSDT.

> Which version of iasl has this been tested with?
>

I built it successfully with iasl versions: 20180105 and 20160108-2.

Anyway, in v2 I'll shorten OEM table ID to 8 characters ( "CN9130DBA"
is 9 character).


> (Plese don't respin a v2, I will go through things a bit more and
> provide feedback.)
>

Thanks,
Marcin

> Best Regards,
>
> Leif
>
> > Best regards,
> > Marcin
> >
> >
> > Marcin Wojtas (9):
> >   Marvell/Cn9130Db: Add ACPI tables
> >   Marvell/Cn9130Db: Add DeviceTree
> >   Marvell/Cn9130Db: Introduce board support
> >   Marvell/Library: ArmadaSoCDescLib: Extend Xenon information
> >   Marvell/Library: MppLib: Allow to configure more Xenon PHYs
> >   Marvell/Library: IcuLib: Fix debug information
> >   Marvell/Cn9131Db: Introduce board support
> >   Marvell/Cn9132Db: Introduce board support
> >   Marvell/Drivers: SmbiosPlatformDxe: Use more generic board name
> >
> >  Platform/Marvell/Cn913xDb/Cn9130DbA.dsc.inc                                    | 107 ++++
> >  Platform/Marvell/Cn913xDb/Cn9131DbA.dsc.inc                                    |  72 +++
> >  Platform/Marvell/Cn913xDb/Cn9132DbA.dsc.inc                                    |  72 +++
> >  Platform/Marvell/Cn913xDb/Cn9130DbA.dsc                                        |  46 ++
> >  Platform/Marvell/Cn913xDb/Cn9131DbA.dsc                                        |  47 ++
> >  Platform/Marvell/Cn913xDb/Cn9132DbA.dsc                                        |  45 ++
> >  Platform/Marvell/Cn913xDb/BoardDescriptionLib/Cn9130DbABoardDescLib.inf        |  29 +
> >  Platform/Marvell/Cn913xDb/BoardDescriptionLib/Cn9132DbABoardDescLib.inf        |  29 +
> >  Platform/Marvell/Cn913xDb/NonDiscoverableInitLib/NonDiscoverableInitLib.inf    |  37 ++
> >  Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn9130DbA.inf                          |  56 ++
> >  Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn9131DbA.inf                          |  57 ++
> >  Silicon/Marvell/OcteonTx/DeviceTree/T91/Cn9130DbA.inf                          |  22 +
> >  Silicon/Marvell/OcteonTx/DeviceTree/T91/Cn9131DbA.inf                          |  22 +
> >  Silicon/Marvell/OcteonTx/DeviceTree/T91/Cn9132DbA.inf                          |  22 +
> >  Platform/Marvell/Cn913xDb/NonDiscoverableInitLib/NonDiscoverableInitLib.h      |  25 +
> >  Silicon/Marvell/Armada7k8k/Library/Armada7k8kSoCDescLib/Armada7k8kSoCDescLib.h |   5 +-
> >  Silicon/Marvell/OcteonTx/AcpiTables/T91/AcpiHeader.h                           |  39 ++
> >  Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn913xDbA/Pcie.h                       |  20 +
> >  Silicon/Marvell/OcteonTx/AcpiTables/T91/IcuInterrupts.h                        |  36 ++
> >  Platform/Marvell/Cn913xDb/BoardDescriptionLib/Cn9130DbABoardDescLib.c          | 126 +++++
> >  Platform/Marvell/Cn913xDb/BoardDescriptionLib/Cn9132DbABoardDescLib.c          | 135 +++++
> >  Platform/Marvell/Cn913xDb/NonDiscoverableInitLib/NonDiscoverableInitLib.c      | 215 ++++++++
> >  Silicon/Marvell/Armada7k8k/Library/Armada7k8kSoCDescLib/Armada7k8kSoCDescLib.c |  34 +-
> >  Silicon/Marvell/Drivers/SmbiosPlatformDxe/SmbiosPlatformDxe.c                  |   4 +-
> >  Silicon/Marvell/Library/IcuLib/IcuLib.c                                        |   4 +-
> >  Silicon/Marvell/Library/MppLib/MppLib.c                                        |   4 +-
> >  Platform/Marvell/Cn913xDb/Cn9130DbA.fdf.inc                                    |  17 +
> >  Platform/Marvell/Cn913xDb/Cn9131DbA.fdf.inc                                    |  18 +
> >  Platform/Marvell/Cn913xDb/Cn9132DbA.fdf.inc                                    |  13 +
> >  Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn9131DbA/Ssdt.asl                     |  98 ++++
> >  Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn913xDbA/Dsdt.asl                     | 324 ++++++++++++
> >  Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn913xDbA/Mcfg.aslc                    |  41 ++
> >  Silicon/Marvell/OcteonTx/AcpiTables/T91/Fadt.aslc                              |  80 +++
> >  Silicon/Marvell/OcteonTx/AcpiTables/T91/Gtdt.aslc                              |  58 ++
> >  Silicon/Marvell/OcteonTx/AcpiTables/T91/Madt.aslc                              | 135 +++++
> >  Silicon/Marvell/OcteonTx/AcpiTables/T91/Pptt.aslc                              | 210 ++++++++
> >  Silicon/Marvell/OcteonTx/AcpiTables/T91/Spcr.aslc                              |  49 ++
> >  Silicon/Marvell/OcteonTx/DeviceTree/T91/armada-ap806-quad.dtsi                 |  43 ++
> >  Silicon/Marvell/OcteonTx/DeviceTree/T91/armada-ap806.dtsi                      | 264 ++++++++++
> >  Silicon/Marvell/OcteonTx/DeviceTree/T91/armada-common.dtsi                     |  10 +
> >  Silicon/Marvell/OcteonTx/DeviceTree/T91/armada-cp110.dtsi                      | 552 ++++++++++++++++++++
> >  Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9130-db-A.dts                        | 185 +++++++
> >  Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9130-db.dtsi                         | 168 ++++++
> >  Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9130.dtsi                            | 126 +++++
> >  Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9131-db-A.dts                        |  29 +
> >  Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9131-db.dtsi                         | 175 +++++++
> >  Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9132-db-A.dts                        |  70 +++
> >  Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9132-db.dtsi                         | 159 ++++++
> >  48 files changed, 4113 insertions(+), 21 deletions(-)
> >  create mode 100644 Platform/Marvell/Cn913xDb/Cn9130DbA.dsc.inc
> >  create mode 100644 Platform/Marvell/Cn913xDb/Cn9131DbA.dsc.inc
> >  create mode 100644 Platform/Marvell/Cn913xDb/Cn9132DbA.dsc.inc
> >  create mode 100644 Platform/Marvell/Cn913xDb/Cn9130DbA.dsc
> >  create mode 100644 Platform/Marvell/Cn913xDb/Cn9131DbA.dsc
> >  create mode 100644 Platform/Marvell/Cn913xDb/Cn9132DbA.dsc
> >  create mode 100644 Platform/Marvell/Cn913xDb/BoardDescriptionLib/Cn9130DbABoardDescLib.inf
> >  create mode 100644 Platform/Marvell/Cn913xDb/BoardDescriptionLib/Cn9132DbABoardDescLib.inf
> >  create mode 100644 Platform/Marvell/Cn913xDb/NonDiscoverableInitLib/NonDiscoverableInitLib.inf
> >  create mode 100644 Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn9130DbA.inf
> >  create mode 100644 Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn9131DbA.inf
> >  create mode 100644 Silicon/Marvell/OcteonTx/DeviceTree/T91/Cn9130DbA.inf
> >  create mode 100644 Silicon/Marvell/OcteonTx/DeviceTree/T91/Cn9131DbA.inf
> >  create mode 100644 Silicon/Marvell/OcteonTx/DeviceTree/T91/Cn9132DbA.inf
> >  create mode 100644 Platform/Marvell/Cn913xDb/NonDiscoverableInitLib/NonDiscoverableInitLib.h
> >  create mode 100644 Silicon/Marvell/OcteonTx/AcpiTables/T91/AcpiHeader.h
> >  create mode 100644 Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn913xDbA/Pcie.h
> >  create mode 100644 Silicon/Marvell/OcteonTx/AcpiTables/T91/IcuInterrupts.h
> >  create mode 100644 Platform/Marvell/Cn913xDb/BoardDescriptionLib/Cn9130DbABoardDescLib.c
> >  create mode 100644 Platform/Marvell/Cn913xDb/BoardDescriptionLib/Cn9132DbABoardDescLib.c
> >  create mode 100644 Platform/Marvell/Cn913xDb/NonDiscoverableInitLib/NonDiscoverableInitLib.c
> >  create mode 100644 Platform/Marvell/Cn913xDb/Cn9130DbA.fdf.inc
> >  create mode 100644 Platform/Marvell/Cn913xDb/Cn9131DbA.fdf.inc
> >  create mode 100644 Platform/Marvell/Cn913xDb/Cn9132DbA.fdf.inc
> >  create mode 100644 Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn9131DbA/Ssdt.asl
> >  create mode 100644 Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn913xDbA/Dsdt.asl
> >  create mode 100644 Silicon/Marvell/OcteonTx/AcpiTables/T91/Cn913xDbA/Mcfg.aslc
> >  create mode 100644 Silicon/Marvell/OcteonTx/AcpiTables/T91/Fadt.aslc
> >  create mode 100644 Silicon/Marvell/OcteonTx/AcpiTables/T91/Gtdt.aslc
> >  create mode 100644 Silicon/Marvell/OcteonTx/AcpiTables/T91/Madt.aslc
> >  create mode 100644 Silicon/Marvell/OcteonTx/AcpiTables/T91/Pptt.aslc
> >  create mode 100644 Silicon/Marvell/OcteonTx/AcpiTables/T91/Spcr.aslc
> >  create mode 100644 Silicon/Marvell/OcteonTx/DeviceTree/T91/armada-ap806-quad.dtsi
> >  create mode 100644 Silicon/Marvell/OcteonTx/DeviceTree/T91/armada-ap806.dtsi
> >  create mode 100644 Silicon/Marvell/OcteonTx/DeviceTree/T91/armada-common.dtsi
> >  create mode 100644 Silicon/Marvell/OcteonTx/DeviceTree/T91/armada-cp110.dtsi
> >  create mode 100644 Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9130-db-A.dts
> >  create mode 100644 Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9130-db.dtsi
> >  create mode 100644 Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9130.dtsi
> >  create mode 100644 Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9131-db-A.dts
> >  create mode 100644 Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9131-db.dtsi
> >  create mode 100644 Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9132-db-A.dts
> >  create mode 100644 Silicon/Marvell/OcteonTx/DeviceTree/T91/cn9132-db.dtsi
> >
> > --
> > 2.7.4
> >

-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#45188): https://edk2.groups.io/g/devel/message/45188
Mute This Topic: https://groups.io/mt/32793666/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-

Re: [edk2-devel] [edk2-platforms: PATCH 0/9] Marvell Octeon CN913X SoC family support
Posted by Leif Lindholm 4 years, 8 months ago
Hi Marcin.

On Thu, Aug 08, 2019 at 03:51:15PM +0200, Marcin Wojtas wrote:
> > > This patchset adds all necessary components (.dsc/.fdf,
> > > libraries, ACPI, DT) to support all 3 variants, which
> > > are available on a modular CN913x Development Board.
> >
> > Thanks for this contribution.
> > Do you have any further information on this SoC/Devboard?
> > Searching only gets me the CN8xxx SoCs.
> 
> Indeed :/ I guess there should be some public information soon,
> unfortunately I'm not in charge of it.
> 
> FYI, 2 days ago the support for it was submitted to the Linux lists:
> https://www.spinics.net/lists/arm-kernel/msg746208.html

Ah, good to know, thanks.

> In high level this SoC is successor of Armada - enhanced modularity,
> more interfaces, higher freq, new DDR controller and so on.

OK. Yes, I see now these platforms are implemented as overlays on top
of existing Armada DB.

> > This does not affect Cn9132DbA, since that one does not include the
> > ACPI module. Is this intenional?
> >
> 
> Maybe I should've mention this explicitly - yes, as for now we do not
> support ACPI on triple-CP115 variant. The reason is following -
> currently we have a static configuration of the ICU (CP115 interrupt
> controller) to GIC. Thanks to that, we can assign GIC interrupts in
> static ACPI tables. Unfortunately dual CP115/CP110 setup uses all
> available GIC IRQs for this. We need to create mapping only for the
> used devices and pass it to the ACPI tables.
> 
> What is needed to fix it properly:
> - create ICU-GIC dynamic mapping
> - dynamically fill this information in DSDT/SSDT.
> 
> > Which version of iasl has this been tested with?
> >
> 
> I built it successfully with iasl versions: 20180105 and 20160108-2.
> 
> Anyway, in v2 I'll shorten OEM table ID to 8 characters ( "CN9130DBA"
> is 9 character).

OK. Working around this manually (shortening the name), the 9130
builds fine. The 9131 needs an identical change to Ssdt.aml.

However, all platforms still fail when I try building for ARM (which
is supported according to the .dsc files).
It seems the build fails from the missing PcdDramRemapTarget
definition, in the build of
Silicon/Marvell/Armada7k8k/Library/Armada7k8kLib/ARM/ArmPlatformHelper.S

Moreover, this also affects existing Armada70x0/80x0 platforms.
Could you look into this issue separately?

On a higher level, I confess to not being entirely convinced about the
triplicate .dsc/.dsc.inc/.fdf.inc setup. (Of the three, the .dsc.inc
is the one I object the least to.)
For the .dscs, I understand the desire to separate the build
directories, but could this be achieved with -D build flags instead?
Certainly the differences in .fdf.inc could be handled via
conditional statements determined in a single .dsc.

If (and this is a possibility) the 3 different .dscs is the right way
forward, I still think everything other than the [defines] section
should be kept in a common .dsc.inc.

(This quite possibly concludes my commentary on v1. Don't hold back a
v2 waiting for more.)

Best Regards,

Leif

-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#45204): https://edk2.groups.io/g/devel/message/45204
Mute This Topic: https://groups.io/mt/32793666/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-

Re: [edk2-devel] [edk2-platforms: PATCH 0/9] Marvell Octeon CN913X SoC family support
Posted by Marcin Wojtas 4 years, 8 months ago
czw., 8 sie 2019 o 18:48 Leif Lindholm <leif.lindholm@linaro.org> napisał(a):
>
> Hi Marcin.
>
> On Thu, Aug 08, 2019 at 03:51:15PM +0200, Marcin Wojtas wrote:
> > > > This patchset adds all necessary components (.dsc/.fdf,
> > > > libraries, ACPI, DT) to support all 3 variants, which
> > > > are available on a modular CN913x Development Board.
> > >
> > > Thanks for this contribution.
> > > Do you have any further information on this SoC/Devboard?
> > > Searching only gets me the CN8xxx SoCs.
> >
> > Indeed :/ I guess there should be some public information soon,
> > unfortunately I'm not in charge of it.
> >
> > FYI, 2 days ago the support for it was submitted to the Linux lists:
> > https://www.spinics.net/lists/arm-kernel/msg746208.html
>
> Ah, good to know, thanks.
>
> > In high level this SoC is successor of Armada - enhanced modularity,
> > more interfaces, higher freq, new DDR controller and so on.
>
> OK. Yes, I see now these platforms are implemented as overlays on top
> of existing Armada DB.
>
> > > This does not affect Cn9132DbA, since that one does not include the
> > > ACPI module. Is this intenional?
> > >
> >
> > Maybe I should've mention this explicitly - yes, as for now we do not
> > support ACPI on triple-CP115 variant. The reason is following -
> > currently we have a static configuration of the ICU (CP115 interrupt
> > controller) to GIC. Thanks to that, we can assign GIC interrupts in
> > static ACPI tables. Unfortunately dual CP115/CP110 setup uses all
> > available GIC IRQs for this. We need to create mapping only for the
> > used devices and pass it to the ACPI tables.
> >
> > What is needed to fix it properly:
> > - create ICU-GIC dynamic mapping
> > - dynamically fill this information in DSDT/SSDT.
> >
> > > Which version of iasl has this been tested with?
> > >
> >
> > I built it successfully with iasl versions: 20180105 and 20160108-2.
> >
> > Anyway, in v2 I'll shorten OEM table ID to 8 characters ( "CN9130DBA"
> > is 9 character).
>
> OK. Working around this manually (shortening the name), the 9130
> builds fine. The 9131 needs an identical change to Ssdt.aml.
>
> However, all platforms still fail when I try building for ARM (which
> is supported according to the .dsc files).
> It seems the build fails from the missing PcdDramRemapTarget
> definition, in the build of
> Silicon/Marvell/Armada7k8k/Library/Armada7k8kLib/ARM/ArmPlatformHelper.S
>
> Moreover, this also affects existing Armada70x0/80x0 platforms.
> Could you look into this issue separately?

Thanks for the notice, I will take a look.

>
> On a higher level, I confess to not being entirely convinced about the
> triplicate .dsc/.dsc.inc/.fdf.inc setup. (Of the three, the .dsc.inc
> is the one I object the least to.)
> For the .dscs, I understand the desire to separate the build
> directories, but could this be achieved with -D build flags instead?
> Certainly the differences in .fdf.inc could be handled via
> conditional statements determined in a single .dsc.
>
> If (and this is a possibility) the 3 different .dscs is the right way
> forward, I still think everything other than the [defines] section
> should be kept in a common .dsc.inc.
>

I will try the -D option. How about:
- single .dsc / .fdf.inc
- triple .dsc.inc (they overlap in really minimal way and show pretty
good the differences between 3 variants)
?

> (This quite possibly concludes my commentary on v1. Don't hold back a
> v2 waiting for more.)
>

Ok, thanks!
Marcin

> Best Regards,
>
> Leif

-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#45205): https://edk2.groups.io/g/devel/message/45205
Mute This Topic: https://groups.io/mt/32793666/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-

Re: [edk2-devel] [edk2-platforms: PATCH 0/9] Marvell Octeon CN913X SoC family support
Posted by Leif Lindholm 4 years, 8 months ago
On Thu, Aug 08, 2019 at 07:05:29PM +0200, Marcin Wojtas wrote:
> > On a higher level, I confess to not being entirely convinced about the
> > triplicate .dsc/.dsc.inc/.fdf.inc setup. (Of the three, the .dsc.inc
> > is the one I object the least to.)
> > For the .dscs, I understand the desire to separate the build
> > directories, but could this be achieved with -D build flags instead?
> > Certainly the differences in .fdf.inc could be handled via
> > conditional statements determined in a single .dsc.
> >
> > If (and this is a possibility) the 3 different .dscs is the right way
> > forward, I still think everything other than the [defines] section
> > should be kept in a common .dsc.inc.
> >
> 
> I will try the -D option. How about:
> - single .dsc / .fdf.inc
> - triple .dsc.inc (they overlap in really minimal way and show pretty
> good the differences between 3 variants)
> ?

Yeah, that sounds good to me. Agreed on the .dsc.inc - you could
possibly slightly decrease duplication if keeping them as one file,
but it would be more difficult to read and review changes.

Best Regards,

Leif

-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#45208): https://edk2.groups.io/g/devel/message/45208
Mute This Topic: https://groups.io/mt/32793666/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-

Re: [edk2-devel] [edk2-platforms: PATCH 0/9] Marvell Octeon CN913X SoC family support
Posted by Marcin Wojtas 4 years, 8 months ago
Hi Leif,

czw., 8 sie 2019 o 19:53 Leif Lindholm <leif.lindholm@linaro.org> napisał(a):
>
> On Thu, Aug 08, 2019 at 07:05:29PM +0200, Marcin Wojtas wrote:
> > > On a higher level, I confess to not being entirely convinced about the
> > > triplicate .dsc/.dsc.inc/.fdf.inc setup. (Of the three, the .dsc.inc
> > > is the one I object the least to.)
> > > For the .dscs, I understand the desire to separate the build
> > > directories, but could this be achieved with -D build flags instead?
> > > Certainly the differences in .fdf.inc could be handled via
> > > conditional statements determined in a single .dsc.
> > >
> > > If (and this is a possibility) the 3 different .dscs is the right way
> > > forward, I still think everything other than the [defines] section
> > > should be kept in a common .dsc.inc.
> > >
> >
> > I will try the -D option. How about:
> > - single .dsc / .fdf.inc
> > - triple .dsc.inc (they overlap in really minimal way and show pretty
> > good the differences between 3 variants)
> > ?
>
> Yeah, that sounds good to me. Agreed on the .dsc.inc - you could
> possibly slightly decrease duplication if keeping them as one file,
> but it would be more difficult to read and review changes.
>

Well, when you look into .dsc.inc details, you should notice that
there is no repeated PCD (having the same value) in neither of 3
files. In case we decided to merge them into, we would end up with
ifdefs, so I'm not convinced the readability would increase...

Best regards,
Marcin

-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#45259): https://edk2.groups.io/g/devel/message/45259
Mute This Topic: https://groups.io/mt/32793666/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-