summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp10b
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2018-05-24 16:00:14 -0400
committerTejal Kudav <tkudav@nvidia.com>2018-06-14 09:44:07 -0400
commitdbb8792baf2142626728abf909fb201144b9b56a (patch)
tree6ca5edfeb3f757bef86aaf6d6ebbf12b2c2aa748 /drivers/gpu/nvgpu/gp10b
parented65f1f26e2d0ca4a491215297b61d25b0c1493b (diff)
gpu: nvgpu: Move setting of BAR0_WINDOW to bus
Move setting of BAR0_WINDOW to bus HAL. Also moves the usage of spinlock to common code so that pramin_gk20a.[ch] can be deleted. JIRA NVGPU-588 Change-Id: I3ceabc56016711b2c93f31fedf07daa778a4873a Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1730890 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b')
-rw-r--r--drivers/gpu/nvgpu/gp10b/hal_gp10b.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/hal_gp10b.c b/drivers/gpu/nvgpu/gp10b/hal_gp10b.c
index 47986f1b..defec775 100644
--- a/drivers/gpu/nvgpu/gp10b/hal_gp10b.c
+++ b/drivers/gpu/nvgpu/gp10b/hal_gp10b.c
@@ -31,7 +31,6 @@
31#include "gk20a/mm_gk20a.h" 31#include "gk20a/mm_gk20a.h"
32#include "gk20a/dbg_gpu_gk20a.h" 32#include "gk20a/dbg_gpu_gk20a.h"
33#include "gk20a/css_gr_gk20a.h" 33#include "gk20a/css_gr_gk20a.h"
34#include "gk20a/pramin_gk20a.h"
35#include "gk20a/flcn_gk20a.h" 34#include "gk20a/flcn_gk20a.h"
36#include "gk20a/regops_gk20a.h" 35#include "gk20a/regops_gk20a.h"
37#include "gk20a/mc_gk20a.h" 36#include "gk20a/mc_gk20a.h"
@@ -559,8 +558,6 @@ static const struct gpu_ops gp10b_ops = {
559 .get_kind_pitch = gm20b_get_kind_pitch, 558 .get_kind_pitch = gm20b_get_kind_pitch,
560 }, 559 },
561 .pramin = { 560 .pramin = {
562 .enter = gk20a_pramin_enter,
563 .exit = gk20a_pramin_exit,
564 .data032_r = pram_data032_r, 561 .data032_r = pram_data032_r,
565 }, 562 },
566 .therm = { 563 .therm = {
@@ -656,6 +653,7 @@ static const struct gpu_ops gp10b_ops = {
656 .read_ptimer = gk20a_read_ptimer, 653 .read_ptimer = gk20a_read_ptimer,
657 .get_timestamps_zipper = nvgpu_get_timestamps_zipper, 654 .get_timestamps_zipper = nvgpu_get_timestamps_zipper,
658 .bar1_bind = gk20a_bus_bar1_bind, 655 .bar1_bind = gk20a_bus_bar1_bind,
656 .set_bar0_window = gk20a_bus_set_bar0_window,
659 }, 657 },
660#if defined(CONFIG_GK20A_CYCLE_STATS) 658#if defined(CONFIG_GK20A_CYCLE_STATS)
661 .css = { 659 .css = {