diff options
author | seshendra Gadagottu <sgadagottu@nvidia.com> | 2017-05-17 23:05:28 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-06-07 16:35:28 -0400 |
commit | 8efe596b01972c4efd39e709d51bd2e88a62d43f (patch) | |
tree | 38eafc469c71a61f01e87b42b9c1598bdb300c98 /drivers/gpu/nvgpu/gk20a | |
parent | 048c6b062ae381a329dccbc7ca0599113dbd7417 (diff) |
gpu: nvgpu: implement chip specific fb cbc_init
Add function pointer in fb to add chip specific
cbc init.
GPUT19X-70
Change-Id: I12f73945d99498de965a671fd8e258b5c95bbabe
Signed-off-by: seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: http://git-master/r/1484524
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 1 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gr_gk20a.c | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index a02215d2..2ede539e 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -382,6 +382,7 @@ struct gpu_ops { | |||
382 | } gr; | 382 | } gr; |
383 | struct { | 383 | struct { |
384 | void (*init_hw)(struct gk20a *g); | 384 | void (*init_hw)(struct gk20a *g); |
385 | void (*init_cbc)(struct gk20a *g, struct gr_gk20a *gr); | ||
385 | void (*init_fs_state)(struct gk20a *g); | 386 | void (*init_fs_state)(struct gk20a *g); |
386 | void (*reset)(struct gk20a *g); | 387 | void (*reset)(struct gk20a *g); |
387 | void (*init_uncompressed_kind_map)(struct gk20a *g); | 388 | void (*init_uncompressed_kind_map)(struct gk20a *g); |
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c index b2ae77c3..462af65f 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c | |||
@@ -4828,6 +4828,9 @@ static int gk20a_init_gr_setup_hw(struct gk20a *g) | |||
4828 | if (g->ops.ltc.init_cbc) | 4828 | if (g->ops.ltc.init_cbc) |
4829 | g->ops.ltc.init_cbc(g, gr); | 4829 | g->ops.ltc.init_cbc(g, gr); |
4830 | 4830 | ||
4831 | if (g->ops.fb.init_cbc) | ||
4832 | g->ops.fb.init_cbc(g, gr); | ||
4833 | |||
4831 | /* load ctx init */ | 4834 | /* load ctx init */ |
4832 | for (i = 0; i < sw_ctx_load->count; i++) | 4835 | for (i = 0; i < sw_ctx_load->count; i++) |
4833 | gk20a_writel(g, sw_ctx_load->l[i].addr, | 4836 | gk20a_writel(g, sw_ctx_load->l[i].addr, |