summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gm20b/acr_gm20b.c
diff options
context:
space:
mode:
authorMahantesh Kumbar <mkumbar@nvidia.com>2017-05-12 04:28:43 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-06-13 05:40:16 -0400
commite9267bb3e5624825114fedc03d511035785f2fd7 (patch)
tree06b1e72c311f63c15254f5e13e33e363dea62d39 /drivers/gpu/nvgpu/gm20b/acr_gm20b.c
parent8c66aef3bdbfbbeb1d3c3ef3bd6b1bee3ac05411 (diff)
gpu: nvgpu: reorganize PMU F/W support
- Moved pmu f/w related support from pmu_gk20a.c to "drivers/gpu/nvgpu/common/pmu/pmu_fw.c" file - Prepended with nvgpu_ for global functions & replaced wherever used - Moved below list related to PMU f/w init/remove, PMU version specific ops, non-secure ucode blob prepare, JIRA NVGPU-56 Change-Id: Ifdad8c560bd233e98728717d5868119e9d8e8d90 Signed-off-by: Mahantesh Kumbar <mkumbar@nvidia.com> Reviewed-on: http://git-master/r/1480636 GVS: Gerrit_Virtual_Submit Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com> Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/acr_gm20b.c')
-rw-r--r--drivers/gpu/nvgpu/gm20b/acr_gm20b.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/acr_gm20b.c b/drivers/gpu/nvgpu/gm20b/acr_gm20b.c
index 580ba5e5..02da3de9 100644
--- a/drivers/gpu/nvgpu/gm20b/acr_gm20b.c
+++ b/drivers/gpu/nvgpu/gm20b/acr_gm20b.c
@@ -161,7 +161,7 @@ static int pmu_ucode_details(struct gk20a *g, struct flcn_ucode_img *p_img)
161 pmu->ucode_image = (u32 *)pmu_fw->data; 161 pmu->ucode_image = (u32 *)pmu_fw->data;
162 g->acr.pmu_desc = pmu_desc; 162 g->acr.pmu_desc = pmu_desc;
163 163
164 err = gk20a_init_pmu(pmu); 164 err = nvgpu_init_pmu_fw_support(pmu);
165 if (err) { 165 if (err) {
166 gm20b_dbg_pmu("failed to set function pointers\n"); 166 gm20b_dbg_pmu("failed to set function pointers\n");
167 goto release_sig; 167 goto release_sig;
@@ -395,7 +395,7 @@ int prepare_ucode_blob(struct gk20a *g)
395 if (g->acr.ucode_blob.cpu_va) { 395 if (g->acr.ucode_blob.cpu_va) {
396 /*Recovery case, we do not need to form 396 /*Recovery case, we do not need to form
397 non WPR blob of ucodes*/ 397 non WPR blob of ucodes*/
398 err = gk20a_init_pmu(pmu); 398 err = nvgpu_init_pmu_fw_support(pmu);
399 if (err) { 399 if (err) {
400 gm20b_dbg_pmu("failed to set function pointers\n"); 400 gm20b_dbg_pmu("failed to set function pointers\n");
401 return err; 401 return err;