From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=40.107.14.54; helo=eur01-ve1-obe.outbound.protection.outlook.com; envelope-from=pankaj.bansal@nxp.com; receiver=edk2-devel@lists.01.org Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-eopbgr140054.outbound.protection.outlook.com [40.107.14.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 913372119EF4C for ; Wed, 26 Dec 2018 02:17:39 -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=Y7QiWQd2zi1Ra6lY+r5vL1wjUQpHr9w0ubMULJfUI8g=; b=jywoKv8tyQbVoqcLyJMSkUrgs2cwwEoc+Urq4zrZJVYP5lCUMDg5aMs3FHsnIVnMNJaKaT+VVlUR0a2ycfp+KB9CHJVvvSHEp0ZTzx3rkzV2aJBT8kkdEqmQ00Iz+StQeWimqhQ6q6nuhg4LnweK1voMt8zqfYO36nB8AInL+Ec= Received: from HE1PR0402MB3323.eurprd04.prod.outlook.com (10.167.125.20) by HE1PR0402MB3436.eurprd04.prod.outlook.com (10.167.125.153) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1446.26; Wed, 26 Dec 2018 10:17:36 +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:17:36 +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: AdSdAHln2aGWM5jFTve3sdWcE6wCvAAA5WZg Date: Wed, 26 Dec 2018 10:17:35 +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=pankaj.bansal@nxp.com; x-originating-ip: [92.121.36.198] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; HE1PR0402MB3436; 6:ZE0nPDEZLj9aA+AklwFzC+TVwp3ES0Au6sIPS/o6BmpUOWH48lC1dYSLulgt+fKn55+iO++gKsVB6MQmFSqzWawffZgesAG6cNK3ec8TwYcPCVYAYRWOGWcOwJy8CiPVF5/4AX7qjWR5+e0wUuIeQiBMZyGzqqzfGoRRFFlWqV4zpCAQ8iQ42v5HoQWIM1LicdBFFXFmzLpykr0lx632Q//aw3E45S7xm/4Aup5rqds23D6b5u+DnkQd8V0vPSLqtvcbFDZGCM7g/Xxm0GgOx1Jjir8ZDNGUN1fe2exRc7kOTWK1ET6NFg7gMy4QQfRGk/X9SJ7G2oPss+I8Z0XIhTHTIsPn5KNGnoc6tPI5OB3nXP7lgo157kbOQXoAkKmlAXu32+Af1Urf9BB5wqt091oCzPniH7uXPZ0wE7iAswuND5HER3ceYwQG//PscNK6r3DBX8lx2BN7VbP6ik2cMw==; 5:fLxDURJgBTy7ANagVA4jtQFdzKTbckcS4pcmccMfBHjelo1jcg+Yy6Nwkg7DtMgOjkZEiVEWY+CQBYlyLkz1QrpSYwORZ+41YVE5J1TQx4Ap/b8zIrHMAlDsuNyUQ4wKQWi2KCy1S2ul+lHB7Drmw7EKzU9CPErHKzD5KVieuA4=; 7:RQrINH2XRaPela3dNTyRXuScsHOYhzmBzYREs0FsxGlt2LWa6+aUwucPFLrpp/utlQIopAFDO6KWWRx3SNnAW4IEvxlk12ShdOpXmE3dfucn461ryqNC0bw8DWMwFK3aW1bz4mTww2f8h7MLlgXmog== x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: 24713d88-4eaf-43bb-5312-08d66b1b5b60 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600098)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:HE1PR0402MB3436; x-ms-traffictypediagnostic: HE1PR0402MB3436: x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(3230021)(908002)(999002)(5005026)(6040522)(8220043)(2401047)(8121501046)(93006095)(93001095)(3231475)(944501520)(52105112)(10201501046)(3002001)(6055026)(6041310)(20161123564045)(20161123562045)(20161123558120)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051)(76991095); SRVR:HE1PR0402MB3436; BCL:0; PCL:0; RULEID:; SRVR:HE1PR0402MB3436; x-forefront-prvs: 0898A6E028 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(376002)(39860400002)(346002)(136003)(396003)(189003)(199004)(76176011)(99286004)(7696005)(3846002)(6506007)(26005)(186003)(102836004)(486006)(476003)(14454004)(256004)(14444005)(11346002)(446003)(44832011)(71200400001)(71190400001)(93156006)(105586002)(6916009)(106356001)(6116002)(6436002)(66066001)(25786009)(4326008)(55016002)(2906002)(53936002)(9686003)(305945005)(33656002)(316002)(54906003)(74316002)(5660300001)(478600001)(2940100002)(68736007)(7736002)(81156014)(81166006)(86362001)(8676002)(97736004)(8936002); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR0402MB3436; 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: SAJS+2CWab/h+dCGhBdEK5iVTv03pX2XFAv9OHr7l6ucdchfCe1giuTntkebF4PrCmyNp3VuUQ0PqenW+Mjksy3WuoOl0VyhH+IlEkstwNOUVeVekXyP72krUW6YE0hD7+/0VokODBqPZgL6rJ59YLjKSwG6t9UDkNhrDhNO9DwY8zk9lOJAgba5S9fmr9U/R06eI69hlXTc1Od6xrGr6TjOdkH4EvhklWjTVsY9fmpNIxTm33cV77kUHZMDkibmezpBXyt++CVdLEb3pCdZIQsLD9VrdoyoSi1CZs1aw14vN57SyFVUi3jd2lde3jUu spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 24713d88-4eaf-43bb-5312-08d66b1b5b60 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Dec 2018 10:17:35.9582 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0402MB3436 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:17:40 -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