diff options
author | Alex Waterman <alexw@nvidia.com> | 2017-04-06 18:30:01 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-04-20 19:14:32 -0400 |
commit | e32f62fadfcde413bcd9b5af61ad884e27ba2bf1 (patch) | |
tree | eff606a0826841eae6ade5906acd9da589d1179a /drivers/gpu/nvgpu/gm20b | |
parent | 52bd58b560d0b3b49c03ef5c2637b67adeac8193 (diff) |
gpu: nvgpu: Move Linux nvgpu_mem fields
Hide the Linux specific nvgpu_mem fields so that in subsequent patches
core code can instead of using struct sg_table it can use mem_desc.
Routines for accessing system specific fields will be added as needed.
This is the first step in a fairly major overhaul of the GMMU mapping
routines. There are numerous issues with the current design (or lack
there of): massively coupled code, system dependencies, disorganization,
etc.
JIRA NVGPU-12
JIRA NVGPU-30
Change-Id: I2e7d3ae3a07468cfc17c1c642d28ed1b0952474d
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/1464076
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/acr_gm20b.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/acr_gm20b.c b/drivers/gpu/nvgpu/gm20b/acr_gm20b.c index b6afa748..7f0edbb2 100644 --- a/drivers/gpu/nvgpu/gm20b/acr_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/acr_gm20b.c | |||
@@ -1075,7 +1075,7 @@ static int gm20b_bootstrap_hs_flcn(struct gk20a *g) | |||
1075 | u32 *acr_ucode_header_t210_load; | 1075 | u32 *acr_ucode_header_t210_load; |
1076 | u32 *acr_ucode_data_t210_load; | 1076 | u32 *acr_ucode_data_t210_load; |
1077 | 1077 | ||
1078 | start = g->ops.mm.get_iova_addr(g, acr->ucode_blob.sgt->sgl, 0); | 1078 | start = g->ops.mm.get_iova_addr(g, acr->ucode_blob.priv.sgt->sgl, 0); |
1079 | size = acr->ucode_blob.size; | 1079 | size = acr->ucode_blob.size; |
1080 | 1080 | ||
1081 | gm20b_dbg_pmu(""); | 1081 | gm20b_dbg_pmu(""); |
@@ -1419,7 +1419,8 @@ int pmu_exec_gen_bl(struct gk20a *g, void *desc, u8 b_wait_for_halt) | |||
1419 | goto err_done; | 1419 | goto err_done; |
1420 | } | 1420 | } |
1421 | 1421 | ||
1422 | acr->hsbl_ucode.gpu_va = gk20a_gmmu_map(vm, &acr->hsbl_ucode.sgt, | 1422 | acr->hsbl_ucode.gpu_va = gk20a_gmmu_map(vm, |
1423 | &acr->hsbl_ucode.priv.sgt, | ||
1423 | bl_sz, | 1424 | bl_sz, |
1424 | 0, /* flags */ | 1425 | 0, /* flags */ |
1425 | gk20a_mem_flag_read_only, false, | 1426 | gk20a_mem_flag_read_only, false, |