summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp106/sec2_gp106.h
diff options
context:
space:
mode:
authorMahantesh Kumbar <mkumbar@nvidia.com>2018-06-20 05:09:59 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-07-05 09:43:53 -0400
commit80bf7419179223e6893e3549fd0a192804149eda (patch)
tree575bf72cfc6de5f247d376bb92350e56a54b698b /drivers/gpu/nvgpu/gp106/sec2_gp106.h
parentbc05e0e0e5b7d00761472252e9f8c12886539746 (diff)
gpu: nvgpu: gp106 SEC2 falcon code update
- Added prefix gp106_ to sec2_wait_for_halt() & sec2_clear_halt_interrupt_status() for gp106 SEC2 HAL - Made changes to gp106_sec2_wait_for_halt() to read SEC2 falcon mailbox using common falcon mailbox access functions. - Add define for falcon mailbox - These changes are done to reuse gp106 HAL's for GPU_NEXT. Change-Id: Id32a7636d775b482684212ed4ef5d01c8ea65335 Signed-off-by: Mahantesh Kumbar <mkumbar@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1755618 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp106/sec2_gp106.h')
-rw-r--r--drivers/gpu/nvgpu/gp106/sec2_gp106.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gp106/sec2_gp106.h b/drivers/gpu/nvgpu/gp106/sec2_gp106.h
index 1fe94bb8..cab3ca5d 100644
--- a/drivers/gpu/nvgpu/gp106/sec2_gp106.h
+++ b/drivers/gpu/nvgpu/gp106/sec2_gp106.h
@@ -23,8 +23,9 @@
23#ifndef __SEC2_H_ 23#ifndef __SEC2_H_
24#define __SEC2_H_ 24#define __SEC2_H_
25 25
26int sec2_clear_halt_interrupt_status(struct gk20a *g, unsigned int timeout); 26int gp106_sec2_clear_halt_interrupt_status(struct gk20a *g,
27int sec2_wait_for_halt(struct gk20a *g, unsigned int timeout); 27 unsigned int timeout);
28int gp106_sec2_wait_for_halt(struct gk20a *g, unsigned int timeout);
28int bl_bootstrap_sec2(struct nvgpu_pmu *pmu, 29int bl_bootstrap_sec2(struct nvgpu_pmu *pmu,
29 void *desc, u32 bl_sz); 30 void *desc, u32 bl_sz);
30void init_pmu_setup_hw1(struct gk20a *g); 31void init_pmu_setup_hw1(struct gk20a *g);