From b8faddfe2ad3d52837b0f766d74feb8e6d6f4ce5 Mon Sep 17 00:00:00 2001 From: Vijayakumar Date: Tue, 4 Aug 2015 17:14:54 +0530 Subject: gpu: nvgpu: fix runlist update timeout handling bug 1625901 1) disable ELPG before doing GR reset when runlist update times out 2) add mutex for GR reset to avoid multiple threads resetting GR 3) protect GR reset with FECS mutex so that no one else submits methods Change-Id: I02993fd1eabe6875ab1c58a40a06e6c79fcdeeae Signed-off-by: Vijayakumar Reviewed-on: http://git-master/r/793643 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom --- drivers/gpu/nvgpu/gk20a/fifo_gk20a.h | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/gpu/nvgpu/gk20a/fifo_gk20a.h') diff --git a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h index 7385f9be..3eb193f6 100644 --- a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h @@ -109,6 +109,7 @@ struct fifo_gk20a { /* zero-kref'd channels here */ struct list_head free_chs; struct mutex free_chs_mutex; + struct mutex gr_reset_mutex; struct tsg_gk20a *tsg; struct mutex tsg_inuse_mutex; -- cgit v1.2.2