From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR03-DB5-obe.outbound.protection.outlook.com (EUR03-DB5-obe.outbound.protection.outlook.com []) by mx.groups.io with SMTP id smtpd.web12.162.1591741068665030484 for ; Tue, 09 Jun 2020 15:17:50 -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=i3YKlLPc; spf=fail (domain: oss.nxp.com, ip: , mailfrom: wasim.khan@oss.nxp.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jj9wGK+GapoPm/qdDs+cAX4BhKTM25zkMboTsgQG05HGDmthkYCvfO+Nw/efkrKCh+EOKPPvuxNQ8W3RAZ4eqQhIoeg3GuQVIwQPVTJkVlXVPrBwKZtVqScHl67Ke2gldYvhFhrn/nbct3y06SxtwmWuJt+GLqi2Sj2JlmhcCpIGeCR/f3SipPkO84ge0cTBd49+MMK/Y0DOUUiMg+svdId+d09k7o0rHrDJ32kk5lDGcTf3QHfrya53keYchpokyk5EAUk1+WsAi2tgSCQXyQ0wX5QVIu3NX5Ha9JdwtbHi5qhkGDQouh9bAEqdDRQPmaYes0DOGhzhrYSy7ueV+A== 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=Rka+rl91f5bv7YkkzJFa2OvoCM0QSKEEitb8XiDQQwU=; b=WL9uV2xicLJVsYY6DyTjinVzvC+fdlgOOYnml35cUP3F283TcjRrI4RjDXyZeQx3qjz4ZksB4nFv8y4tg6G4BvZ6MftgHp4GatcmjK301goYVws2d5cG6IgRguNWfh+xE2legdo/gc1o6OucvXKHfWGG/T0GgVjOBV47kBtrhWrnDJW7ZESdOS1C7m89albXGH8HEywSoRnqfe7hYdAPB9j4+YRsEbarvGw6gE/+49G/FGHQYiFKFy+braOzVuVDXe2ex3hxr8JOpIBRTSZu6vlSOwKBzT/Dt+eEwfsrH3O0p1eEnFBNppUP32wNXCCJbGxrLILZbLkN0kz1hfW/CA== 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=Rka+rl91f5bv7YkkzJFa2OvoCM0QSKEEitb8XiDQQwU=; b=i3YKlLPcn0DvIUXPsO8d8OoWFNJ3yQmC49wFEWADWFKtoDf+lwfMdA7Q+Veryb+W7xxPrXw1FyPKVLCcCOddazD5PG+1gT1GJQRDZrbpa9SpSe9mvoA5hwgKcxwUKGB0Gw4QS/MBAWAiWBa3CnjWoNHV6/CDZwBw7XgzQ8ZMvBE= 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 VE1PR04MB6493.eurprd04.prod.outlook.com (2603:10a6:803:11f::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3066.20; Tue, 9 Jun 2020 22:17:48 +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.3088.018; Tue, 9 Jun 2020 22:17:48 +0000 From: Wasim Khan To: devel@edk2.groups.io, meenakshi.aggarwal@nxp.com, V.Sethi@nxp.com, ard.biesheuvel@arm.com, leif@nuviainc.com CC: Wasim Khan Subject: [PATCH edk2-platforms 1/7] Platform/NXP: LX2160aRdbPkg: Add PCIe space in VirtualMemoryMap Date: Wed, 10 Jun 2020 03:47:24 +0530 Message-ID: <1591741050-11645-2-git-send-email-wasim.khan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1591741050-11645-1-git-send-email-wasim.khan@oss.nxp.com> References: <1591741050-11645-1-git-send-email-wasim.khan@oss.nxp.com> X-ClientProxiedBy: PN1PR0101CA0004.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c00:e::14) 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 localhost.localdomain (157.37.179.16) by PN1PR0101CA0004.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c00:e::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3088.18 via Frontend Transport; Tue, 9 Jun 2020 22:17:46 +0000 X-Mailer: git-send-email 2.7.4 X-Originating-IP: [157.37.179.16] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 316ce4be-01d3-4985-0e7e-08d80cc2f117 X-MS-TrafficTypeDiagnostic: VE1PR04MB6493: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1850; X-Forefront-PRVS: 042957ACD7 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: B5ptU2cVufDlpsuZWJvXKIf7vR46HjQANswnzxi30SfmOsygYNXMDiwJHhYilkqlf6Dt5stOe+1CeaV6ByqGJ4ZDd+L4mqfB0/Ke2zQqskxlSJo7m7bskyvMkMz33i1DR8xuEVtJ1iHkRRdBqpvy7dLlRQ6Tgo4dVNoObRtgsQtXeb+/AqkrPolhEgZahI9MDXhbK4miD/sByVxNy4kqwe2xIiuWBhAZ9m5VIbiza7ITKBNbotLsRq5xh3ogMYYabeUTyamQlDMmX+YvMBOfo2hF9p5e3tr647IzZQbmr50OmhSRHJQaG5gBqM4ij8ECmOLzdRowW6jt0kXzGcn4pkVozWLt+Pc616ugvhBRQjOcgkwQmHYqgNxC/v9hLv8r 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)(346002)(39860400002)(366004)(136003)(396003)(376002)(186003)(26005)(16526019)(478600001)(8676002)(4326008)(8936002)(86362001)(83380400001)(69590400007)(6666004)(66946007)(5660300002)(6486002)(316002)(2906002)(66476007)(2616005)(19627235002)(6512007)(52116002)(6506007)(66556008)(956004)(44832011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: VlGFUWk5aqxdhtv/BziZcVTmB3lEH2bA/+iPbcIJgbtJIBWbr03QFOThZ0qVuOgTXmskgpO1retInAN1qjVaNWybJwUJ7BelPzW5iykQrJB+p3igIIEk3CwU6SGoAM9LaYNV0TuvVcf3/NXPX3Jm9u6xbRXNLVqYN8ICCztvVvy7n90pmvztuaPpfNBsiOT6aJslJXQ6Re8kAuCgHqggRqGH09h6gnFY3IsVVZySqaCWg/K/z488eT62hEYsxtT/D8vaM7/UOg4+Wo5MZXz7A/dGiHsZQWzGT4WSalr5s9UPrszunZ4weHdB8t4MSpHDCp9KZ+3fDPqR29cQwDPTSWDURO6F07ItqWjEAs3RsDwRBUT8Zk0zH+UeZlEr3vFGdPrAO25SRS4zFzN1xbTPlm0RB262ez5ShNTeHevzkAcuBuMTrZLSorPD4ItUWoOkBRe1+QzEv9KerGNyK5SR7pNUz3fbX7XaELFLk/lztRng5+AjQxvUX3K5zR8XOhZV X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 316ce4be-01d3-4985-0e7e-08d80cc2f117 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jun 2020 22:17:48.3782 (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: q/tPKN0mNG7TOcTiVS7UTxMvsZyH5iRHyEIIe19YZcleJZ5878NeskE5aj8F6KrMMF1Lk6rCeny4+iMdtHgJeA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB6493 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain From: Wasim Khan Add PCIe space in VirtualMemoryMap Signed-off-by: Wasim Khan --- Silicon/NXP/LX2160A/Include/Soc.h | 8= +++++ Platform/NXP/LX2160aRdbPkg/Library/ArmPlatformLib/ArmPlatformLibMem.c | 38= +++++++++++++++++++- 2 files changed, 45 insertions(+), 1 deletion(-) diff --git a/Silicon/NXP/LX2160A/Include/Soc.h b/Silicon/NXP/LX2160A/Includ= e/Soc.h index 6c745d580a6d..7e6359485aaf 100644 --- a/Silicon/NXP/LX2160A/Include/Soc.h +++ b/Silicon/NXP/LX2160A/Include/Soc.h @@ -26,6 +26,14 @@ #define LX2160A_FSPI0_PHYS_ADDRESS (BASE_512MB) #define LX2160A_FSPI0_SIZE (SIZE_256MB) =20 +#define LX2160A_PCI1_PHYS_ADDRESS 0x8000000000 +#define LX2160A_PCI2_PHYS_ADDRESS 0x8800000000 +#define LX2160A_PCI3_PHYS_ADDRESS 0x9000000000 +#define LX2160A_PCI4_PHYS_ADDRESS 0x9800000000 +#define LX2160A_PCI5_PHYS_ADDRESS 0xa000000000 +#define LX2160A_PCI6_PHYS_ADDRESS 0xa800000000 +#define LX2160A_PCI_SIZE SIZE_32GB + #define LX2160A_DCFG_ADDRESS NXP_LAYERSCAPE_CHASSIS3V2_DCFG_ADDRES= S =20 // SVR diff --git a/Platform/NXP/LX2160aRdbPkg/Library/ArmPlatformLib/ArmPlatformL= ibMem.c b/Platform/NXP/LX2160aRdbPkg/Library/ArmPlatformLib/ArmPlatformLibM= em.c index 391dab265ad7..c03bc23f4a1d 100644 --- a/Platform/NXP/LX2160aRdbPkg/Library/ArmPlatformLib/ArmPlatformLibMem.c +++ b/Platform/NXP/LX2160aRdbPkg/Library/ArmPlatformLib/ArmPlatformLibMem.c @@ -12,7 +12,7 @@ #include #include =20 -#define MAX_VIRTUAL_MEMORY_MAP_DESCRIPTORS 6 +#define MAX_VIRTUAL_MEMORY_MAP_DESCRIPTORS 12 =20 /** Return the Virtual Memory Map of your platform @@ -71,6 +71,42 @@ ArmPlatformGetVirtualMemoryMap ( VirtualMemoryTable[Index].Length =3D LX2160A_FSPI0_SIZE; VirtualMemoryTable[Index++].Attributes =3D ARM_MEMORY_REGION_ATTRIBUTE_D= EVICE; =20 + // PCIe1 + VirtualMemoryTable[Index].PhysicalBase =3D LX2160A_PCI1_PHYS_ADDRESS; + VirtualMemoryTable[Index].VirtualBase =3D LX2160A_PCI1_PHYS_ADDRESS; + VirtualMemoryTable[Index].Length =3D LX2160A_PCI_SIZE; + VirtualMemoryTable[Index++].Attributes =3D ARM_MEMORY_REGION_ATTRIBUTE= _DEVICE; + + // PCIe2 + VirtualMemoryTable[Index].PhysicalBase =3D LX2160A_PCI2_PHYS_ADDRESS; + VirtualMemoryTable[Index].VirtualBase =3D LX2160A_PCI2_PHYS_ADDRESS; + VirtualMemoryTable[Index].Length =3D LX2160A_PCI_SIZE; + VirtualMemoryTable[Index++].Attributes =3D ARM_MEMORY_REGION_ATTRIBUTE= _DEVICE; + + // PCIe3 + VirtualMemoryTable[Index].PhysicalBase =3D LX2160A_PCI3_PHYS_ADDRESS; + VirtualMemoryTable[Index].VirtualBase =3D LX2160A_PCI3_PHYS_ADDRESS; + VirtualMemoryTable[Index].Length =3D LX2160A_PCI_SIZE; + VirtualMemoryTable[Index++].Attributes =3D ARM_MEMORY_REGION_ATTRIBUTE= _DEVICE; + + // PCIe4 + VirtualMemoryTable[Index].PhysicalBase =3D LX2160A_PCI4_PHYS_ADDRESS; + VirtualMemoryTable[Index].VirtualBase =3D LX2160A_PCI4_PHYS_ADDRESS; + VirtualMemoryTable[Index].Length =3D LX2160A_PCI_SIZE; + VirtualMemoryTable[Index++].Attributes =3D ARM_MEMORY_REGION_ATTRIBUTE= _DEVICE; + + // PCIe5 + VirtualMemoryTable[Index].PhysicalBase =3D LX2160A_PCI5_PHYS_ADDRESS; + VirtualMemoryTable[Index].VirtualBase =3D LX2160A_PCI5_PHYS_ADDRESS; + VirtualMemoryTable[Index].Length =3D LX2160A_PCI_SIZE; + VirtualMemoryTable[Index++].Attributes =3D ARM_MEMORY_REGION_ATTRIBUTE= _DEVICE; + + // PCIe6 + VirtualMemoryTable[Index].PhysicalBase =3D LX2160A_PCI6_PHYS_ADDRESS; + VirtualMemoryTable[Index].VirtualBase =3D LX2160A_PCI6_PHYS_ADDRESS; + VirtualMemoryTable[Index].Length =3D LX2160A_PCI_SIZE; + VirtualMemoryTable[Index++].Attributes =3D ARM_MEMORY_REGION_ATTRIBUTE= _DEVICE; + // End of Table ZeroMem (&VirtualMemoryTable[Index], sizeof (ARM_MEMORY_REGION_DESCRIPTO= R)); =20 --=20 2.7.4