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 0326BAC1AB8 for ; Tue, 7 Nov 2023 21:54:32 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=fibY0OqxjX7urGgs5vw1VYCkoX9CJL47iXFHXyGiF1s=; c=relaxed/simple; d=groups.io; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:Message-ID:Date:User-Agent:Subject:To:CC:References:From:Organization:In-Reply-To:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type:Content-Language; s=20140610; t=1699394071; v=1; b=XvADiXdQOBUqtoDix/BNP0FRh6rnbSFuBXsLIli60utU3A4lgouUs2z1R1r9juZ4tgZnoVY/ gRqMChfLvh4oW2oqsC17QnCXLi7tg1plfFSR8qNbSXWkNc3yGA6svpAe92MhPQ++glm+b78zQyt MpQkbXGjmF5ZSvY9BGpiyZE8= X-Received: by 127.0.0.2 with SMTP id pNTuYY7687511xgMuu7ZORa9; Tue, 07 Nov 2023 13:54:31 -0800 X-Received: from mx0a-002e3701.pphosted.com (mx0a-002e3701.pphosted.com [148.163.147.86]) by mx.groups.io with SMTP id smtpd.web10.33802.1699394070713334652 for ; Tue, 07 Nov 2023 13:54:31 -0800 X-Received: from pps.filterd (m0150242.ppops.net [127.0.0.1]) by mx0a-002e3701.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3A7LON6b017182; Tue, 7 Nov 2023 21:54:22 GMT X-Received: from p1lg14881.it.hpe.com ([16.230.97.202]) by mx0a-002e3701.pphosted.com (PPS) with ESMTPS id 3u7w4ag7ek-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 07 Nov 2023 21:54:22 +0000 X-Received: from p1wg14926.americas.hpqcorp.net (unknown [10.119.18.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by p1lg14881.it.hpe.com (Postfix) with ESMTPS id E433B805E31; Tue, 7 Nov 2023 21:54:20 +0000 (UTC) X-Received: from p1wg14928.americas.hpqcorp.net (10.119.18.116) by p1wg14926.americas.hpqcorp.net (10.119.18.115) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.42; Tue, 7 Nov 2023 09:54:13 -1200 X-Received: from p1wg14924.americas.hpqcorp.net (10.119.18.113) by p1wg14928.americas.hpqcorp.net (10.119.18.116) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.42; Tue, 7 Nov 2023 09:54:13 -1200 X-Received: from p1wg14921.americas.hpqcorp.net (16.230.19.124) by p1wg14924.americas.hpqcorp.net (10.119.18.113) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.42 via Frontend Transport; Tue, 7 Nov 2023 09:54:13 -1200 X-Received: from NAM12-DM6-obe.outbound.protection.outlook.com (192.58.206.35) by edge.it.hpe.com (16.230.19.124) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.42; Tue, 7 Nov 2023 09:54:07 -1200 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DTvGPqB8UHwlZPXgKPFgVAc8laWMcoSRmRDGlKVmnCUU8PfHFHkA7hVopVAD30L5flF9SNpSPdLDMaAYXf4dBbkY/zYPx99qRmGUT42H38F2ley93nnVqjKdmTeme6i7FiyqDTTeOY4X4yWwghMX+WdbCv5NZwPsaPoVvo3wIrvg+zL4qgS0exmvtEeG4ifIztTTJGSZZzzxyArcawRgujXf9Z8Eyj81bnvWEBXgWksKnry+ZwZpc/ac1CZlwjhwzPgXt67Rv38Vczp1/caQ/tE+ljLa8Rixwsz+O3uRjj9YGz19AyguVbFaPIfM+Y0qptRY9BEwvs7zm8gPjv3mXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=LWck7ayTN6Qf0Qj9ZKgztghpOldWuDK6QNX9cMdaKtw=; b=nHhtD+5DuO/RI4RBrR+FDaRwMVvq7AJcBuew2AfrIhFUXhKcLHspnFvBcRpY/RZA/KM7XPz4s2R1LjbE3cJ/u8Xl5BBGSlslvDGblnWWxDvxdrJ5NLlTa8Y4Ov06QTlUYCoVF5wsFwCQsEgTXhtm9HoD/DaPDdOZjUHfMfmNi36Ic6Gy2oDgcMjaZPV+4byR5Fw+CSxrgOygANRatdvC48fqvCcelOhPyfoGkY1mDKuxCjEneL205IPF0NMOohUNFKtcO6RWZ8E/6DpmTl+eySHyms8Z90rpym9Xcble9V7A9EvcansU/P8w51Jz4EV5X7hirT6+h2mNtHI1zg4/1w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=hpe.com; dmarc=pass action=none header.from=hpe.com; dkim=pass header.d=hpe.com; arc=none X-Received: from MW5PR84MB1354.NAMPRD84.PROD.OUTLOOK.COM (2603:10b6:303:1c0::21) by MW5PR84MB1428.NAMPRD84.PROD.OUTLOOK.COM (2603:10b6:303:1c2::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.28; Tue, 7 Nov 2023 21:54:05 +0000 X-Received: from MW5PR84MB1354.NAMPRD84.PROD.OUTLOOK.COM ([fe80::8dff:64e2:df4d:ba5e]) by MW5PR84MB1354.NAMPRD84.PROD.OUTLOOK.COM ([fe80::8dff:64e2:df4d:ba5e%5]) with mapi id 15.20.6954.028; Tue, 7 Nov 2023 21:54:05 +0000 Message-ID: Date: Tue, 7 Nov 2023 15:54:01 -0600 User-Agent: Mozilla Thunderbird Subject: Re: [edk2-devel] question about cxl device enumeration in pci bus driver To: , CC: , Laszlo Ersek , , "Ni, Ray" , Sayanta Pattanayak References: <74c5f6c4.3480.18b656cafb8.Coremail.yoshinoyatoko@163.com> <5df5f698-7f1d-98f3-e6a2-7b1a4c978528@redhat.com> <20231026143538.00005d15@Huawei.com> <1791D2898E0C74CA.20272@groups.io> <3f62d9c9.c62.18b6ec0338c.Coremail.yoshinoyatoko@163.com> <55e93c9e.6c41.18ba45c8251.Coremail.yoshinoyatoko@163.com> From: "Brian J. Johnson" Organization: HPE In-Reply-To: <55e93c9e.6c41.18ba45c8251.Coremail.yoshinoyatoko@163.com> X-ClientProxiedBy: BY5PR20CA0010.namprd20.prod.outlook.com (2603:10b6:a03:1f4::23) To MW5PR84MB1354.NAMPRD84.PROD.OUTLOOK.COM (2603:10b6:303:1c0::21) X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MW5PR84MB1354:EE_|MW5PR84MB1428:EE_ X-MS-Office365-Filtering-Correlation-Id: f59bcc4e-b2e2-4eaf-dc51-08dbdfdc0fc0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: uaUVEuPxpfta4jTofr4SpK330KCCW2otSHozo9tg7wzrlPTsLj+7iAxiW84JtRk7HBlFw7ZucrX5lQ+/E9wtxaX7Gb1MNL45t15k93Tlx/PwEyLPawDSo67o1umupA8XYcONpnwnnOcWW/iNY+Nm5YBtkq7j0vkSolmw7GMOzL0xJK9B/Lidi3AibJLkltTdpIxUOS6KtYpWKfp5Nif4rr+zW7X1W5bQ6UjDrHRD2O5RZNbc8qWrTq7K81MN4MIqq6c0vtq3mC/rTQxMOEDPmVyt8D1kVOo3YbXvNyy8RYYpMM+M3w6AHqOHxn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VmYlJFZTIvTHJnTVh6K200?= =?utf-8?B?S3VXY0FFbXU5Y0xGWEFtT0phNnRkc2M1bFJOcjliVXJRWjdPMlBseTZSQ2t1?= =?utf-8?B?US9SMHArdkoxTEJ4bTNBVGNoa2I2M1ZMb0lMNWVoMzJydUIzR2lvZSt2N2FJ?= =?utf-8?B?OXZpSEFBS3VBbE16a0Yvd3FGWmRhN0haSm9CWWF1ZEhOb212NkhHRzlvZi9X?= =?utf-8?B?YTdoNFp4eG44bFR5dEpMTmlGSFdCTFVsUisxbHZ2RW51L25qaHpvQ0pOcTRQ?= =?utf-8?B?TkxJUURuYitzRWkvM0R5Q3ZqRHpnU0pONmRPM3FoNmJ3UlBXdDdqMHRwSlly?= =?utf-8?B?c2JPMFRPU2pyTWhPM29zcDdLZ0FDK2htS1l1MThKb08xdW9xQkt2enJiRFNI?= =?utf-8?B?YUtNa2U2dnJSeGNPUy9sYTVYdXJPdnVndzBwYThPS2NoSzI1TGJRbElLTXdO?= =?utf-8?B?ZHFrYVB6U3pQNHlYek9aVjhSU3JiNkpsUzNvWTFGcVplRUl6OGE0RUVwS2pG?= =?utf-8?B?V2NhdExJNkdRYmtIZkQ3bk52Ujc1WXB2TGQ1QVBKbFpZWmljRXBGa2hvZFZN?= =?utf-8?B?Q2xFUU4wZlNmSC9wWXJHK0h4WlJWVG5OclNRcU9UNk9KQ2tnY09ycU1OUzVi?= =?utf-8?B?QnEzTXVMTmp6ZUZveDljblQzNXNoNEk4NzZlTUR2cHVrSjhweFhiOHpBTjlh?= =?utf-8?Q?6ByDIDUdcyaUDf/g/WAc+XABj?= X-MS-Exchange-CrossTenant-Network-Message-Id: f59bcc4e-b2e2-4eaf-dc51-08dbdfdc0fc0 X-MS-Exchange-CrossTenant-AuthSource: MW5PR84MB1354.NAMPRD84.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Nov 2023 21:54:05.4783 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 105b2061-b669-4b31-92ac-24d304d195dc X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: upEjOILVd1EhsgrWnqbF/5q3R3GoFi7wtzWz/lthepJsgYZ5wYgNstKbkBE8TKG4GijFCSlXmD8AcbbLAaEueQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW5PR84MB1428 X-OriginatorOrg: hpe.com X-Proofpoint-GUID: Wt4_54wOvGon-mSLoo-PTCeIOwTKj7ki X-Proofpoint-ORIG-GUID: Wt4_54wOvGon-mSLoo-PTCeIOwTKj7ki X-Proofpoint-UnRewURL: 14 URL's were un-rewritten MIME-Version: 1.0 X-HPE-SCL: -1 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,brian.johnson@hpe.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: BrRYWSvwUHgFMbgteiKjJtmfx7686176AA= Content-Type: multipart/alternative; boundary="------------0qTSQ4BrrxvDvCdmti043iYc" Content-Language: en-US X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=XvADiXdQ; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}"); dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=hpe.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 --------------0qTSQ4BrrxvDvCdmti043iYc Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64 SSBzZWUgYSBsb25nIGRpc2N1c3Npb24gb24gbG9yZS5rZXJuZWwub3JnOg0KDQpodHRwczovL2xv cmUua2VybmVsLm9yZy9saW51eC1j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v XQotPS09LT0tPS09LT0tPS09LT0tPS09LQoKDQo= --------------0qTSQ4BrrxvDvCdmti043iYc Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I see a long discussion on lore.kernel.org:<= /div>


This document also has some info on how CXL hotplug is handled:


Brian J. Johnson
Enterprise X86 Lab

Hewlett Packard Enterprise


Sent: Monday, November 6, 2023 at 5:20 AM
Subject: [edk2-devel] question about cxl device enumeration in pci bus driver

=20
Hi,
I have a question about cxl memory device hot-plug.

For example:
1. When cold boot, the platform has only 512GB cxl type-3 memory
2. During OS runtime, user hot-plug another cxl type-3  memory device expanding to 1TB.

So, how did OS identify another 512GB space newly added without a reboot?

Could anyone help to explain the procedure draftly?

Thanks




=E5=9C=A8 2023-10-27 09:29:31=EF=BC=8C"Yoshinoya" <yoshinoyatoko@163.com> =E5=86=99=E9=81=93=EF=BC=9A


Hi,
Thanks for reply!

I download code from this git&nbs= p;https://github.com/SayantaP-arm/edk2-platforms/

For this ARM edk2 sample package, it provided cxldxe driver which being executed after UEFI DXE PciBus enumeration finishes.

Intel also provied a CXL Type 3 memory device software guide.
This guide also describes system firmware boot sequence and uefi boot sequence.
But i could not match these describes with standard UEFI BIOS Boot flow, such as dxe phase's standard pci enumeration driver.
It sees needing add some cxl discovery code into dxe pci bus driver.

Thanks





At 2023-10-26 21:35:38, "Jonathan Cameron via groups.io" <jonathan.cameron=3Dhuawei.com@groups.io> wrote:
>On Thu, 26 Oct 2023 11:49:28 +0200
>"Laszlo Ersek" <lersek@redhat.com> wrote:
>
>> On 10/26/23 10:33, Gerd Hoffmann wrote:
>> > On Thu, Oct 26, 2023 at 10:36:35AM +0800, Yoshinoya wrote:
>> >  =20
>> >> CXL Host Bridge / Root Port / Switch / Device enumeration=
 / HDM Config, maybe could be integrated into pci drivers stack. =20
>> >=20
>> > Point being?  Can or should the firmware do anything useful w=
ith
>> > the CXL hardware?  If so, what exactly and why?
>> >=20
>> > Current state of affairs is that the PCI stack does the usual=
 PCI
>> > initialization (enumerate, assign resources to PCI bars) and =
leaves
>> > everything else to the OS. =20
>>=20
>> (I don't know what "HDM Config" stands for.)
>>=20
>> The only utility for driving CXL devices from the firmware could b=
e, AFAICT:
>>=20
>> - booting off of such a device (or at least "supporting OS bo=
ot" in some
>> manner)
>>=20
>> - using such a device for UEFI console purposes
>
>There are different models for how to use CXL devices and what's possib=
le depends on the
>version of CXL.  CXL 1.1 wasn't great for standards defined discovery, =
so
>EDK2 platform logic basically has to do everything.
>
>The one mostly expected for early CXL servers, for backwards compatibil=
ity, makes
>setting up the CXL memory decoders (Host managed Device Memory - HDM) i=
n all the
>components in the path to memory + locking them down an EDK2 problem.  =
They are then
>presented in the memory map and in SRAT, HMAT etc the same as normal DD=
R memory.
>Idea being that an old OS will be fine with that and doesn't have to be=
 CXL aware
>at all.  Note this also involves walking the CDAT tables via DOE mailbo=
xes in PCI
>config space to get the magic numbers needed to compute HMAT.
>
>The other model is to do very little in EDK2 and make entirely a proble=
m for the OS.
>The logic is necessary anyway if you want to support hotplug etc, so us=
e it for the
>cold plug paths 2.  That's all we've currently supported on QEMU.
>
>There was a presentation at Linux Plumbers last year on some out of tre=
e support
>from ARM for doing the setup on a CXL 2.0 platform (I think) in EDK2=20
>https://lpc.events/event/16/contributions/1254/
>But I guess it never went upstream.
>https://github.com/SayantaP-arm/edk2-pl=
atforms/tree/cxl-type-3
>
>+CC Sayanta
>
>Jonathan
>>=20
>> Laszlo
>>=20
>>=20
>>=20
>>=20
>>=20
>>=20
>
>
>
>
>
=20
_._,_._,_

Groups.io Links:

=20 You receive all messages sent to this group. =20 =20

View/Reply Online (#110877) | =20 | Mute= This Topic | New Topic
Your Subscriptio= n | Contact Group Owner | Unsubscribe [rebecca@openfw.io]

_._,_._,_
--------------0qTSQ4BrrxvDvCdmti043iYc--