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: 9610213 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 AD1126016C for ; Wed, 8 Mar 2017 02:30:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9DE742855B for ; Wed, 8 Mar 2017 02:30:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 928D528574; Wed, 8 Mar 2017 02:30:04 +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=-1.4 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_SORBS_SPAM autolearn=no version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 63D8D2855B for ; Wed, 8 Mar 2017 02:30:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=mqx2OCbJmzT57qxnEG30l8jDbUDlB+jncA7wrnxPT88=; b=QbOs+CpwSGjlFDsy9HIyeze9Ly fOMju2uDqZJLXNOsGj9bc1c+C1iVFsL/0f2s2HNHssnu6R94zqnFOJEMBnQeK1C3B2TgN+B6xwPmc ERyroNfD/WESj7iQzvO+X/F3Qal/1PqyPJVgfOz9HOu3zLKq9y1kD0EDXJWjDlPiYK0YDyrUGFwPw WCv5L8rIOEcBp51ULs6jVW5TL5goWCnq/2H0+h/bIaNbykZrFgY/qcT1Q7WMNXr0sF6GfrAKHUgWi hTbWO/qXgfRjQ0nP206SvZ4N13Ru9Y2QRjZtaN4VSxlmwre5P5GNLlwR+ZhJrwZkOFDU1bYntSgIk g6V0QWpw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1clRMZ-0003rS-Lz; Wed, 08 Mar 2017 02:30:03 +0000 Received: from mail-pg0-f68.google.com ([74.125.83.68]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1clRL9-0002n6-JU; Wed, 08 Mar 2017 02:28:37 +0000 Received: by mail-pg0-f68.google.com with SMTP id 77so1827426pgc.0; 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=JfrkPlKy9gy1C7B0tjfyNUXKsHi/ABJ/PCAz5nC8vRob+5iTTfYNnWlZ3ZSpOxO1n6 +188z1cUH+AeP763R8WxyYVN6CtiKx9YC3s3IAUurKg98n/UoNhsIeIi8v2ywVPbMpNS Pe2NpjBV23S/io1iH4WLnls/H2xv6gt8uukmsHuzps+gZ2I6O3rqMGHuBXoEzJeWIA4r I78fTjD1pCK+mXmChHd4X6iqv9ZrXRDlKsFTGAzaiFuQRSxWyV3avcfVGhEpAVBxf4RI 197kQRTSpB5PORJ/dtI0af/z5B7C8XypXjb7nBlD+UsSOkCMgapu0tjaMcRDXacPEHkP 1IZQ== X-Gm-Message-State: AMke39n7vOzreSBiwiLxyLrrFSVacr7Rhg41UuJscoxMBq3CEEL4f1txXj8NRw27Ftp/zg== 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170307_182835_937379_0F7EE2AB X-CRM114-Status: UNSURE ( 8.17 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Chris Zhong , David Airlie , linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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) ||