summaryrefslogtreecommitdiff
path: root/drivers/video
diff options
context:
space:
mode:
authorNitin Kumbhar <nkumbhar@nvidia.com>2011-09-13 13:26:07 +0530
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:49:01 -0800
commit567baa26fbbadedab4d1a23d67f051ffc242a8b2 (patch)
treee4d5ad15ebc6e9277fa51568411c5f2ed7aa740c /drivers/video
parentd67335420134fa5c097963b75058e650d9922606 (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> Rebase-Id: Rc122ff232b3a0b47ede148f65581200ca0135d32
Diffstat (limited to 'drivers/video')
-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 7f079fd6fd86..5df560cf6e65 100644
--- a/drivers/video/tegra/dc/dc.c
+++ b/drivers/video/tegra/dc/dc.c
@@ -1094,6 +1094,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) {
@@ -1425,7 +1434,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;