From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (NAM12-DM6-obe.outbound.protection.outlook.com [40.107.243.129]) by mx.groups.io with SMTP id smtpd.web10.54048.1683792643089093896 for ; Thu, 11 May 2023 01:10:43 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@os.amperecomputing.com header.s=selector2 header.b=NVtUy6Mk; spf=pass (domain: os.amperecomputing.com, ip: 40.107.243.129, mailfrom: minhnguyen1@os.amperecomputing.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=l2QMEgOt4+IFdAnOxYuIx+zVvOc2+jTH81NF0gZSGpwDeNdf8J8ldTnuBs134CL0nlEcELPxWIxh4xipKR+HdyuDJjMbvIhYmZvdEnnC6WZzrklewp+5me2ryFgVm0u1ng94iXMdUYZkcSRZyruP40upnmrG4kZsIW2bjkdYLAzSxM0Zcpa/jrZVjypulzyTc4GkGgQDoulxdFtZgMVKZyUrQNRhg46HjYpQA7TFfn3XgVrwI8SvZccad6DVpMH27GwzST4sLFQ6hRQQj7wpzw3bDZe4BOM2HgdbLL6zXowqOvsbwpxdo5BpBcY826GqTcIgBz6QMgqv9dT+PzF1ug== 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=ysvNpu6Qx13s5aOvVwR8YkHTZf/+FxpmcbqHOAOmWfA=; b=Kz8emN9R3msG5Kv9OOqp0/5JExxa/6+jEPdNjGPuZA2TWBZw3+6oSwG1phJWI6I0Lq1jyMhKvGqB4D4e8skU2+FoAYwPb1/G8DWqw5jdR+uYykD4bjxXhrRTwpbbfNm3N62UsDP0osy4eg+JHam2lTMDjmIEuSq6Luqe6soFywiaIkzU2ySmXBRR4AedKrNlc3uNNt0CfQiMD1ds6A4PcpBALwcZsMLnf+OAJAvlwaalESYwnj2zX1eR8kw3Rmu5/GesPXH0ID8m1/NBIagjF8eO1Xkdxc2T4Ya07AmO8LeVC7LMoQh/fOdDcULhtsoncx2YdwFwTDFKyP1IY3grUA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=os.amperecomputing.com; dmarc=pass action=none header.from=os.amperecomputing.com; dkim=pass header.d=os.amperecomputing.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=os.amperecomputing.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ysvNpu6Qx13s5aOvVwR8YkHTZf/+FxpmcbqHOAOmWfA=; b=NVtUy6Mk3JoBpuwWc5K3b1t3ERDpdrMJzT5XyAGp4bUEg2hPbpzUawLG7u+EhCMh9ZmkkY581WDXbIMbzh/TXjLwfrE5CC3osB9RMoQZ+uZHKHKlg80FPrFam2MRsmN4jwcfxrDkniRiR99DaAbcA43ls//FElbZkXJgQyMq5+k= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=os.amperecomputing.com; Received: from PH0PR01MB8048.prod.exchangelabs.com (2603:10b6:510:280::7) by CY4PR0101MB3144.prod.exchangelabs.com (2603:10b6:910:49::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6340.19; Thu, 11 May 2023 08:10:38 +0000 Received: from PH0PR01MB8048.prod.exchangelabs.com ([fe80::bbdb:b58c:140e:c4e1]) by PH0PR01MB8048.prod.exchangelabs.com ([fe80::bbdb:b58c:140e:c4e1%6]) with mapi id 15.20.6387.019; Thu, 11 May 2023 08:10:38 +0000 From: Minh Nguyen To: devel@edk2.groups.io CC: patches@amperecomputing.com, quic_llindhol@quicinc.com, ardb+tianocore@kernel.org, nhi@os.amperecomputing.com, tinhnguyen@os.amperecomputing.com, Minh Nguyen Subject: [edk2-platforms][PATCH 0/6] Support NVMe Hot Plug feature for Ampere Altra and Ampere Altra Max Date: Thu, 11 May 2023 15:10:05 +0700 Message-ID: <20230511081011.2692963-1-minhnguyen1@os.amperecomputing.com> X-Mailer: git-send-email 2.39.0 X-ClientProxiedBy: SI2P153CA0033.APCP153.PROD.OUTLOOK.COM (2603:1096:4:190::21) To PH0PR01MB8048.prod.exchangelabs.com (2603:10b6:510:280::7) Return-Path: minhnguyen1@os.amperecomputing.com MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH0PR01MB8048:EE_|CY4PR0101MB3144:EE_ X-MS-Office365-Filtering-Correlation-Id: 92008bbe-4312-416b-4a34-08db51f7343a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: FQ1ckBEE8wq2f+LayhNtP23LVovgnXen0CQ+Gz/8Ad9nHildLAwu7oehDrU9Qam4aSk2RaAnLlJFIEtjfIxUla0qXSk8qi1eMxIifBggdu6oDmuaqHSf6IBbFFgfxoiAnAiY+trgJ3XYES8eR7wiTgyQMA3M46tPzpZEXSlge/sgtuYP2WV8xFSAMiu5DmSbLB8Iw6tS87KV//WYgxdRRZt559XkbMEbtfuFUznYQp2iPHa+R/wvRwJt2XjPeoofhCDi/oZNcatA1sZTa49nPVn0nvW28DxYFlwovVxaaaq06VS2J4dDiyzMRed/mXeXcOIWj9X2/fjnTSzfhLdeVmiRbNHYbzuX+rqGJTLY3vYWfqxX1Pj2EPIRDIJD6DiGKKTGtqlFrAUCwTfgSdLLqVtGSlzBHHLJJUqoEM/FYGx6LxUQ9RtKrO4oI+5D4G65T73Xj7Cqu5fxzDh+Dd11oBBMqUVUioNgM6wEl6soskGwSTUFEKKIPvbnwPQO7qQgC+NDm1ewnnlvrf7wgPC05JErZ/Xvk8mGg1n7lyAJgksNASkYs5UlYZQ27ZAwaMS1/0ctj9hh2UxI+qF/OOu7nmZS8u9gvQPfCkCHPerR51NY7ouIBt62OsLtPqjPjcJT X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR01MB8048.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(136003)(376002)(39860400002)(366004)(346002)(396003)(451199021)(6666004)(478600001)(66556008)(19627235002)(316002)(6486002)(66946007)(52116002)(6916009)(66476007)(86362001)(26005)(83380400001)(6512007)(107886003)(6506007)(4326008)(1076003)(8936002)(186003)(2906002)(8676002)(41300700001)(5660300002)(38350700002)(38100700002)(2616005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?vNxNpnGsXBBxJjeRe9VUqqzu+SNmx5EUg9SllQYNzjrvKVvFYkGY7Kpv+k4Z?= =?us-ascii?Q?B1Deiy8dWbX1DEvCsBWPj2rXgLoIYb7XQRkH2BcHh9WeKy2uaKMyfGqSqqo9?= =?us-ascii?Q?5hPCLKVazbZ+b55uW57EXoBx/9LYAYvmp4h8bJcg4Qe71YJVLE+jJrT2xxWJ?= =?us-ascii?Q?bVLJYQ6AtYCkO/qXlv7y2CWfQNKfNhQAl8+UvKUIjOZq06mhSCwe8xl1exI5?= =?us-ascii?Q?2lfWtt9hfyp8tyyoVqd1pJMcNFhk+oy+cHzZM4lTpR3r9PsSdFKQg/HhI6UW?= =?us-ascii?Q?ghJ4HDn2Qgok8G3K9FTB4JPeobLOndp31C2CbRMlTZ2zDQvykVItIKILde/5?= =?us-ascii?Q?QypmCpkGTnvXDAdzopAtae5PneUSU8ILwypiTh5fyGvfJ83DnANbkmMJ4gy6?= =?us-ascii?Q?XIU4FL4BaK27djZEeSC5vE1gLloshfPt+5Mein5d3iozeX/WCz68iMoPnEmF?= =?us-ascii?Q?RdjJuSOpXMcdZhoFSCrN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VT+LQok2kCDswkwDkIdaHmGJFqdQQygOSYjhwGHr2KRXt14+JXvkilMJ1WzY?= =?us-ascii?Q?GZ93jI+SoxGUA+eU1pwJpxc0jlrP6+HfO23NT6rzDnxI7i/kb4P+sI0uLVoo?= =?us-ascii?Q?2sLxY/+tszdRpuWIUeronCB1ab517Z25Npfejmw+Aq6EqmhlWeHQB4NDpPWN?= =?us-ascii?Q?VVxVfx48we4ZpCckvDkl0MUEWhMoC/8xMPdUFt9z21rNeKMoAvlTdQQ6nmOc?= =?us-ascii?Q?V+otnBgfJAIphnp2qQzX2CaLh9ThYpaKEoo8j/uZMJEs?= X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: 92008bbe-4312-416b-4a34-08db51f7343a X-MS-Exchange-CrossTenant-AuthSource: PH0PR01MB8048.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 May 2023 08:10:38.0340 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3bc2b170-fd94-476d-b0ce-4229bdc904a7 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: gPQmUvFwp8j9UvtHktHM2WHAjnVQzLWDouy8IhrUzSDudcMhuYQgFoi4bHcv9MZh667LKJHsqxUo0bLV056jG4on4MXmHm8Rj3jsi6jhT1pDDi7yomecn2waYOsCYPiv X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR0101MB3144 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain These patches support NVMe Hot Plug feature for Ampere Altra and Ampere Alt= ra Max. Minh Nguyen (2): AmpereAltraPkg: Add Hot Plug Slot Capable during PCIe port initialization AmpereAltraPkg: Change PCIe Amba Link Timeout value Vu Nguyen (4): AmpereAltraPkg: Add PCIe Hot Plug library JadePkg: Support ACPI tables for Hot Plug of Ampere Altra JadePkg: Support ACPI tables for Hot Plug of Ampere Altra Max AmpereAltraPkg: Enable NVMe Hot Plug feature Silicon/Ampere/AmpereAltraPkg/AmpereAltraPkg.dec | = 8 +- Silicon/Ampere/AmpereSiliconPkg/AmpereSiliconPkg.dec | = 13 + Silicon/Ampere/AmpereAltraPkg/AmpereAltraPkg.dsc.inc | = 1 + Platform/Ampere/JadePkg/Jade.dsc | = 66 ++ Silicon/Ampere/AmpereAltraPkg/Drivers/PcieInitPei/PcieInitPei.inf | = 3 +- Silicon/Ampere/AmpereAltraPkg/Library/PcieHotPlugLib/PcieHotPlugLib.inf | = 37 + Silicon/Ampere/AmpereAltraPkg/Include/Library/PcieHotPlugLib.h | = 162 +++ Silicon/Ampere/AmpereSiliconPkg/Include/Library/PcieHotPlugPortMapLib.h | = 81 ++ Silicon/Ampere/AmpereAltraPkg/Drivers/PcieInitPei/PcieInitPei.c | = 3 + Silicon/Ampere/AmpereAltraPkg/Library/Ac01PcieLib/PcieCore.c | = 13 +- Silicon/Ampere/AmpereAltraPkg/Library/PcieHotPlugLib/PcieHotPlugLib.c | = 397 ++++++++ Platform/Ampere/JadePkg/Ac02AcpiTables/CommonDevices.asi | = 24 + Platform/Ampere/JadePkg/Ac02AcpiTables/Dsdt.asl | = 511 ++++++++++ Platform/Ampere/JadePkg/Ac02AcpiTables/MHPP.asi | = 92 ++ Platform/Ampere/JadePkg/Ac02AcpiTables/PCI-S0.asi | = 545 ++++++++++ Platform/Ampere/JadePkg/Ac02AcpiTables/PCI-S1.asi | = 1072 +++++++++++++++++++ Platform/Ampere/JadePkg/AcpiTables/Dsdt.asl | = 499 ++++++++- Platform/Ampere/JadePkg/AcpiTables/MHPP.asi | = 127 +++ Platform/Ampere/JadePkg/AcpiTables/PCI-S0.asi | = 548 +++++++++- Platform/Ampere/JadePkg/AcpiTables/PCI-S1.asi | = 1074 +++++++++++++++++++- 20 files changed, 5269 insertions(+), 7 deletions(-) create mode 100644 Silicon/Ampere/AmpereAltraPkg/Library/PcieHotPlugLib/Pc= ieHotPlugLib.inf create mode 100644 Silicon/Ampere/AmpereAltraPkg/Include/Library/PcieHotPl= ugLib.h create mode 100644 Silicon/Ampere/AmpereSiliconPkg/Include/Library/PcieHot= PlugPortMapLib.h create mode 100644 Silicon/Ampere/AmpereAltraPkg/Library/PcieHotPlugLib/Pc= ieHotPlugLib.c create mode 100644 Platform/Ampere/JadePkg/Ac02AcpiTables/MHPP.asi create mode 100644 Platform/Ampere/JadePkg/AcpiTables/MHPP.asi --=20 2.39.0