summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/include
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2018-08-16 17:47:01 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-09-10 18:23:12 -0400
commitc86f185d1022de18a1a1073aa91d2b06aa59e2fc (patch)
tree61e685a45b309a245038b2a02a832ac0f790ff21 /drivers/gpu/nvgpu/include
parent83efad7adb44647d37d98a57cbb6df48e356917d (diff)
gpu: nvgpu: Move programming of debug page to FB
Debug page was allocated and programmed to HUB MMU in GR code. This introduces a dependency from GR to FB and is anyway the wrong place. Move the code to allocate memory to generic MM code, and the code to program the addresses to FB. Change-Id: Ib6d3c96efde6794cf5e8cd4c908525c85b57c233 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1801423 Reviewed-by: svc-misra-checker <svc-misra-checker@nvidia.com> GVS: Gerrit_Virtual_Submit 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/mm.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/mm.h b/drivers/gpu/nvgpu/include/nvgpu/mm.h
index e627296d..bfce243c 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/mm.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/mm.h
@@ -176,6 +176,9 @@ struct mm_gk20a {
176 176
177 nvgpu_atomic64_t bytes_pending; 177 nvgpu_atomic64_t bytes_pending;
178 } vidmem; 178 } vidmem;
179
180 struct nvgpu_mem mmu_wr_mem;
181 struct nvgpu_mem mmu_rd_mem;
179}; 182};
180 183
181#define gk20a_from_mm(mm) ((mm)->g) 184#define gk20a_from_mm(mm) ((mm)->g)