mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
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
This commit is contained in:
committed by
mobile promotions
parent
82c0c96290
commit
001c7c3185
@@ -420,7 +420,7 @@ int gk20a_init_gpu_characteristics(struct gk20a *g)
|
||||
gpu->bus_type = NVGPU_GPU_BUS_TYPE_AXI; /* always AXI for now */
|
||||
|
||||
gpu->compression_page_size = g->ops.fb.compression_page_size(g);
|
||||
gpu->big_page_size = platform->default_big_page_size;
|
||||
gpu->big_page_size = g->ops.mm.get_default_big_page_size();
|
||||
gpu->pde_coverage_bit_count =
|
||||
g->ops.mm.get_mmu_levels(g, gpu->big_page_size)[0].lo_bit[0];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user