From: "Jeremy Linton" <jeremy.linton@arm.com>
To: devel@edk2.groups.io
Cc: pete@akeo.ie, ardb+tianocore@kernel.org, leif@nuviainc.com,
awarkentin@vmware.com, Sunny.Wang@arm.com,
samer.el-haj-mahmoud@arm.com,
Jeremy Linton <jeremy.linton@arm.com>
Subject: [PATCH v2 0/1] Fix DT boot on rpi4
Date: Fri, 1 Oct 2021 19:52:13 -0500 [thread overview]
Message-ID: <20211002005214.40227-1-jeremy.linton@arm.com> (raw)
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
next reply other threads:[~2021-10-02 0:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-02 0:52 Jeremy Linton [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211002005214.40227-1-jeremy.linton@arm.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox