diff options
author | Mahantesh Kumbar <mkumbar@nvidia.com> | 2017-06-28 07:23:41 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-07-04 02:44:30 -0400 |
commit | fbeca4a8414c03a1564d7a370964187be51a3e6c (patch) | |
tree | 4ba412c53e52678b9e115fd1ec80655bd2380f46 /drivers/gpu/nvgpu/include | |
parent | 2f712e22303471b8dd2f9388c874d12b07aed258 (diff) |
gpu: nvgpu: Falcon controller wait for halt
- Added nvgpu_flcn_wait_for_halt() interface to wait for
falcon halt, which block till falcon halt or timeout
expire for selected falcon controller
- Replaced falcon wait for halt code with method
nvgpu_flcn_wait_for_halt()
NVGPU JIRA-99
Change-Id: Ie1809dc29ff65bddc7ef2859a9ee9b4f0003b127
Signed-off-by: Mahantesh Kumbar <mkumbar@nvidia.com>
Reviewed-on: https://git-master/r/1510201
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/include')
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/falcon.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/falcon.h b/drivers/gpu/nvgpu/include/nvgpu/falcon.h index a1a57cd1..3079c79e 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/falcon.h +++ b/drivers/gpu/nvgpu/include/nvgpu/falcon.h | |||
@@ -166,6 +166,7 @@ struct nvgpu_falcon { | |||
166 | }; | 166 | }; |
167 | 167 | ||
168 | int nvgpu_flcn_wait_idle(struct nvgpu_falcon *flcn); | 168 | int nvgpu_flcn_wait_idle(struct nvgpu_falcon *flcn); |
169 | int nvgpu_flcn_wait_for_halt(struct nvgpu_falcon *flcn, unsigned int timeout); | ||
169 | int nvgpu_flcn_reset(struct nvgpu_falcon *flcn); | 170 | int nvgpu_flcn_reset(struct nvgpu_falcon *flcn); |
170 | void nvgpu_flcn_set_irq(struct nvgpu_falcon *flcn, bool enable, | 171 | void nvgpu_flcn_set_irq(struct nvgpu_falcon *flcn, bool enable, |
171 | u32 intr_mask, u32 intr_dest); | 172 | u32 intr_mask, u32 intr_dest); |