From: Daniel Vetter <daniel@ffwll.ch>
To: Sagar Arun Kamble <sagar.a.kamble@intel.com>
Cc: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>,
linux-doc@vger.kernel.org, Daniel Vetter <daniel.vetter@ffwll.ch>,
intel-gfx <intel-gfx@lists.freedesktop.org>,
shashidhar.hiremath@intel.com,
"dri-devel@lists.freedesktop.org"
<dri-devel@lists.freedesktop.org>,
"Purushothaman, Vijay A" <vijay.a.purushothaman@intel.com>,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
Rob Landley <rob@landley.net>,
Alex Deucher <alexander.deucher@amd.com>,
Dave Airlie <airlied@redhat.com>
Subject: Re: [PATCH 1/1] Documentation: drm: describing drm properties exposed by various drivers
Date: Mon, 12 May 2014 10:03:55 +0200 [thread overview]
Message-ID: <20140512080355.GB25056@phenom.ffwll.local> (raw)
In-Reply-To: <1399874873.15218.32.camel@sagar-desktop>
On Mon, May 12, 2014 at 11:37:53AM +0530, Sagar Arun Kamble wrote:
> I support approach using docbook to start since there are not lot of
> properties. Laurent has ack'ed this one. Can we go ahead with this?
> http://lists.freedesktop.org/archives/intel-gfx/2014-March/041527.html
>
> Adding description of new property is not very complex (assuming table
> format is understood and being comfortable with HTML row/table
> manipulation).
>
> Adding description of each property in their source might be time
> consuming task.
Yeah I'm ok with docbook for the time being. My long-term plan is to fix
up kerneldoc to support markdown and then we can move such neat tables
into the code. There's lots other places that would benefit from proper
list formatting and tables. So Ack from my side on both the docbook patch
and the no-more-props-without-doc-patch rule (which is kinda what I've
been doing thus far).
-Daniel
>
> thanks,
> Sagar
>
>
> On Sat, 2014-05-10 at 06:56 -0400, Rob Clark wrote:
> > On Sat, May 10, 2014 at 6:39 AM, Ville Syrjälä
> > <ville.syrjala@linux.intel.com> wrote:
> > > On Wed, Mar 12, 2014 at 12:25:06PM +0100, Laurent Pinchart wrote:
> > >> Hi Sagar,
> > >>
> > >> On Wednesday 12 March 2014 16:46:05 Sagar Arun Kamble wrote:
> > >> > On Mon, 2014-03-10 at 15:36 +0100, Laurent Pinchart wrote:
> > >> > > On Monday 10 March 2014 06:21:49 Daniel Vetter wrote:
> > >> > > > On Wed, Mar 5, 2014 at 11:56 AM, <sagar.a.kamble@intel.com> wrote:
> > >> > > > > +<table border="1" cellpadding="0" cellspacing="0" >
> > >> > > > > +<tbody>
> > >> > > > > +<tr style="font-weight: bold;" >
> > >> > > > > +<td valign="top" >Owner Module/Drivers</td>
> > >> > > > > +<td valign="top" >Group</td>
> > >> > > > > +<td valign="top" >Property Object</td>
> > >> > > > > +<td valign="top" >Property Name</td>
> > >> > > > > +<td valign="top" >Type</td>
> > >> > > > > +<td valign="top" >Property Values</td>
> > >> > > > > +<td valign="top" >Object attached</td>
> > >> > > > > +<td valign="top" >Description</td>
> > >> > > > > +</tr>
> > >> > > >
> > >> > > > In my opinion this is a horrible way to write property documentations
> > >> > > > - explicitly constructing html tables is error prone and really hard
> > >> > > > to read in the source. Imo docbook in general is rather horrible,
> > >> > > > which is way I write almost all my docs as kerneldoc ;-)
> > >> > > >
> > >> > > > I think a simple asciidoc/markdown would be much simpler, with a bit
> > >> > > > of free-form structure to group properties into relevant groups.
> > >> > > > Long-term we might even need to split it up into different spec files
> > >> > > > to keep a good overview.
> > >> > >
> > >> > > Docbook is indeed hard to read and write when it comes to such tables.
> > >> > > However I like having the properties documented in the DRM core
> > >> > > documentation. Maybe we could come up with a simpler text format that
> > >> > > would be transformed into docbook when compiling the documentation ?
> > >> >
> > >> > Does this mean we need to create comment block with "Doc: drm
> > >> > properties" style section in each driver where drm properties are
> > >> > instantiated. And then in drm.tmpl collect all these using !P escape
> > >> > sequence?
> > >> > How do create table out of these across all drivers?
> > >>
> > >> I don't have a strong preference here. Documenting properties in source code
> > >> comments would be fine, so would an external central documentation file in a
> > >> non Docbook format. For the record I'm personally fine with using Docbook as
> > >> in this patch :-)
> > >>
> > >> If we decide to go for property documentation inside the source code then I
> > >> believe we'll have to create our own format, as creating a properties table
> > >> from kerneldoc information extracted from comments is probably not possible.
> > >
> > > Can comeone pick up the ball here and figure out what needs to be done?
> > >
> > > The reason why I want a central place for the documentation is to force
> > > people to collaborate outside their own sandbox when adding properties.
> > > Whether that's docbook or some text file I don't care so much at this
> > > point. The fact that it's a central place should mandate that the
> > > patches changing it will go through dri-devel and so everyone should se
> > > them, and when adding new properties it would make the patch author more
> > > likely to look around a bit before adding another slighty incompatible
> > > version of the same property. If someone has a better suggestion how to
> > > encforce this I'm all ears.
> > >
> > > Of course this idea can still fail if our esteemed maintainer merges
> > > stuff without checking for violations of this policy. Dave, any thoughts
> > > on the subject?
> > >
> > > Either way I can tell you that I'm not very enthusiastic about reviewing
> > > any property patches until some kind of decision about this is reached,
> > > be it "docbook", "text", "plan c", or "fuck it, let the world burn!".
> >
> > any of the first three options would be vastly superior to what we do now
> >
> > tbh, I'd suggest imposing a no-new-properties-without-docs rule even
> > if we haven't finished bikeshedding about the docs format. That might
> > motivate someone to hurry up and just pick one.
> >
> > We can change the format, figure out some way to get it into docbook,
> > etc, later.. it's not such a huge volume of words we have to type here
> > that we can't reformat it later.
> >
> > BR,
> > -R
> >
> >
> > >
> > > --
> > > Ville Syrjälä
> > > Intel OTC
> > > _______________________________________________
> > > dri-devel mailing list
> > > dri-devel@lists.freedesktop.org
> > > http://lists.freedesktop.org/mailman/listinfo/dri-devel
>
>
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
next prev parent reply other threads:[~2014-05-12 8:04 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1394016990-5218-1-git-send-email-sagar.a.kamble@intel.com>
[not found] ` <1394090125-30029-1-git-send-email-sagar.a.kamble@intel.com>
2014-03-06 12:09 ` [PATCH v2 1/1] Documentation: drm: describing drm properties exposed by various drivers Ville Syrjälä
2014-03-06 14:01 ` Sagar Arun Kamble
2014-03-06 14:41 ` [PATCH v3 " sagar.a.kamble
[not found] ` <2919182.UBDg5nOr7Z@avalon>
[not found] ` <1394622965.18918.12.camel@sagar-desktop>
[not found] ` <3136468.2PAlK4Gq8k@avalon>
2014-05-10 10:39 ` [PATCH " Ville Syrjälä
2014-05-10 10:56 ` Rob Clark
2014-05-12 6:07 ` Sagar Arun Kamble
2014-05-12 8:03 ` Daniel Vetter [this message]
2014-05-13 7:17 ` Thierry Reding
2014-05-13 7:34 ` Daniel Vetter
2014-05-13 9:05 ` Thierry Reding
2014-05-13 11:02 ` Laurent Pinchart
2014-05-13 11:51 ` Daniel Vetter
2014-05-12 8:24 ` Dave Airlie
2014-05-12 8:58 ` Daniel Vetter
2014-05-12 15:23 ` Randy Dunlap
2014-05-12 15:54 ` Daniel Vetter
2014-05-12 18:04 ` Randy Dunlap
2014-07-31 22:16 ` Randy Dunlap
2014-08-01 12:58 ` Laurent Pinchart
2014-08-01 22:21 ` Randy Dunlap
2014-08-04 7:30 ` Daniel Vetter
2014-08-04 13:58 ` 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=20140512080355.GB25056@phenom.ffwll.local \
--to=daniel@ffwll.ch \
--cc=airlied@redhat.com \
--cc=alexander.deucher@amd.com \
--cc=daniel.vetter@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=intel-gfx@lists.freedesktop.org \
--cc=laurent.pinchart+renesas@ideasonboard.com \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-doc@vger.kernel.org \
--cc=rob@landley.net \
--cc=sagar.a.kamble@intel.com \
--cc=shashidhar.hiremath@intel.com \
--cc=vijay.a.purushothaman@intel.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