summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.c2
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.h2
-rw-r--r--drivers/gpu/nvgpu/gk20a/hal_gk20a.c3
3 files changed, 5 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c
index b8753a21..fb0a6aa3 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.c
@@ -889,7 +889,7 @@ static int gk20a_pm_finalize_poweron(struct device *dev)
889 goto done; 889 goto done;
890 } 890 }
891 891
892 err = gk20a_init_gpu_characteristics(g); 892 err = g->ops.chip_init_gpu_characteristics(g);
893 if (err) { 893 if (err) {
894 gk20a_err(dev, "failed to init gk20a gpu characteristics"); 894 gk20a_err(dev, "failed to init gk20a gpu characteristics");
895 goto done; 895 goto done;
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h
index 8a1f82bc..ee78c6e2 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.h
@@ -511,6 +511,8 @@ struct gpu_ops {
511 void *scatter_buffer_ptr, 511 void *scatter_buffer_ptr,
512 size_t scatter_buffer_size); 512 size_t scatter_buffer_size);
513 } cde; 513 } cde;
514
515 int (*chip_init_gpu_characteristics)(struct gk20a *g);
514}; 516};
515 517
516struct gk20a { 518struct gk20a {
diff --git a/drivers/gpu/nvgpu/gk20a/hal_gk20a.c b/drivers/gpu/nvgpu/gk20a/hal_gk20a.c
index 9718aad2..6df8f37c 100644
--- a/drivers/gpu/nvgpu/gk20a/hal_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/hal_gk20a.c
@@ -3,7 +3,7 @@
3 * 3 *
4 * GK20A Tegra HAL interface. 4 * GK20A Tegra HAL interface.
5 * 5 *
6 * Copyright (c) 2014-2015, NVIDIA CORPORATION. All rights reserved. 6 * Copyright (c) 2014-2016, NVIDIA CORPORATION. All rights reserved.
7 * 7 *
8 * This program is free software; you can redistribute it and/or modify it 8 * This program is free software; you can redistribute it and/or modify it
9 * under the terms and conditions of the GNU General Public License, 9 * under the terms and conditions of the GNU General Public License,
@@ -70,6 +70,7 @@ int gk20a_init_hal(struct gk20a *g)
70 gk20a_init_debug_ops(gops); 70 gk20a_init_debug_ops(gops);
71 gk20a_init_therm_ops(gops); 71 gk20a_init_therm_ops(gops);
72 gops->name = "gk20a"; 72 gops->name = "gk20a";
73 gops->chip_init_gpu_characteristics = gk20a_init_gpu_characteristics;
73 74
74 c->twod_class = FERMI_TWOD_A; 75 c->twod_class = FERMI_TWOD_A;
75 c->threed_class = KEPLER_C; 76 c->threed_class = KEPLER_C;