diff options
author | Nitin Kumbhar <nkumbhar@nvidia.com> | 2011-09-13 13:26:07 +0530 |
---|---|---|
committer | Varun Colbert <vcolbert@nvidia.com> | 2011-09-27 12:01:25 -0700 |
commit | b16d84a0332998321f684bdbff5165072956dab8 (patch) | |
tree | d1240e8bfe48fbf18665a8e8a54ee45ee84ffa1c | |
parent | acba768a8f205efbdc2a7ef5e8cd8c81a1c2152c (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.
(cherry picked from commit 8d64abf98cb3c8a4ffed5f1a903b2d26960933fc)
Reviewed-on: http://git-master/r/51979
Change-Id: I5149eb10fb1c7f4f333cd07f0f1c8350bf1e2ed9
Reviewed-on: http://git-master/r/54417
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
-rw-r--r-- | drivers/video/tegra/dc/dc.c | 11 | ||||
-rw-r--r-- | drivers/video/tegra/dc/overlay.c | 8 |
2 files changed, 18 insertions, 1 deletions
diff --git a/drivers/video/tegra/dc/dc.c b/drivers/video/tegra/dc/dc.c index fa65ae3b5c6d..54af1cf1261e 100644 --- a/drivers/video/tegra/dc/dc.c +++ b/drivers/video/tegra/dc/dc.c @@ -1095,6 +1095,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) { @@ -1426,7 +1435,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 057241e86c81..446fc4d407eb 100644 --- a/drivers/video/tegra/dc/overlay.c +++ b/drivers/video/tegra/dc/overlay.c @@ -540,6 +540,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); @@ -557,6 +561,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; |