From 7228c578e4968d29189b5ebae7c285c2ecc5c3ff Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Wed, 9 May 2012 15:54:02 +0300 Subject: video: tegra: host: Add syncpt trace events Add trace events for updating the syncpt value from hardware, and wait check. Change-Id: If17de153ae36c0665fe0af2f405dfe42f7fcd656 Signed-off-by: Terje Bergstrom Reviewed-on: http://git-master/r/101524 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Mayuresh Kulkarni Reviewed-by: Juha Tukkinen Reviewed-by: Ken Adams --- drivers/video/tegra/host/host1x/host1x_syncpt.c | 3 +++ drivers/video/tegra/host/nvhost_syncpt.c | 8 +++++++- 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'drivers') diff --git a/drivers/video/tegra/host/host1x/host1x_syncpt.c b/drivers/video/tegra/host/host1x/host1x_syncpt.c index d0de49463993..967bc6fe442c 100644 --- a/drivers/video/tegra/host/host1x/host1x_syncpt.c +++ b/drivers/video/tegra/host/host1x/host1x_syncpt.c @@ -20,6 +20,7 @@ #include #include +#include #include "nvhost_syncpt.h" #include "nvhost_acm.h" #include "dev.h" @@ -124,6 +125,8 @@ static int t20_syncpt_wait_check(struct nvhost_syncpt *sp, u32 override; BUG_ON(wait->syncpt_id >= NV_HOST1X_SYNCPT_NB_PTS); + trace_nvhost_syncpt_wait_check(wait->mem, wait->offset, + wait->syncpt_id, wait->thresh); if (nvhost_syncpt_is_expired(sp, wait->syncpt_id, wait->thresh)) { /* diff --git a/drivers/video/tegra/host/nvhost_syncpt.c b/drivers/video/tegra/host/nvhost_syncpt.c index d69883ee51b2..59788084e3c2 100644 --- a/drivers/video/tegra/host/nvhost_syncpt.c +++ b/drivers/video/tegra/host/nvhost_syncpt.c @@ -21,6 +21,7 @@ #include #include #include +#include #include "nvhost_syncpt.h" #include "nvhost_acm.h" #include "dev.h" @@ -70,9 +71,14 @@ void nvhost_syncpt_save(struct nvhost_syncpt *sp) */ u32 nvhost_syncpt_update_min(struct nvhost_syncpt *sp, u32 id) { + u32 val; + BUG_ON(!syncpt_op(sp).update_min); - return syncpt_op(sp).update_min(sp, id); + val = syncpt_op(sp).update_min(sp, id); + trace_nvhost_syncpt_update_min(id, val); + + return val; } /** -- cgit v1.2.3