summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gv100
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/gv100
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/gv100')
-rw-r--r--drivers/gpu/nvgpu/gv100/hal_gv100.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gv100/hal_gv100.c b/drivers/gpu/nvgpu/gv100/hal_gv100.c
index 00c992bc..ac68bff3 100644
--- a/drivers/gpu/nvgpu/gv100/hal_gv100.c
+++ b/drivers/gpu/nvgpu/gv100/hal_gv100.c
@@ -31,7 +31,6 @@
31#include "gk20a/css_gr_gk20a.h" 31#include "gk20a/css_gr_gk20a.h"
32#include "gk20a/mc_gk20a.h" 32#include "gk20a/mc_gk20a.h"
33#include "gk20a/dbg_gpu_gk20a.h" 33#include "gk20a/dbg_gpu_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/fb_gk20a.h" 36#include "gk20a/fb_gk20a.h"
@@ -659,8 +658,6 @@ static const struct gpu_ops gv100_ops = {
659 .get_flush_retries = gv100_mm_get_flush_retries, 658 .get_flush_retries = gv100_mm_get_flush_retries,
660 }, 659 },
661 .pramin = { 660 .pramin = {
662 .enter = gk20a_pramin_enter,
663 .exit = gk20a_pramin_exit,
664 .data032_r = pram_data032_r, 661 .data032_r = pram_data032_r,
665 }, 662 },
666 .therm = { 663 .therm = {
@@ -796,6 +793,7 @@ static const struct gpu_ops gv100_ops = {
796 .read_ptimer = gk20a_read_ptimer, 793 .read_ptimer = gk20a_read_ptimer,
797 .get_timestamps_zipper = nvgpu_get_timestamps_zipper, 794 .get_timestamps_zipper = nvgpu_get_timestamps_zipper,
798 .bar1_bind = NULL, 795 .bar1_bind = NULL,
796 .set_bar0_window = gk20a_bus_set_bar0_window,
799 }, 797 },
800#if defined(CONFIG_GK20A_CYCLE_STATS) 798#if defined(CONFIG_GK20A_CYCLE_STATS)
801 .css = { 799 .css = {