From 9cf345b8be4e3deec01cc6b97a212b8a775986c5 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Mon, 23 Mar 2015 09:48:17 -0700 Subject: 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 Reviewed-on: http://git-master/r/721032 --- drivers/gpu/nvgpu/gm20b/gr_gm20b.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, if (!ctx_ptr) return -ENOMEM; - v = gk20a_mem_rd32(ctx_ptr, ctxsw_prog_main_image_pm_o()); + v = gk20a_mem_rd32(ctx_ptr + ctxsw_prog_main_image_pm_o(), 0); v &= ~ctxsw_prog_main_image_pm_pc_sampling_m(); v |= ctxsw_prog_main_image_pm_pc_sampling_f(enable); gk20a_mem_wr32(ctx_ptr + ctxsw_prog_main_image_pm_o(), 0, v); -- cgit v1.2.2