video: tegra: host: Prevent syncpoint 0 tampering
authorArto Merilainen <amerilainen@nvidia.com>
Wed, 28 Aug 2013 08:08:18 +0000 (11:08 +0300)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 14 Sep 2013 20:45:10 +0000 (13:45 -0700)
commit1167d3459e274b5487644f0038a779fe3ff35e81
tree7589ac0833c14c2d2f36f574a4c19a2b2cb6f66b
parenta1fd1258d92c9cb671c0f410c98b9217eb3eaa4f
video: tegra: host: Prevent syncpoint 0 tampering

Faulty submits can cause syncpoint 0 value to be incremented. This
patch hooks interrupt handler to verify that the syncpoint 0 is
restored back to 0 in case it is accidentally incremented.

Bug 1349710

Change-Id: I6ef1194acbd18870adda2f65b7a4334c6855d898
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/267174
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
drivers/video/tegra/host/host1x/host1x_intr.c
drivers/video/tegra/host/nvhost_syncpt.c
drivers/video/tegra/host/nvhost_syncpt.h