From patchwork Mon Apr 15 08:54:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inki Dae X-Patchwork-Id: 10900323 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A34BD1669 for ; Mon, 15 Apr 2019 08:54:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8DD7E288AE for ; Mon, 15 Apr 2019 08:54:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 82968288BA; Mon, 15 Apr 2019 08:54:09 +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=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED 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 40045288AE for ; Mon, 15 Apr 2019 08:54:09 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5F73B892F8; Mon, 15 Apr 2019 08:54:07 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) by gabe.freedesktop.org (Postfix) with ESMTPS id CC664892EF for ; Mon, 15 Apr 2019 08:54:03 +0000 (UTC) Received: from epcas1p4.samsung.com (unknown [182.195.41.48]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20190415085402epoutp041edbc9e53fbba38a12a0b65a21fdee48~VmeH4z90F0443704437epoutp04j for ; Mon, 15 Apr 2019 08:54:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20190415085402epoutp041edbc9e53fbba38a12a0b65a21fdee48~VmeH4z90F0443704437epoutp04j Received: from epsmges1p2.samsung.com (unknown [182.195.40.156]) by epcas1p4.samsung.com (KnoxPortal) with ESMTP id 20190415085400epcas1p40d4be86c6246ae17a442118f70c1f563~VmeGnWZjq1965319653epcas1p4S; Mon, 15 Apr 2019 08:54:00 +0000 (GMT) Received: from epcas1p4.samsung.com ( [182.195.41.48]) by epsmges1p2.samsung.com (Symantec Messaging Gateway) with SMTP id 2B.03.04142.2A644BC5; Mon, 15 Apr 2019 17:53:54 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas1p3.samsung.com (KnoxPortal) with ESMTPA id 20190415085354epcas1p337beb690ac30513ea6f94080a6f5d205~VmeAjYYCO1635816358epcas1p3K; Mon, 15 Apr 2019 08:53:54 +0000 (GMT) Received: from epsmgms1p2new.samsung.com (unknown [182.195.42.42]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20190415085354epsmtrp1baaed3d233187ac2c90e0044ab1eb1bb~VmeAixDaV0451304513epsmtrp1I; Mon, 15 Apr 2019 08:53:54 +0000 (GMT) X-AuditID: b6c32a36-14a859c00000102e-4c-5cb446a2a62a Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p2new.samsung.com (Symantec Messaging Gateway) with SMTP id BC.29.03662.2A644BC5; Mon, 15 Apr 2019 17:53:54 +0900 (KST) Received: from localhost.localdomain (unknown [10.113.221.211]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20190415085354epsmtip2a736d065b1f9c345078e949c93aebad1~VmeAYREz10397103971epsmtip21; Mon, 15 Apr 2019 08:53:54 +0000 (GMT) From: Inki Dae To: dri-devel@lists.freedesktop.org Subject: [PATCH 2/7] drm/fimd: use DRM_ERROR instead of DRM_INFO in error case Date: Mon, 15 Apr 2019 17:54:11 +0900 Message-Id: <1555318456-23397-3-git-send-email-inki.dae@samsung.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1555318456-23397-1-git-send-email-inki.dae@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrFKsWRmVeSWpSXmKPExsWy7bCmge4ity0xBrMfm1hc+fqezWLS/Qks FjPO72NyYPa4332cyaNvyypGj8+b5AKYo7JtMlITU1KLFFLzkvNTMvPSbZW8g+Od403NDAx1 DS0tzJUU8hJzU22VXHwCdN0yc4AWKSmUJeaUAoUCEouLlfTtbIryS0tSFTLyi0tslVILUnIK LAv0ihNzi0vz0vWS83OtDA0MjEyBChOyM6af1Sq4xl1xYKd+A+Mlzi5GTg4JAROJDVu2s3cx cnEICexglLh9sokVJCEk8IlR4ukjT4jEN0aJK/9Ps8N0zHx3hBEisZdRYvnu5SwQHV8YJdo+ sIHYbAKqEhNX3AezRQSUJf5OXMUIYjMLuEksPg1RLywQIPH2yC2wOAtQ/bqpL5hAbF4BF4ln e88zQiyTk7h5rpMZxOYUcJW41dwEtlhC4C2rxP7TTVAXuUjsOfqXCcIWlnh1fAtUXEriZX8b lF0u8ezdM6DFHEB2jcS3uRUQprHExRUpICazgKbE+l36EFfySbz72sMKUcEr0dEmBDFDSeLY xRtQh0lIXFgykQ3C9pD49e4fNERmMEpcPfGcaQKj7CyEqQsYGVcxiqUWFOempxYbFhghR9Am RnC60TLbwbjonM8hRgEORiUe3guVm2OEWBPLiitzDzFKcDArifAKdACFeFMSK6tSi/Lji0pz UosPMZoCw24is5Rocj4wFeaVxBuaGhkbG1uYGJqZGhoqifOud3COERJITyxJzU5NLUgtgulj 4uCUamCUev2Z2W2dxrSU+JS26H3HAxM/6mZvXHe1QoDhzoT630y1xx3MV4qzbTb703Ph/e3I /hxt3g22lqm1L23dhU1Xrvr5L8TxSMN0H5GriyQjY1nDGvU3MJrZqH1mWM2+7Yypl15D5Brb Qz/u/lRzLV87t6t/zX/PqvCdLFdtgr9ti18ieKhpDosSS3FGoqEWc1FxIgBYSE7WTQMAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpiluLIzCtJLcpLzFFi42LZdlhJXneR25YYg47nnBZXvr5ns5h0fwKL xYzz+5gcmD3udx9n8ujbsorR4/MmuQDmKC6blNSczLLUIn27BK6M6We1Cq5xVxzYqd/AeImz i5GTQ0LARGLmuyOMXYxcHEICuxklfjd/Zupi5ABKSEhs2coBYQpLHD5cDFHyiVGiddJrdpBe NgFViYkr7rOB2CICyhJ/J65iBLGZBTwkTr36yQxiCwv4SZzd3ARWzwJUv27qCyYQm1fAReLZ 3vOMEDfISdw81wlWzyngKnGruQksLgRUs6JxItsERr4FjAyrGCVTC4pz03OLDQuM8lLL9YoT c4tL89L1kvNzNzGCQ0ZLawfjiRPxhxgFOBiVeHgvVG6OEWJNLCuuzD3EKMHBrCTCK9ABFOJN SaysSi3Kjy8qzUktPsQozcGiJM4rn38sUkggPbEkNTs1tSC1CCbLxMEp1cA4VfFr1ieD6SwC j7KWBb3c61g7+Z8/U1+x5rkc1ZywIwe+tCydW/SJJcfscKzQ7eMcjDbbW/ict34snrurZZ33 T3sdidMTDTpUejYuErFV1r/4kfva1UkTG3/biN2ST0+Nsb/86+pd1WWp3r9ntct/kkt0yGM5 2Pqs8IqpafLuwl95J7baC+cpsRRnJBpqMRcVJwIAgSsL9xUCAAA= X-CMS-MailID: 20190415085354epcas1p337beb690ac30513ea6f94080a6f5d205 X-Msg-Generator: CA CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20190415085354epcas1p337beb690ac30513ea6f94080a6f5d205 References: <1555318456-23397-1-git-send-email-inki.dae@samsung.com> X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1555318442; bh=QX0RdlbFA7LzGdqZF8qqaGEUSBV+wnCSprjmclIiT3c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IhrTYz5jr0r3Tq12gr1iHoATebxHvRrJUP0Fne0I1HJ0eh01/0wJnJV3U0JJ5CeFD 2IOIwL20XzLUEVW0abDlAxLJQNc5prAdo0kejj+g2QMAyTtmNN4uTKTf2BGW+2usaT 2qWJpu5/VC0+12xQ9Xh1Wd17ha4WTAns0TphNfSM= X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-samsung-soc@vger.kernel.org MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP This patch makes error messages to be printed out using DRM_ERROR instead of DRM_INFO. Signed-off-by: Inki Dae --- drivers/gpu/drm/exynos/exynos_drm_fimd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimd.c b/drivers/gpu/drm/exynos/exynos_drm_fimd.c index 786a8ee..78427ec 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_fimd.c +++ b/drivers/gpu/drm/exynos/exynos_drm_fimd.c @@ -400,7 +400,7 @@ static int fimd_atomic_check(struct exynos_drm_crtc *crtc, u32 clkdiv; if (mode->clock == 0) { - DRM_INFO("Mode has zero clock value.\n"); + DRM_ERROR("Mode has zero clock value.\n"); return -EINVAL; } @@ -416,7 +416,7 @@ static int fimd_atomic_check(struct exynos_drm_crtc *crtc, lcd_rate = clk_get_rate(ctx->lcd_clk); if (2 * lcd_rate < ideal_clk) { - DRM_INFO("sclk_fimd clock too low(%lu) for requested pixel clock(%lu)\n", + DRM_ERROR("sclk_fimd clock too low(%lu) for requested pixel clock(%lu)\n", lcd_rate, ideal_clk); return -EINVAL; } @@ -424,7 +424,7 @@ static int fimd_atomic_check(struct exynos_drm_crtc *crtc, /* Find the clock divider value that gets us closest to ideal_clk */ clkdiv = DIV_ROUND_CLOSEST(lcd_rate, ideal_clk); if (clkdiv >= 0x200) { - DRM_INFO("requested pixel clock(%lu) too low\n", ideal_clk); + DRM_ERROR("requested pixel clock(%lu) too low\n", ideal_clk); return -EINVAL; }