diff options
author | Mayank Kaushik <mkaushik@nvidia.com> | 2014-09-25 20:21:24 -0400 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-03-18 15:11:57 -0400 |
commit | 1ee103adf30c14efef932faedc6b1bb226f7139b (patch) | |
tree | cecd392c75e937767ba2e4b211cbfe28bca1e926 /drivers/gpu/nvgpu/gm20b/regops_gm20b.c | |
parent | aec94d809348e8ff9a900c2a38456d7217c86728 (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.c | 9 |
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 | ||
497 | int gm20b_apply_smpc_war(struct dbg_session_gk20a *dbg_s) | ||
498 | { | ||
499 | /* Not needed on gm20b */ | ||
500 | return 0; | ||
501 | } | ||
502 | |||
497 | void gm20b_init_regops(struct gpu_ops *gops) | 503 | void 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 | } |