Files
linux-nvgpu/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
seshendra Gadagottu 7437fefa90 gpu: nvgpu: check for valid channel ctx before preempt
Always check for valid channel gr_ctx before issuing channel
preempt. Commands like "echo > /dev/nvhost-gpu" create channel
to just power-up gpu without any valid channel context. So
don't try to preempt those channels.

Bug 1937331

Change-Id: I48a4bfd35728b83b27eb968e51a56b900d1fa799
Signed-off-by: seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: http://git-master/r/1505783
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
2017-06-20 16:24:09 -07:00

78 KiB