diff options
author | Alex Waterman <alexw@nvidia.com> | 2017-03-15 19:42:12 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-04-06 21:14:48 -0400 |
commit | b69020bff5dfa69cad926c9374cdbe9a62509ffd (patch) | |
tree | 222f6b6bc23561a38004a257cbac401e431ff3be /drivers/gpu/nvgpu/gm20b/acr_gm20b.c | |
parent | fa4ecf5730a75269e85cc41c2ad2ee61307e72a9 (diff) |
gpu: nvgpu: Rename gk20a_mem_* functions
Rename the functions used for mem_desc access to nvgpu_mem_*.
JIRA NVGPU-12
Change-Id: Ibfdc1112d43f0a125e4487c250e3f977ffd2cd75
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/1323325
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/acr_gm20b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/acr_gm20b.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/acr_gm20b.c b/drivers/gpu/nvgpu/gm20b/acr_gm20b.c index 360cfc33..da3adb72 100644 --- a/drivers/gpu/nvgpu/gm20b/acr_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/acr_gm20b.c | |||
@@ -723,7 +723,7 @@ static void lsfm_init_wpr_contents(struct gk20a *g, struct ls_flcn_mgr *plsfm, | |||
723 | */ | 723 | */ |
724 | while (pnode) { | 724 | while (pnode) { |
725 | /* Flush WPR header to memory*/ | 725 | /* Flush WPR header to memory*/ |
726 | gk20a_mem_wr_n(g, ucode, i * sizeof(pnode->wpr_header), | 726 | nvgpu_mem_wr_n(g, ucode, i * sizeof(pnode->wpr_header), |
727 | &pnode->wpr_header, sizeof(pnode->wpr_header)); | 727 | &pnode->wpr_header, sizeof(pnode->wpr_header)); |
728 | 728 | ||
729 | gm20b_dbg_pmu("wpr header"); | 729 | gm20b_dbg_pmu("wpr header"); |
@@ -739,7 +739,7 @@ static void lsfm_init_wpr_contents(struct gk20a *g, struct ls_flcn_mgr *plsfm, | |||
739 | pnode->wpr_header.status); | 739 | pnode->wpr_header.status); |
740 | 740 | ||
741 | /*Flush LSB header to memory*/ | 741 | /*Flush LSB header to memory*/ |
742 | gk20a_mem_wr_n(g, ucode, pnode->wpr_header.lsb_offset, | 742 | nvgpu_mem_wr_n(g, ucode, pnode->wpr_header.lsb_offset, |
743 | &pnode->lsb_header, sizeof(pnode->lsb_header)); | 743 | &pnode->lsb_header, sizeof(pnode->lsb_header)); |
744 | 744 | ||
745 | gm20b_dbg_pmu("lsb header"); | 745 | gm20b_dbg_pmu("lsb header"); |
@@ -773,13 +773,13 @@ static void lsfm_init_wpr_contents(struct gk20a *g, struct ls_flcn_mgr *plsfm, | |||
773 | if (!pnode->ucode_img.header) { | 773 | if (!pnode->ucode_img.header) { |
774 | /*Populate gen bl and flush to memory*/ | 774 | /*Populate gen bl and flush to memory*/ |
775 | lsfm_fill_flcn_bl_gen_desc(g, pnode); | 775 | lsfm_fill_flcn_bl_gen_desc(g, pnode); |
776 | gk20a_mem_wr_n(g, ucode, | 776 | nvgpu_mem_wr_n(g, ucode, |
777 | pnode->lsb_header.bl_data_off, | 777 | pnode->lsb_header.bl_data_off, |
778 | &pnode->bl_gen_desc, | 778 | &pnode->bl_gen_desc, |
779 | pnode->bl_gen_desc_size); | 779 | pnode->bl_gen_desc_size); |
780 | } | 780 | } |
781 | /*Copying of ucode*/ | 781 | /*Copying of ucode*/ |
782 | gk20a_mem_wr_n(g, ucode, pnode->lsb_header.ucode_off, | 782 | nvgpu_mem_wr_n(g, ucode, pnode->lsb_header.ucode_off, |
783 | pnode->ucode_img.data, | 783 | pnode->ucode_img.data, |
784 | pnode->ucode_img.data_size); | 784 | pnode->ucode_img.data_size); |
785 | pnode = pnode->next; | 785 | pnode = pnode->next; |
@@ -787,7 +787,7 @@ static void lsfm_init_wpr_contents(struct gk20a *g, struct ls_flcn_mgr *plsfm, | |||
787 | } | 787 | } |
788 | 788 | ||
789 | /* Tag the terminator WPR header with an invalid falcon ID. */ | 789 | /* Tag the terminator WPR header with an invalid falcon ID. */ |
790 | gk20a_mem_wr32(g, ucode, | 790 | nvgpu_mem_wr32(g, ucode, |
791 | plsfm->managed_flcn_cnt * sizeof(struct lsf_wpr_header) + | 791 | plsfm->managed_flcn_cnt * sizeof(struct lsf_wpr_header) + |
792 | offsetof(struct lsf_wpr_header, falcon_id), | 792 | offsetof(struct lsf_wpr_header, falcon_id), |
793 | LSF_FALCON_ID_INVALID); | 793 | LSF_FALCON_ID_INVALID); |
@@ -1133,7 +1133,7 @@ static int gm20b_bootstrap_hs_flcn(struct gk20a *g) | |||
1133 | ((struct flcn_acr_desc *)acr_dmem)->regions.no_regions = 2; | 1133 | ((struct flcn_acr_desc *)acr_dmem)->regions.no_regions = 2; |
1134 | ((struct flcn_acr_desc *)acr_dmem)->wpr_offset = 0; | 1134 | ((struct flcn_acr_desc *)acr_dmem)->wpr_offset = 0; |
1135 | 1135 | ||
1136 | gk20a_mem_wr_n(g, &acr->acr_ucode, 0, | 1136 | nvgpu_mem_wr_n(g, &acr->acr_ucode, 0, |
1137 | acr_ucode_data_t210_load, img_size_in_bytes); | 1137 | acr_ucode_data_t210_load, img_size_in_bytes); |
1138 | /* | 1138 | /* |
1139 | * In order to execute this binary, we will be using | 1139 | * In order to execute this binary, we will be using |
@@ -1433,7 +1433,7 @@ int pmu_exec_gen_bl(struct gk20a *g, void *desc, u8 b_wait_for_halt) | |||
1433 | goto err_free_ucode; | 1433 | goto err_free_ucode; |
1434 | } | 1434 | } |
1435 | 1435 | ||
1436 | gk20a_mem_wr_n(g, &acr->hsbl_ucode, 0, pmu_bl_gm10x, bl_sz); | 1436 | nvgpu_mem_wr_n(g, &acr->hsbl_ucode, 0, pmu_bl_gm10x, bl_sz); |
1437 | gm20b_dbg_pmu("Copied bl ucode to bl_cpuva\n"); | 1437 | gm20b_dbg_pmu("Copied bl ucode to bl_cpuva\n"); |
1438 | } | 1438 | } |
1439 | /* | 1439 | /* |