summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gv100
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2018-07-10 12:54:10 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-07-12 23:44:04 -0400
commitb07a304ba3e747c80fe3e0a16caec88c8e1e8b28 (patch)
tree7c800fa3ae75c1d33f806b4e1d6f522173801f44 /drivers/gpu/nvgpu/gv100
parent96d4842c0dbae051258408480b981ed034163c13 (diff)
gpu: nvgpu: Use HAL for calls from MM to FB
mm_gv11b.c has several direct calls to fb_gv11b.h. Redirect them to go via a HAL. Also make sure the HALs are using parameter with correct signedness and prefix the parameter constants with NVGPU_FB_MMU_. MMU buffer table indices were also defined in fb_gv11b.h, even though the tables themselves are defined in include/nvgpu/mm.h. Move the indices to include/nvgpu/mm.h and prefix them with NVGPU_MM_MMU_. JIRA NVGPU-714 Change-Id: Ieeae7c5664b8f53f8313cfad0a771d14637caa08 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1776131 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv100')
-rw-r--r--drivers/gpu/nvgpu/gv100/hal_gv100.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gv100/hal_gv100.c b/drivers/gpu/nvgpu/gv100/hal_gv100.c
index ea131822..9c3eb91a 100644
--- a/drivers/gpu/nvgpu/gv100/hal_gv100.c
+++ b/drivers/gpu/nvgpu/gv100/hal_gv100.c
@@ -501,6 +501,10 @@ static const struct gpu_ops gv100_ops = {
501 .read_mmu_fault_info = fb_gv11b_read_mmu_fault_info, 501 .read_mmu_fault_info = fb_gv11b_read_mmu_fault_info,
502 .read_mmu_fault_status = fb_gv11b_read_mmu_fault_status, 502 .read_mmu_fault_status = fb_gv11b_read_mmu_fault_status,
503 .mmu_invalidate_replay = gv11b_fb_mmu_invalidate_replay, 503 .mmu_invalidate_replay = gv11b_fb_mmu_invalidate_replay,
504 .mmu_fault_pending = gv11b_fb_mmu_fault_pending,
505 .is_fault_buf_enabled = gv11b_fb_is_fault_buf_enabled,
506 .fault_buf_set_state_hw = gv11b_fb_fault_buf_set_state_hw,
507 .fault_buf_configure_hw = gv11b_fb_fault_buf_configure_hw,
504 }, 508 },
505 .clock_gating = { 509 .clock_gating = {
506 .slcg_bus_load_gating_prod = 510 .slcg_bus_load_gating_prod =