Skip to content

Instantly share code, notes, and snippets.

@raymanfx
Last active March 20, 2017 17:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raymanfx/e781b8bef12431e873904059e2489433 to your computer and use it in GitHub Desktop.
Save raymanfx/e781b8bef12431e873904059e2489433 to your computer and use it in GitHub Desktop.
Samsung Exynos 7 decon FB debug
diff --git a/drivers/video/exynos/decon/decon_core.c b/drivers/video/exynos/decon/decon_core.c
index 7f1e9f0e066a..e4327b24e4f9 100644
--- a/drivers/video/exynos/decon/decon_core.c
+++ b/drivers/video/exynos/decon/decon_core.c
@@ -2453,6 +2453,10 @@ static int decon_set_win_buffer(struct decon_device *decon, struct decon_win *wi
}
}
+ decon_err("GRALLOC_DEBUG: [win_no=%d] WIN_BUF_DUMP! SRC: x=%d, y=%d, w=%u, h=%u, f_w=%u, f_h=%u\n", win_no, win_config->src.x, win_config->dst.y, win_config->src.w, win_config->src.h, win_config->src.f_w, win_config->src.f_h);
+ decon_err("GRALLOC_DEBUG: [win_no=%d] WIN_BUF_DUMP! DST: x=%d, y=%d, w=%u, h=%u, f_w=%u, f_h=%u\n", win_no, win_config->dst.x, win_config->dst.y, win_config->dst.w, win_config->dst.h, win_config->dst.f_w, win_config->dst.f_h);
+ decon_err("GRALLOC_DEBUG: [win_no=%d] WIN_BUF_DUMP! bpp=%d, protection=%d\n", win_no, win->fbinfo->var.bits_per_pixel, win_config->protection);
+
win->fbinfo->fix.smem_start = dma_buf_data[0].dma_addr;
win->fbinfo->fix.smem_len = (unsigned int) buf_size;
win->fbinfo->var.xres = win_config->dst.w;
@@ -4201,6 +4205,17 @@ static int decon_set_win_config(struct decon_device *decon,
struct decon_win_config *update_config;
static int cnt_after_dsu_changed = -1; // not triggered = -1, else is triggered;
#endif
+ int idx;
+
+#if 1
+ // DEBUG!!
+ for (idx = 0; idx < MAX_DECON_WIN+1; idx++) {
+ struct decon_win_config cfg = win_config[idx];
+ decon_err("GRALLOC_DEBUG: win_cfg[%d] cfg dump! state=%d, fd_idma[0]=%d, fd_idma[1]=%d, fd_idma[2]=%d, idma_type=%d, format=%d\n", idx, cfg.state, cfg.fd_idma[0], cfg.fd_idma[1], cfg.fd_idma[2], cfg.idma_type, cfg.format);
+ decon_err("GRALLOC_DEBUG: win_cfg[%d] src dump! x=%d, y=%d, w=%u, h=%u, f_w=%u, f_h=%u\n", idx, cfg.src.x, cfg.src.y, cfg.src.w, cfg.src.h, cfg.src.f_w, cfg.src.f_h);
+ decon_err("GRALLOC_DEBUG: win_cfg[%d] dst dump! x=%d, y=%d, w=%u, h=%u, f_w=%u, f_h=%u\n", idx, cfg.dst.x, cfg.dst.y, cfg.dst.w, cfg.dst.h, cfg.dst.f_w, cfg.dst.f_h);
+ }
+#endif
#ifdef CONFIG_LCD_ALPM
struct dsim_device *dsim = NULL;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment