dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Vetter <daniel@ffwll.ch>
To: "Noralf Trønnes" <noralf@tronnes.org>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>,
	Emil Velikov <emil.l.velikov@gmail.com>,
	Josef Lusticky <josef@lusticky.cz>,
	dri-devel <dri-devel@lists.freedesktop.org>,
	Thierry Reding <thierry.reding@gmail.com>,
	Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
	Sam Ravnborg <sam@ravnborg.org>
Subject: Re: [RFC 4/4] drm/panel/ili9341: Support mi0283qt
Date: Wed, 31 Jul 2019 10:23:49 +0200	[thread overview]
Message-ID: <20190731082349.GE7444@phenom.ffwll.local> (raw)
In-Reply-To: <86b74e21-8a86-3c7b-9d32-2e6613004715@tronnes.org>

On Tue, Jul 30, 2019 at 07:33:28PM +0200, Noralf Trønnes wrote:
> 
> 
> Den 30.07.2019 19.12, skrev Emil Velikov:
> > On 2019/07/30, Daniel Vetter wrote:
> >> On Tue, Jul 30, 2019 at 4:30 PM Noralf Trønnes <noralf@tronnes.org> wrote:
> >>>
> >>>
> >>>
> >>> Den 29.07.2019 21.55, skrev Noralf Trønnes:
> >>>> Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
> >>>> ---
> >>>>  drivers/gpu/drm/panel/panel-ilitek-ili9341.c | 179 ++++++++++++++++++-
> >>>>  1 file changed, 170 insertions(+), 9 deletions(-)
> >>>>
> >>>
> >>> I have realised that this will change the DRM driver name from mi0283qt
> >>> to drm_mipi_dbi. This means that this panel will loose its MESA kmsro[1]
> >>> support. I haven't tried it, but this is the first thing that gives this
> >>> driver any real advantage over its fbdev counterpart in
> >>> drivers/staging/fbtft, so I don't want to loose that.
> >>> So even if MIPI DBI panel support is implemented in some form, I will
> >>> wait with converting mi0283qt until someone has updated the kmsro driver.
> >>
> >> Why does it change? You should be able to stuff whatever you feel like
> >> into the drm driver name, this doesn't have to match either your
> >> platform/spi/whatever driver name nor the module option.
> > 
> > Last time i've looked DRM drivers using the mipi dsi helpers do _not_
> > have "drm_mipi_dsi" as their driver name. Hence drivers using the mipi
> > dbi should not have "drm_mipi_dbi".
> > 
> 
> What purpose does the DRM driver name serve for userspace?
> Why can't it be called drm_mipi_dbi? Because multiple panel drivers will
> use the same name? You're statement implies that there are some rules
> regarding DRM driver naming.

Worst case kmalloc a drm_driver at runtime and set the driver name to
match the panel name? Imo that makes sense for these
panel-as-full-drm_driver drivers ...

> > That said, we should probably highlight even more that the driver name
> > is an ABI.
> > 
> 
> This I didn't know.

kmsro and mesa in general uses it to figure out which userspace driver
needs to be loaded for which kernel driver. That makes it uapi, and yeah I
guess we should document it. I think aside from kmsro it's not relevant
for display-only drivers, but for anything that does rendering and has
custom ioctls it very much is the only real way to figure out what kind of
driver you have.
-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:[~2019-07-31  8:23 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-29 19:55 [RFC 0/4] drm/mipi-dbi: Support panel drivers Noralf Trønnes
2019-07-29 19:55 ` [RFC 1/4] drm/panel: Add Ilitek ILI9341 parallel RGB panel driver Noralf Trønnes
2019-07-29 19:55 ` [RFC 2/4] drm/panel/ili9341: Rebase and some more Noralf Trønnes
2019-07-30  6:45   ` Josef Luštický
2019-07-29 19:55 ` [RFC 3/4] drm/mipi-dbi: Support command mode panel drivers Noralf Trønnes
2019-07-29 19:55 ` [RFC 4/4] drm/panel/ili9341: Support mi0283qt Noralf Trønnes
2019-07-30  8:34   ` Josef Luštický
2019-07-30 14:18     ` Noralf Trønnes
2019-07-30 14:30   ` Noralf Trønnes
2019-07-30 15:22     ` Daniel Vetter
2019-07-30 17:04       ` Noralf Trønnes
2019-07-30 17:12       ` Emil Velikov
2019-07-30 17:33         ` Noralf Trønnes
2019-07-31  8:23           ` Daniel Vetter [this message]
2019-07-31 13:35           ` Emil Velikov
2019-07-30  6:40 ` [RFC 0/4] drm/mipi-dbi: Support panel drivers Josef Luštický
2019-07-30 14:08   ` Noralf Trønnes
2019-07-30 14:27     ` Josef Luštický
2019-07-30 14:51       ` Noralf Trønnes

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=20190731082349.GE7444@phenom.ffwll.local \
    --to=daniel@ffwll.ch \
    --cc=daniel.vetter@ffwll.ch \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=emil.l.velikov@gmail.com \
    --cc=josef@lusticky.cz \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=noralf@tronnes.org \
    --cc=sam@ravnborg.org \
    --cc=thierry.reding@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox