linux-tegra.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] ARM: tegra: enable GPU DT node
@ 2015-07-09  7:32 Alexandre Courbot
       [not found] ` <1436427181-23904-1-git-send-email-acourbot-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 13+ messages in thread
From: Alexandre Courbot @ 2015-07-09  7:32 UTC (permalink / raw)
  To: Stephen Warren, Tom Warren, u-boot-0aAXYlwwYIKGBzrmiIFOJg
  Cc: linux-tegra-u79uwXL29TY76Z2rM5mHXA, gnurou-Re5JQEeQqe8AvxtiuMwx3w,
	Alexandre Courbot

Tegra124 requires the bootloader to perform VPR initialization, otherwise the
GPU cannot be used by the system. Since using the GPU without that
initialization results in a hang, the GPU DT node is left disabled, and it is
the task of the bootloader to enable it after ensuring it is safe to use the
GPU.

VPR init is already performed since patch df3443dfa449, but the device tree was
left untouched. This patch series performs this last step and prepares the GPU
intialization code to receive more code for newer chips.

Patch 1 of this series moves the GPU initialization code to a more generic
place, since newer chips like T210 require extra steps to initialize the GPU
(e.g. WPR setup). It also performs VPR initialization at a later time of the
bootloader life, so that we can check the status variable right before booting
the kernel and patch the DT accordingly.

Patch 2 performs the DT patching using the ft_board_setup() hook.

Alexandre Courbot (2):
  ARM: tegra: move VPR configuration to a later stage
  ARM: tegra: enable GPU DT node when appropriate

 arch/arm/include/asm/arch-tegra/ap.h  |  9 -----
 arch/arm/include/asm/arch-tegra/gpu.h | 43 +++++++++++++++++++++++
 arch/arm/mach-tegra/Makefile          |  2 +-
 arch/arm/mach-tegra/ap.c              |  3 --
 arch/arm/mach-tegra/board2.c          |  3 ++
 arch/arm/mach-tegra/gpu.c             | 66 +++++++++++++++++++++++++++++++++++
 arch/arm/mach-tegra/vpr.c             | 35 -------------------
 board/nvidia/jetson-tk1/jetson-tk1.c  |  8 +++++
 board/nvidia/venice2/venice2.c        |  8 +++++
 include/configs/jetson-tk1.h          |  2 ++
 include/configs/tegra124-common.h     |  3 ++
 include/configs/venice2.h             |  2 ++
 12 files changed, 136 insertions(+), 48 deletions(-)
 create mode 100644 arch/arm/include/asm/arch-tegra/gpu.h
 create mode 100644 arch/arm/mach-tegra/gpu.c
 delete mode 100644 arch/arm/mach-tegra/vpr.c

-- 
2.4.4

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

end of thread, other threads:[~2015-08-06 15:07 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-09  7:32 [PATCH 0/2] ARM: tegra: enable GPU DT node Alexandre Courbot
     [not found] ` <1436427181-23904-1-git-send-email-acourbot-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2015-07-09  7:33   ` [PATCH 1/2] ARM: tegra: move VPR configuration to a later stage Alexandre Courbot
2015-07-09  7:33   ` [PATCH 2/2] ARM: tegra: enable GPU DT node when appropriate Alexandre Courbot
2015-07-23 11:46   ` [U-Boot] [PATCH 0/2] ARM: tegra: enable GPU DT node Andreas Färber
     [not found]     ` <55B0D427.2000704-l3A5Bk7waGM@public.gmane.org>
2015-07-23 17:51       ` Andreas Färber
2015-07-23 18:49       ` Mikko Perttunen
2015-07-24 13:07       ` Peter Robinson
     [not found]         ` <CALeDE9OJgJqRkkx+G_iOuyYGyxROyLR6LCLQ8aAEJ356DgA3AQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-08-04  9:01           ` Alexandre Courbot
2015-08-04 13:56       ` Andreas Färber
     [not found]         ` <55C0C474.5090200-l3A5Bk7waGM@public.gmane.org>
2015-08-04 15:40           ` Tom Warren
2015-08-04 23:24         ` Tom Warren
     [not found]           ` <17113c2735bb46caa20531a106f8e15d-wO81nVYWzR66sJks/06JalaTQe2KTcn/@public.gmane.org>
2015-08-06  7:57             ` Alexandre Courbot
     [not found]               ` <55C31377.2010204-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2015-08-06 15:07                 ` Tom Warren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).