summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorNitin Kumbhar <nkumbhar@nvidia.com>2011-09-13 13:26:07 +0530
committerVarun Colbert <vcolbert@nvidia.com>2011-09-15 12:26:28 -0700
commitc32ee639eff5b3aea77049a472f6bd7cac48d407 (patch)
treeafe0ddf5b02e4dd6c2883931634aaf052a60ea9d /drivers
parentcb64054a12aca84b097556c7c4f4e7c67916fd93 (diff)
video: tegra: dc: add debug messages to dump window attributes
Various attributes of windows which are currently being updated are displayed with these debug messages. It also adds debug messages to show processes using overlays. Change-Id: I36518320bbf46fb5c1041176c91323d7bbabdc7a Reviewed-on: http://git-master/r/51979 Tested-by: Nitin Kumbhar <nkumbhar@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Kevin Huang (Eng-SW) <kevinh@nvidia.com> Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/video/tegra/dc/dc.c11
-rw-r--r--drivers/video/tegra/dc/overlay.c8
2 files changed, 18 insertions, 1 deletions
diff --git a/drivers/video/tegra/dc/dc.c b/drivers/video/tegra/dc/dc.c
index 59bae4329668..0e617a9c29f4 100644
--- a/drivers/video/tegra/dc/dc.c
+++ b/drivers/video/tegra/dc/dc.c
@@ -1093,6 +1093,15 @@ int tegra_dc_update_windows(struct tegra_dc_win *windows[], int n)
tegra_dc_writel(dc, val, DC_WIN_WIN_OPTIONS);
win->dirty = no_vsync ? 0 : 1;
+
+ dev_dbg(&dc->ndev->dev, "%s():idx=%d z=%d x=%d y=%d w=%d h=%d "
+ "out_x=%u out_y=%u out_w=%u out_h=%u "
+ "fmt=%d yuvp=%d Bpp=%u filter_h=%d filter_v=%d",
+ __func__, win->idx, win->z,
+ dfixed_trunc(win->x), dfixed_trunc(win->y),
+ dfixed_trunc(win->w), dfixed_trunc(win->h),
+ win->out_x, win->out_y, win->out_w, win->out_h,
+ win->fmt, yuvp, Bpp, filter_h, filter_v);
}
if (update_blend) {
@@ -1427,7 +1436,7 @@ static void print_mode(struct tegra_dc *dc,
const struct tegra_dc_mode *mode, const char *note)
{
if (mode) {
- int refresh = calc_refresh(mode);
+ int refresh = calc_refresh(dc, mode);
dev_info(&dc->ndev->dev, "%s():MODE:%dx%d@%d.%03uHz pclk=%d\n",
note ? note : "",
mode->h_active, mode->v_active,
diff --git a/drivers/video/tegra/dc/overlay.c b/drivers/video/tegra/dc/overlay.c
index e809f76b7fe0..375f5aa19fe2 100644
--- a/drivers/video/tegra/dc/overlay.c
+++ b/drivers/video/tegra/dc/overlay.c
@@ -585,6 +585,10 @@ static bool tegra_overlay_get(struct overlay_client *client, int idx)
ret = true;
if (dev->dc->mode.pclk != 0)
tegra_overlay_set_emc_freq(dev);
+
+ dev_dbg(&client->dev->ndev->dev,
+ "%s(): idx=%d pid=%d comm=%s\n",
+ __func__, idx, client->task->pid, client->task->comm);
}
mutex_unlock(&dev->overlays_lock);
@@ -602,6 +606,10 @@ static void tegra_overlay_put_locked(struct overlay_client *client, int idx)
if (dev->overlays[idx].owner != client)
return;
+ dev_dbg(&client->dev->ndev->dev,
+ "%s(): idx=%d pid=%d comm=%s\n",
+ __func__, idx, client->task->pid, client->task->comm);
+
dev->overlays[idx].owner = NULL;
flip_args.win[0].index = idx;