public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH v2 0/1] Fix DT boot on rpi4
@ 2021-10-02  0:52 Jeremy Linton
  2021-10-02  0:52 ` [PATCH v2 1/1] Platform/RaspberryPi: Always use non translating DMA in DT mode Jeremy Linton
  0 siblings, 1 reply; 3+ messages in thread
From: Jeremy Linton @ 2021-10-02  0:52 UTC (permalink / raw)
  To: devel
  Cc: pete, ardb+tianocore, leif, awarkentin, Sunny.Wang,
	samer.el-haj-mahmoud, Jeremy Linton

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


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

end of thread, other threads:[~2021-10-05  9:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-02  0:52 [PATCH v2 0/1] Fix DT boot on rpi4 Jeremy Linton
2021-10-02  0:52 ` [PATCH v2 1/1] Platform/RaspberryPi: Always use non translating DMA in DT mode Jeremy Linton
2021-10-05  9:53   ` Ard Biesheuvel

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