public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v2 0/5] Enable caches for the RPi2
@ 2016-03-16 14:41 Alexander Graf
  2016-03-16 14:41 ` [U-Boot] [PATCH v2 1/5] arm64: Add 32bit arm compatible dcache definitions Alexander Graf
                   ` (6 more replies)
  0 siblings, 7 replies; 23+ messages in thread
From: Alexander Graf @ 2016-03-16 14:41 UTC (permalink / raw)
  To: u-boot

This patch set converts the Raspberry Pi 2 system to properly make use of
the caches available in it.

Because we're running in HYP mode, we first need to teach U-Boot how to
make use of HYP registers and the LPAE page layout which is mandated by
hardware when running in HYP mode.

Then while we're at it, also mark the frame buffer cached to speed up
screen updates.

With this patch set, my Raspberry Pi 3 running in AArch32 mode is a *lot*
faster than without.

Please verify that the code works on a RPi2 as well and doesn't break the
original Pi. In theory it should work, but I only have a 3 to test on
available here.

v1 -> v2:

  - Move to KConfig
  - Adapt to new config name "CONFIG_ARMV7_LPAE"

Alexander Graf (5):
  arm64: Add 32bit arm compatible dcache definitions
  arm: Add support for HYP mode and LPAE page tables
  lcd: Fix compile warning in 64bit mode
  RPi: Enable caches for rpi2
  bcm2835 video: Map fb as cached

 arch/arm/cpu/armv7/Kconfig    |   8 ++++
 arch/arm/include/asm/system.h | 105 +++++++++++++++++++++++++++++++++++++++---
 arch/arm/lib/cache-cp15.c     |  66 +++++++++++++++++++++++---
 arch/arm/mach-bcm283x/Kconfig |   1 +
 arch/arm/mach-bcm283x/init.c  |   7 +++
 common/lcd.c                  |   4 +-
 drivers/video/bcm2835.c       |   6 +++
 include/configs/rpi_2.h       |   1 -
 8 files changed, 182 insertions(+), 16 deletions(-)

-- 
1.8.5.6

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

end of thread, other threads:[~2016-08-11 13:42 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-16 14:41 [U-Boot] [PATCH v2 0/5] Enable caches for the RPi2 Alexander Graf
2016-03-16 14:41 ` [U-Boot] [PATCH v2 1/5] arm64: Add 32bit arm compatible dcache definitions Alexander Graf
2016-03-27 22:25   ` [U-Boot] [U-Boot, v2, " Tom Rini
2016-03-16 14:41 ` [U-Boot] [PATCH v2 2/5] arm: Add support for HYP mode and LPAE page tables Alexander Graf
2016-03-27 22:25   ` [U-Boot] [U-Boot, v2, " Tom Rini
2016-03-16 14:41 ` [U-Boot] [PATCH v2 3/5] lcd: Fix compile warning in 64bit mode Alexander Graf
2016-03-27 22:25   ` [U-Boot] [U-Boot, v2, " Tom Rini
2016-03-16 14:41 ` [U-Boot] [PATCH v2 4/5] RPi: Enable caches for rpi2 Alexander Graf
2016-03-27 22:25   ` [U-Boot] [U-Boot,v2,4/5] " Tom Rini
2016-03-16 14:41 ` [U-Boot] [PATCH v2 5/5] bcm2835 video: Map fb as cached Alexander Graf
2016-03-22 15:22   ` [U-Boot] [PATCH v3 " Alexander Graf
2016-03-24  0:27   ` [U-Boot] [PATCH v4 " Alexander Graf
2016-03-24  2:05     ` Stephen Warren
2016-03-24  7:33       ` Alexander Graf
2016-03-24  9:31   ` [U-Boot] [PATCH v5 " Alexander Graf
2016-03-25  3:28     ` Stephen Warren
2016-03-27 22:30     ` [U-Boot] [U-Boot,v5,5/5] " Tom Rini
2016-03-17  4:26 ` [U-Boot] [PATCH v2 0/5] Enable caches for the RPi2 Stephen Warren
2016-03-17  5:35   ` Alexander Graf
2016-03-17  7:58   ` Alexander Graf
2016-03-19  2:12     ` Stephen Warren
2016-03-25  4:13 ` Stephen Warren
2016-08-11 13:42   ` Alexander Graf

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