diff options
author | Mahantesh Kumbar <mkumbar@nvidia.com> | 2017-11-15 06:07:27 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-11-20 03:34:22 -0500 |
commit | f53a0dd96b25cfb64b17ab816ae1f9b0b144db07 (patch) | |
tree | f7a781724f0e1ed2ba20f7c1f945ae8d6d076a91 /drivers/gpu/nvgpu/include | |
parent | 76ad8e9fa8726fd3070aaaecfb942c1991359f0e (diff) |
gpu: nvgpu: falcon interface update
-Added nvgpu_flcn_mem_scrub_wait() to
falcon interface layer to poll imem/dmem
scrubbing status complete check for 1msec
with status check interval of 10usec.
-Called nvgpu_flcn_mem_scrub_wait() in
falcon reset interface to check scrubbing
status upon falcon/engine reset.
-Replaced mem scrubbing wait check code in
pmu_enable_hw() by calling
nvgpu_flcn_mem_scrub_wait()
Bug 200346134
Change-Id: Iac68e24dea466f6dd5facc371947269db64d238d
Signed-off-by: Mahantesh Kumbar <mkumbar@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1598644
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
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/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 4be16576..1f104fa1 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/falcon.h +++ b/drivers/gpu/nvgpu/include/nvgpu/falcon.h | |||
@@ -222,6 +222,7 @@ int nvgpu_flcn_reset(struct nvgpu_falcon *flcn); | |||
222 | void nvgpu_flcn_set_irq(struct nvgpu_falcon *flcn, bool enable, | 222 | void nvgpu_flcn_set_irq(struct nvgpu_falcon *flcn, bool enable, |
223 | u32 intr_mask, u32 intr_dest); | 223 | u32 intr_mask, u32 intr_dest); |
224 | bool nvgpu_flcn_get_mem_scrubbing_status(struct nvgpu_falcon *flcn); | 224 | bool nvgpu_flcn_get_mem_scrubbing_status(struct nvgpu_falcon *flcn); |
225 | int nvgpu_flcn_mem_scrub_wait(struct nvgpu_falcon *flcn); | ||
225 | bool nvgpu_flcn_get_cpu_halted_status(struct nvgpu_falcon *flcn); | 226 | bool nvgpu_flcn_get_cpu_halted_status(struct nvgpu_falcon *flcn); |
226 | bool nvgpu_flcn_get_idle_status(struct nvgpu_falcon *flcn); | 227 | bool nvgpu_flcn_get_idle_status(struct nvgpu_falcon *flcn); |
227 | int nvgpu_flcn_copy_from_dmem(struct nvgpu_falcon *flcn, | 228 | int nvgpu_flcn_copy_from_dmem(struct nvgpu_falcon *flcn, |