summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gv11b
diff options
context:
space:
mode:
authorAlex Waterman <alexw@nvidia.com>2017-03-22 13:01:14 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-04-06 21:15:15 -0400
commitc876bec8bab5a1e4d6dea529700ef19c5eac5e64 (patch)
tree63619f86ef614b247965ab78b39553fcf32e39c7 /drivers/gpu/nvgpu/gv11b
parent633d331ae2db50fbcce829fe324c19fc44b82c24 (diff)
gpu: nvgpu: rename mem_desc to nvgpu_mem
$ find -type f | \ xargs sed -i 's/struct mem_desc/struct nvgpu_mem/g' JIRA NVGPU-12 Change-Id: I2b5d015e45185269bfae7c6d4199fe843ff26834 Signed-off-by: Alex Waterman <alexw@nvidia.com> Reviewed-on: http://git-master/r/1326194 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b')
-rw-r--r--drivers/gpu/nvgpu/gv11b/fifo_gv11b.c6
-rw-r--r--drivers/gpu/nvgpu/gv11b/gr_gv11b.c12
-rw-r--r--drivers/gpu/nvgpu/gv11b/gr_gv11b.h2
-rw-r--r--drivers/gpu/nvgpu/gv11b/mm_gv11b.c2
-rw-r--r--drivers/gpu/nvgpu/gv11b/subctx_gv11b.c6
5 files changed, 14 insertions, 14 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c b/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c
index dd56a6f9..30d695ff 100644
--- a/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c
+++ b/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c
@@ -112,7 +112,7 @@ static int channel_gv11b_setup_ramfc(struct channel_gk20a *c,
112 unsigned long acquire_timeout, u32 flags) 112 unsigned long acquire_timeout, u32 flags)
113{ 113{
114 struct gk20a *g = c->g; 114 struct gk20a *g = c->g;
115 struct mem_desc *mem = &c->inst_block; 115 struct nvgpu_mem *mem = &c->inst_block;
116 u32 data; 116 u32 data;
117 117
118 gk20a_dbg_fn(""); 118 gk20a_dbg_fn("");
@@ -193,7 +193,7 @@ static void gv11b_ring_channel_doorbell(struct channel_gk20a *c)
193 193
194static u32 gv11b_userd_gp_get(struct gk20a *g, struct channel_gk20a *c) 194static u32 gv11b_userd_gp_get(struct gk20a *g, struct channel_gk20a *c)
195{ 195{
196 struct mem_desc *userd_mem = &g->fifo.userd; 196 struct nvgpu_mem *userd_mem = &g->fifo.userd;
197 u32 offset = c->hw_chid * (g->fifo.userd_entry_size / sizeof(u32)); 197 u32 offset = c->hw_chid * (g->fifo.userd_entry_size / sizeof(u32));
198 198
199 return nvgpu_mem_rd32(g, userd_mem, 199 return nvgpu_mem_rd32(g, userd_mem,
@@ -202,7 +202,7 @@ static u32 gv11b_userd_gp_get(struct gk20a *g, struct channel_gk20a *c)
202 202
203static void gv11b_userd_gp_put(struct gk20a *g, struct channel_gk20a *c) 203static void gv11b_userd_gp_put(struct gk20a *g, struct channel_gk20a *c)
204{ 204{
205 struct mem_desc *userd_mem = &g->fifo.userd; 205 struct nvgpu_mem *userd_mem = &g->fifo.userd;
206 u32 offset = c->hw_chid * (g->fifo.userd_entry_size / sizeof(u32)); 206 u32 offset = c->hw_chid * (g->fifo.userd_entry_size / sizeof(u32));
207 207
208 nvgpu_mem_wr32(g, userd_mem, offset + ram_userd_gp_put_w(), 208 nvgpu_mem_wr32(g, userd_mem, offset + ram_userd_gp_put_w(),
diff --git a/drivers/gpu/nvgpu/gv11b/gr_gv11b.c b/drivers/gpu/nvgpu/gv11b/gr_gv11b.c
index ddaaa350..6e6b5630 100644
--- a/drivers/gpu/nvgpu/gv11b/gr_gv11b.c
+++ b/drivers/gpu/nvgpu/gv11b/gr_gv11b.c
@@ -642,7 +642,7 @@ static int gr_gv11b_init_ctx_state(struct gk20a *g)
642} 642}
643 643
644int gr_gv11b_alloc_buffer(struct vm_gk20a *vm, size_t size, 644int gr_gv11b_alloc_buffer(struct vm_gk20a *vm, size_t size,
645 struct mem_desc *mem) 645 struct nvgpu_mem *mem)
646{ 646{
647 int err; 647 int err;
648 648
@@ -778,7 +778,7 @@ fail_free_gk20a_ctx:
778static void dump_ctx_switch_stats(struct gk20a *g, struct vm_gk20a *vm, 778static void dump_ctx_switch_stats(struct gk20a *g, struct vm_gk20a *vm,
779 struct gr_ctx_desc *gr_ctx) 779 struct gr_ctx_desc *gr_ctx)
780{ 780{
781 struct mem_desc *mem = &gr_ctx->mem; 781 struct nvgpu_mem *mem = &gr_ctx->mem;
782 782
783 if (nvgpu_mem_begin(g, mem)) { 783 if (nvgpu_mem_begin(g, mem)) {
784 WARN_ON("Cannot map context"); 784 WARN_ON("Cannot map context");
@@ -834,7 +834,7 @@ static void gr_gv11b_free_gr_ctx(struct gk20a *g, struct vm_gk20a *vm,
834 834
835static void gr_gv11b_update_ctxsw_preemption_mode(struct gk20a *g, 835static void gr_gv11b_update_ctxsw_preemption_mode(struct gk20a *g,
836 struct channel_ctx_gk20a *ch_ctx, 836 struct channel_ctx_gk20a *ch_ctx,
837 struct mem_desc *mem) 837 struct nvgpu_mem *mem)
838{ 838{
839 struct gr_ctx_desc *gr_ctx = ch_ctx->gr_ctx; 839 struct gr_ctx_desc *gr_ctx = ch_ctx->gr_ctx;
840 u32 gfxp_preempt_option = 840 u32 gfxp_preempt_option =
@@ -1925,7 +1925,7 @@ static int gr_gv11b_commit_global_timeslice(struct gk20a *g,
1925} 1925}
1926 1926
1927static void gv11b_restore_context_header(struct gk20a *g, 1927static void gv11b_restore_context_header(struct gk20a *g,
1928 struct mem_desc *ctxheader) 1928 struct nvgpu_mem *ctxheader)
1929{ 1929{
1930 u32 va_lo, va_hi; 1930 u32 va_lo, va_hi;
1931 struct gr_gk20a *gr = &g->gr; 1931 struct gr_gk20a *gr = &g->gr;
@@ -1947,7 +1947,7 @@ static void gv11b_restore_context_header(struct gk20a *g,
1947 ctxsw_prog_main_image_num_save_ops_o(), 0); 1947 ctxsw_prog_main_image_num_save_ops_o(), 0);
1948} 1948}
1949static void gr_gv11b_write_zcull_ptr(struct gk20a *g, 1949static void gr_gv11b_write_zcull_ptr(struct gk20a *g,
1950 struct mem_desc *mem, u64 gpu_va) 1950 struct nvgpu_mem *mem, u64 gpu_va)
1951{ 1951{
1952 u32 va_lo, va_hi; 1952 u32 va_lo, va_hi;
1953 1953
@@ -1962,7 +1962,7 @@ static void gr_gv11b_write_zcull_ptr(struct gk20a *g,
1962 1962
1963 1963
1964static void gr_gv11b_write_pm_ptr(struct gk20a *g, 1964static void gr_gv11b_write_pm_ptr(struct gk20a *g,
1965 struct mem_desc *mem, u64 gpu_va) 1965 struct nvgpu_mem *mem, u64 gpu_va)
1966{ 1966{
1967 u32 va_lo, va_hi; 1967 u32 va_lo, va_hi;
1968 1968
diff --git a/drivers/gpu/nvgpu/gv11b/gr_gv11b.h b/drivers/gpu/nvgpu/gv11b/gr_gv11b.h
index 7467fea8..9d9f969d 100644
--- a/drivers/gpu/nvgpu/gv11b/gr_gv11b.h
+++ b/drivers/gpu/nvgpu/gv11b/gr_gv11b.h
@@ -44,7 +44,7 @@ enum {
44 44
45void gv11b_init_gr(struct gpu_ops *ops); 45void gv11b_init_gr(struct gpu_ops *ops);
46int gr_gv11b_alloc_buffer(struct vm_gk20a *vm, size_t size, 46int gr_gv11b_alloc_buffer(struct vm_gk20a *vm, size_t size,
47 struct mem_desc *mem); 47 struct nvgpu_mem *mem);
48/*zcull*/ 48/*zcull*/
49void gr_gv11b_program_zcull_mapping(struct gk20a *g, u32 zcull_num_entries, 49void gr_gv11b_program_zcull_mapping(struct gk20a *g, u32 zcull_num_entries,
50 u32 *zcull_map_tiles); 50 u32 *zcull_map_tiles);
diff --git a/drivers/gpu/nvgpu/gv11b/mm_gv11b.c b/drivers/gpu/nvgpu/gv11b/mm_gv11b.c
index 84a9449a..269108ff 100644
--- a/drivers/gpu/nvgpu/gv11b/mm_gv11b.c
+++ b/drivers/gpu/nvgpu/gv11b/mm_gv11b.c
@@ -28,7 +28,7 @@ static bool gv11b_mm_is_bar1_supported(struct gk20a *g)
28 return false; 28 return false;
29} 29}
30 30
31static void gv11b_init_inst_block(struct mem_desc *inst_block, 31static void gv11b_init_inst_block(struct nvgpu_mem *inst_block,
32 struct vm_gk20a *vm, u32 big_page_size) 32 struct vm_gk20a *vm, u32 big_page_size)
33{ 33{
34 struct gk20a *g = gk20a_from_vm(vm); 34 struct gk20a *g = gk20a_from_vm(vm);
diff --git a/drivers/gpu/nvgpu/gv11b/subctx_gv11b.c b/drivers/gpu/nvgpu/gv11b/subctx_gv11b.c
index 8bf0631e..757baa6e 100644
--- a/drivers/gpu/nvgpu/gv11b/subctx_gv11b.c
+++ b/drivers/gpu/nvgpu/gv11b/subctx_gv11b.c
@@ -24,7 +24,7 @@
24#include <nvgpu/hw/gv11b/hw_ctxsw_prog_gv11b.h> 24#include <nvgpu/hw/gv11b/hw_ctxsw_prog_gv11b.h>
25 25
26static void gv11b_init_subcontext_pdb(struct channel_gk20a *c, 26static void gv11b_init_subcontext_pdb(struct channel_gk20a *c,
27 struct mem_desc *inst_block); 27 struct nvgpu_mem *inst_block);
28 28
29void gv11b_free_subctx_header(struct channel_gk20a *c) 29void gv11b_free_subctx_header(struct channel_gk20a *c)
30{ 30{
@@ -86,7 +86,7 @@ int gv11b_alloc_subctx_header(struct channel_gk20a *c)
86} 86}
87 87
88static void gv11b_init_subcontext_pdb(struct channel_gk20a *c, 88static void gv11b_init_subcontext_pdb(struct channel_gk20a *c,
89 struct mem_desc *inst_block) 89 struct nvgpu_mem *inst_block)
90{ 90{
91 struct gk20a *g = c->g; 91 struct gk20a *g = c->g;
92 struct vm_gk20a *vm; 92 struct vm_gk20a *vm;
@@ -126,7 +126,7 @@ static void gv11b_init_subcontext_pdb(struct channel_gk20a *c,
126int gv11b_update_subctx_header(struct channel_gk20a *c, u64 gpu_va) 126int gv11b_update_subctx_header(struct channel_gk20a *c, u64 gpu_va)
127{ 127{
128 struct ctx_header_desc *ctx = &c->ch_ctx.ctx_header; 128 struct ctx_header_desc *ctx = &c->ch_ctx.ctx_header;
129 struct mem_desc *gr_mem; 129 struct nvgpu_mem *gr_mem;
130 struct gk20a *g = c->g; 130 struct gk20a *g = c->g;
131 int ret = 0; 131 int ret = 0;
132 u32 addr_lo, addr_hi; 132 u32 addr_lo, addr_hi;