summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a.h
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2017-06-22 15:55:17 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-06-30 21:34:59 -0400
commit001c7c3185d9b087f89f48a41bee27d2d06721f6 (patch)
treec869be82279688a5dbe5d1145da09ca2323aef92 /drivers/gpu/nvgpu/gk20a/gk20a.h
parent82c0c96290602b1baf296133c7f55ae1848e433a (diff)
gpu: nvgpu: Per chip default big page size
Make default big page size query a HAL op instead of per-platform constant. This allows querying for default big page size without accessing Linux specific gk20a_platform structure. JIRA NVGPU-38 Change-Id: Ibfbd1319764fdae5fdb06700fb64d23f6f3dd01a Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master/r/1507928 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h
index 9b28e0c6..1e6995c4 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.h
@@ -674,6 +674,7 @@ struct gpu_ops {
674 void (*set_big_page_size)(struct gk20a *g, 674 void (*set_big_page_size)(struct gk20a *g,
675 struct nvgpu_mem *mem, int size); 675 struct nvgpu_mem *mem, int size);
676 u32 (*get_big_page_sizes)(void); 676 u32 (*get_big_page_sizes)(void);
677 u32 (*get_default_big_page_size)(void);
677 u32 (*get_physical_addr_bits)(struct gk20a *g); 678 u32 (*get_physical_addr_bits)(struct gk20a *g);
678 int (*init_mm_setup_hw)(struct gk20a *g); 679 int (*init_mm_setup_hw)(struct gk20a *g);
679 bool (*is_bar1_supported)(struct gk20a *g); 680 bool (*is_bar1_supported)(struct gk20a *g);