summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/bus_gk20a.c
diff options
context:
space:
mode:
authorSunny He <suhe@nvidia.com>2017-07-05 22:05:06 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-07-24 02:35:04 -0400
commit907fcae63816b68e43e07e3d7abaad87954b8326 (patch)
tree9be974cddd1c23d17488c23377d9a36ccf69499a /drivers/gpu/nvgpu/gk20a/bus_gk20a.c
parentd717c69d2b1992688589ae389380fedf0b06c720 (diff)
gpu: nvgpu: Reorg bus HAL initialization
Reorganize HAL initialization to remove inheritance and construct the gpu_ops struct at compile time. This patch only covers the bus sub-module of the gpu_ops struct. Perform HAL function assignments in hal_gxxxx.c through the population of a chip-specific copy of gpu_ops. Jira NVGPU-74 Change-Id: If03303c34d91480d41fc29e66069efd43e970d75 Signed-off-by: Sunny He <suhe@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1514660 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/bus_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/bus_gk20a.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/bus_gk20a.c b/drivers/gpu/nvgpu/gk20a/bus_gk20a.c
index 45cebd7f..2d5f0766 100644
--- a/drivers/gpu/nvgpu/gk20a/bus_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/bus_gk20a.c
@@ -129,7 +129,7 @@ int gk20a_read_ptimer(struct gk20a *g, u64 *value)
129 return -EBUSY; 129 return -EBUSY;
130} 130}
131 131
132static int gk20a_bus_bar1_bind(struct gk20a *g, struct nvgpu_mem *bar1_inst) 132int gk20a_bus_bar1_bind(struct gk20a *g, struct nvgpu_mem *bar1_inst)
133{ 133{
134 u64 iova = gk20a_mm_inst_block_addr(g, bar1_inst); 134 u64 iova = gk20a_mm_inst_block_addr(g, bar1_inst);
135 u32 ptr_v = (u32)(iova >> bar1_instance_block_shift_gk20a()); 135 u32 ptr_v = (u32)(iova >> bar1_instance_block_shift_gk20a());