summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gm20b
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b')
-rw-r--r--drivers/gpu/nvgpu/gm20b/hal_gm20b.c2
-rw-r--r--drivers/gpu/nvgpu/gm20b/mm_gm20b.c10
-rw-r--r--drivers/gpu/nvgpu/gm20b/mm_gm20b.h2
3 files changed, 14 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/hal_gm20b.c b/drivers/gpu/nvgpu/gm20b/hal_gm20b.c
index 50cc759a..e146d3ca 100644
--- a/drivers/gpu/nvgpu/gm20b/hal_gm20b.c
+++ b/drivers/gpu/nvgpu/gm20b/hal_gm20b.c
@@ -443,6 +443,8 @@ static const struct gpu_ops gm20b_ops = {
443 .is_bar1_supported = gm20b_mm_is_bar1_supported, 443 .is_bar1_supported = gm20b_mm_is_bar1_supported,
444 .init_inst_block = gk20a_init_inst_block, 444 .init_inst_block = gk20a_init_inst_block,
445 .mmu_fault_pending = gk20a_fifo_mmu_fault_pending, 445 .mmu_fault_pending = gk20a_fifo_mmu_fault_pending,
446 .get_kind_invalid = gm20b_get_kind_invalid,
447 .get_kind_pitch = gm20b_get_kind_pitch,
446 }, 448 },
447 .therm = { 449 .therm = {
448 .init_therm_setup_hw = gm20b_init_therm_setup_hw, 450 .init_therm_setup_hw = gm20b_init_therm_setup_hw,
diff --git a/drivers/gpu/nvgpu/gm20b/mm_gm20b.c b/drivers/gpu/nvgpu/gm20b/mm_gm20b.c
index dc332075..5cd7706d 100644
--- a/drivers/gpu/nvgpu/gm20b/mm_gm20b.c
+++ b/drivers/gpu/nvgpu/gm20b/mm_gm20b.c
@@ -74,3 +74,13 @@ u64 gm20b_gpu_phys_addr(struct gk20a *g,
74{ 74{
75 return phys; 75 return phys;
76} 76}
77
78u32 gm20b_get_kind_invalid(void)
79{
80 return gmmu_pte_kind_invalid_v();
81}
82
83u32 gm20b_get_kind_pitch(void)
84{
85 return gmmu_pte_kind_pitch_v();
86}
diff --git a/drivers/gpu/nvgpu/gm20b/mm_gm20b.h b/drivers/gpu/nvgpu/gm20b/mm_gm20b.h
index 602e18dc..af67845a 100644
--- a/drivers/gpu/nvgpu/gm20b/mm_gm20b.h
+++ b/drivers/gpu/nvgpu/gm20b/mm_gm20b.h
@@ -38,4 +38,6 @@ bool gm20b_mm_is_bar1_supported(struct gk20a *g);
38int gm20b_mm_mmu_vpr_info_fetch(struct gk20a *g); 38int gm20b_mm_mmu_vpr_info_fetch(struct gk20a *g);
39u64 gm20b_gpu_phys_addr(struct gk20a *g, 39u64 gm20b_gpu_phys_addr(struct gk20a *g,
40 struct nvgpu_gmmu_attrs *attrs, u64 phys); 40 struct nvgpu_gmmu_attrs *attrs, u64 phys);
41u32 gm20b_get_kind_invalid(void);
42u32 gm20b_get_kind_pitch(void);
41#endif 43#endif