From: Alexandre Courbot <acourbot-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
To: Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>,
Tom Warren <twarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>,
u-boot-0aAXYlwwYIKGBzrmiIFOJg@public.gmane.org
Cc: linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
gnurou-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
Alexandre Courbot
<acourbot-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
Subject: [PATCH 0/2] ARM: tegra: enable GPU DT node
Date: Thu, 9 Jul 2015 16:32:59 +0900 [thread overview]
Message-ID: <1436427181-23904-1-git-send-email-acourbot@nvidia.com> (raw)
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
next reply other threads:[~2015-07-09 7:32 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-09 7:32 Alexandre Courbot [this message]
[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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1436427181-23904-1-git-send-email-acourbot@nvidia.com \
--to=acourbot-ddmlm1+adcrqt0dzr+alfa@public.gmane.org \
--cc=gnurou-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org \
--cc=twarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org \
--cc=u-boot-0aAXYlwwYIKGBzrmiIFOJg@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).