video: tegra: host: Improve timing of syncpt wait
authorTerje Bergstrom <tbergstrom@nvidia.com>
Tue, 22 May 2012 08:28:12 +0000 (11:28 +0300)
committerVarun Wadekar <vwadekar@nvidia.com>
Wed, 30 May 2012 11:53:45 +0000 (16:53 +0530)
commit8dc83578b2e4c239899d97d6ca39717614280a41
treef0621a9f5a2fd0d0b8b1f7a09d80c65d6b76a0b3
parenta5e210a94970518e0090ce750226a43adc862f03
video: tegra: host: Improve timing of syncpt wait

nvhost_syncpt_wait_timeout() relies on sync point interrupt to
signal reaching the sync point value. With low timeout values, the
resolution is not good enough and an error is returned even when
the value is reached.

Update syncpoint value from hardware when doing a sync point wait and
do an explicit check for reaching the value even if wait returns a
timeout.

bug 984166
bug 986788
bug 987597

Change-Id: I640e32cdcdfa66b8977eac273dd32f62bd72abd6
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/103827
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
drivers/video/tegra/host/nvhost_syncpt.c