From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=40.107.3.75; helo=eur03-am5-obe.outbound.protection.outlook.com; envelope-from=pankaj.bansal@nxp.com; receiver=edk2-devel@lists.01.org Received: from EUR03-AM5-obe.outbound.protection.outlook.com (mail-eopbgr30075.outbound.protection.outlook.com [40.107.3.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 17B7F21962301 for ; Wed, 26 Dec 2018 02:15:31 -0800 (PST) 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:X-MS-Exchange-SenderADCheck; bh=XVPX26cf9zViEItdW74KZQz4crGOENQbCfsEw48Iyc0=; b=YpYwVnuCOuWP02FPZNN601ofI47L31+T8VK5AIwjdw3VRvT9J5qgftOpI5T8HWQF71VawuFlUFlGn6va2EKwRkeHRkaKQccefpdjFzeSF1LqQMXC+0e3UIlNTnGrJaONRE8yNCBBp1YhWFNj8KMAFL6lN5xc6cvgNbDp5FXv6Os= Received: from HE1PR0402MB3323.eurprd04.prod.outlook.com (10.167.125.20) by HE1PR0402MB2908.eurprd04.prod.outlook.com (10.175.32.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1471.20; Wed, 26 Dec 2018 10:15:27 +0000 Received: from HE1PR0402MB3323.eurprd04.prod.outlook.com ([fe80::d4f9:8911:1ef7:1a45]) by HE1PR0402MB3323.eurprd04.prod.outlook.com ([fe80::d4f9:8911:1ef7:1a45%4]) with mapi id 15.20.1446.027; Wed, 26 Dec 2018 10:15:26 +0000 From: Pankaj Bansal To: Ard Biesheuvel CC: Varun Sethi , Udit Kumar , linux-efi , "edk2-devel@lists.01.org" Thread-Topic: Uefi runtime property in device tree Thread-Index: AdSdAHln2aGWM5jFTve3sdWcE6wCvA== Date: Wed, 26 Dec 2018 10:15:26 +0000 Message-ID: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=pankaj.bansal@nxp.com; x-originating-ip: [92.121.36.198] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; HE1PR0402MB2908; 6:wYf1KQCgXHnjk+7D62dESztcQI7sMWbTbu/DwPGRplSZAvvYfIewpYOH5lsYJH3xu9+/9katY1TjkfgHNMbF/SidiVYG+sVc0HUOio0Eu2WQTBd92wvKUXgnL/ALuGlh4KRxFOJZMIxFrkueygNMER/wf3n3+Nl4pu+PJ+zsUmR4p1Se3T8UIWZO2GBhqq9tR7PlHykEY+zDU4BrX1YzJ9cRRLcCIJskvedJP+aL470peC+NANFwS1i06yYOhFiUuVNZtaMjCRbWtrKb0rHf/9xxl/koyCdZYsKYZ5XNHogm8TISHu+Zo8v2GbDlK/RDZ1VY8+fcSFU3B3ZrCyPcZZflZmRrT+qK7Si9iLd0eDfVbO0nDSJ60745rqMZtMYPeLYxpTKf+jiPefAz/C/0kx/etRc1Jbp3/atW/VWOAtxlhDDBpWnN69zHskgy88zI+s3KTvk1z4maaoFZUO1tKw==; 5:JeLKyFe2PwJg7/H13azG6mZPdP95JvSQkv2tg4Ky99lP2zl0oYKrPF+jHTCH9/aB0uY8KhclhaE3fBkyLcVkimKiA8GtPtWthFGCWZvWluvD77JwvT742ly/1sslJMlEzzJxfIC9yVPzqqTFYfXjqSNQ27TEklhLdcBHjTaBh10=; 7:kIjSDP1AXnwBUyUvAU5gF+qDZV6zK1CdTV6KKzNe/ezZwOKq3b5tROKfTIRq7VWgzw0jrSMIv3oJc3jVDJ0IIsxETE2K48ilrvc+u1ExWLvEmAskg8BLzaWSHk3qN7c/gT1aFnDIj6h4bEh13qKCYg== x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: 8d72d640-28d2-4332-56e5-08d66b1b0e62 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:HE1PR0402MB2908; x-ms-traffictypediagnostic: HE1PR0402MB2908: x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(3230021)(908002)(999002)(5005026)(6040522)(2401047)(8121501046)(10201501046)(93006095)(93001095)(3002001)(3231475)(944501520)(4982022)(52105112)(6055026)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123560045)(20161123562045)(20161123564045)(201708071742011)(7699051)(76991095); SRVR:HE1PR0402MB2908; BCL:0; PCL:0; RULEID:; SRVR:HE1PR0402MB2908; x-forefront-prvs: 0898A6E028 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39860400002)(366004)(136003)(396003)(376002)(346002)(189003)(199004)(256004)(6436002)(14444005)(6916009)(68736007)(53936002)(7736002)(478600001)(4744004)(71200400001)(305945005)(44832011)(25786009)(106356001)(71190400001)(486006)(55016002)(6306002)(9686003)(476003)(966005)(105586002)(102836004)(97736004)(8676002)(6116002)(81166006)(3846002)(81156014)(2906002)(14454004)(8936002)(74316002)(33656002)(86362001)(6506007)(66066001)(54906003)(26005)(99286004)(316002)(186003)(7696005)(5660300001)(4326008); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR0402MB2908; H:HE1PR0402MB3323.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: 4blQlgQ+OlxB4zBXOrbOi07Cr5l09GBEuivl3ohVYC9/U/Vf0eus0Ude+NuKl5qcRDZOdM5D/p0Ztglruf4ikxOxbs4KoD3j2jCN//ce7rd5Ox8ymLwLnP8txyBAhVv4sxepryg0A2EDGxqe2wc8C4/o3yNOVvz1UHgyAnKwWJ+H1m+twlYgfH/gEDk+b/EPIxk5UuOXsSr5YfFOZ+bSqzURCcXrwFzgbAUbDPX1O3ySyATGfq1PP67Dt5a7uLRnAdkXbXOHzpKdt3HRAPgDoy4lsjXz65TF8ZvIghHsR1FLVrJ/bVa2uP5LlWqhX80b spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8d72d640-28d2-4332-56e5-08d66b1b0e62 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Dec 2018 10:15:26.8181 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0402MB2908 X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: Uefi runtime property in device tree X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Dec 2018 10:15:32 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello Ard et al. I have a query regarding the device tree usage in UEFI. In our UEFI implementation for NXP SOCs, we are using device tree to detect= Non discoverable platform devices. Based on the device detected in device tree, a device instance is created a= nd the device's driver binds to that device's handle (a DXE driver or an UE= FI driver). if the device were to be used for runtime service, then we need to allocate= the memory for that device instance from runtime pool and set its virtual = address using EfiConvertPointer. To facilitate this, I wish to add an optional property to the device node "= uefi-runtime". If this property is present in device tree the UEFI firmware will allocate = the data from runtime pool for this device. Also firmware will disable/delete the node in device tree before passing on= to OS, so that OS doesn't use the device. I wish to know your thoughts on this. If this doesn't seem the right way, I= am happy to hear your suggestions. Thanks & Regards, Pankaj Bansal