diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2014-10-27 05:03:00 -0400 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-03-18 15:11:56 -0400 |
commit | 8371833f4273c2d4a6f923eb3270b4ab93967743 (patch) | |
tree | 92faf9b7bc19bdc14a5c46b25f3ab7acc6cf65e3 /drivers/gpu/nvgpu/gk20a/hal_gk20a.c | |
parent | eb690cb391ca0578a2c086eff5085f16c32f651e (diff) |
gpu: nvgpu: Per-chip interrupt processing
Move accesses to MC registers under HAL so that they can be
reimplemented per chip.
Do chip detection and HAL initialization only once.
Bug 1567274
Change-Id: I20bf2f439d267d284bfd536f1a1dfb5d5a2dce4c
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/590385
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/hal_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/hal_gk20a.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/hal_gk20a.c b/drivers/gpu/nvgpu/gk20a/hal_gk20a.c index 578b77bf..208c1ef0 100644 --- a/drivers/gpu/nvgpu/gk20a/hal_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/hal_gk20a.c | |||
@@ -23,6 +23,7 @@ | |||
23 | #include "channel_gk20a.h" | 23 | #include "channel_gk20a.h" |
24 | #include "gr_ctx_gk20a.h" | 24 | #include "gr_ctx_gk20a.h" |
25 | #include "mm_gk20a.h" | 25 | #include "mm_gk20a.h" |
26 | #include "mc_gk20a.h" | ||
26 | #include "pmu_gk20a.h" | 27 | #include "pmu_gk20a.h" |
27 | #include "clk_gk20a.h" | 28 | #include "clk_gk20a.h" |
28 | #include "regops_gk20a.h" | 29 | #include "regops_gk20a.h" |
@@ -48,6 +49,7 @@ int gk20a_init_hal(struct gpu_ops *gops) | |||
48 | { | 49 | { |
49 | *gops = gk20a_ops; | 50 | *gops = gk20a_ops; |
50 | gops->privsecurity = 0; | 51 | gops->privsecurity = 0; |
52 | gk20a_init_mc(gops); | ||
51 | gk20a_init_ltc(gops); | 53 | gk20a_init_ltc(gops); |
52 | gk20a_init_gr_ops(gops); | 54 | gk20a_init_gr_ops(gops); |
53 | gk20a_init_fb(gops); | 55 | gk20a_init_fb(gops); |