summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gm20b/gr_gm20b.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2015-10-06 13:59:26 -0400
committerTerje Bergstrom <tbergstrom@nvidia.com>2015-12-07 12:52:22 -0500
commit1ee25b11c519089da3fdfb299c37eb64d39a2213 (patch)
treec1cdfae516d841cc5f4eee2d7f08bbde4266f6a2 /drivers/gpu/nvgpu/gm20b/gr_gm20b.c
parentcbda0b2b7172bc9f0a3310ed9fe08e9f384b69c0 (diff)
gpu: nvgpu: Make access map chip specific
Bug 1692373 Change-Id: Ie3fc3e02fa7b0636da464d6ee1c28da7a4543ec2 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/812353
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/gr_gm20b.c')
-rw-r--r--drivers/gpu/nvgpu/gm20b/gr_gm20b.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/gr_gm20b.c b/drivers/gpu/nvgpu/gm20b/gr_gm20b.c
index 512c470d..81067f0a 100644
--- a/drivers/gpu/nvgpu/gm20b/gr_gm20b.c
+++ b/drivers/gpu/nvgpu/gm20b/gr_gm20b.c
@@ -1127,6 +1127,23 @@ void gr_gm20b_bpt_reg_info(struct gk20a *g, struct warpstate *w_state)
1127 } 1127 }
1128} 1128}
1129 1129
1130static void gr_gm20b_get_access_map(struct gk20a *g,
1131 u32 **whitelist, int *num_entries)
1132{
1133 static u32 wl_addr_gm20b[] = {
1134 /* this list must be sorted (low to high) */
1135 0x404468, /* gr_pri_mme_max_instructions */
1136 0x418800, /* gr_pri_gpcs_setup_debug */
1137 0x419a04, /* gr_pri_gpcs_tpcs_tex_lod_dbg */
1138 0x419a08, /* gr_pri_gpcs_tpcs_tex_samp_dbg */
1139 0x419e10, /* gr_pri_gpcs_tpcs_sm_dbgr_control0 */
1140 0x419f78, /* gr_pri_gpcs_tpcs_sm_disp_ctrl */
1141 };
1142
1143 *whitelist = wl_addr_gm20b;
1144 *num_entries = ARRAY_SIZE(wl_addr_gm20b);
1145}
1146
1130void gm20b_init_gr(struct gpu_ops *gops) 1147void gm20b_init_gr(struct gpu_ops *gops)
1131{ 1148{
1132 gops->gr.init_gpc_mmu = gr_gm20b_init_gpc_mmu; 1149 gops->gr.init_gpc_mmu = gr_gm20b_init_gpc_mmu;
@@ -1184,4 +1201,5 @@ void gm20b_init_gr(struct gpu_ops *gops)
1184 gops->gr.init_cyclestats = gr_gm20b_init_cyclestats; 1201 gops->gr.init_cyclestats = gr_gm20b_init_cyclestats;
1185 gops->gr.enable_cde_in_fecs = gr_gm20b_enable_cde_in_fecs; 1202 gops->gr.enable_cde_in_fecs = gr_gm20b_enable_cde_in_fecs;
1186 gops->gr.bpt_reg_info = gr_gm20b_bpt_reg_info; 1203 gops->gr.bpt_reg_info = gr_gm20b_bpt_reg_info;
1204 gops->gr.get_access_map = gr_gm20b_get_access_map;
1187} 1205}