From: Mark yao <mark.yao@rock-chips.com>
To: Sean Paul <seanpaul@chromium.org>,
dri-devel@lists.freedesktop.org,
linux-rockchip@lists.infradead.org
Subject: Re: [PATCH 2/2] drm/rockchip: Use DRM_DEV_ERROR in vop
Date: Thu, 18 Aug 2016 16:53:02 +0800 [thread overview]
Message-ID: <57B5776E.2040902@rock-chips.com> (raw)
In-Reply-To: <1471021254-2563-3-git-send-email-seanpaul@chromium.org>
On 2016年08月13日 01:00, Sean Paul wrote:
> Since we can have multiple vops, use DRM_DEV_ERROR to
> make logs easier to process.
>
> Signed-off-by: Sean Paul <seanpaul@chromium.org>
looks good for me
Acked-by: Mark Yao <mark.yao@rockchip.com>
> ---
> drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 24 ++++++++++++++----------
> 1 file changed, 14 insertions(+), 10 deletions(-)
>
> diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c
> index 31744fe..ec8ad00 100644
> --- a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c
> +++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c
> @@ -238,7 +238,7 @@ static enum vop_data_format vop_convert_format(uint32_t format)
> case DRM_FORMAT_NV24:
> return VOP_FMT_YUV444SP;
> default:
> - DRM_ERROR("unsupport format[%08x]\n", format);
> + DRM_ERROR("unsupported format[%08x]\n", format);
> return -EINVAL;
> }
> }
> @@ -315,7 +315,7 @@ static void scl_vop_cal_scl_fac(struct vop *vop, const struct vop_win_data *win,
> int vskiplines = 0;
>
> if (dst_w > 3840) {
> - DRM_ERROR("Maximum destination width (3840) exceeded\n");
> + DRM_DEV_ERROR(vop->dev, "Maximum dst width (3840) exceeded\n");
> return;
> }
>
> @@ -353,11 +353,11 @@ static void scl_vop_cal_scl_fac(struct vop *vop, const struct vop_win_data *win,
> VOP_SCL_SET_EXT(vop, win, lb_mode, lb_mode);
> if (lb_mode == LB_RGB_3840X2) {
> if (yrgb_ver_scl_mode != SCALE_NONE) {
> - DRM_ERROR("ERROR : not allow yrgb ver scale\n");
> + DRM_DEV_ERROR(vop->dev, "not allow yrgb ver scale\n");
> return;
> }
> if (cbcr_ver_scl_mode != SCALE_NONE) {
> - DRM_ERROR("ERROR : not allow cbcr ver scale\n");
> + DRM_DEV_ERROR(vop->dev, "not allow cbcr ver scale\n");
> return;
> }
> vsu_mode = SCALE_UP_BIL;
> @@ -970,7 +970,8 @@ static void vop_crtc_enable(struct drm_crtc *crtc)
> VOP_CTRL_SET(vop, mipi_en, 1);
> break;
> default:
> - DRM_ERROR("unsupport connector_type[%d]\n", s->output_type);
> + DRM_DEV_ERROR(vop->dev, "unsupported connector_type [%d]\n",
> + s->output_type);
> }
> VOP_CTRL_SET(vop, out_mode, s->output_mode);
>
> @@ -1154,7 +1155,8 @@ static irqreturn_t vop_isr(int irq, void *data)
>
> /* Unhandled irqs are spurious. */
> if (active_irqs)
> - DRM_ERROR("Unknown VOP IRQs: %#02x\n", active_irqs);
> + DRM_DEV_ERROR(vop->dev, "Unknown VOP IRQs: %#02x\n",
> + active_irqs);
>
> return ret;
> }
> @@ -1189,7 +1191,8 @@ static int vop_create_crtc(struct vop *vop)
> win_data->phy->nformats,
> win_data->type, NULL);
> if (ret) {
> - DRM_ERROR("failed to initialize plane\n");
> + DRM_DEV_ERROR(vop->dev, "failed to init plane %d\n",
> + ret);
> goto err_cleanup_planes;
> }
>
> @@ -1227,7 +1230,8 @@ static int vop_create_crtc(struct vop *vop)
> win_data->phy->nformats,
> win_data->type, NULL);
> if (ret) {
> - DRM_ERROR("failed to initialize overlay plane\n");
> + DRM_DEV_ERROR(vop->dev, "failed to init overlay %d\n",
> + ret);
> goto err_cleanup_crtc;
> }
> drm_plane_helper_add(&vop_win->base, &plane_helper_funcs);
> @@ -1235,8 +1239,8 @@ static int vop_create_crtc(struct vop *vop)
>
> port = of_get_child_by_name(dev->of_node, "port");
> if (!port) {
> - DRM_ERROR("no port node found in %s\n",
> - dev->of_node->full_name);
> + DRM_DEV_ERROR(vop->dev, "no port node found in %s\n",
> + dev->of_node->full_name);
> ret = -ENOENT;
> goto err_cleanup_crtc;
> }
--
Mark Yao
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2016-08-18 8:53 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-12 17:00 [PATCH 0/2] Introduce DRM_DEV_* logging Sean Paul
2016-08-12 17:00 ` [PATCH 1/2] drm: Introduce DRM_DEV_* log messages Sean Paul
[not found] ` <1471021254-2563-2-git-send-email-seanpaul-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
2016-08-12 17:13 ` Chris Wilson
2016-08-12 17:23 ` Sean Paul
2016-08-12 17:30 ` [PATCH v2 " Sean Paul
[not found] ` <1471023000-3820-1-git-send-email-seanpaul-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
2016-08-12 18:39 ` Chris Wilson
2016-08-12 19:04 ` Sean Paul
2016-08-12 19:26 ` Lukas Wunner
2016-08-12 19:44 ` Chris Wilson
2016-08-12 19:48 ` Sean Paul
2016-08-12 19:50 ` Lukas Wunner
2016-08-12 20:29 ` [PATCH v3 " Sean Paul
[not found] ` <1471033777-9922-1-git-send-email-seanpaul-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
2016-08-12 20:53 ` Chris Wilson
2016-08-15 12:54 ` Eric Engestrom
2016-08-15 23:18 ` [PATCH v4] " Sean Paul
2016-08-16 12:28 ` Eric Engestrom
2016-08-16 16:18 ` Sean Paul
2016-08-16 16:56 ` Eric Engestrom
2016-08-18 16:39 ` Sean Paul
2016-08-12 17:00 ` [PATCH 2/2] drm/rockchip: Use DRM_DEV_ERROR in vop Sean Paul
2016-08-18 8:53 ` Mark yao [this message]
2016-08-18 16:38 ` Sean Paul
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=57B5776E.2040902@rock-chips.com \
--to=mark.yao@rock-chips.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=seanpaul@chromium.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox