diff options
author | Sunny He <suhe@nvidia.com> | 2017-07-31 17:43:11 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-08-11 17:16:46 -0400 |
commit | 63b74d4b768e0c96367d4983fdd8f1db1d317d01 (patch) | |
tree | 3966af83cf9abdf687667afe120cc6648a9ed360 /drivers/gpu/nvgpu/gp106/fb_gp106.c | |
parent | 83e49b39181a86d32f6350c65659b5892f8f7670 (diff) |
gpu: nvgpu: Reorg fb HAL initialization
Reorganize HAL initialization to remove inheritance and construct
the gpu_ops struct at compile time. This patch only covers the
fb 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: Ib746798b849810401c12abf5e9cce42d827c6fb1
Signed-off-by: Sunny He <suhe@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1533350
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp106/fb_gp106.c')
-rw-r--r-- | drivers/gpu/nvgpu/gp106/fb_gp106.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/gpu/nvgpu/gp106/fb_gp106.c b/drivers/gpu/nvgpu/gp106/fb_gp106.c index 5be7062d..25055e79 100644 --- a/drivers/gpu/nvgpu/gp106/fb_gp106.c +++ b/drivers/gpu/nvgpu/gp106/fb_gp106.c | |||
@@ -21,7 +21,7 @@ | |||
21 | #define HW_SCRUB_TIMEOUT_DEFAULT 100 /* usec */ | 21 | #define HW_SCRUB_TIMEOUT_DEFAULT 100 /* usec */ |
22 | #define HW_SCRUB_TIMEOUT_MAX 2000000 /* usec */ | 22 | #define HW_SCRUB_TIMEOUT_MAX 2000000 /* usec */ |
23 | 23 | ||
24 | static void gp106_fb_reset(struct gk20a *g) | 24 | void gp106_fb_reset(struct gk20a *g) |
25 | { | 25 | { |
26 | u32 val; | 26 | u32 val; |
27 | 27 | ||
@@ -40,11 +40,3 @@ static void gp106_fb_reset(struct gk20a *g) | |||
40 | val &= ~fb_mmu_priv_level_mask_write_violation_m(); | 40 | val &= ~fb_mmu_priv_level_mask_write_violation_m(); |
41 | gk20a_writel(g, fb_mmu_priv_level_mask_r(), val); | 41 | gk20a_writel(g, fb_mmu_priv_level_mask_r(), val); |
42 | } | 42 | } |
43 | |||
44 | void gp106_init_fb(struct gpu_ops *gops) | ||
45 | { | ||
46 | gp10b_init_fb(gops); | ||
47 | |||
48 | gops->fb.init_fs_state = NULL; | ||
49 | gops->fb.reset = gp106_fb_reset; | ||
50 | } | ||