From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Jyri Sarha <jsarha@ti.com>
Cc: tomi.valkeinen@ti.com, lcpd_audiovideo@list.ti.com,
dri-devel@lists.freedesktop.org
Subject: Re: [PATCH 1/2] drm/tilcdc: use drm_fbdev_generic_setup
Date: Wed, 6 Mar 2019 03:23:50 +0200 [thread overview]
Message-ID: <20190306012350.GA30262@pendragon.ideasonboard.com> (raw)
In-Reply-To: <a1cf2a08064a06d89a4a906712f6d82de605b01a.1550217735.git.jsarha@ti.com>
Hi Jyri,
Thank you for the patch.
On Fri, Feb 15, 2019 at 10:13:15AM +0200, Jyri Sarha wrote:
> Calling drm_fbdev_cma_fini() after drm_dev_unregister() started to
> cause a crash when unloading tilcdc some time between 4.14 and
> 4.19. Instead of changing the unload order it looks like using
> drm_fbdev_generic_setup() is the direction to go.
Yes, it's the way to go, but I'm afraid you're a bit too late:
commit 45cf87566e5686c919247610200af7b365e86a1f
Author: Noralf Trønnes <noralf@tronnes.org>
Date: Thu Oct 25 22:13:39 2018 +0200
drm/tilcdc: Use drm_fbdev_generic_setup()
got merged in v5.0.
> Signed-off-by: Jyri Sarha <jsarha@ti.com>
> ---
> drivers/gpu/drm/tilcdc/tilcdc_drv.c | 9 +++------
> 1 file changed, 3 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/gpu/drm/tilcdc/tilcdc_drv.c b/drivers/gpu/drm/tilcdc/tilcdc_drv.c
> index 33e533268488..6d84491f2a4f 100644
> --- a/drivers/gpu/drm/tilcdc/tilcdc_drv.c
> +++ b/drivers/gpu/drm/tilcdc/tilcdc_drv.c
> @@ -192,8 +192,6 @@ static void tilcdc_fini(struct drm_device *dev)
>
> drm_kms_helper_poll_fini(dev);
>
> - drm_fb_cma_fbdev_fini(dev);
> -
> drm_irq_uninstall(dev);
> drm_mode_config_cleanup(dev);
> tilcdc_remove_external_device(dev);
> @@ -396,10 +394,6 @@ static int tilcdc_init(struct drm_driver *ddrv, struct device *dev)
>
> drm_mode_config_reset(ddev);
>
> - ret = drm_fb_cma_fbdev_init(ddev, bpp, 0);
> - if (ret)
> - goto init_failed;
> -
> drm_kms_helper_poll_init(ddev);
>
> ret = drm_dev_register(ddev, 0);
> @@ -407,6 +401,9 @@ static int tilcdc_init(struct drm_driver *ddrv, struct device *dev)
> goto init_failed;
>
> priv->is_registered = true;
> +
> + drm_fbdev_generic_setup(ddev, bpp);
> +
> return 0;
>
> init_failed:
--
Regards,
Laurent Pinchart
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2019-03-06 1:23 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-15 8:13 [PATCH 0/2] drm/tilcdc: A fix and a clean-up for tilcdc Jyri Sarha via dri-devel
2019-02-15 8:13 ` [PATCH 1/2] drm/tilcdc: use drm_fbdev_generic_setup Jyri Sarha via dri-devel
2019-02-15 11:50 ` Tomi Valkeinen via dri-devel
2019-03-06 1:23 ` Laurent Pinchart [this message]
2019-02-15 8:13 ` [PATCH 2/2] drm/tilcdc: Remove unnecessary struct tilcdc_panel_info members Jyri Sarha via dri-devel
2019-02-15 11:54 ` Tomi Valkeinen via dri-devel
2019-03-06 1:27 ` Laurent Pinchart
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=20190306012350.GA30262@pendragon.ideasonboard.com \
--to=laurent.pinchart@ideasonboard.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=jsarha@ti.com \
--cc=lcpd_audiovideo@list.ti.com \
--cc=tomi.valkeinen@ti.com \
/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