diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2011-10-26 09:11:29 +0300 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:49:52 -0800 |
commit | d1a2d45c505b5a21eb1e5fdcc131f5e8e9cc8240 (patch) | |
tree | 1d50ba966abafa8cbc645b7e193749ad68c6b89f /drivers/video/tegra/host/nvhost_syncpt.c | |
parent | 07365cf99860305ea5707cdbd1fa19aee1ebd654 (diff) |
video: tegra: host: Add waitbases to debug output
Add listing of wait bases and their values to debug output.
Reviewed-on: http://git-master/r/60389
(cherry picked from commit 16afc5516433d4a66d838c5a339ab8c07f4b42fa)
Change-Id: I70a82944cb39e65ce409169d5aa00bafb343a9b6
Reviewed-on: http://git-master/r/62369
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Rebase-Id: R505b4dcfd6912e99ac44ec938f8be1b1574b2b05
Diffstat (limited to 'drivers/video/tegra/host/nvhost_syncpt.c')
-rw-r--r-- | drivers/video/tegra/host/nvhost_syncpt.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/video/tegra/host/nvhost_syncpt.c b/drivers/video/tegra/host/nvhost_syncpt.c index f5e788551a05..672841f22e5c 100644 --- a/drivers/video/tegra/host/nvhost_syncpt.c +++ b/drivers/video/tegra/host/nvhost_syncpt.c @@ -83,6 +83,20 @@ u32 nvhost_syncpt_read(struct nvhost_syncpt *sp, u32 id) } /** + * Get the current syncpoint base + */ +u32 nvhost_syncpt_read_wait_base(struct nvhost_syncpt *sp, u32 id) +{ + u32 val; + BUG_ON(!syncpt_op(sp).read_wait_base); + nvhost_module_busy(&syncpt_to_dev(sp)->mod); + syncpt_op(sp).read_wait_base(sp, id); + val = sp->base_val[id]; + nvhost_module_idle(&syncpt_to_dev(sp)->mod); + return val; +} + +/** * Write a cpu syncpoint increment to the hardware, without touching * the cache. Caller is responsible for host being powered. */ |