diff options
author | Mahantesh Kumbar <mkumbar@nvidia.com> | 2017-07-07 12:05:46 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-09-25 03:18:57 -0400 |
commit | 5a1165d984f3f0001621bbde152cbf9650010895 (patch) | |
tree | f9de71a2463c2c09c7e4f2a862869ff1ca0c9b0d /drivers/gpu/nvgpu/common/falcon/falcon.c | |
parent | 908486b806d584082fe85cc74aa708cc619e1d99 (diff) |
gpu: nvgpu: falcon status dump support
- Added support to dump flacon controller status
- Method to print recent PC history to know call trace
- Method to dump IMBLK info
- Updated falcon hw header files to include
registers of PC trace & IMBLK
JIRA NVGPU-105
Change-Id: Id4aaafd87113d47e552afb21b87f8b087d36004e
Signed-off-by: Mahantesh Kumbar <mkumbar@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1515371
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/falcon/falcon.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/falcon/falcon.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/falcon/falcon.c b/drivers/gpu/nvgpu/common/falcon/falcon.c index 4c879e52..c9ab69fe 100644 --- a/drivers/gpu/nvgpu/common/falcon/falcon.c +++ b/drivers/gpu/nvgpu/common/falcon/falcon.c | |||
@@ -210,6 +210,17 @@ int nvgpu_flcn_bootstrap(struct nvgpu_falcon *flcn, u32 boot_vector) | |||
210 | return status; | 210 | return status; |
211 | } | 211 | } |
212 | 212 | ||
213 | void nvgpu_flcn_dump_stats(struct nvgpu_falcon *flcn) | ||
214 | { | ||
215 | struct nvgpu_falcon_ops *flcn_ops = &flcn->flcn_ops; | ||
216 | |||
217 | if (flcn_ops->dump_falcon_stats) | ||
218 | flcn_ops->dump_falcon_stats(flcn); | ||
219 | else | ||
220 | nvgpu_warn(flcn->g, "Invalid op on falcon 0x%x ", | ||
221 | flcn->flcn_id); | ||
222 | } | ||
223 | |||
213 | void nvgpu_flcn_sw_init(struct gk20a *g, u32 flcn_id) | 224 | void nvgpu_flcn_sw_init(struct gk20a *g, u32 flcn_id) |
214 | { | 225 | { |
215 | struct nvgpu_falcon *flcn = NULL; | 226 | struct nvgpu_falcon *flcn = NULL; |