diff options
author | Mahantesh Kumbar <mkumbar@nvidia.com> | 2018-06-20 05:09:59 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-07-05 09:43:53 -0400 |
commit | 80bf7419179223e6893e3549fd0a192804149eda (patch) | |
tree | 575bf72cfc6de5f247d376bb92350e56a54b698b /drivers/gpu/nvgpu/gp106/sec2_gp106.h | |
parent | bc05e0e0e5b7d00761472252e9f8c12886539746 (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.h | 5 |
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 | ||
26 | int sec2_clear_halt_interrupt_status(struct gk20a *g, unsigned int timeout); | 26 | int gp106_sec2_clear_halt_interrupt_status(struct gk20a *g, |
27 | int sec2_wait_for_halt(struct gk20a *g, unsigned int timeout); | 27 | unsigned int timeout); |
28 | int gp106_sec2_wait_for_halt(struct gk20a *g, unsigned int timeout); | ||
28 | int bl_bootstrap_sec2(struct nvgpu_pmu *pmu, | 29 | int bl_bootstrap_sec2(struct nvgpu_pmu *pmu, |
29 | void *desc, u32 bl_sz); | 30 | void *desc, u32 bl_sz); |
30 | void init_pmu_setup_hw1(struct gk20a *g); | 31 | void init_pmu_setup_hw1(struct gk20a *g); |