From dde1913f164a030256bb454a8e9917279ae21396 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Wed, 3 Jan 2018 13:02:56 -0800 Subject: gpu: nvgpu: Do not disable ELPG when committing buffers Committing buffer addresses only writes to the memory. There's no need to disable ELPG for the duration, so drop the ELPG protection. Change-Id: I8d8d08506387197e4737e0311df4a20085496056 Signed-off-by: Terje Bergstrom Reviewed-on: https://git-master.nvidia.com/r/1631149 Reviewed-by: Deepak Nibade GVS: Gerrit_Virtual_Submit Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/gr_gk20a.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a') diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c index c7104941..11054087 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c @@ -2975,8 +2975,7 @@ int gk20a_alloc_obj_ctx(struct channel_gk20a *c, u32 class_num, u32 flags) "fail to map global ctx buffer"); goto out; } - gr_gk20a_elpg_protected_call(g, - gr_gk20a_commit_global_ctx_buffers(g, c, true)); + gr_gk20a_commit_global_ctx_buffers(g, c, true); } /* init golden image, ELPG enabled after this is done */ -- cgit v1.2.2