From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web12.5774.1633135954510601607 for ; Fri, 01 Oct 2021 17:52:34 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: jeremy.linton@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id EFE32D6E; Fri, 1 Oct 2021 17:52:23 -0700 (PDT) Received: from u200856.usa.arm.com (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id A3A323F766; Fri, 1 Oct 2021 17:52:23 -0700 (PDT) From: "Jeremy Linton" 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 Subject: [PATCH v2 0/1] Fix DT boot on rpi4 Date: Fri, 1 Oct 2021 19:52:13 -0500 Message-Id: <20211002005214.40227-1-jeremy.linton@arm.com> X-Mailer: git-send-email 2.26.3 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Some rpi4's haven't booted cleanly using DT for a few months. The primar= ly problem is that the XHCI_NOTIFY_RESET mailbox call doesn't seem to be abl= e 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 demand= s of it's DT, the XHCI won't function because its looking for an untranslat= ed 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 t= ry 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(+) --=20 2.13.7