dri-devel Archive mirror
 help / color / mirror / Atom feed
From: Thomas Zimmermann <tzimmermann@suse.de>
To: javierm@redhat.com, daniel@ffwll.ch,
	maarten.lankhorst@linux.intel.com, mripard@kernel.org,
	inki.dae@samsung.com, sw0312.kim@samsung.com,
	kyungmin.park@samsung.com, linux@armlinux.org.uk,
	krzk@kernel.org, alim.akhtar@samsung.com,
	patrik.r.jakobsson@gmail.com, jani.nikula@linux.intel.com,
	rodrigo.vivi@intel.com, joonas.lahtinen@linux.intel.com,
	tursulin@ursulin.net, robdclark@gmail.com,
	quic_abhinavk@quicinc.com, dmitry.baryshkov@linaro.org,
	sean@poorly.run, marijn.suijten@somainline.org,
	tomi.valkeinen@ideasonboard.com, alexander.deucher@amd.com,
	christian.koenig@amd.com, Xinhui.Pan@amd.com,
	thierry.reding@gmail.com, mperttunen@nvidia.com,
	jonathanh@nvidia.com
Cc: dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org,
	amd-gfx@lists.freedesktop.org,
	Thomas Zimmermann <tzimmermann@suse.de>
Subject: [PATCH 00/11] drm: Provide common fbdev client helpers
Date: Tue,  7 May 2024 13:58:21 +0200	[thread overview]
Message-ID: <20240507120422.25492-1-tzimmermann@suse.de> (raw)

All fbdev emulation has finally been converted to use struct
drm_client. Put the common client code into shared helpers.

There are three callbacks in struct drm_client_funcs, unregister,
restore and hotplug, which have similar implementations among the
various drivers. This can all be shared. i915 is slightly different,
but can still use some of the helper code.

Fbdev support for VGA switcheroo and non-atomic mode setting is now
entirely implemented in the fbdev helpers.

Thomas Zimmermann (11):
  drm/fb-helper: Add helpers for struct drm_client_funcs
  drm/fbdev-dma: Use fbdev client helpers
  drm/fbdev-shmem: Use fbdev client helpers
  drm/fbdev-ttm: Use fbdev client helpers
  drm/armada: Use fbdev client helpers
  drm/exynos: Use fbdev client helpers
  drm/gma500: Use fbdev client helpers
  drm/i915: Use drm_fbdev_helper_client_unregister()
  drm/msm: Use fbdev client helpers
  drm/omapdrm: Use fbdev client helpers
  drm/tegra: Use fbdev client helpers

 drivers/gpu/drm/armada/armada_fbdev.c      |  58 +-----------
 drivers/gpu/drm/drm_fb_helper.c            | 103 +++++++++++++++++++++
 drivers/gpu/drm/drm_fbdev_dma.c            |  56 +----------
 drivers/gpu/drm/drm_fbdev_shmem.c          |  56 +----------
 drivers/gpu/drm/drm_fbdev_ttm.c            |  58 +-----------
 drivers/gpu/drm/exynos/exynos_drm_fbdev.c  |  58 +-----------
 drivers/gpu/drm/gma500/fbdev.c             |  58 +-----------
 drivers/gpu/drm/i915/display/intel_fbdev.c |  21 +----
 drivers/gpu/drm/msm/msm_fbdev.c            |  58 +-----------
 drivers/gpu/drm/omapdrm/omap_fbdev.c       |  55 +----------
 drivers/gpu/drm/radeon/radeon_fbdev.c      |  66 +------------
 drivers/gpu/drm/tegra/fbdev.c              |  58 +-----------
 include/drm/drm_fb_helper.h                |  19 ++++
 13 files changed, 154 insertions(+), 570 deletions(-)


base-commit: 980de4c8f9c4fc65bd51d355372e06dc576c3ea7
-- 
2.44.0


             reply	other threads:[~2024-05-07 12:04 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-07 11:58 Thomas Zimmermann [this message]
2024-05-07 11:58 ` [PATCH 01/11] drm/fb-helper: Add helpers for struct drm_client_funcs Thomas Zimmermann
2024-05-07 11:58 ` [PATCH 02/11] drm/fbdev-dma: Use fbdev client helpers Thomas Zimmermann
2024-05-07 11:58 ` [PATCH 03/11] drm/fbdev-shmem: " Thomas Zimmermann
2024-05-07 11:58 ` [PATCH 04/11] drm/fbdev-ttm: " Thomas Zimmermann
2024-05-07 11:58 ` [PATCH 05/11] drm/armada: " Thomas Zimmermann
2024-05-07 11:58 ` [PATCH 06/11] drm/exynos: " Thomas Zimmermann
2024-05-07 11:58 ` [PATCH 07/11] drm/gma500: " Thomas Zimmermann
2024-05-08 12:53   ` Patrik Jakobsson
2024-05-07 11:58 ` [PATCH 08/11] drm/i915: Use drm_fbdev_helper_client_unregister() Thomas Zimmermann
2024-05-07 12:25   ` Rodrigo Vivi
2024-05-07 13:10     ` Thomas Zimmermann
2024-05-07 11:58 ` [PATCH 09/11] drm/msm: Use fbdev client helpers Thomas Zimmermann
2024-05-07 14:36   ` Dmitry Baryshkov
2024-05-07 11:58 ` [PATCH 10/11] drm/omapdrm: " Thomas Zimmermann
2024-05-07 11:58 ` [PATCH 11/11] drm/tegra: " Thomas Zimmermann
2024-05-07 21:03   ` Felix Kuehling
2024-05-08  6:00     ` Thomas Zimmermann

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=20240507120422.25492-1-tzimmermann@suse.de \
    --to=tzimmermann@suse.de \
    --cc=Xinhui.Pan@amd.com \
    --cc=alexander.deucher@amd.com \
    --cc=alim.akhtar@samsung.com \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=christian.koenig@amd.com \
    --cc=daniel@ffwll.ch \
    --cc=dmitry.baryshkov@linaro.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=inki.dae@samsung.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=jani.nikula@linux.intel.com \
    --cc=javierm@redhat.com \
    --cc=jonathanh@nvidia.com \
    --cc=joonas.lahtinen@linux.intel.com \
    --cc=krzk@kernel.org \
    --cc=kyungmin.park@samsung.com \
    --cc=linux@armlinux.org.uk \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=marijn.suijten@somainline.org \
    --cc=mperttunen@nvidia.com \
    --cc=mripard@kernel.org \
    --cc=patrik.r.jakobsson@gmail.com \
    --cc=quic_abhinavk@quicinc.com \
    --cc=robdclark@gmail.com \
    --cc=rodrigo.vivi@intel.com \
    --cc=sean@poorly.run \
    --cc=sw0312.kim@samsung.com \
    --cc=thierry.reding@gmail.com \
    --cc=tomi.valkeinen@ideasonboard.com \
    --cc=tursulin@ursulin.net \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).