]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
video: tegra: host: Implement shutdown
authorArto Merilainen <amerilainen@nvidia.com>
Mon, 15 Dec 2014 16:16:42 +0000 (18:16 +0200)
committerArto Merilainen <amerilainen@nvidia.com>
Thu, 18 Dec 2014 09:34:25 +0000 (01:34 -0800)
commit2d906a8249b3cbe73539160be43156b8305f03e5
treec4fa4436c29f53ef3310b802f9939326cdf0c039
parenta3ea4e305969fff95c06ad5a6d96a4a5d51caf35
video: tegra: host: Implement shutdown

In rare occassions something starts waiting for a syncpoint
when we are starting shutdown and as a result the shutdown process
may get disrupted when the syncpoint value is not achieved.

This patch adds shutdown routine to host1x. During shutdown we..:
- Release all syncpoint waiters with -ETIMEDOUT error code
- Prevent new requests by disabling pm runtime from host1x

Bug 200064323

Change-Id: If20fcf78af14a3ee639496da2c8f9f8ef43733db
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/663956
drivers/video/tegra/host/host1x/host1x.c
drivers/video/tegra/host/host1x/host1x.h
drivers/video/tegra/host/nvhost_syncpt.c