From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (NAM11-DM6-obe.outbound.protection.outlook.com [40.107.223.118]) by mx.groups.io with SMTP id smtpd.web11.16987.1680064574607994527 for ; Tue, 28 Mar 2023 21:36:14 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@os.amperecomputing.com header.s=selector2 header.b=mMPgknd/; spf=pass (domain: os.amperecomputing.com, ip: 40.107.223.118, mailfrom: nhi@os.amperecomputing.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Q1POYr8leQzBBCeMZft+90DwhmXBzatVjmKZGlV69M5fz8Q6DxdVT5b4XGbx/9qzh/hLAlw1Jde31dy2s2XtGF5AeDOg4VVPdOXchaPGubsPBxHpDF9konm2VPszgtBr7rAjDpuph49eQOX4AxNqhvZWPrBciW0Bz4MdKWqWS3KkRdCXD5ANO8dSDXeiApAkbPfqfmGuLH1pnvDtaIm1P6Aq8Op1di4/PDqe1T/eOHwoKOOIusqlMIEmbq/Lno0qEuTzZG130tPegDB5w7bWygX9wZ1ph4o7P/RpjoX1R74wPnSQh5KeGSLIjc/ovW0GHnSm1QsXr3OLEv581ZVISA== 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=U4tLnDW4B1R3ZBIehJg87OJSffGxMDCuWdVS9dxpNzQ=; b=iR+SjKEj0swSAUBHZfb8MqGqifge4kDGgpGykcuwDKfB7atN44qOm1EAQeuS4EfvjCuJMXsICDgyi1EIswFQuNhv3tzZwfI4PRd6NrTlrQ+hWBi5SLPn9qEKTHIsNX+lckp52xvjtKtnZ5beu1fDm0SxrK/pYLMFcjeRQ0+Qiuytw/Ama5btT3pRe5FEmQlJfuGYH+nKWVvtx+kdg50Cy/5CZXCskAGiI1m4I0LIg+678jVYpOnoNC2VVzjgdtYTNgbR6SALbgb+aToFQJ1sKLBDzIR8V9x1Jg9TsTyD2Zws9lYJQZKkS9JvUUBvmZUTsAFc4rmW9yHAPr45k0ay/Q== 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=U4tLnDW4B1R3ZBIehJg87OJSffGxMDCuWdVS9dxpNzQ=; b=mMPgknd/GjUN6zd1Zizv19pFiwxENk21Et2jZXkkVrxiaxbqzsyuQUdtQM/izhCIcTHbU9l7PweabjhNEEL3LDsFoQoSULDz9MzC0aXOM5eDpP2NSfCDPGwbun3k3RAe3NjHQp556lRnSqvS/WYMMOKeZJ8ldbIrKXkbezx4TOY= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=os.amperecomputing.com; Received: from PH0PR01MB7287.prod.exchangelabs.com (2603:10b6:510:10a::21) by MWHPR01MB2509.prod.exchangelabs.com (2603:10b6:300:3d::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6254.18; Wed, 29 Mar 2023 04:36:12 +0000 Received: from PH0PR01MB7287.prod.exchangelabs.com ([fe80::4904:fc7d:35e6:f99]) by PH0PR01MB7287.prod.exchangelabs.com ([fe80::4904:fc7d:35e6:f99%5]) with mapi id 15.20.6254.015; Wed, 29 Mar 2023 04:36:12 +0000 From: "Nhi Pham" To: devel@edk2.groups.io CC: patches@amperecomputing.com, quic_llindhol@quicinc.com, ardb+tianocore@kernel.org, Vu Nguyen , Nhi Pham Subject: [edk2-platforms][PATCH v2 1/9] AmpereAltraPkg: Correct PCIe Devmap Date: Wed, 29 Mar 2023 11:32:38 +0700 Message-ID: <20230329043246.495600-2-nhi@os.amperecomputing.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230329043246.495600-1-nhi@os.amperecomputing.com> References: <20230329043246.495600-1-nhi@os.amperecomputing.com> X-ClientProxiedBy: TY2PR0101CA0042.apcprd01.prod.exchangelabs.com (2603:1096:404:8000::28) To PH0PR01MB7287.prod.exchangelabs.com (2603:10b6:510:10a::21) Return-Path: nhi@os.amperecomputing.com MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH0PR01MB7287:EE_|MWHPR01MB2509:EE_ X-MS-Office365-Filtering-Correlation-Id: a3a0c78a-e87f-4f94-b831-08db300f1fa3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: CLWHZQmLaZUJxtg2KZ+oYM8topR0rySNEIs41DJ3c6nQeeQ7PTnxbZPFnwfDqQ5rLbnZYdY4puC360dqD5PifdrIg/PhjoHlixwZ2CzHdyYmSGFzgnyR8HogFagAkBqOvpXXWQpKIKhdVFMDrY/ubitHA25dYbmcEYiuGrt+H2rNS8/ORDnVa3VdJCLzDJS9bKLvR+4fE+eV9wOoUu+/us522CqPRByGugWH1UvTLykzoyIFy+RQdD9x7ClK6bk2ol1sqnl0w+k793OdrX/9YKhDbgBjYbcVQvtSdiZL67TS0hZmLYpjremUOTWuQyD6Oc8jtRu1D9MxoQE8+ScunjxgZwBfm+TVE3Osy1q5Iu9v6kHqba2WU118yVgxN6MafGEfxSly+x211tMNkN4O8mqpPmLdys2vLqZNp3p8zye4TvZcbBmwFUsMiXmcSkGeDEI8nXSP61ouqnqu7Bah5EGdUqYtLC29+YCiNt2MWByjwRjBuTegTQWADnVMtveC6ZGn/X/p77B1IpNu1xWx7EyLKsAp6AGE6xWtKXqTyDRgKzVYe1MnimJsu8RhMe/c8DlO+KspcHPdkc8IUY/YBGM54sqjP1FNwoU5flFjIp0GB1tq6CDFjByi8xGNVLcp X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR01MB7287.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(366004)(136003)(396003)(39850400004)(346002)(376002)(451199021)(6486002)(6666004)(52116002)(478600001)(107886003)(54906003)(6512007)(6506007)(186003)(83380400001)(4326008)(5660300002)(2616005)(41300700001)(8936002)(2906002)(1076003)(26005)(316002)(38350700002)(38100700002)(66946007)(66556008)(8676002)(66476007)(6916009)(86362001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?QoM/MaGUWCiHng2fa1odUCUkXIbvnOflSgJJ9DhxfhH3gtdJXp1uS5MhPtUH?= =?us-ascii?Q?pSs/0hDA9loPop/7L4aoILMy+RZ4bS/NnBTvDLRlPG9Px/9T0vvs9M9510Rq?= =?us-ascii?Q?eT3Keu4QthjUXRBOZVkIqlFq9nq+rYKyOVT8Eb2SKGmzC/JmNI90qHWAGyis?= =?us-ascii?Q?xhf/RNFCKyIMKqBWJHmDlS8hyMhXC6ykLo6QDT8vMomSThT8H5gpOl1OJHe+?= =?us-ascii?Q?U5Eo+LY9SAS/FNkQ7uoRdZiFaNPzy/cmdR/ttnQiCodnxxTuzuN+XKyVs/6R?= =?us-ascii?Q?zdxWppH77WEHU/n0n20bwuh80+D4QPZ4OZpAkGd8nV4ZbQgDx7HtgHy/u/Ul?= =?us-ascii?Q?k8Ez7PnBcivx2JebGjcnn+X1LlD3vWVCZGvNQdKmqhHN04i6dYddrh378hSF?= =?us-ascii?Q?LN03OQrtBP6+bMi1zpthMbD29UNsBOIRweObUFOsbSDU8gCzEtvvIfgQVpvE?= =?us-ascii?Q?zf3eSS7O+Q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VbAUJ?= =?us-ascii?Q?Ft7xT/r7bPGItBmn8PkTI6VXUiCj565Sc8SkgjAI0YLyYlBOYtuFxWpSeI3O?= =?us-ascii?Q?BRGGZFOWXvhhIGm2eQESLiybOr0s02EuDecZzJX3U39hbTcVK4fZ7F8ERYMh?= =?us-ascii?Q?k07mBQcx9ZbBKS/ubCF49Cf1aa0qIaODmDmn2CbHfbYB+R4XnN0kRpGDP58W?= =?us-ascii?Q?GvT5HPFDSVWoVZ7l3ZACKO8/RMiQKL7ZFX1SGX0plfqxLTLaJRcrDvfYz1rw?= =?us-ascii?Q?QULB6yiyeuAY89gTduVAZMM=3D?= X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: a3a0c78a-e87f-4f94-b831-08db300f1fa3 X-MS-Exchange-CrossTenant-AuthSource: PH0PR01MB7287.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Mar 2023 04:36:12.0094 (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: ijY+CWYHWoPOgBXjGe3VDugNkTbUvYdIc9bs0fLckwLfzs7kZmDGDp/lPA9wLOKlhlfcbS0kDTixQi0Qj0bABIUbnYUj+q+1aeIgCAEbdgI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR01MB2509 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain From: Vu Nguyen This corrects the high devmap of Root Complex (RC) that should be fetched from a high bifurcation. Signed-off-by: Nhi Pham --- .../Ampere/AmpereAltraPkg/Drivers/PcieInitPei/PcieInitPei.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Silicon/Ampere/AmpereAltraPkg/Drivers/PcieInitPei/PcieInitPei.= c b/Silicon/Ampere/AmpereAltraPkg/Drivers/PcieInitPei/PcieInitPei.c index 17f6112ea207..76d3f90aa833 100644 --- a/Silicon/Ampere/AmpereAltraPkg/Drivers/PcieInitPei/PcieInitPei.c +++ b/Silicon/Ampere/AmpereAltraPkg/Drivers/PcieInitPei/PcieInitPei.c @@ -1,6 +1,6 @@ /** @file =20 - Copyright (c) 2020 - 2021, Ampere Computing LLC. All rights reserved. + Copyright (c) 2020 - 2023, Ampere Computing LLC. All rights reserved. =20 SPDX-License-Identifier: BSD-2-Clause-Patent =20 @@ -94,7 +94,7 @@ BuildRootComplexData ( RootComplex =3D &mRootComplexList[RCIndex]; RootComplex->Active =3D ConfigFound ? RootComplexConfig.RCStatus[RCInd= ex] : TRUE; RootComplex->DevMapLow =3D ConfigFound ? RootComplexConfig.RCBifurcati= onLow[RCIndex] : 0; - RootComplex->DevMapHigh =3D ConfigFound ? RootComplexConfig.RCBifurcat= ionLow[RCIndex] : 0; + RootComplex->DevMapHigh =3D ConfigFound ? RootComplexConfig.RCBifurcat= ionHigh[RCIndex] : 0; RootComplex->Socket =3D RCIndex / AC01_PCIE_MAX_RCS_PER_SOCKET; RootComplex->ID =3D RCIndex % AC01_PCIE_MAX_RCS_PER_SOCKET; RootComplex->CsrBase =3D mCsrBase[RCIndex]; --=20 2.25.1