[PATCH v1 6/6] drm/lima: improve some pp debug messages
Vasily Khoruzhick
anarsoul at gmail.com
Wed Jan 17 18:29:02 UTC 2024
On Tue, Jan 16, 2024 at 7:12 PM Erico Nunes <nunes.erico at gmail.com> wrote:
>
> Make the messages more consistent by showing the pp name.
>
> Signed-off-by: Erico Nunes <nunes.erico at gmail.com>
Reviewed-by: Vasily Khoruzhick <anarsoul at gmail.com>
> ---
> drivers/gpu/drm/lima/lima_pp.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/lima/lima_pp.c b/drivers/gpu/drm/lima/lima_pp.c
> index ac097dd75072..d9e178d6645d 100644
> --- a/drivers/gpu/drm/lima/lima_pp.c
> +++ b/drivers/gpu/drm/lima/lima_pp.c
> @@ -197,7 +197,7 @@ static int lima_pp_hard_reset(struct lima_ip *ip)
> pp_write(LIMA_PP_CTRL, LIMA_PP_CTRL_FORCE_RESET);
> ret = lima_poll_timeout(ip, lima_pp_hard_reset_poll, 10, 100);
> if (ret) {
> - dev_err(dev->dev, "pp hard reset timeout\n");
> + dev_err(dev->dev, "pp %s hard reset timeout\n", lima_ip_name(ip));
> return ret;
> }
>
> @@ -423,8 +423,8 @@ static void lima_pp_task_error(struct lima_sched_pipe *pipe)
> for (i = 0; i < pipe->num_processor; i++) {
> struct lima_ip *ip = pipe->processor[i];
>
> - dev_err(ip->dev->dev, "pp task error %d int_state=%x status=%x\n",
> - i, pp_read(LIMA_PP_INT_STATUS), pp_read(LIMA_PP_STATUS));
> + dev_err(ip->dev->dev, "pp %s task error int_state=%x status=%x\n",
> + lima_ip_name(ip), pp_read(LIMA_PP_INT_STATUS), pp_read(LIMA_PP_STATUS));
>
> lima_pp_hard_reset(ip);
> }
> --
> 2.43.0
>
More information about the lima
mailing list