From: Anatolij Gustschin Date: Sat, 6 Feb 2016 19:13:21 +0100 Subject: [U-Boot] [PATCH] video: bcm2835: use bus_to_phys() on FB address In-Reply-To: <1454780563-4854-1-git-send-email-swarren@wwwdotorg.org> References: <1454780563-4854-1-git-send-email-swarren@wwwdotorg.org> Message-ID: <20160206191321.16f8dda7@crub> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Stephen, On Sat, 6 Feb 2016 10:42:43 -0700 Stephen Warren swarren at wwwdotorg.org wrote: > The FB address is generated by the firmware running on the GPU/VideoCore > and is a "bus" address. This address is the other side of an IOMMU from > the ARM upon which U-Boot is running. Use bus_to_phys() to convert this > to an ARM physical address. Without this, U-Boot seems to work just fine, > but once the Linux kernel boots on an RPi2, accessing the FB memory often > causes a hard system hang. > > This is related to: > 122426d46e31 ARM: bcm2835: use phys_to_bus() for mbox > 5c0beb5c58c8 usb: dwc2: use phys_to_bus/bus_to_phys > 79340db7f1f6 ARM: bcm2835: implement phys_to_bus/bus_to_phys > > Signed-off-by: Stephen Warren > --- > drivers/video/bcm2835.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) applied to u-boot-video/master, thanks! -- Anatolij