summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp106/hal_gp106.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2017-03-17 14:09:44 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-03-23 11:44:07 -0400
commit4492c62ffe9398bd4457f6f1c2773e40afe909fb (patch)
tree5d792f81d97844278f4eca665a8b4778fa93dc35 /drivers/gpu/nvgpu/gp106/hal_gp106.c
parent33f637585ecd617a9f4423f56e2aa6df0691ac64 (diff)
gpu: nvgpu: Add bus HAL
Add bus HAL and move all bus related hardware sequencing to that file: BAR1 binding, timer access, and interrupt handling. Change-Id: Ibc5f5797dc338de10749b446a7bdbcae600fecb4 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1323353 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp106/hal_gp106.c')
-rw-r--r--drivers/gpu/nvgpu/gp106/hal_gp106.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gp106/hal_gp106.c b/drivers/gpu/nvgpu/gp106/hal_gp106.c
index a05b71ab..36f72b12 100644
--- a/drivers/gpu/nvgpu/gp106/hal_gp106.c
+++ b/drivers/gpu/nvgpu/gp106/hal_gp106.c
@@ -21,6 +21,7 @@
21#include "gk20a/gk20a.h" 21#include "gk20a/gk20a.h"
22#include "gk20a/dbg_gpu_gk20a.h" 22#include "gk20a/dbg_gpu_gk20a.h"
23#include "gk20a/css_gr_gk20a.h" 23#include "gk20a/css_gr_gk20a.h"
24#include "gk20a/bus_gk20a.h"
24 25
25#include "gp10b/gr_gp10b.h" 26#include "gp10b/gr_gp10b.h"
26#include "gp10b/fecs_trace_gp10b.h" 27#include "gp10b/fecs_trace_gp10b.h"
@@ -223,6 +224,7 @@ int gp106_init_hal(struct gk20a *g)
223 gops->privsecurity = 1; 224 gops->privsecurity = 1;
224 gops->securegpccs = 1; 225 gops->securegpccs = 1;
225 gops->pmupstate = true; 226 gops->pmupstate = true;
227 gk20a_init_bus(gops);
226 gp10b_init_mc(gops); 228 gp10b_init_mc(gops);
227 gp106_init_gr(gops); 229 gp106_init_gr(gops);
228 gp10b_init_fecs_trace_ops(gops); 230 gp10b_init_fecs_trace_ops(gops);
@@ -251,7 +253,6 @@ int gp106_init_hal(struct gk20a *g)
251 gops->get_litter_value = gp106_get_litter_value; 253 gops->get_litter_value = gp106_get_litter_value;
252 gops->chip_init_gpu_characteristics = gp106_init_gpu_characteristics; 254 gops->chip_init_gpu_characteristics = gp106_init_gpu_characteristics;
253 gops->gr_ctx.use_dma_for_fw_bootstrap = true; 255 gops->gr_ctx.use_dma_for_fw_bootstrap = true;
254 gops->read_ptimer = gk20a_read_ptimer;
255 256
256 c->twod_class = FERMI_TWOD_A; 257 c->twod_class = FERMI_TWOD_A;
257 c->threed_class = PASCAL_B; 258 c->threed_class = PASCAL_B;