mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: Add flag to rop_mapping hal function
Add NVGPU_GRAPHICS flag to support the rop_mapping hal function and files which refer this function. Use only when this flag is defined. Jira NVGPU-3584 Change-Id: I49b10bb772306ba20004b3836596ea43cf0e1775 Signed-off-by: Vinod G <vinodg@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2130649 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com> Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com> GVS: Gerrit_Virtual_Submit 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
1ad54446da
commit
20b974e724
@@ -119,8 +119,10 @@ int nvgpu_gr_fs_state_init(struct gk20a *g, struct nvgpu_gr_config *config)
|
||||
|
||||
g->ops.gr.init.pd_tpc_per_gpc(g, config);
|
||||
|
||||
#ifdef NVGPU_GRAPHICS
|
||||
/* gr__setup_pd_mapping */
|
||||
g->ops.gr.init.rop_mapping(g, config);
|
||||
#endif
|
||||
|
||||
g->ops.gr.init.pd_skip_table_gpc(g, config);
|
||||
|
||||
|
||||
@@ -258,6 +258,7 @@ void gm20b_gr_init_tpc_mask(struct gk20a *g, u32 gpc_index, u32 pes_tpc_mask)
|
||||
nvgpu_writel(g, gr_fe_tpc_fs_r(), pes_tpc_mask);
|
||||
}
|
||||
|
||||
#ifdef NVGPU_GRAPHICS
|
||||
void gm20b_gr_init_rop_mapping(struct gk20a *g,
|
||||
struct nvgpu_gr_config *gr_config)
|
||||
{
|
||||
@@ -430,6 +431,7 @@ void gm20b_gr_init_rop_mapping(struct gk20a *g,
|
||||
nvgpu_writel(g, gr_rstr2d_gpc_map4_r(), map4);
|
||||
nvgpu_writel(g, gr_rstr2d_gpc_map5_r(), map5);
|
||||
}
|
||||
#endif
|
||||
|
||||
int gm20b_gr_init_fs_state(struct gk20a *g)
|
||||
{
|
||||
|
||||
@@ -48,8 +48,10 @@ u32 gm20b_gr_init_get_sm_id_size(void);
|
||||
int gm20b_gr_init_sm_id_config(struct gk20a *g, u32 *tpc_sm_id,
|
||||
struct nvgpu_gr_config *gr_config);
|
||||
void gm20b_gr_init_tpc_mask(struct gk20a *g, u32 gpc_index, u32 pes_tpc_mask);
|
||||
#ifdef NVGPU_GRAPHICS
|
||||
void gm20b_gr_init_rop_mapping(struct gk20a *g,
|
||||
struct nvgpu_gr_config *gr_config);
|
||||
#endif
|
||||
int gm20b_gr_init_fs_state(struct gk20a *g);
|
||||
void gm20b_gr_init_pd_tpc_per_gpc(struct gk20a *g,
|
||||
struct nvgpu_gr_config *gr_config);
|
||||
|
||||
@@ -473,6 +473,7 @@ void gv11b_gr_init_tpc_mask(struct gk20a *g, u32 gpc_index, u32 pes_tpc_mask)
|
||||
nvgpu_writel(g, gr_fe_tpc_fs_r(gpc_index), pes_tpc_mask);
|
||||
}
|
||||
|
||||
#ifdef NVGPU_GRAPHICS
|
||||
void gv11b_gr_init_rop_mapping(struct gk20a *g,
|
||||
struct nvgpu_gr_config *gr_config)
|
||||
{
|
||||
@@ -560,6 +561,7 @@ void gv11b_gr_init_rop_mapping(struct gk20a *g,
|
||||
gr_rstr2d_map_table_cfg_num_entries_f(
|
||||
nvgpu_gr_config_get_tpc_count(gr_config)));
|
||||
}
|
||||
#endif
|
||||
|
||||
int gv11b_gr_init_fs_state(struct gk20a *g)
|
||||
{
|
||||
|
||||
@@ -42,8 +42,10 @@ void gv11b_gr_init_sm_id_numbering(struct gk20a *g, u32 gpc, u32 tpc, u32 smid,
|
||||
int gv11b_gr_init_sm_id_config(struct gk20a *g, u32 *tpc_sm_id,
|
||||
struct nvgpu_gr_config *gr_config);
|
||||
void gv11b_gr_init_tpc_mask(struct gk20a *g, u32 gpc_index, u32 pes_tpc_mask);
|
||||
#ifdef NVGPU_GRAPHICS
|
||||
void gv11b_gr_init_rop_mapping(struct gk20a *g,
|
||||
struct nvgpu_gr_config *gr_config);
|
||||
#endif
|
||||
int gv11b_gr_init_fs_state(struct gk20a *g);
|
||||
int gv11b_gr_init_preemption_state(struct gk20a *g);
|
||||
void gv11b_gr_init_commit_global_timeslice(struct gk20a *g);
|
||||
|
||||
@@ -332,7 +332,9 @@ static const struct gpu_ops gm20b_ops = {
|
||||
.sm_id_config = gm20b_gr_init_sm_id_config,
|
||||
.sm_id_numbering = gm20b_gr_init_sm_id_numbering,
|
||||
.tpc_mask = gm20b_gr_init_tpc_mask,
|
||||
#ifdef NVGPU_GRAPHICS
|
||||
.rop_mapping = gm20b_gr_init_rop_mapping,
|
||||
#endif
|
||||
.fs_state = gm20b_gr_init_fs_state,
|
||||
.pd_tpc_per_gpc = gm20b_gr_init_pd_tpc_per_gpc,
|
||||
.pd_skip_table_gpc = gm20b_gr_init_pd_skip_table_gpc,
|
||||
|
||||
@@ -383,7 +383,9 @@ static const struct gpu_ops gp10b_ops = {
|
||||
.sm_id_config = gp10b_gr_init_sm_id_config,
|
||||
.sm_id_numbering = gm20b_gr_init_sm_id_numbering,
|
||||
.tpc_mask = gm20b_gr_init_tpc_mask,
|
||||
#ifdef NVGPU_GRAPHICS
|
||||
.rop_mapping = gm20b_gr_init_rop_mapping,
|
||||
#endif
|
||||
.fs_state = gp10b_gr_init_fs_state,
|
||||
.pd_tpc_per_gpc = gm20b_gr_init_pd_tpc_per_gpc,
|
||||
.pd_skip_table_gpc = gm20b_gr_init_pd_skip_table_gpc,
|
||||
|
||||
@@ -464,7 +464,9 @@ static const struct gpu_ops gv11b_ops = {
|
||||
.sm_id_config = gv11b_gr_init_sm_id_config,
|
||||
.sm_id_numbering = gv11b_gr_init_sm_id_numbering,
|
||||
.tpc_mask = gv11b_gr_init_tpc_mask,
|
||||
#ifdef NVGPU_GRAPHICS
|
||||
.rop_mapping = gv11b_gr_init_rop_mapping,
|
||||
#endif
|
||||
.fs_state = gv11b_gr_init_fs_state,
|
||||
.pd_tpc_per_gpc = gm20b_gr_init_pd_tpc_per_gpc,
|
||||
.pd_skip_table_gpc = gm20b_gr_init_pd_skip_table_gpc,
|
||||
|
||||
@@ -504,7 +504,9 @@ static const struct gpu_ops tu104_ops = {
|
||||
.sm_id_config = gv11b_gr_init_sm_id_config,
|
||||
.sm_id_numbering = gv11b_gr_init_sm_id_numbering,
|
||||
.tpc_mask = gv11b_gr_init_tpc_mask,
|
||||
#ifdef NVGPU_GRAPHICS
|
||||
.rop_mapping = gv11b_gr_init_rop_mapping,
|
||||
#endif
|
||||
.fs_state = gv11b_gr_init_fs_state,
|
||||
.pd_tpc_per_gpc = gm20b_gr_init_pd_tpc_per_gpc,
|
||||
.pd_skip_table_gpc = gm20b_gr_init_pd_skip_table_gpc,
|
||||
|
||||
@@ -689,8 +689,10 @@ struct gpu_ops {
|
||||
struct nvgpu_gr_config *gr_config);
|
||||
void (*tpc_mask)(struct gk20a *g,
|
||||
u32 gpc_index, u32 pes_tpc_mask);
|
||||
#ifdef NVGPU_GRAPHICS
|
||||
void (*rop_mapping)(struct gk20a *g,
|
||||
struct nvgpu_gr_config *gr_config);
|
||||
#endif /* NVGPU_GRAPHICS */
|
||||
int (*fs_state)(struct gk20a *g);
|
||||
void (*pd_tpc_per_gpc)(struct gk20a *g,
|
||||
struct nvgpu_gr_config *gr_config);
|
||||
|
||||
Reference in New Issue
Block a user