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/gk20a/fb_gk20a.c | |
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/gk20a/fb_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/fb_gk20a.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/fb_gk20a.c b/drivers/gpu/nvgpu/gk20a/fb_gk20a.c index 214014ce..4a76bd6b 100644 --- a/drivers/gpu/nvgpu/gk20a/fb_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/fb_gk20a.c | |||
@@ -44,9 +44,10 @@ void fb_gk20a_reset(struct gk20a *g) | |||
44 | 44 | ||
45 | void gk20a_fb_init_hw(struct gk20a *g) | 45 | void gk20a_fb_init_hw(struct gk20a *g) |
46 | { | 46 | { |
47 | gk20a_writel(g, fb_niso_flush_sysmem_addr_r(), | 47 | u32 addr = g->ops.mm.get_iova_addr(g, |
48 | g->ops.mm.get_iova_addr(g, g->mm.sysmem_flush.sgt->sgl, 0) | 48 | g->mm.sysmem_flush.priv.sgt->sgl, 0) >> 8; |
49 | >> 8); | 49 | |
50 | gk20a_writel(g, fb_niso_flush_sysmem_addr_r(), addr); | ||
50 | } | 51 | } |
51 | 52 | ||
52 | static void gk20a_fb_set_mmu_page_size(struct gk20a *g) | 53 | static void gk20a_fb_set_mmu_page_size(struct gk20a *g) |