diff options
author | Alex Waterman <alexw@nvidia.com> | 2018-01-16 19:38:19 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-01-19 20:29:09 -0500 |
commit | 137006fe783a0829a26f4f179f19f3d73fc050c4 (patch) | |
tree | cc98030557d355cad4da6c7216440d6e5d3ee4b7 /drivers/gpu/nvgpu/include | |
parent | c713934675b32b30f3939f3ab4dd7466eb96a523 (diff) |
gpu: nvgpu: Update gk20a pde bit coverage function
The mm_gk20a.c function that returns number of bits that a PDE covers
is very useful for determing PDE size for all chips. Copy this into
the common VM code since this applies to all chips/platforms.
Bug 200105199
Change-Id: I437da4781be2fa7c540abe52b20f4c4321f6c649
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1639730
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/include')
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/vm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/vm.h b/drivers/gpu/nvgpu/include/nvgpu/vm.h index 1689444c..e5d0e197 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/vm.h +++ b/drivers/gpu/nvgpu/include/nvgpu/vm.h | |||
@@ -218,6 +218,8 @@ void nvgpu_vm_put(struct vm_gk20a *vm); | |||
218 | int vm_aspace_id(struct vm_gk20a *vm); | 218 | int vm_aspace_id(struct vm_gk20a *vm); |
219 | int nvgpu_big_pages_possible(struct vm_gk20a *vm, u64 base, u64 size); | 219 | int nvgpu_big_pages_possible(struct vm_gk20a *vm, u64 base, u64 size); |
220 | 220 | ||
221 | int nvgpu_vm_pde_coverage_bit_count(struct vm_gk20a *vm); | ||
222 | |||
221 | /* batching eliminates redundant cache flushes and invalidates */ | 223 | /* batching eliminates redundant cache flushes and invalidates */ |
222 | void nvgpu_vm_mapping_batch_start(struct vm_gk20a_mapping_batch *batch); | 224 | void nvgpu_vm_mapping_batch_start(struct vm_gk20a_mapping_batch *batch); |
223 | void nvgpu_vm_mapping_batch_finish( | 225 | void nvgpu_vm_mapping_batch_finish( |