From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Inki Dae <inki.dae@samsung.com>
Cc: linux-samsung-soc@vger.kernel.org, dri-devel@lists.freedesktop.org
Subject: Re: [PATCH 1/2] drm/fimd: use DRM_ERROR instead of DRM_INFO in error case
Date: Mon, 15 Apr 2019 15:32:55 +0300 [thread overview]
Message-ID: <20190415123255.GN3888@intel.com> (raw)
In-Reply-To: <1555289240-7735-2-git-send-email-inki.dae@samsung.com>
On Mon, Apr 15, 2019 at 09:47:19AM +0900, Inki Dae wrote:
> This patch makes error messages to be printed out using DRM_ERROR
> instead of DRM_INFO.
>
> Signed-off-by: Inki Dae <inki.dae@samsung.com>
> ---
> 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;
> }
This seems like it should likely have been caught by
drm_mode_convert_to_umode()->...->drm_mode_validate_basic().
>
> @@ -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);
These look like they could user triggerable, in which case they should
be debug messages instead.
> 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;
> }
>
> --
> 2.7.4
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel
--
Ville Syrjälä
Intel
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2019-04-15 12:32 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20190415004657epcas1p1e17d8c29c3488b8c86cac7d22cdc715b@epcas1p1.samsung.com>
2019-04-15 0:47 ` [PATCH 0/2] drm/exynos: clean up logs Inki Dae
2019-04-15 0:47 ` [PATCH 1/2] drm/fimd: use DRM_ERROR instead of DRM_INFO in error case Inki Dae
2019-04-15 3:17 ` Sam Ravnborg
2019-04-15 4:05 ` Inki Dae
2019-04-15 12:32 ` Ville Syrjälä [this message]
2019-04-15 0:47 ` [PATCH 2/2] drm/exynos: remove unnecessary messages Inki Dae
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190415123255.GN3888@intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=inki.dae@samsung.com \
--cc=linux-samsung-soc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.