Skip to content

ARM: tegra: GPU WPR region support

Alexandre Courbot linux-tegra u-boot 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4ARM: tegra: remove vpr_configured() functionarch/arm/include/asm/arch-tegra/gpu.h arch/arm/mach-tegra/gpu.c+1 -120 replies
2/4ARM: tegra: simplify GPU setuparch/arm/mach-tegra/board2.c board/nvidia/jetson-tk1/jetson-tk1.c board/nvidia/p2571/p2571.c +5 more+22 -290 replies
3/4ARM: tegra: rename GPU functionsarch/arm/include/asm/arch-tegra/gpu.h arch/arm/mach-tegra/board2.c arch/arm/mach-tegra/gpu.c+8 -81 reply
4/4ARM: tegra210: gpu: configure WPR regionarch/arm/include/asm/arch-tegra210/mc.h arch/arm/mach-tegra/board.c arch/arm/mach-tegra/gpu.c+62 -17 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchStephen Warren
1/4
2/4
3/4A-b
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] ARM: tegra: GPU WPR region support

This series makes U-boot program the write-protected (WPR) region of T210 chips, allowing the kernel to perform GPU secure firmware loading.

Tegra 210's GPU requires its firmware to be loaded though a write-protected region. An area of physical memory is carved-out, programmed into the corresponding memory controller registers, and locked such as only the GPU can write into it. This area needs to be set up by the bootloader since it cannot be re-claimed for normal use after being locked.

The first 3 patches of this series are cleanup patches. Patch 2 implements a suggestion made by Stephen, patch 3 renames GPU-related functions to sound less generic.

The last patch adds support for the GPU WPR region. The top 256KB of memory are removed from the available memory, and the corresponding MC registers are programmed to point to it, which allows the kernel to initiate secure firmware loading.

Alexandre Courbot (4):
ARM: tegra: remove vpr_configured() function
ARM: tegra: simplify GPU setup
ARM: tegra: rename GPU functions
ARM: tegra210: gpu: configure WPR region

 arch/arm/include/asm/arch-tegra/gpu.h   | 14 +++------
 arch/arm/include/asm/arch-tegra210/mc.h | 12 ++++++++
 arch/arm/mach-tegra/board.c             |  4 +++
 arch/arm/mach-tegra/board2.c            | 22 +++++++++++++-
 arch/arm/mach-tegra/gpu.c               | 52 +++++++++++++++++++++++++++++----
 board/nvidia/jetson-tk1/jetson-tk1.c    |  8 -----
 board/nvidia/p2571/p2571.c              |  7 -----
 board/nvidia/venice2/venice2.c          |  8 -----
 include/configs/jetson-tk1.h            |  2 --
 include/configs/p2571.h                 |  2 --
 include/configs/tegra-common.h          |  2 ++
 include/configs/venice2.h               |  2 --
 12 files changed, 89 insertions(+), 46 deletions(-)
Signature · 1 line
2.6.1