diff options
author | Alex Waterman <alexw@nvidia.com> | 2017-04-10 17:04:15 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-05-11 09:04:12 -0400 |
commit | c3fa78b1d9cba28547ca59154207d434931ae746 (patch) | |
tree | 42117714f2d8dd217229e6c183d4b6affd29c7d1 /drivers/gpu/nvgpu/gk20a/mm_gk20a.h | |
parent | 36c1fdccc994d337fc15dd2b67ff05435f37dec9 (diff) |
gpu: nvgpu: Separate GMMU out of mm_gk20a.c
Begin moving (and renaming) the GMMU code into common/mm/gmmu.c. This
block of code will be responsible for handling the platform/OS
independent GMMU operations.
JIRA NVGPU-12
JIRA NVGPU-30
Change-Id: Ide761bab75e5d84be3dcb977c4842ae4b3a7c1b3
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/1464083
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/mm_gk20a.h | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h index 9717efff..0a102cb2 100644 --- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h | |||
@@ -509,22 +509,6 @@ bool gk20a_mm_mmu_debug_mode_enabled(struct gk20a *g); | |||
509 | 509 | ||
510 | int gk20a_mm_mmu_vpr_info_fetch(struct gk20a *g); | 510 | int gk20a_mm_mmu_vpr_info_fetch(struct gk20a *g); |
511 | 511 | ||
512 | u64 gk20a_gmmu_map(struct vm_gk20a *vm, | ||
513 | struct sg_table **sgt, | ||
514 | u64 size, | ||
515 | u32 flags, | ||
516 | int rw_flag, | ||
517 | bool priv, | ||
518 | enum nvgpu_aperture aperture); | ||
519 | u64 gk20a_gmmu_fixed_map(struct vm_gk20a *vm, | ||
520 | struct sg_table **sgt, | ||
521 | u64 addr, | ||
522 | u64 size, | ||
523 | u32 flags, | ||
524 | int rw_flag, | ||
525 | bool priv, | ||
526 | enum nvgpu_aperture aperture); | ||
527 | |||
528 | static inline phys_addr_t gk20a_mem_phys(struct nvgpu_mem *mem) | 512 | static inline phys_addr_t gk20a_mem_phys(struct nvgpu_mem *mem) |
529 | { | 513 | { |
530 | /* FIXME: the sgt/sgl may get null if this is accessed e.g. in an isr | 514 | /* FIXME: the sgt/sgl may get null if this is accessed e.g. in an isr |
@@ -565,11 +549,6 @@ u64 gk20a_locked_gmmu_map(struct vm_gk20a *vm, | |||
565 | struct vm_gk20a_mapping_batch *batch, | 549 | struct vm_gk20a_mapping_batch *batch, |
566 | enum nvgpu_aperture aperture); | 550 | enum nvgpu_aperture aperture); |
567 | 551 | ||
568 | void gk20a_gmmu_unmap(struct vm_gk20a *vm, | ||
569 | u64 vaddr, | ||
570 | u64 size, | ||
571 | int rw_flag); | ||
572 | |||
573 | void gk20a_locked_gmmu_unmap(struct vm_gk20a *vm, | 552 | void gk20a_locked_gmmu_unmap(struct vm_gk20a *vm, |
574 | u64 vaddr, | 553 | u64 vaddr, |
575 | u64 size, | 554 | u64 size, |