summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/vgpu
diff options
context:
space:
mode:
authorAlex Waterman <alexw@nvidia.com>2017-09-07 19:45:07 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-10-18 19:00:37 -0400
commit0853109c9994d1375a10d13ae254690a4a4c9610 (patch)
tree339adb7e8e74c8e0085b24ed9e50181a9aafa3ee /drivers/gpu/nvgpu/vgpu
parentb3446bc0b6fca6cb992667f80a95f8503b6a652a (diff)
gpu: nvgpu: Refactoring nvgpu_vm functions
Refactor the last nvgpu_vm functions from the mm_gk20a.c code. This removes some usages of dma_buf from the mm_gk20a.c code, too, which helps make mm_gk20a.c less Linux specific. Also delete some header files that are no longer necessary in gk20a/mm_gk20a.c which are Linux specific. The mm_gk20a.c code is now quite close to being Linux free. JIRA NVGPU-30 JIRA NVGPU-138 Change-Id: I72b370bd85a7b029768b0fb4827d6abba42007c3 Signed-off-by: Alex Waterman <alexw@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1566629 Reviewed-by: Konsta Holtta <kholtta@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu')
-rw-r--r--drivers/gpu/nvgpu/vgpu/gm20b/vgpu_hal_gm20b.c2
-rw-r--r--drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/gm20b/vgpu_hal_gm20b.c b/drivers/gpu/nvgpu/vgpu/gm20b/vgpu_hal_gm20b.c
index fc9b0e83..38d07ee2 100644
--- a/drivers/gpu/nvgpu/vgpu/gm20b/vgpu_hal_gm20b.c
+++ b/drivers/gpu/nvgpu/vgpu/gm20b/vgpu_hal_gm20b.c
@@ -342,6 +342,8 @@ static const struct gpu_ops vgpu_gm20b_ops = {
342 .is_bar1_supported = gm20b_mm_is_bar1_supported, 342 .is_bar1_supported = gm20b_mm_is_bar1_supported,
343 .init_inst_block = gk20a_init_inst_block, 343 .init_inst_block = gk20a_init_inst_block,
344 .mmu_fault_pending = gk20a_fifo_mmu_fault_pending, 344 .mmu_fault_pending = gk20a_fifo_mmu_fault_pending,
345 .get_kind_invalid = gm20b_get_kind_invalid,
346 .get_kind_pitch = gm20b_get_kind_pitch,
345 }, 347 },
346 .therm = { 348 .therm = {
347 .init_therm_setup_hw = gm20b_init_therm_setup_hw, 349 .init_therm_setup_hw = gm20b_init_therm_setup_hw,
diff --git a/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c b/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c
index 2c59d847..7f18bfe4 100644
--- a/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c
+++ b/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c
@@ -392,6 +392,8 @@ static const struct gpu_ops vgpu_gp10b_ops = {
392 .init_bar2_vm = gb10b_init_bar2_vm, 392 .init_bar2_vm = gb10b_init_bar2_vm,
393 .init_bar2_mm_hw_setup = gb10b_init_bar2_mm_hw_setup, 393 .init_bar2_mm_hw_setup = gb10b_init_bar2_mm_hw_setup,
394 .remove_bar2_vm = gp10b_remove_bar2_vm, 394 .remove_bar2_vm = gp10b_remove_bar2_vm,
395 .get_kind_invalid = gm20b_get_kind_invalid,
396 .get_kind_pitch = gm20b_get_kind_pitch,
395 }, 397 },
396 .pramin = { 398 .pramin = {
397 .enter = gk20a_pramin_enter, 399 .enter = gk20a_pramin_enter,