public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* Uefi runtime property in device tree
@ 2018-12-26 10:15 Pankaj Bansal
  2018-12-26 10:17 ` Pankaj Bansal
  2018-12-26 13:46 ` Ard Biesheuvel
  0 siblings, 2 replies; 5+ messages in thread
From: Pankaj Bansal @ 2018-12-26 10:15 UTC (permalink / raw)
  To: Ard Biesheuvel
  Cc: Varun Sethi, Udit Kumar, linux-efi, edk2-devel@lists.01.org

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 and the device's driver binds to that device's handle (a DXE driver or an UEFI 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 onto 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




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-12-27  9:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-26 10:15 Uefi runtime property in device tree Pankaj Bansal
2018-12-26 10:17 ` Pankaj Bansal
2018-12-26 13:46 ` Ard Biesheuvel
2018-12-27  9:53   ` Pankaj Bansal
2018-12-27  9:58     ` Ard Biesheuvel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox