[PATCH 2/2] drm/etnaviv: remove generic GPU init failure reporting

Christian Gmeiner christian.gmeiner at gmail.com
Mon Jun 20 10:48:27 UTC 2016


2016-06-17 12:42 GMT+02:00 Lucas Stach <l.stach at pengutronix.de>:
> The GPU init path now reports any errors which might occur more accurately
> than what is possible with the generic "something failed" message.
>
> Remove the generic reporting, so we don't log an error into dmesg anymore
> if any of the GPU cores are ignored.
>
> Signed-off-by: Lucas Stach <l.stach at pengutronix.de>

Reviewed-by: Christian Gmeiner <christian.gmeiner at gmail.com>

> ---
>  drivers/gpu/drm/etnaviv/etnaviv_drv.c | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/etnaviv/etnaviv_drv.c b/drivers/gpu/drm/etnaviv/etnaviv_drv.c
> index 3d4f56df8359..7c5a4b408961 100644
> --- a/drivers/gpu/drm/etnaviv/etnaviv_drv.c
> +++ b/drivers/gpu/drm/etnaviv/etnaviv_drv.c
> @@ -91,10 +91,8 @@ static void load_gpu(struct drm_device *dev)
>                         int ret;
>
>                         ret = etnaviv_gpu_init(g);
> -                       if (ret) {
> -                               dev_err(g->dev, "hw init failed: %d\n", ret);
> +                       if (ret)
>                                 priv->gpu[i] = NULL;
> -                       }
>                 }
>         }
>  }
> --
> 2.8.1
>


More information about the dri-devel mailing list