From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0614.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe1e::614]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 980731A1ECF for ; Thu, 15 Sep 2016 01:45:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=dG52fzLY/CyGZHo1Q+NzUQpdLppG5IuMkTNCXGIa88k=; b=ihEB43ctFCclcO0wmxreHtv3X70rA1ASyps8LvKrWe16EGuBUjU1NskGuWWOC627wdHlwXneGqtuLvDqh7f7NVNckHVsKB6QLMmQwhMKeNCaPILyvoLTGcX13dP7lzcOzcm9rzL1EiAtjvC9gaDBMtwabB3hfCVGmN5tK9CL9lE= Received: from VI1PR04MB2173.eurprd04.prod.outlook.com (10.166.43.147) by HE1PR0401MB2299.eurprd04.prod.outlook.com (10.168.32.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.629.6; Thu, 15 Sep 2016 08:45:11 +0000 Received: from VI1PR04MB2173.eurprd04.prod.outlook.com ([10.166.43.147]) by VI1PR04MB2173.eurprd04.prod.outlook.com ([10.166.43.147]) with mapi id 15.01.0629.006; Thu, 15 Sep 2016 08:45:10 +0000 From: Sakar Arora To: "edk2-devel@lists.01.org" Thread-Topic: Exporting discontiguous System Memory to EFI STUB Thread-Index: AQHSDxksWkz+miXOZ0idgVUkRmEEj6B6PL3s Date: Thu, 15 Sep 2016 08:45:10 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=sakar.arora@nxp.com; x-originating-ip: [25.166.38.4] x-ms-office365-filtering-correlation-id: 566d7e35-a648-4418-9f8d-08d3dd449a8f x-microsoft-exchange-diagnostics: 1; HE1PR0401MB2299; 6:keozArTnTQx1kBpXLNMRHa4bNyfp15E05iqDCLL/A/Qi4n5FLTb8vwkyN/nzrpPHFDkpK2I4c/xmWFnyFHrAwSH2hsU52MhhqFYC2EWBZ/0GvZTijjDxw9/TkV5P2J5tIxEmOKikIVnZjlfcijRD8M8c6fzJ050S/yEUA3j/aEym9DZGJW6/4a/fDr83DJjNa8boXaCVUeOIBbCcGtxCkdUxKEvpRieVyacrvhgZdlLCGVGcQ7U4o3/LFrp5q6iBfA7L6t+jP9oPvKv/O6hK7OA2Jn7MbBhU9yOffQTDFJDNNJgvaGiJUYDBAK7Q0udMNDTs/W2qtO6K7tFDpv3Dng==; 5:lJjne3vjSZKX4ZVQOIVyLDeDpmh/aobq5y+m9Fj9X3goFL9VvLpStuvS5Qi0yrY1xgRn+8N8lSQnjTXDulfiMyA2ySe8jezdeclcCFJm5N0zsDwi8byFPMeWM/cxZeiWOzLbCkgEDAE3OuAPlikGog==; 24:I/ZDOppHtCElRIW2VbDLbNzo60nWqHrfrakUrV92RHwfYlZZiXsT1/BgQRmEIa2Oh591u0EPKljAXxP64gA0z2yMtB7nK3G62iqj2Ak7Il0=; 7:GzC3BBPBX+yiJfOzFl1bwQZaNAGFisDjZN3olpkM+4oKg+yHgvCVaKIbLA6+fuBpghlLHgApRc3AI1I8Ok89CMEDQsCyMrjK79bgScAeAb7n/nc7qgmon8N92/PXNcRCVCd4RlHSlNb2g/KJJtrV8m4do1Rjb6XOl8ICmnAgSOIlzwZ8b0PgbQCBYLEdXsva3wOoBPNzv3SXyyURtt6WzuCdRkldIyNRV8e3WQfMKyz0pNc76WNq/kw1USTEf4Gq x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:HE1PR0401MB2299; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6055026); SRVR:HE1PR0401MB2299; BCL:0; PCL:0; RULEID:; SRVR:HE1PR0401MB2299; x-forefront-prvs: 0066D63CE6 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(7916002)(199003)(189002)(101416001)(106356001)(106116001)(81166006)(229853001)(81156014)(5660300001)(54356999)(105586002)(9686002)(2900100001)(76176999)(77096005)(2950100001)(50986999)(8676002)(10400500002)(68736007)(97736004)(3660700001)(6116002)(3846002)(7696004)(110136003)(102836003)(33656002)(4326007)(76576001)(586003)(16236675004)(2906002)(450100001)(2351001)(189998001)(5002640100001)(92566002)(2501003)(87936001)(86362001)(7736002)(3280700002)(8936002)(122556002)(66066001)(74316002)(305945005)(7846002); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR0401MB2299; H:VI1PR04MB2173.eurprd04.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Sep 2016 08:45:10.7458 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0401MB2299 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 Subject: Exporting discontiguous System Memory to EFI STUB X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Sep 2016 08:45:15 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi This is in aarch64 UEFI context. The efi stub code ignores any memory nodes in the device tree. It only reli= es on the UEFI memory map for memory info. In such a scenario, how can one export discontiguous regions of system memo= ry to the efi stub? There seems to be only one way to inform UEFI about sys= tem memory, via PcdSystemMemoryBase. Looking at the latest Arm Juno code, it seems like building a memory resour= ce descriptor hob, for the extra memory region, does the trick. Would that = be the best way to go? Suggestions please. Thanks, Sakar