video: tegra: host: rewrite nvhost_job_pin/unpin APIs
authorMayuresh Kulkarni <mkulkarni@nvidia.com>
Mon, 9 Apr 2012 06:51:24 +0000 (11:51 +0530)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 14 Sep 2013 08:23:46 +0000 (01:23 -0700)
commit76cdf2bb34d9b6e21c5b1bb9084bfe0a92b6458b
tree68588c8ed23c8eba7d55c244ff48bf1c40ada347
parente6423009eda31406b747aef2c43c461fada04c1c
video: tegra: host: rewrite nvhost_job_pin/unpin APIs

- remove usage of custom interface of nvmap to patch the relocs and
  and pin the gathers/relocs
- convert code that references nvmap_handle to nvmap_handle_ref
- add logic to pin and map only unique gathers and relocs
- rename nvhost_channel_gather to nvhost_job_gather, because it's
  used in nvhost_job code only

Bug 965206

Change-Id: Iaa7fbac9e4a7b08c0a7c1e184b8dd3566e1edfe2
Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/95299
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

Rebase-Id: R7d0d6a16ce76817217aa4b5c1efe6fe149425127
14 files changed:
drivers/video/tegra/host/bus_client.c
drivers/video/tegra/host/chip_support.h
drivers/video/tegra/host/gr3d/gr3d_t20.c
drivers/video/tegra/host/gr3d/gr3d_t30.c
drivers/video/tegra/host/host1x/host1x_cdma.c
drivers/video/tegra/host/host1x/host1x_channel.c
drivers/video/tegra/host/host1x/host1x_debug.c
drivers/video/tegra/host/mpe/mpe.c
drivers/video/tegra/host/nvhost_cdma.c
drivers/video/tegra/host/nvhost_cdma.h
drivers/video/tegra/host/nvhost_channel.h
drivers/video/tegra/host/nvhost_job.c
drivers/video/tegra/host/nvhost_job.h
include/trace/events/nvhost.h