]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
gpu: nvgpu: zbc: disable activity only from ioctl
authorTerje Bergstrom <tbergstrom@nvidia.com>
Mon, 6 Apr 2015 17:48:29 +0000 (10:48 -0700)
committerTerje Bergstrom <tbergstrom@nvidia.com>
Wed, 22 Apr 2015 21:29:35 +0000 (14:29 -0700)
commit04f5428b7201729b8212970b4e95c792fd070499
treebddda66b14dc386d0b7b8993d9017703a6c857e6
parentf433192834a6353b411d43d2d85a5af8a135fbc7
gpu: nvgpu: zbc: disable activity only from ioctl

Move the fifo engine activity disabling and wait-for-idle from the
lowest-level functions higher, into the ioctl path of zbc operations, so
that the sw initialization path wouldn't call them. During the init
path, the disable isn't necessary, and the code path could result in a
deadlock in the fifo runlist mutex.

Change-Id: Icf5c270ba29bc1c7f88874fba2d176d68e11278a
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/733668
drivers/gpu/nvgpu/gk20a/gr_gk20a.c