mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 09:57:08 +03:00
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>
This commit is contained in:
committed by
mobile promotions
parent
048c6b062a
commit
8efe596b01
@@ -382,6 +382,7 @@ struct gpu_ops {
|
|||||||
} gr;
|
} gr;
|
||||||
struct {
|
struct {
|
||||||
void (*init_hw)(struct gk20a *g);
|
void (*init_hw)(struct gk20a *g);
|
||||||
|
void (*init_cbc)(struct gk20a *g, struct gr_gk20a *gr);
|
||||||
void (*init_fs_state)(struct gk20a *g);
|
void (*init_fs_state)(struct gk20a *g);
|
||||||
void (*reset)(struct gk20a *g);
|
void (*reset)(struct gk20a *g);
|
||||||
void (*init_uncompressed_kind_map)(struct gk20a *g);
|
void (*init_uncompressed_kind_map)(struct gk20a *g);
|
||||||
|
|||||||
@@ -4828,6 +4828,9 @@ static int gk20a_init_gr_setup_hw(struct gk20a *g)
|
|||||||
if (g->ops.ltc.init_cbc)
|
if (g->ops.ltc.init_cbc)
|
||||||
g->ops.ltc.init_cbc(g, gr);
|
g->ops.ltc.init_cbc(g, gr);
|
||||||
|
|
||||||
|
if (g->ops.fb.init_cbc)
|
||||||
|
g->ops.fb.init_cbc(g, gr);
|
||||||
|
|
||||||
/* load ctx init */
|
/* load ctx init */
|
||||||
for (i = 0; i < sw_ctx_load->count; i++)
|
for (i = 0; i < sw_ctx_load->count; i++)
|
||||||
gk20a_writel(g, sw_ctx_load->l[i].addr,
|
gk20a_writel(g, sw_ctx_load->l[i].addr,
|
||||||
|
|||||||
Reference in New Issue
Block a user