[edk2-devel] [PATCH v2 0/1] Fix DT boot on rpi4

Jeremy Linton posted 1 patch 2 years, 7 months ago
Failed in applying to current master (apply log)
Platform/RaspberryPi/Drivers/FdtDxe/FdtDxe.c | 75 ++++++++++++++++++++++++++++
1 file changed, 75 insertions(+)
[edk2-devel] [PATCH v2 0/1] Fix DT boot on rpi4
Posted by Jeremy Linton 2 years, 7 months ago
Some rpi4's haven't booted cleanly using DT for a few months.  The primarly
problem is that the XHCI_NOTIFY_RESET mailbox call doesn't seem to be able
to correctly read the pcie translation state after we have set it up. So,
while linux appears to be able to adjust the PCIe subsystem to the demands
of it's DT, the XHCI won't function because its looking for an untranslated
DMA range to access(?) its firmware image in main RAM.

So, lets apply the same non-translated 3G limit to DT's we hand off, as
well as remove the XHCI reset controller info so that linux/etc doesn't try
to reload the firmware. This latter tweak is a bit non obvious, but seems
to cure the general problem.

V1->V2:
	Also remove the pci/usb node to keep Linux from
	trying to call the XHCI_NOTIFY_RESET mailbox.

Jeremy Linton (1):
  Platform/RaspberryPi: Always use non translating DMA in DT mode

 Platform/RaspberryPi/Drivers/FdtDxe/FdtDxe.c | 75 ++++++++++++++++++++++++++++
 1 file changed, 75 insertions(+)

-- 
2.13.7



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#81374): https://edk2.groups.io/g/devel/message/81374
Mute This Topic: https://groups.io/mt/86014857/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-