[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20221026153431.72033-1-dakr@redhat.com>
Date: Wed, 26 Oct 2022 17:34:27 +0200
From: Danilo Krummrich <dakr@...hat.com>
To: daniel@...ll.ch, airlied@...ux.ie, tzimmermann@...e.de,
mripard@...nel.org, liviu.dudau@....com, brian.starkey@....com
Cc: dri-devel@...ts.freedesktop.org, linux-kernel@...r.kernel.org,
Danilo Krummrich <dakr@...hat.com>
Subject: [PATCH drm-misc-next v4 0/4] drm/arm/hdlcd: use drm managed resources
Hi,
This patch series converts the driver to use drm managed resources to prevent
potential use-after-free issues on driver unbind/rebind and to get rid of the
usage of deprecated APIs.
Changes in v2:
- drop patch "drm/arm/hdlcd: crtc: use drmm_crtc_init_with_planes()"
Changes in v3:
- Fix alternate return paths in srcu read-side critical sections causing a
stall when unregistering the driver.
- Fix potential null pointer dereference in hdlcd_crtc_cleanup() introduced
dropping the patch in v2.
- Add a patch to remove explicit calls to drm_mode_config_cleanup().
Changes in v4:
- Remove patches to protect platform device bound resources with
drm_dev_{enter,exit}, since this would leave the hardware enabled when
regularly unloading the driver e.g. via rmmod.
Instead do this in a later series, once we got drm_dev_unplug() in place
to deal with a regular driver shutdown.
Danilo Krummrich (4):
drm/arm/hdlcd: use drmm_* to allocate driver structures
drm/arm/hdlcd: replace drm->dev_private with drm_to_hdlcd_priv()
drm/arm/hdlcd: plane: use drm managed resources
drm/arm/hdlcd: remove calls to drm_mode_config_cleanup()
drivers/gpu/drm/arm/hdlcd_crtc.c | 24 +++++++------------
drivers/gpu/drm/arm/hdlcd_drv.c | 41 ++++++++++++++++----------------
drivers/gpu/drm/arm/hdlcd_drv.h | 2 ++
3 files changed, 32 insertions(+), 35 deletions(-)
base-commit: e1e7bc481d49c3e3ada11029ce0d9b85a0a539d7
--
2.37.3
Powered by blists - more mailing lists