public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Sayanta Pattanayak" <sayanta.pattanayak@arm.com>
To: devel@edk2.groups.io
Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>,
	Sami Mujawar <sami.mujawar@arm.com>
Subject: [edk2-devel] [edk2-platforms][PATCH v1 0/4] add support for enabling cxl-type3 device as memory expander on Arm/RD platform
Date: Tue, 10 Oct 2023 17:08:25 +0530	[thread overview]
Message-ID: <20231010113829.647426-1-sayanta.pattanayak@arm.com> (raw)

This patch series is about enabling CXL-Type3 capability on Arm reference
design platform.

* Designated 8GB address space is reserved and configured for using as extended
  CXL memory.
* During PCIe enumeration process, a CXL device with DOE capability is looked
  for. Once discovered, using DOE method CDAT information is fetched and
  details like CXL device memory range, memory type collected.
* Thereafter using a registered notifier, SRAT and HMAT tables are updated with
  remote CXL memory information.

These additions will enable CXL.Memory device to be used as memory expander on
Arm Reference Design platform.

Link to the branch with this patch series - 
https://gitlab.arm.com/infra-solutions/reference-design/platsw/edk2-platforms/-/tree/topics/cxl_v2

Sayanta Pattanayak (4):
  Platform/Sgi: add remote memory descriptor
  Platform/Sgi: prepare SRAT, HMAT table
  Platform/ARM: add CXL driver
  Platform/Sgi: add CXL driver support

 Platform/ARM/Drivers/CxlDxe/CxlDxe.dec                                   |  21 +
 Platform/ARM/SgiPkg/SgiPlatform.dec                                      |   8 +
 Platform/ARM/SgiPkg/SgiPlatform.dsc.inc                                  |  12 +
 Platform/ARM/SgiPkg/RdN2Cfg1/RdN2Cfg1.dsc                                |   7 +
 Platform/ARM/SgiPkg/SgiPlatform.fdf                                      |  14 +-
 Platform/ARM/Drivers/CxlDxe/CxlDxe.inf                                   |  50 ++
 Platform/ARM/SgiPkg/Library/AcpiTableGeneratorLib/AcpiTableGenerator.inf |  68 +++
 Platform/ARM/SgiPkg/Library/PlatformLib/PlatformLib.inf                  |   4 +
 Platform/ARM/Drivers/CxlDxe/CxlDxe.h                                     | 163 ++++++
 Platform/ARM/Include/Protocol/Cxl.h                                      |  62 +++
 Platform/ARM/SgiPkg/Library/AcpiTableGeneratorLib/AcpiTableGenerator.h   |  39 ++
 Platform/ARM/Drivers/CxlDxe/CxlDxe.c                                     | 575 ++++++++++++++++++++
 Platform/ARM/SgiPkg/Library/AcpiTableGeneratorLib/AcpiTableGenerator.c   | 106 ++++
 Platform/ARM/SgiPkg/Library/AcpiTableGeneratorLib/HmatTableGenerator.c   | 120 ++++
 Platform/ARM/SgiPkg/Library/AcpiTableGeneratorLib/SratTableGenerator.c   | 312 +++++++++++
 Platform/ARM/SgiPkg/Library/PlatformLib/PlatformLibMem.c                 |  19 +-
 16 files changed, 1577 insertions(+), 3 deletions(-)
 create mode 100644 Platform/ARM/Drivers/CxlDxe/CxlDxe.dec
 create mode 100644 Platform/ARM/Drivers/CxlDxe/CxlDxe.inf
 create mode 100644 Platform/ARM/SgiPkg/Library/AcpiTableGeneratorLib/AcpiTableGenerator.inf
 create mode 100644 Platform/ARM/Drivers/CxlDxe/CxlDxe.h
 create mode 100644 Platform/ARM/Include/Protocol/Cxl.h
 create mode 100644 Platform/ARM/SgiPkg/Library/AcpiTableGeneratorLib/AcpiTableGenerator.h
 create mode 100644 Platform/ARM/Drivers/CxlDxe/CxlDxe.c
 create mode 100644 Platform/ARM/SgiPkg/Library/AcpiTableGeneratorLib/AcpiTableGenerator.c
 create mode 100644 Platform/ARM/SgiPkg/Library/AcpiTableGeneratorLib/HmatTableGenerator.c
 create mode 100644 Platform/ARM/SgiPkg/Library/AcpiTableGeneratorLib/SratTableGenerator.c

-- 
2.25.1



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#109488): https://edk2.groups.io/g/devel/message/109488
Mute This Topic: https://groups.io/mt/101872993/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



             reply	other threads:[~2023-10-10 11:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-10 11:38 Sayanta Pattanayak [this message]
2023-10-10 11:38 ` [edk2-devel] [edk2-platforms][PATCH v1 1/4] Platform/Sgi: add remote memory descriptor Sayanta Pattanayak
2023-10-10 11:38 ` [edk2-devel] [edk2-platforms][PATCH v1 2/4] Platform/Sgi: prepare SRAT, HMAT table Sayanta Pattanayak
2023-10-10 11:38 ` [edk2-devel] [edk2-platforms][PATCH v1 3/4] Platform/ARM: add CXL driver Sayanta Pattanayak
2023-10-10 11:38 ` [edk2-devel] [edk2-platforms][PATCH v1 4/4] Platform/Sgi: add CXL driver support Sayanta Pattanayak

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231010113829.647426-1-sayanta.pattanayak@arm.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox