From 1e08f68d56f6e577573f880df3d96625f86fc6c9 Mon Sep 17 00:00:00 2001 From: Terence Hampson Date: Tue, 21 Jul 2015 17:31:31 -0400 Subject: [PATCH] msm: mdss: rotator: Add debug logs to failed rotator request When rotator fails on a request it would be helpful if information about the request item was logged. Change-Id: Ida8b3c9cd312a5142586323b1f9af613a44e40f3 Signed-off-by: Terence Hampson --- drivers/video/fbdev/msm/mdss_rotator.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/drivers/video/fbdev/msm/mdss_rotator.c b/drivers/video/fbdev/msm/mdss_rotator.c index caf8b5e19b8d..7dac10e4c7e7 100644 --- a/drivers/video/fbdev/msm/mdss_rotator.c +++ b/drivers/video/fbdev/msm/mdss_rotator.c @@ -1784,8 +1784,17 @@ static void mdss_rotator_wq_handler(struct work_struct *work) } ret = mdss_rotator_handle_entry(hw, entry); - if (ret) - pr_err("fail to complete the roation request\n"); + if (ret) { + struct mdp_rotation_item *item = &entry->item; + + pr_err("Rot req fail. src{%u,%u,%u,%u}f=%u\n" + "dst{%u,%u,%u,%u}f=%u session_id=%u, wbidx%d, pipe_id=%d\n", + item->src_rect.x, item->src_rect.y, + item->src_rect.w, item->src_rect.h, item->input.format, + item->dst_rect.x, item->dst_rect.y, + item->dst_rect.w, item->dst_rect.h, item->output.format, + item->session_id, item->wb_idx, item->pipe_idx); + } mdss_rotator_put_hw_resource(entry->queue, hw);