All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Vetter <daniel@ffwll.ch>
To: "Noralf Trønnes" <noralf@tronnes.org>
Cc: narmstrong@baylibre.com, daniel.vetter@ffwll.ch,
	liviu.dudau@arm.com,
	Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
	marex@denx.de, boris.brezillon@free-electrons.com,
	abrodkin@synopsys.com, z.liuxinliang@hisilicon.com,
	kong.kongxinwei@hisilicon.com, tomi.valkeinen@ti.com,
	puck.chen@hisilicon.com, jsarha@ti.com,
	dri-devel@lists.freedesktop.org, vincent.abriou@st.com,
	alison.wang@freescale.com, philippe.cornu@st.com,
	yannick.fertre@st.com, zourongrong@gmail.com,
	maxime.ripard@free-electrons.com, shawnguo@kernel.org
Subject: Re: [PATCH v3 01/22] drm: Add GEM backed framebuffer library
Date: Mon, 21 Aug 2017 18:24:25 +0200	[thread overview]
Message-ID: <20170821162425.x7iwko7z6rfoljxh@phenom.ffwll.local> (raw)
In-Reply-To: <d1949b91-4957-a139-1715-c34fc3ff41df@tronnes.org>

On Sat, Aug 19, 2017 at 04:46:30PM +0200, Noralf Trønnes wrote:
> 
> Den 16.08.2017 22.50, skrev Laurent Pinchart:
> > Hi Noralf,
> > 
> > One additional comment.
> > 
> > On Wednesday 16 Aug 2017 23:37:54 Laurent Pinchart wrote:
> > > On Sunday 13 Aug 2017 15:31:44 Noralf Trønnes wrote:
> > > > This library provides helpers for drivers that don't subclass
> > > > drm_framebuffer and are backed by drm_gem_object. The code is
> > > > taken from drm_fb_cma_helper.
> > > > 
> > > > Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
> > > > Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
> > > > ---
> > > > 
> > > >   Documentation/gpu/drm-kms-helpers.rst        |   9 +
> > > >   drivers/gpu/drm/Makefile                     |   2 +-
> > > >   drivers/gpu/drm/drm_gem_framebuffer_helper.c | 283 +++++++++++++++++++++
> > > >   include/drm/drm_framebuffer.h                |   7 +
> > > >   include/drm/drm_gem_framebuffer_helper.h     |  37 ++++
> > > >   5 files changed, 337 insertions(+), 1 deletion(-)
> > > >   create mode 100644 drivers/gpu/drm/drm_gem_framebuffer_helper.c
> > > >   create mode 100644 include/drm/drm_gem_framebuffer_helper.h
> > > [snip]
> > > 
> > > > diff --git a/drivers/gpu/drm/drm_gem_framebuffer_helper.c
> > > > b/drivers/gpu/drm/drm_gem_framebuffer_helper.c new file mode 100644
> > > > index 0000000..068a630
> > > > --- /dev/null
> > > > +++ b/drivers/gpu/drm/drm_gem_framebuffer_helper.c
> > > > @@ -0,0 +1,283 @@
> > > [snip]
> > > 
> > > > +/**
> > > > + * DOC: overview
> > > > + *
> > > > + * This library provides helpers for drivers that don't subclass
> > > > + * &drm_framebuffer and and use &drm_gem_object for their backing
> > > > storage.
> > > s/and and/and/
> > > 
> > > > + *
> > > > + * Drivers without additional needs to validate framebuffers can simply
> > > > use
> > > > + * drm_gem_fb_create() and everything is wired up automatically. But all
> > > > + * parts can be used individually.
> > > A sentence should not start by "but". How about "Other drivers can use all
> > > parts independently." ?
> > > 
> > > > + */
> > We now have the GEM CMA helpers, the GEM FB helpers and the FB CMA helper. It
> > starts getting very confusing for driver authors. The overview documentation
> > should explain how they all interact and which helpers a driver can/should use
> > in the different cases.
> 
> Personally I rarely read the documentation, I just read the code, unless
> for complex codepaths, but they seldom have good documentation.
> 
> However documentation that ties things together, like you suggest, I
> also think is valuable. The problem is that it's difficult to write it,
> and that's probably why it's lacking almost everywhere. But I must say
> that Daniel really is persistent in trying to fix this.
> 
> The bottom line for me is that I'm not capable of writing such docs.
> I both lack the knowledge about the drm machinery and the skill to
> write for humans.

Yeah I've practically volunteered myself already to clean up the gem/prime
docs after your cleanups have landed. In case I don't, please ping me
about that. I'll call in requests for review in return :-)
-Daniel
-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

  reply	other threads:[~2017-08-21 16:24 UTC|newest]

Thread overview: 62+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-13 13:31 [PATCH v3 00/22] drm: Add GEM backed framebuffer library Noralf Trønnes
2017-08-13 13:31 ` [PATCH v3 01/22] " Noralf Trønnes
2017-08-16 17:24   ` Eric Anholt
2017-08-16 19:52     ` Noralf Trønnes
2017-08-16 20:39       ` Laurent Pinchart
2017-08-16 21:03         ` Noralf Trønnes
2017-08-16 21:06           ` Daniel Vetter
2017-08-16 21:11             ` Laurent Pinchart
2017-08-16 21:13               ` Daniel Vetter
2017-08-16 21:31                 ` Noralf Trønnes
2017-08-16 21:35                   ` Laurent Pinchart
2017-08-16 21:08           ` Laurent Pinchart
2017-08-16 21:24             ` Noralf Trønnes
2017-08-16 21:33               ` Laurent Pinchart
2017-08-16 22:48           ` Eric Anholt
2017-08-16 20:37   ` Laurent Pinchart
2017-08-16 20:50     ` Laurent Pinchart
2017-08-19 14:46       ` Noralf Trønnes
2017-08-21 16:24         ` Daniel Vetter [this message]
2017-08-13 13:31 ` [PATCH v3 02/22] drm/fb-cma-helper: Use drm_gem_framebuffer_helper Noralf Trønnes
2017-08-16 17:33   ` Eric Anholt
2017-08-16 19:53     ` Noralf Trønnes
2017-08-13 13:31 ` [PATCH v3 03/22] drm/tinydrm: " Noralf Trønnes
2017-08-13 13:31 ` [PATCH v3 04/22] drm/arc: Use drm_gem_fb_create() Noralf Trønnes
2017-08-28 11:36   ` Alexey Brodkin
2017-09-02 12:43     ` Noralf Trønnes
2017-08-13 13:31 ` [PATCH v3 05/22] drm/arm/hdlcd: " Noralf Trønnes
2017-08-13 13:31 ` [PATCH v3 06/22] drm/arm/mali: " Noralf Trønnes
2017-08-25 10:48   ` Liviu Dudau
2017-08-27 17:33     ` Noralf Trønnes
2017-08-13 13:31 ` [PATCH v3 07/22] drm/atmel-hlcdc: " Noralf Trønnes
2017-08-17  7:25   ` Boris Brezillon
2017-08-27 17:33     ` Noralf Trønnes
2017-08-13 13:31 ` [PATCH v3 08/22] drm/fsl-dcu: " Noralf Trønnes
2017-08-13 13:31 ` [PATCH v3 09/22] drm/hisilicon/kirin: " Noralf Trønnes
2017-08-13 13:31 ` [PATCH v3 10/22] drm/imx: Use drm_gem_fb_create() and drm_gem_fb_prepare_fb() Noralf Trønnes
2017-09-11  7:57   ` Philipp Zabel
2017-09-16 12:13     ` Noralf Trønnes
2017-08-13 13:31 ` [PATCH v3 11/22] drm/meson: Use drm_gem_fb_create() Noralf Trønnes
2017-08-13 13:31 ` [PATCH v3 12/22] drm/mxsfb: Use drm_gem_fb_create() and drm_gem_fb_prepare_fb() Noralf Trønnes
2017-08-13 13:31 ` [PATCH v3 13/22] drm/pl111: " Noralf Trønnes
2017-08-16 17:28   ` Eric Anholt
2017-08-13 13:31 ` [PATCH v3 14/22] drm/rcar-du: Use drm_gem_fb_create() Noralf Trønnes
2017-08-13 13:31 ` [PATCH v3 15/22] drm/shmobile: " Noralf Trønnes
2017-08-13 13:31 ` [PATCH v3 16/22] drm/sti: " Noralf Trønnes
2017-08-21  7:53   ` Vincent ABRIOU
2017-08-27 17:34     ` Noralf Trønnes
2017-08-13 13:32 ` [PATCH v3 17/22] drm/stm: " Noralf Trønnes
2017-09-01 11:28   ` Philippe CORNU
2017-09-02 12:45     ` Noralf Trønnes
2017-09-04  7:17       ` Daniel Vetter
2017-08-13 13:32 ` [PATCH v3 18/22] drm/sun4i: " Noralf Trønnes
2017-08-13 13:32 ` [PATCH v3 19/22] drm/tilcdc: " Noralf Trønnes
2017-09-04  7:59   ` Jyri Sarha
2017-09-09 16:02     ` Noralf Trønnes
2017-08-13 13:32 ` [PATCH v3 20/22] drm/vc4: " Noralf Trønnes
2017-08-16 17:27   ` Eric Anholt
2017-08-13 13:32 ` [PATCH v3 21/22] drm/zte: " Noralf Trønnes
2017-08-17 13:12   ` Shawn Guo
2017-08-27 17:34     ` Noralf Trønnes
2017-08-13 13:32 ` [PATCH v3 22/22] drm/fb-cma-helper: Remove unused functions Noralf Trønnes
2017-08-16 17:31   ` Eric Anholt

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=20170821162425.x7iwko7z6rfoljxh@phenom.ffwll.local \
    --to=daniel@ffwll.ch \
    --cc=abrodkin@synopsys.com \
    --cc=alison.wang@freescale.com \
    --cc=boris.brezillon@free-electrons.com \
    --cc=daniel.vetter@ffwll.ch \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=jsarha@ti.com \
    --cc=kong.kongxinwei@hisilicon.com \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=liviu.dudau@arm.com \
    --cc=marex@denx.de \
    --cc=maxime.ripard@free-electrons.com \
    --cc=narmstrong@baylibre.com \
    --cc=noralf@tronnes.org \
    --cc=philippe.cornu@st.com \
    --cc=puck.chen@hisilicon.com \
    --cc=shawnguo@kernel.org \
    --cc=tomi.valkeinen@ti.com \
    --cc=vincent.abriou@st.com \
    --cc=yannick.fertre@st.com \
    --cc=z.liuxinliang@hisilicon.com \
    --cc=zourongrong@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.