diff options
author | Mahantesh Kumbar <mkumbar@nvidia.com> | 2017-07-05 06:42:29 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-07-06 02:25:27 -0400 |
commit | 79a79b8ae6987e5620c9bc7ee080fe637a6ca57b (patch) | |
tree | 5e482d8d1a584e9496b2daa880adfd00b5f65ecb /drivers/gpu/nvgpu/common/falcon/falcon.c | |
parent | 3afac13d66ee7026555c0b0558d898a4f189b051 (diff) |
gpu: nvgpu: falcon bootstrap support
- Added falcon interface/HAL to bootstrap
falcon by taking boot vector as parameter
- Replaced falcon bootstrap code in multiple
files with nvgpu_flcn_bootstrap() method
JIRA NVGPU-102
Change-Id: I4324824c50c6196d8b7ecf981f815ec778da2fd9
Signed-off-by: Mahantesh Kumbar <mkumbar@nvidia.com>
Reviewed-on: https://git-master/r/1513643
Reviewed-by: Automatic_Commit_Validation_User
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 | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/falcon/falcon.c b/drivers/gpu/nvgpu/common/falcon/falcon.c index 74d78e86..4c879e52 100644 --- a/drivers/gpu/nvgpu/common/falcon/falcon.c +++ b/drivers/gpu/nvgpu/common/falcon/falcon.c | |||
@@ -196,6 +196,20 @@ int nvgpu_flcn_copy_to_imem(struct nvgpu_falcon *flcn, | |||
196 | return status; | 196 | return status; |
197 | } | 197 | } |
198 | 198 | ||
199 | int nvgpu_flcn_bootstrap(struct nvgpu_falcon *flcn, u32 boot_vector) | ||
200 | { | ||
201 | struct nvgpu_falcon_ops *flcn_ops = &flcn->flcn_ops; | ||
202 | int status = -EINVAL; | ||
203 | |||
204 | if (flcn_ops->bootstrap) | ||
205 | status = flcn_ops->bootstrap(flcn, boot_vector); | ||
206 | else | ||
207 | nvgpu_warn(flcn->g, "Invalid op on falcon 0x%x ", | ||
208 | flcn->flcn_id); | ||
209 | |||
210 | return status; | ||
211 | } | ||
212 | |||
199 | void nvgpu_flcn_sw_init(struct gk20a *g, u32 flcn_id) | 213 | void nvgpu_flcn_sw_init(struct gk20a *g, u32 flcn_id) |
200 | { | 214 | { |
201 | struct nvgpu_falcon *flcn = NULL; | 215 | struct nvgpu_falcon *flcn = NULL; |