From patchwork Wed Mar 8 02:27:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Zhong X-Patchwork-Id: 9610201 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6C9FA6016C for ; Wed, 8 Mar 2017 02:28:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5E3762855B for ; Wed, 8 Mar 2017 02:28:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 530ED2856E; Wed, 8 Mar 2017 02:28:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0CC1F2855B for ; Wed, 8 Mar 2017 02:28:17 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2F8556E274; Wed, 8 Mar 2017 02:28:16 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pg0-f68.google.com (mail-pg0-f68.google.com [74.125.83.68]) by gabe.freedesktop.org (Postfix) with ESMTPS id C99AE6E274 for ; Wed, 8 Mar 2017 02:28:14 +0000 (UTC) Received: by mail-pg0-f68.google.com with SMTP id b5so1830723pgg.1 for ; Tue, 07 Mar 2017 18:28:14 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Kve2FFrLi35hwfcvWM3fydDWOzDouTYkK2HLjRfO72U=; b=aFeR0FYXdUAWjBge9fzJTBvK4iGRSexuaTR3K7Dt7FNNVyhjwPZRHgDkDIXFvnkdnX WwgalVQpC7c2I6vocFsS8qSJfcm8AgEXOE24ioLguZdtcvu3D6vKm7aaMxWTh03jagPM KRup2115RXYstqG47+o2RQoNF1Jl+jMQ8kL+goOY3WSqxSxpFsMpMTfTkps5b02AQvGi inRlvsF8BzwYXvHGKZgY7hoC4KPtgaaSc6CX3EeaKpsrbo5qxpgUr+Vuoa/0fnsOUgB4 kdUFXD8WcG1zT5z6fyzdXC57k5ngSzmTQ2uodjDbOyIh9bVsgIpncf9HcGZzVmWZJtrC 6yCQ== X-Gm-Message-State: AMke39kkljk5EZmcXCNMi48q3AO+O2MgszzBB0QD2/WYj+YzfDadprWeLDGalh5+cnT0QA== X-Received: by 10.98.77.131 with SMTP id a125mr4142380pfb.90.1488940094478; Tue, 07 Mar 2017 18:28:14 -0800 (PST) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id a16sm2142194pgd.62.2017.03.07.18.28.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 07 Mar 2017 18:28:14 -0800 (PST) From: Chris Zhong To: linux-rockchip@lists.infradead.org, seanpaul@chromium.org, mark.yao@rock-chips.com, heiko@sntech.de, dianders@chromium.org Subject: [PATCH 3/3] drm/rockchip: cdn-dp: add more log for video config Date: Wed, 8 Mar 2017 10:27:57 +0800 Message-Id: <1488940077-22297-4-git-send-email-zyw@rock-chips.com> X-Mailer: git-send-email 2.6.3 In-Reply-To: <1488940077-22297-1-git-send-email-zyw@rock-chips.com> References: <1488940077-22297-1-git-send-email-zyw@rock-chips.com> Cc: Chris Zhong , linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP In order to analyze some video config failed, add some useful printouts. Signed-off-by: Chris Zhong --- drivers/gpu/drm/rockchip/cdn-dp-reg.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/rockchip/cdn-dp-reg.c b/drivers/gpu/drm/rockchip/cdn-dp-reg.c index 963d8ab..b14d211 100644 --- a/drivers/gpu/drm/rockchip/cdn-dp-reg.c +++ b/drivers/gpu/drm/rockchip/cdn-dp-reg.c @@ -671,6 +671,10 @@ int cdn_dp_config_video(struct cdn_dp_device *dp) rem = do_div(symbol, 1000); if (tu_size_reg > 64) { ret = -EINVAL; + DRM_DEV_ERROR(dp->dev, + "tu error, clk:%d, lanes:%d, rate:%d\n", + mode->clock, dp->link.num_lanes, + link_rate); goto err_config_video; } } while ((symbol <= 1) || (tu_size_reg - symbol < 4) ||