From 1ee103adf30c14efef932faedc6b1bb226f7139b Mon Sep 17 00:00:00 2001 From: Mayank Kaushik Date: Thu, 25 Sep 2014 17:21:24 -0700 Subject: 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 Reviewed-on: http://git-master/r/539187 Reviewed-by: Terje Bergstrom Tested-by: Terje Bergstrom --- drivers/gpu/nvgpu/gm20b/regops_gm20b.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'drivers/gpu/nvgpu/gm20b/regops_gm20b.c') 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) return gm20b_qctl_whitelist_ranges_count; } +int gm20b_apply_smpc_war(struct dbg_session_gk20a *dbg_s) +{ + /* Not needed on gm20b */ + return 0; +} + void gm20b_init_regops(struct gpu_ops *gops) { gops->regops.get_global_whitelist_ranges = @@ -525,4 +531,7 @@ void gm20b_init_regops(struct gpu_ops *gops) gm20b_get_qctl_whitelist_ranges; gops->regops.get_qctl_whitelist_ranges_count = gm20b_get_qctl_whitelist_ranges_count; + + gops->regops.apply_smpc_war = + gm20b_apply_smpc_war; } -- cgit v1.2.2