From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 350F47803CC for ; Tue, 10 Oct 2023 11:38:42 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=wmR3gkfka5N9wheQImJfud7VmTwXpHYUlF3jmN0x5DI=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1696937916; v=1; b=q3BNB2KYokoQe3GlnDJ048UVQfSb7M+wSVQCEbj+WYLRLb02L/iWKY0b+qfaUT0jJl71KWsa rdZ5MvRdEIduEksJhDiQdYFBJA5/FcQPkPj9rVg0JGmBR12rp8nSKrCUcJlh7OzGS9UECkGt3sK aiXmA6i6di0608rW+bkCSCos= X-Received: by 127.0.0.2 with SMTP id sgFIYY7687511xwW0da8WEJe; Tue, 10 Oct 2023 04:38:36 -0700 X-Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web10.89193.1696937916103324868 for ; Tue, 10 Oct 2023 04:38:36 -0700 X-Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 85AB51FB; Tue, 10 Oct 2023 04:39:16 -0700 (PDT) X-Received: from usa.arm.com (a077432.blr.arm.com [10.162.46.9]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 8E7D33F7A6; Tue, 10 Oct 2023 04:38:34 -0700 (PDT) From: "Sayanta Pattanayak" To: devel@edk2.groups.io Cc: Ard Biesheuvel , Sami Mujawar 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 Message-Id: <20231010113829.647426-1-sayanta.pattanayak@arm.com> MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,sayanta.pattanayak@arm.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: lzNyPeb0dq9i4slpj8vHheBox7686176AA= Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=q3BNB2KY; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=arm.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io 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 ex= tended CXL memory. * During PCIe enumeration process, a CXL device with DOE capability is lo= oked 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 update= d with remote CXL memory information. These additions will enable CXL.Memory device to be used as memory expand= er on Arm Reference Design platform. Link to the branch with this patch series -=20 https://gitlab.arm.com/infra-solutions/reference-design/platsw/edk2-platf= orms/-/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/Acp= iTableGenerator.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/Acp= iTableGenerator.h create mode 100644 Platform/ARM/Drivers/CxlDxe/CxlDxe.c create mode 100644 Platform/ARM/SgiPkg/Library/AcpiTableGeneratorLib/Acp= iTableGenerator.c create mode 100644 Platform/ARM/SgiPkg/Library/AcpiTableGeneratorLib/Hma= tTableGenerator.c create mode 100644 Platform/ARM/SgiPkg/Library/AcpiTableGeneratorLib/Sra= tTableGenerator.c --=20 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] -=-=-=-=-=-=-=-=-=-=-=-