]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
video: tegra: host: Skip expired pre-fences
authorArto Merilainen <amerilainen@nvidia.com>
Mon, 10 Mar 2014 14:51:44 +0000 (16:51 +0200)
committerTerje Bergstrom <tbergstrom@nvidia.com>
Wed, 12 Mar 2014 06:34:37 +0000 (23:34 -0700)
commit058a6c02bf967c13b1a08319bfb813bbce324baf
tree9d557bcb60ba3914d2d5433fb487cb8e704be5e9
parentd124f1ab8a47a4c22509ce16891f09dff8a3bc91
video: tegra: host: Skip expired pre-fences

Currently, nvhost pushes pre-fence waits always to the channel -
even if the fence would already be passed. In rare cases this causes
a wrapping issue when the hardware does not recognise that the
syncpoint threshold has already passed.

This patch modifies the code so that we check the fence value before
pushing the wait to the push buffer.

Bug 1477471

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