From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (EUR05-AM6-obe.outbound.protection.outlook.com [40.107.22.52]) by mx.groups.io with SMTP id smtpd.web11.46883.1590482280758673085 for ; Tue, 26 May 2020 01:38:01 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@nxp1.onmicrosoft.com header.s=selector2-nxp1-onmicrosoft-com header.b=FvbRroqu; spf=pass (domain: oss.nxp.com, ip: 40.107.22.52, mailfrom: wasim.khan@oss.nxp.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QhGTif+qAWKAc3jH/McEpfJ2rmMYJ6aE3Ln3jb12hRJ++ZV6yVRlx2cO9xCTXHfr1m7pqjgsNi3XtFD6ngsjZ+C5qpoL0iHENdDypHbmoaxjnhifHbHzW+rTDil5fVoAGuIKA1vsk57MECiuYgb7SUp2W5lJkpkon2pD3MoqmGNGnlQE7yJK7Gs+wYpUNPu00bZZ5DZDSM3AJQDf1DiPwwQp5Y5xKIsL0jvLyZHOLjZfUeCm6yQ1Mjf0/51N+aQ7oZRXPjwtBDPJHLv6Yiqqz8B3M4R3VHaeBvXeJclIxFySWB/COAl5njFIrs/LMUlUEMsq9ozViZnbienuMxUSEw== 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-SenderADCheck; bh=v5/rQMEa32LmxTFLpxSL6Prtx8GKDXjplb4RVnnM5wU=; b=Oow5CYCOREpGrt4kcqC0aClvnY11sQt9aJqUA5ErVt1HKuqP2GL/Vogg8eevgTP/1mXM14qmBihk353YHCT17KsukZmTc0ltpCniVB8UEUy2jxrac1OTNEv2j4lR7HMZ57CSu3FgsY97VOHozoHMKW8KWOEJPLoy4hlkwyCCWx7EHoWRtTmJSGvk6TQ2oMmfkN+FItOmftTsCEY5SLqaEynHzpGY8xBcUEUZJGIEzN44OEkp1fjmqJEWGmbXzk5s3nHeJXvU1mjGw7pz8A81hI4wKiC/5pkdp0DydK5joLnEqBB5ZDBPmXDs5h5at+3mMar3dW5R7AyBkxqWZKsXzw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=v5/rQMEa32LmxTFLpxSL6Prtx8GKDXjplb4RVnnM5wU=; b=FvbRroqutbWq1t8mkoQAuHB4wCnFlCJVRUTQ+cBM9vAtO0b883kHZV5ME0STZpF+Vw6wP18pLrBZGRiJMrR0OTBc070y6xX4+HV59fH9YT231TPRkyiW5fdN90P694DKbTF/Zl/+hqYj7k8AdpVduPZG5MQF0SpOUcJRt/PORVQ= Authentication-Results: edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=none action=none header.from=oss.nxp.com; Received: from VE1PR04MB6702.eurprd04.prod.outlook.com (2603:10a6:803:123::13) by VE1PR04MB6367.eurprd04.prod.outlook.com (2603:10a6:803:11a::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3021.27; Tue, 26 May 2020 08:37:58 +0000 Received: from VE1PR04MB6702.eurprd04.prod.outlook.com ([fe80::81c4:97a6:7592:f225]) by VE1PR04MB6702.eurprd04.prod.outlook.com ([fe80::81c4:97a6:7592:f225%7]) with mapi id 15.20.3021.029; Tue, 26 May 2020 08:37:58 +0000 From: Wasim Khan To: devel@edk2.groups.io, meenakshi.aggarwal@nxp.com, vabhav.sharma@nxp.com, V.Sethi@nxp.com, ard.biesheuvel@arm.com, leif@nuviainc.com, jon@solid-run.com CC: Wasim Khan Subject: [PATCH edk2-platforms v2 00/16] Add PCIe Support Date: Tue, 26 May 2020 14:07:05 +0530 Message-ID: <1590482241-13132-1-git-send-email-wasim.khan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 X-ClientProxiedBy: BM1PR0101CA0015.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:18::25) To VE1PR04MB6702.eurprd04.prod.outlook.com (2603:10a6:803:123::13) Return-Path: wasim.khan@oss.nxp.com MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from wasimk-VirtualBox.nxp.com (171.79.147.152) by BM1PR0101CA0015.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:18::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3021.23 via Frontend Transport; Tue, 26 May 2020 08:37:55 +0000 X-Mailer: git-send-email 2.7.4 X-Originating-IP: [171.79.147.152] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: d842284a-2793-4e71-753f-08d80150178e X-MS-TrafficTypeDiagnostic: VE1PR04MB6367: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1468; X-Forefront-PRVS: 041517DFAB X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: lZkB44cYu2slDgL0Xq1b79m9u3NNZ+5SsXP1laOhhEooQl3OWzAkrxBh9iMAN7a+VwApuYNl4XOpsTuCDZB4uYL7aUJf/traJMGOVdSlB4IKW8Y3vx7CmvDb7kuWt8kYb1qvq/tY9RkhaPHh0+5ysNGAoiijYaadvjfy7VtZF2BjQ5XQeJtDkwuWB8oFoqUhMmDl0CxSJtfI0Y7yB1uDBeQ7wlGnKE1BxyKcZKHTnVjMkTlx8qhodrGk55f6Azzp0jr1xPthED4izilNoE9T1L9qFmPUEJVXTZZodGfTjDpwyaDAII/ThddmT72W08k2dhNJIh9cS3NJioYrr0ijfffl7v9Xelk9BaGVIT0ONzIlQA69j7rUTov+NIUt7zH2B9/7wsi7CZJckFaVEyvBCA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VE1PR04MB6702.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(4636009)(376002)(396003)(346002)(39860400002)(366004)(136003)(478600001)(6666004)(66946007)(86362001)(956004)(66476007)(44832011)(5660300002)(19627235002)(66556008)(316002)(2616005)(8936002)(2906002)(8676002)(6506007)(4326008)(16526019)(6486002)(52116002)(26005)(186003)(6512007)(966005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: MRrsRKJXoZ3bUhiMTwuyL0wIP00MLmvhshFZ2yLAXamNGuUW1oCVlxdzzLQguaKV6TaXGaNSgJ9cjKrirTKK5C1fELdYxIVW2oINOkqeH0oLOzX0eNqbz6EXJYWEFfG2162Fpqa4Ggp1jAaMNXLPMPLACz5KcbpojJ0hsl95NG9FdO6x4b/uXRrqbAt2RaMTBYbEJvseY92IygQLI/cOaXWGTbU79ZqR1M8wfuOG5aqWKtcvScUII8RjxRdaB5MheioHi8N9wFYwRkaY0WK5JvUpOA//TCNst0GDT+EHzaDHvMEiJShf/5eE2j4iCcgDclE34NNBuj+EStpdBxhR6fwsC7GMJlIeLRFeEZznoJAgu1Bjb9gGJI1kPvbUujYrZbBdbHFgsnIXw4RyksDh21ljpBjHfqwA6l2+VKTvFYxvM4YV+7jT2gd6cNnuaMAZ9F8ukY7lBYxkKrmX4SCy5C3OT3x3TeSofDv83U5XNyjeu5+fwzRbwSJfhIYQis7s X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d842284a-2793-4e71-753f-08d80150178e X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 May 2020 08:37:58.1686 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: dOWeQYiJaVwgTYymbVhKQMQvSCoJaahseJ+PUuYH2yB8fWx681JiUiRzB9q7QTNNtTFe38+oCvZFuD8np6nrUg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB6367 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable From: Wasim Khan Add PCIe Support for NXP Layerscape SoC which supports different PCIe controllers. Use generic PCIe drivers and wire up PciHostBridgeLib, PciSegmentLib and PciCpuIo2Dxe driver for controller specific implementation. V1 Series can be referred here: https://edk2.groups.io/g/devel/message/60116?p=3D,,,20,0,0,0::relevance,,PC= Ie+Support,20,2,0,74395799 Changes in V2: - Addressed review comments received on V1. Meenakshi Aggarwal (1): Platform/NXP: LS1043aRdbPkg: Enable NetworkPkg Wasim Khan (15): Silicon/NXP/NxpQoriqLs.dec: Add PCIe related PCDs. Silicon/NXP: LS1043A: Define PCIe related PCDs Silicon/NXP: Implement PciHostBridgeLib support Silicon/NXP: PciHostBridgeLib: CFG Shift feature support for PCIeLS Ctrl Silicon/NXP: PciHostBridgeLib: Setup PCIe LsGen4 Controller and ATU Windows Silicon/NXP: PciHostBridgeLib: add Workaround for A-011451 Silicon/NXP: PciHostBridgeLib: Dump Layerscale Gen4 ATU windows Silicon/NXP: PciHostBridgeLib: Dump Layerscale iATU windows Silicon/NXP: Implement PciSegmentLib for PCIe Layerscape Controller Silicon/NXP: PciSegmentLib: Add ECAM config support for PCIe LS Controller Silicon/NXP: PciSegmentLib: Add support PCIe LsGen4 Controller Silicon/NXP: PciSegmentLib: LsGen4Ctrl: Add Workaround for A-011264 Silicon/NXP/Drivers: Implement PciCpuIo2Dxe Driver Platform/NXP: LS1043aRdbPkg: Enable PCIE support Platform/NXP: LS1043aRdbPkg : Increase fv image size Silicon/NXP/NxpQoriqLs.dec | 12 + Silicon/NXP/LS1043A/LS1043A.dsc.inc | 7 + Platform/NXP/LS1043aRdbPkg/LS1043aRdbPkg.dsc | 20 + Platform/NXP/LS1043aRdbPkg/LS1043aRdbPkg.fdf | 20 +- Silicon/NXP/Drivers/PciCpuIo2Dxe/PciCpuIo2Dxe.inf | 40 + Silicon/NXP/Library/PciHostBridgeLib/PciHostBridgeLib.inf | 43 + Silicon/NXP/Library/PciSegmentLib/PciSegmentLib.inf | 36 + Silicon/NXP/Include/Pcie.h | 228 ++++++ Silicon/NXP/Drivers/PciCpuIo2Dxe/PciCpuIo2Dxe.c | 628 ++++++++++= +++++ Silicon/NXP/Library/PciHostBridgeLib/PciHostBridgeLib.c | 830 ++++++++++= ++++++++++ Silicon/NXP/Library/PciSegmentLib/PciSegmentLib.c | 699 ++++++++++= +++++++ 11 files changed, 2560 insertions(+), 3 deletions(-) create mode 100755 Silicon/NXP/Drivers/PciCpuIo2Dxe/PciCpuIo2Dxe.inf create mode 100644 Silicon/NXP/Library/PciHostBridgeLib/PciHostBridgeLib.i= nf create mode 100755 Silicon/NXP/Library/PciSegmentLib/PciSegmentLib.inf create mode 100755 Silicon/NXP/Include/Pcie.h create mode 100755 Silicon/NXP/Drivers/PciCpuIo2Dxe/PciCpuIo2Dxe.c create mode 100644 Silicon/NXP/Library/PciHostBridgeLib/PciHostBridgeLib.c create mode 100755 Silicon/NXP/Library/PciSegmentLib/PciSegmentLib.c --=20 2.7.4