public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Danilo Krummrich <dakr@redhat.com>,
	daniel@ffwll.ch, airlied@linux.ie, linux-kernel@vger.kernel.org,
	dri-devel@lists.freedesktop.org
Subject: Re: [PATCH 0/3] drm: rename CMA helpers to DMA helpers
Date: Wed, 6 Jul 2022 12:06:43 +0300	[thread overview]
Message-ID: <YsVQo40s5PlPwynD@pendragon.ideasonboard.com> (raw)
In-Reply-To: <066c5652-79e8-85df-fcf6-f5ea46f4cd48@suse.de>

Hi Thomas,

On Wed, Jul 06, 2022 at 10:34:13AM +0200, Thomas Zimmermann wrote:
> Am 05.07.22 um 23:26 schrieb Danilo Krummrich:
> > This patch series renames all CMA helpers to DMA helpers - considering the
> > hierarchy of APIs (mm/cma -> dma -> gem/fb dma helpers) calling them DMA
> > helpers seems to be more applicable.
> 
> Ok, why not.
> 
> Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
> 
> for the series.
> 
> Sometimes allocation fails because there's no CMA memory left. 
> Increasing that value on boot usually fixes the problem. Should we note 
> somewhere in the docs that the allocator is backed by pages in CMA memory?

CMA is only one of the backends that can be used here. For instance, if
the device performs DMA through an IOMMU, then CMA won't be used.

This being said, helping users who may face a problem with too little
CMA memory is useful, but I'm not sure where the best place to put that
information would be.

> > Additionally, commit e57924d4ae80 ("drm/doc: Task to rename CMA helpers")
> > requests to rename the CMA helpers and implies that people seem to be confused
> > about the naming.
> > 
> > The patches are compile-time tested building a x86_64 kernel with
> > `make allyesconfig && make drivers/gpu/drm`.
> > 
> > Danilo Krummrich (3):
> >    drm/fb: rename FB CMA helpers to FB DMA helpers
> >    drm/gem: rename GEM CMA helpers to GEM DMA helpers
> >    drm/todo: remove task to rename CMA helpers
> > 
> >   Documentation/gpu/drm-kms-helpers.rst         |   8 +-
> >   Documentation/gpu/drm-mm.rst                  |  16 +-
> >   Documentation/gpu/todo.rst                    |  13 -
> >   drivers/gpu/drm/Kconfig                       |   4 +-
> >   drivers/gpu/drm/Makefile                      |   6 +-
> >   drivers/gpu/drm/arm/Kconfig                   |   4 +-
> >   drivers/gpu/drm/arm/display/Kconfig           |   2 +-
> >   .../arm/display/komeda/komeda_framebuffer.c   |  10 +-
> >   .../gpu/drm/arm/display/komeda/komeda_kms.c   |  10 +-
> >   drivers/gpu/drm/arm/hdlcd_crtc.c              |   6 +-
> >   drivers/gpu/drm/arm/hdlcd_drv.c               |   8 +-
> >   drivers/gpu/drm/arm/malidp_drv.c              |  10 +-
> >   drivers/gpu/drm/arm/malidp_mw.c               |   6 +-
> >   drivers/gpu/drm/arm/malidp_planes.c           |  24 +-
> >   drivers/gpu/drm/armada/armada_gem.c           |   6 +-
> >   drivers/gpu/drm/aspeed/Kconfig                |   2 +-
> >   drivers/gpu/drm/aspeed/aspeed_gfx_crtc.c      |   8 +-
> >   drivers/gpu/drm/aspeed/aspeed_gfx_drv.c       |   8 +-
> >   drivers/gpu/drm/atmel-hlcdc/Kconfig           |   2 +-
> >   drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c  |   6 +-
> >   .../gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c   |   6 +-
> >   ...rm_fb_cma_helper.c => drm_fb_dma_helper.c} |  52 +--
> >   drivers/gpu/drm/drm_file.c                    |   2 +-
> >   drivers/gpu/drm/drm_format_helper.c           |   4 +-
> >   ..._gem_cma_helper.c => drm_gem_dma_helper.c} | 296 +++++++++---------
> >   drivers/gpu/drm/drm_mipi_dbi.c                |   2 +-
> >   drivers/gpu/drm/fsl-dcu/Kconfig               |   2 +-
> >   drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c     |   8 +-
> >   drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_kms.c     |   2 +-
> >   drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_plane.c   |   8 +-
> >   drivers/gpu/drm/hisilicon/kirin/Kconfig       |   2 +-
> >   .../gpu/drm/hisilicon/kirin/kirin_drm_ade.c   |  10 +-
> >   .../gpu/drm/hisilicon/kirin/kirin_drm_drv.c   |   4 +-
> >   drivers/gpu/drm/imx/Kconfig                   |   2 +-
> >   drivers/gpu/drm/imx/dcss/Kconfig              |   2 +-
> >   drivers/gpu/drm/imx/dcss/dcss-kms.c           |   6 +-
> >   drivers/gpu/drm/imx/dcss/dcss-plane.c         |  18 +-
> >   drivers/gpu/drm/imx/imx-drm-core.c            |  10 +-
> >   drivers/gpu/drm/imx/imx-drm.h                 |   2 +-
> >   drivers/gpu/drm/imx/ipuv3-crtc.c              |   4 +-
> >   drivers/gpu/drm/imx/ipuv3-plane.c             |  28 +-
> >   drivers/gpu/drm/ingenic/Kconfig               |   2 +-
> >   drivers/gpu/drm/ingenic/ingenic-drm-drv.c     |  14 +-
> >   drivers/gpu/drm/ingenic/ingenic-ipu.c         |  12 +-
> >   drivers/gpu/drm/kmb/Kconfig                   |   2 +-
> >   drivers/gpu/drm/kmb/kmb_drv.c                 |   6 +-
> >   drivers/gpu/drm/kmb/kmb_plane.c               |  10 +-
> >   drivers/gpu/drm/mcde/Kconfig                  |   2 +-
> >   drivers/gpu/drm/mcde/mcde_display.c           |   8 +-
> >   drivers/gpu/drm/mcde/mcde_drv.c               |  10 +-
> >   drivers/gpu/drm/mediatek/Kconfig              |   2 +-
> >   drivers/gpu/drm/mediatek/mtk_drm_drv.c        |   2 +-
> >   drivers/gpu/drm/mediatek/mtk_drm_gem.c        |   4 +-
> >   drivers/gpu/drm/meson/Kconfig                 |   2 +-
> >   drivers/gpu/drm/meson/meson_drv.c             |  10 +-
> >   drivers/gpu/drm/meson/meson_overlay.c         |  12 +-
> >   drivers/gpu/drm/meson/meson_plane.c           |   8 +-
> >   drivers/gpu/drm/msm/msm_drv.c                 |   2 +-
> >   drivers/gpu/drm/mxsfb/Kconfig                 |   2 +-
> >   drivers/gpu/drm/mxsfb/mxsfb_drv.c             |   6 +-
> >   drivers/gpu/drm/mxsfb/mxsfb_kms.c             |  10 +-
> >   drivers/gpu/drm/panel/Kconfig                 |   2 +-
> >   drivers/gpu/drm/panel/panel-ilitek-ili9341.c  |   6 +-
> >   drivers/gpu/drm/pl111/Kconfig                 |   2 +-
> >   drivers/gpu/drm/pl111/pl111_display.c         |   8 +-
> >   drivers/gpu/drm/pl111/pl111_drv.c             |  10 +-
> >   drivers/gpu/drm/rcar-du/Kconfig               |   2 +-
> >   drivers/gpu/drm/rcar-du/rcar_du_crtc.c        |   4 +-
> >   drivers/gpu/drm/rcar-du/rcar_du_drv.c         |   6 +-
> >   drivers/gpu/drm/rcar-du/rcar_du_kms.c         |  38 +--
> >   drivers/gpu/drm/rcar-du/rcar_du_plane.c       |   8 +-
> >   drivers/gpu/drm/rcar-du/rcar_du_vsp.c         |   6 +-
> >   drivers/gpu/drm/rockchip/Kconfig              |   2 +-
> >   drivers/gpu/drm/rockchip/rockchip_drm_drv.c   |   2 +-
> >   drivers/gpu/drm/rockchip/rockchip_drm_gem.c   |   4 +-
> >   drivers/gpu/drm/shmobile/Kconfig              |   2 +-
> >   drivers/gpu/drm/shmobile/shmob_drm_crtc.c     |  10 +-
> >   drivers/gpu/drm/shmobile/shmob_drm_drv.c      |   6 +-
> >   drivers/gpu/drm/shmobile/shmob_drm_kms.c      |   4 +-
> >   drivers/gpu/drm/shmobile/shmob_drm_kms.h      |   2 +-
> >   drivers/gpu/drm/shmobile/shmob_drm_plane.c    |  10 +-
> >   drivers/gpu/drm/solomon/ssd130x.c             |   2 +-
> >   drivers/gpu/drm/sprd/Kconfig                  |   2 +-
> >   drivers/gpu/drm/sprd/sprd_dpu.c               |  10 +-
> >   drivers/gpu/drm/sprd/sprd_drm.c               |   6 +-
> >   drivers/gpu/drm/sti/Kconfig                   |   2 +-
> >   drivers/gpu/drm/sti/sti_cursor.c              |  14 +-
> >   drivers/gpu/drm/sti/sti_drv.c                 |   8 +-
> >   drivers/gpu/drm/sti/sti_gdp.c                 |  18 +-
> >   drivers/gpu/drm/sti/sti_hqvdp.c               |  18 +-
> >   drivers/gpu/drm/sti/sti_plane.c               |   4 +-
> >   drivers/gpu/drm/stm/Kconfig                   |   2 +-
> >   drivers/gpu/drm/stm/drv.c                     |  12 +-
> >   drivers/gpu/drm/stm/ltdc.c                    |  16 +-
> >   drivers/gpu/drm/sun4i/Kconfig                 |   2 +-
> >   drivers/gpu/drm/sun4i/sun4i_backend.c         |   6 +-
> >   drivers/gpu/drm/sun4i/sun4i_drv.c             |  10 +-
> >   drivers/gpu/drm/sun4i/sun4i_frontend.c        |  10 +-
> >   drivers/gpu/drm/sun4i/sun8i_mixer.c           |   4 +-
> >   drivers/gpu/drm/sun4i/sun8i_ui_layer.c        |   8 +-
> >   drivers/gpu/drm/sun4i/sun8i_vi_layer.c        |   8 +-
> >   drivers/gpu/drm/tegra/fb.c                    |   2 +-
> >   drivers/gpu/drm/tidss/Kconfig                 |   2 +-
> >   drivers/gpu/drm/tidss/tidss_crtc.c            |   4 +-
> >   drivers/gpu/drm/tidss/tidss_dispc.c           |  12 +-
> >   drivers/gpu/drm/tidss/tidss_drv.c             |   6 +-
> >   drivers/gpu/drm/tidss/tidss_kms.c             |   2 +-
> >   drivers/gpu/drm/tidss/tidss_plane.c           |   2 +-
> >   drivers/gpu/drm/tilcdc/Kconfig                |   2 +-
> >   drivers/gpu/drm/tilcdc/tilcdc_crtc.c          |   8 +-
> >   drivers/gpu/drm/tilcdc/tilcdc_drv.c           |   6 +-
> >   drivers/gpu/drm/tiny/Kconfig                  |  22 +-
> >   drivers/gpu/drm/tiny/arcpgu.c                 |  12 +-
> >   drivers/gpu/drm/tiny/hx8357d.c                |   6 +-
> >   drivers/gpu/drm/tiny/ili9163.c                |   6 +-
> >   drivers/gpu/drm/tiny/ili9225.c                |  12 +-
> >   drivers/gpu/drm/tiny/ili9341.c                |   6 +-
> >   drivers/gpu/drm/tiny/ili9486.c                |   6 +-
> >   drivers/gpu/drm/tiny/mi0283qt.c               |   6 +-
> >   drivers/gpu/drm/tiny/panel-mipi-dbi.c         |   6 +-
> >   drivers/gpu/drm/tiny/repaper.c                |  12 +-
> >   drivers/gpu/drm/tiny/st7586.c                 |  12 +-
> >   drivers/gpu/drm/tiny/st7735r.c                |   6 +-
> >   drivers/gpu/drm/tve200/Kconfig                |   2 +-
> >   drivers/gpu/drm/tve200/tve200_display.c       |  12 +-
> >   drivers/gpu/drm/tve200/tve200_drv.c           |   8 +-
> >   drivers/gpu/drm/v3d/v3d_drv.c                 |   2 +-
> >   drivers/gpu/drm/v3d/v3d_gem.c                 |   4 +-
> >   drivers/gpu/drm/vc4/Kconfig                   |   2 +-
> >   drivers/gpu/drm/vc4/vc4_bo.c                  |  44 +--
> >   drivers/gpu/drm/vc4/vc4_crtc.c                |  10 +-
> >   drivers/gpu/drm/vc4/vc4_drv.c                 |   8 +-
> >   drivers/gpu/drm/vc4/vc4_drv.h                 |  18 +-
> >   drivers/gpu/drm/vc4/vc4_gem.c                 |   4 +-
> >   drivers/gpu/drm/vc4/vc4_plane.c               |  10 +-
> >   drivers/gpu/drm/vc4/vc4_render_cl.c           |  26 +-
> >   drivers/gpu/drm/vc4/vc4_txp.c                 |   6 +-
> >   drivers/gpu/drm/vc4/vc4_v3d.c                 |   4 +-
> >   drivers/gpu/drm/vc4/vc4_validate.c            |  16 +-
> >   drivers/gpu/drm/vc4/vc4_validate_shaders.c    |   2 +-
> >   drivers/gpu/drm/xlnx/Kconfig                  |   2 +-
> >   drivers/gpu/drm/xlnx/zynqmp_disp.c            |   4 +-
> >   drivers/gpu/drm/xlnx/zynqmp_dpsub.c           |   8 +-
> >   ...rm_fb_cma_helper.h => drm_fb_dma_helper.h} |  10 +-
> >   include/drm/drm_gem.h                         |   2 +-
> >   ..._gem_cma_helper.h => drm_gem_dma_helper.h} | 154 ++++-----
> >   146 files changed, 777 insertions(+), 790 deletions(-)
> >   rename drivers/gpu/drm/{drm_fb_cma_helper.c => drm_fb_dma_helper.c} (68%)
> >   rename drivers/gpu/drm/{drm_gem_cma_helper.c => drm_gem_dma_helper.c} (60%)
> >   rename include/drm/{drm_fb_cma_helper.h => drm_fb_dma_helper.h} (56%)
> >   rename include/drm/{drm_gem_cma_helper.h => drm_gem_dma_helper.h} (53%)

-- 
Regards,

Laurent Pinchart

  reply	other threads:[~2022-07-06  9:10 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-05 21:26 [PATCH 0/3] drm: rename CMA helpers to DMA helpers Danilo Krummrich
2022-07-05 21:26 ` [PATCH 1/3] drm/fb: rename FB CMA helpers to FB " Danilo Krummrich
2022-07-06  9:35   ` Laurent Pinchart
2022-07-05 21:26 ` [PATCH 2/3] drm/gem: rename GEM CMA helpers to GEM " Danilo Krummrich
2022-07-06 10:46   ` Laurent Pinchart
2022-07-05 21:26 ` [PATCH 3/3] drm/todo: remove task to rename CMA helpers Danilo Krummrich
2022-07-06 10:46   ` Laurent Pinchart
2022-07-06  8:34 ` [PATCH 0/3] drm: rename CMA helpers to DMA helpers Thomas Zimmermann
2022-07-06  9:06   ` Laurent Pinchart [this message]
2022-07-06  9:31     ` 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=YsVQo40s5PlPwynD@pendragon.ideasonboard.com \
    --to=laurent.pinchart@ideasonboard.com \
    --cc=airlied@linux.ie \
    --cc=dakr@redhat.com \
    --cc=daniel@ffwll.ch \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tzimmermann@suse.de \
    /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