diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-09-27 18:05:50 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-10-13 18:20:01 -0400 |
commit | b0092ea95c6e1f695912cdb0b13767f3881cb22f (patch) | |
tree | 0ed4ebc0b72592d8addf6e459269dd5aa245c368 /drivers/gpu/nvgpu/gv11b | |
parent | 506f891f76800b059e960a195bb0da4c71cb2e16 (diff) |
gpu: nvgpu: gv11b: Abstract IO aperture accessors
Implement T19x specific usermode aperture initialization functions.
Move usermode_regs field to nvgpu_os_linux_t19x, because it is
Linux specific.
JIRA NVGPU-259
Change-Id: I9d6ce243a692ab48209d468288ed85f89fb26770
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1569699
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.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c b/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c index b8798033..e9830c0e 100644 --- a/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c | |||
@@ -61,15 +61,6 @@ | |||
61 | static void gv11b_fifo_init_ramfc_eng_method_buffer(struct gk20a *g, | 61 | static void gv11b_fifo_init_ramfc_eng_method_buffer(struct gk20a *g, |
62 | struct channel_gk20a *ch, struct nvgpu_mem *mem); | 62 | struct channel_gk20a *ch, struct nvgpu_mem *mem); |
63 | 63 | ||
64 | static inline void gv11b_usermode_writel(struct gk20a *g, u32 r, u32 v) | ||
65 | { | ||
66 | struct fifo_gk20a *f = &g->fifo; | ||
67 | void __iomem *reg = f->t19x.usermode_regs + (r - usermode_cfg0_r()); | ||
68 | |||
69 | writel_relaxed(v, reg); | ||
70 | gk20a_dbg(gpu_dbg_reg, "usermode r=0x%x v=0x%x", r, v); | ||
71 | } | ||
72 | |||
73 | void gv11b_get_tsg_runlist_entry(struct tsg_gk20a *tsg, u32 *runlist) | 64 | void gv11b_get_tsg_runlist_entry(struct tsg_gk20a *tsg, u32 *runlist) |
74 | { | 65 | { |
75 | 66 | ||
@@ -1787,7 +1778,6 @@ int gv11b_init_fifo_setup_hw(struct gk20a *g) | |||
1787 | { | 1778 | { |
1788 | struct fifo_gk20a *f = &g->fifo; | 1779 | struct fifo_gk20a *f = &g->fifo; |
1789 | 1780 | ||
1790 | f->t19x.usermode_regs = g->regs + usermode_cfg0_r(); | ||
1791 | f->t19x.max_subctx_count = | 1781 | f->t19x.max_subctx_count = |
1792 | gr_pri_fe_chip_def_info_max_veid_count_init_v(); | 1782 | gr_pri_fe_chip_def_info_max_veid_count_init_v(); |
1793 | return 0; | 1783 | return 0; |