summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2014-01-24 03:50:48 -0500
committerDan Willemsen <dwillemsen@nvidia.com>2015-03-18 15:09:32 -0400
commit446a2ca5181ce9a5d8fe0c0824fba92d0c015412 (patch)
treeda3138b17c4998d53dbda7fd6f4e8c2784daf4f6 /drivers/gpu
parent141c9a55c5b46f453e045736d5fac40869d15a85 (diff)
video: tegra: host: Read GPU arch early
Read GPU architecture and implementation early. Bug 1387211 Change-Id: Iffc1aa013f28ec786b0325ae055d016cf004ee06 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/360237 (cherry picked from commit b7071920b90ff1b21a5d14039e609a95ba48bd64) Reviewed-on: http://git-master/r/359754
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c
index 0228a0c7..39ff605b 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.c
@@ -1648,15 +1648,6 @@ int gk20a_init_gpu_characteristics(struct gk20a *g)
1648{ 1648{
1649 struct nvhost_gpu_characteristics *gpu = &g->gpu_characteristics; 1649 struct nvhost_gpu_characteristics *gpu = &g->gpu_characteristics;
1650 1650
1651 u32 mc_boot_0_value;
1652 mc_boot_0_value = gk20a_readl(g, mc_boot_0_r());
1653 gpu->arch = mc_boot_0_architecture_v(mc_boot_0_value) <<
1654 NVHOST_GPU_ARCHITECTURE_SHIFT;
1655 gpu->impl = mc_boot_0_implementation_v(mc_boot_0_value);
1656 gpu->rev =
1657 (mc_boot_0_major_revision_v(mc_boot_0_value) << 4) |
1658 mc_boot_0_minor_revision_v(mc_boot_0_value);
1659
1660 gpu->L2_cache_size = g->ops.ltc.determine_L2_size_bytes(g); 1651 gpu->L2_cache_size = g->ops.ltc.determine_L2_size_bytes(g);
1661 gpu->on_board_video_memory_size = 0; /* integrated GPU */ 1652 gpu->on_board_video_memory_size = 0; /* integrated GPU */
1662 1653