video: tegra: host: fix gk20a error handling
authorKirill Artamonov <kartamonov@nvidia.com>
Thu, 21 Nov 2013 14:38:12 +0000 (16:38 +0200)
committerTerje Bergstrom <tbergstrom@nvidia.com>
Tue, 17 Dec 2013 13:43:18 +0000 (05:43 -0800)
commit1f4e37fb2fc8507f728bdfb873fa81f9d45b08ea
tree04f3e5b00cd89a07ef4676001e9018493fd033a2
parent38a3e6c1c1ae2c82ed4998431043ae3f8e3af1be
video: tegra: host: fix gk20a error handling

Implement handling for gk20a semaphore_timeout, illegal_notify.

Report correct gk20a error codes to userspace drivers using
error notification interface.

Remove incorrectly done engine reset from non-mmu error handlers.
These errors already trigger mmu fault and engine reset is part of
mmu fault recovery.

Don't skip reset if gk20a_gr_isr() handles several interrupt
flags.

bug 1402282
bug 1355640

Signed-off-by: Kirill Artamonov <kartamonov@nvidia.com>
Change-Id: I622a26ccd1fb5efd1344083e3c1ffc0a79d7f8e4
Reviewed-on: http://git-master/r/336286
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
drivers/video/tegra/host/gk20a/channel_gk20a.c
drivers/video/tegra/host/gk20a/channel_gk20a.h
drivers/video/tegra/host/gk20a/fifo_gk20a.c
drivers/video/tegra/host/gk20a/gr_gk20a.c
drivers/video/tegra/host/gk20a/hw_gr_gk20a.h
include/linux/nvhost.h