]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
gpu: nvgpu: WAR for bad GPFIFO entries from userspace
authorAlex Waterman <alexw@nvidia.com>
Fri, 5 Jun 2015 21:04:12 +0000 (14:04 -0700)
committerTerje Bergstrom <tbergstrom@nvidia.com>
Wed, 10 Jun 2015 22:36:20 +0000 (15:36 -0700)
commit96580bd4f8d2538fa2d9a4df00413d49c30ab128
treed16e413a469b9c79898c8f9811fbe8a3fc009df9
parent8442f4e1b016cc46997cc44c243090a07056894c
gpu: nvgpu: WAR for bad GPFIFO entries from userspace

Userspace sometimes sends GPFIFO entries with a zero length. This
is a problem when the address of the pushbuffer of zero length is
larger than 32 bits. The high bits are interpreted as an opcode and
either triggers an operation that should not happen or is trated as
invalid.

Oddly, this WAR is only necessary on simulation.

Change-Id: I8be007c50f46d3e35c6a0e8512be88a8e68ee739
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/753379
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
drivers/gpu/nvgpu/gk20a/channel_gk20a.c