]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
video: tegra: host: Rework syncpt and ch policies
authorArto Merilainen <amerilainen@nvidia.com>
Mon, 16 Mar 2015 07:08:12 +0000 (09:08 +0200)
committerArto Merilainen <amerilainen@nvidia.com>
Wed, 18 Mar 2015 06:09:06 +0000 (23:09 -0700)
commitb3045c6491c0d3c53ea3ba403a6b5eed1dfe25db
treebb6b5a3d9fd4e0c107bf11c870964723eb4d5da4
parent1e5f3363486987e23a5731dd7e93ed13afe526c3
video: tegra: host: Rework syncpt and ch policies

Currently we have two global flags for marking the syncpoint and
channel policies that should be used. However, we have recently
found out that it is necessary to support both policies and as a
result we introduced forced_map_at_open flag. This was solely
a WAR for the issue that the flags were global.

This patch..:
- Reworks channel allocation code to be unaware of the channel policy
- Reworks bus_client to deliver cookie always. Depending on policy
we use either instance specific or device specific cookies
- Merges syncpoint and channel policy flags into device specific
"resource_policy" flag.

Overall, this patch does not introduce a functional difference - it
only refactors the code into more maintainable form.

Bug 1614168

Change-Id: I5ef4d773aff89cb51e34f8bfe57b957546227078
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/717722
drivers/video/tegra/host/bus_client.c
drivers/video/tegra/host/host1x/host1x.c
drivers/video/tegra/host/host1x/host1x.h
drivers/video/tegra/host/host1x/host1x_channel.c
drivers/video/tegra/host/nvhost_channel.c
drivers/video/tegra/host/nvhost_job.c
drivers/video/tegra/host/nvhost_syncpt.c
include/linux/nvhost.h