summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gm20b/regops_gm20b.c
diff options
context:
space:
mode:
authorMayank Kaushik <mkaushik@nvidia.com>2014-09-25 20:21:24 -0400
committerDan Willemsen <dwillemsen@nvidia.com>2015-03-18 15:11:57 -0400
commit1ee103adf30c14efef932faedc6b1bb226f7139b (patch)
treececd392c75e937767ba2e4b211cbfe28bca1e926 /drivers/gpu/nvgpu/gm20b/regops_gm20b.c
parentaec94d809348e8ff9a900c2a38456d7217c86728 (diff)
gpu: nvgpu: create a hal function for smpc war
Create a HAL function for applying the SMPC workaround.The workaround is only needed on gk20a, and not on gm20b. Change-Id: I9edc741df32ab7d1dad38ecc56f238828128bfef Signed-off-by: Mayank Kaushik <mkaushik@nvidia.com> Reviewed-on: http://git-master/r/539187 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/regops_gm20b.c')
-rw-r--r--drivers/gpu/nvgpu/gm20b/regops_gm20b.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/regops_gm20b.c b/drivers/gpu/nvgpu/gm20b/regops_gm20b.c
index b7cc0aaa..71ccda37 100644
--- a/drivers/gpu/nvgpu/gm20b/regops_gm20b.c
+++ b/drivers/gpu/nvgpu/gm20b/regops_gm20b.c
@@ -494,6 +494,12 @@ int gm20b_get_qctl_whitelist_ranges_count(void)
494 return gm20b_qctl_whitelist_ranges_count; 494 return gm20b_qctl_whitelist_ranges_count;
495} 495}
496 496
497int gm20b_apply_smpc_war(struct dbg_session_gk20a *dbg_s)
498{
499 /* Not needed on gm20b */
500 return 0;
501}
502
497void gm20b_init_regops(struct gpu_ops *gops) 503void gm20b_init_regops(struct gpu_ops *gops)
498{ 504{
499 gops->regops.get_global_whitelist_ranges = 505 gops->regops.get_global_whitelist_ranges =
@@ -525,4 +531,7 @@ void gm20b_init_regops(struct gpu_ops *gops)
525 gm20b_get_qctl_whitelist_ranges; 531 gm20b_get_qctl_whitelist_ranges;
526 gops->regops.get_qctl_whitelist_ranges_count = 532 gops->regops.get_qctl_whitelist_ranges_count =
527 gm20b_get_qctl_whitelist_ranges_count; 533 gm20b_get_qctl_whitelist_ranges_count;
534
535 gops->regops.apply_smpc_war =
536 gm20b_apply_smpc_war;
528} 537}