tegra: host: move stale wait checking into the kernel
authorPrajakta Gudadhe <pgudadhe@nvidia.com>
Sat, 5 Feb 2011 09:37:38 +0000 (01:37 -0800)
committerRebecca Schultz Zavin <rebecca@android.com>
Thu, 3 Mar 2011 01:16:55 +0000 (17:16 -0800)
commit2d49bf33f3885aab293f12d54447f66e911e3226
treeed1e307872c113efe0828a9cc715e280539f588d
parent58570bc0c45d65b4c4b2e58ccff3e9a71d0ef5ac
tegra: host: move stale wait checking into the kernel

The kernel now receives wait tracking data (similar to gathers and
relocs) and compares the current syncpt with the threshold value.

If it's old, it gets a kernel mapping and rewrites the method data
to use a kernel reserved syncpt that is always 0 (so trivially pops
when seen by the HW).

Patch has dependency to the user-space patches

Submitted on behalf of: Chris Johnson <cjohnson@nvidia.com>
original work by: Chris Johnson <cjohnson@nvidia.com>

Change-Id: I4d4e5d3b49cab860485c4172f87247f5b4f5ea6e
arch/arm/mach-tegra/include/mach/nvhost.h
arch/arm/mach-tegra/include/mach/nvmap.h
drivers/video/tegra/host/dev.c
drivers/video/tegra/host/nvhost_channel.h
drivers/video/tegra/host/nvhost_hardware.h
drivers/video/tegra/host/nvhost_syncpt.c
drivers/video/tegra/host/nvhost_syncpt.h
drivers/video/tegra/nvmap/nvmap.c