summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2015-03-23 12:48:17 -0400
committerDan Willemsen <dwillemsen@nvidia.com>2015-04-04 22:02:17 -0400
commit9cf345b8be4e3deec01cc6b97a212b8a775986c5 (patch)
treefb4b3f7f49af03d7c5dee8c61e4b600b9b09f6a6 /drivers/gpu
parent38fc3a48a0c2fbdda4f2e69dc7c4c619a534e468 (diff)
gpu: nvgpu: Fix offset of PC sampling field
Fix offset of PM word when changing PC sampling field. Bug 1517458 Bug 1573150 Change-Id: I2b8489b1d3c05f3a20416fc1a46ac1827f453cbc Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/721032
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/nvgpu/gm20b/gr_gm20b.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/gr_gm20b.c b/drivers/gpu/nvgpu/gm20b/gr_gm20b.c
index cffc56d1..1384f1f7 100644
--- a/drivers/gpu/nvgpu/gm20b/gr_gm20b.c
+++ b/drivers/gpu/nvgpu/gm20b/gr_gm20b.c
@@ -984,7 +984,7 @@ static int gr_gm20b_update_pc_sampling(struct channel_gk20a *c,
984 if (!ctx_ptr) 984 if (!ctx_ptr)
985 return -ENOMEM; 985 return -ENOMEM;
986 986
987 v = gk20a_mem_rd32(ctx_ptr, ctxsw_prog_main_image_pm_o()); 987 v = gk20a_mem_rd32(ctx_ptr + ctxsw_prog_main_image_pm_o(), 0);
988 v &= ~ctxsw_prog_main_image_pm_pc_sampling_m(); 988 v &= ~ctxsw_prog_main_image_pm_pc_sampling_m();
989 v |= ctxsw_prog_main_image_pm_pc_sampling_f(enable); 989 v |= ctxsw_prog_main_image_pm_pc_sampling_f(enable);
990 gk20a_mem_wr32(ctx_ptr + ctxsw_prog_main_image_pm_o(), 0, v); 990 gk20a_mem_wr32(ctx_ptr + ctxsw_prog_main_image_pm_o(), 0, v);