Skip to content
Snippets Groups Projects
Forked from KED Software Projects / Miscellaneous / KED U-Boot Fork
Source project has a limited visibility.
  • Stephen Warren's avatar
    1382648b
    video: bcm2835: use bus_to_phys() on FB address · 1382648b
    Stephen Warren authored
    
    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:
    122426d4 ARM: bcm2835: use phys_to_bus() for mbox
    5c0beb5c usb: dwc2: use phys_to_bus/bus_to_phys
    79340db7 ARM: bcm2835: implement phys_to_bus/bus_to_phys
    
    Signed-off-by: default avatarStephen Warren <swarren@wwwdotorg.org>
    1382648b
    History
    video: bcm2835: use bus_to_phys() on FB address
    Stephen Warren authored
    
    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:
    122426d4 ARM: bcm2835: use phys_to_bus() for mbox
    5c0beb5c usb: dwc2: use phys_to_bus/bus_to_phys
    79340db7 ARM: bcm2835: implement phys_to_bus/bus_to_phys
    
    Signed-off-by: default avatarStephen Warren <swarren@wwwdotorg.org>