All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Vetter <daniel@ffwll.ch>
To: Simon Ser <contact@emersion.fr>
Cc: "dri-devel@lists.freedesktop.org" <dri-devel@lists.freedesktop.org>
Subject: Re: Expose more EDID fields to userspace
Date: Mon, 7 Jan 2019 11:02:14 +0100	[thread overview]
Message-ID: <20190107100214.GY21184@phenom.ffwll.local> (raw)
In-Reply-To: <OofZfPAwdXsGHNgqqRAHek6FcLiIe5E9-YZuxUb2VujN12FIUKliY0Uj6l1G8eFikyLZ-QSJjy-CClSDvQq8831nNHQJ0St05uH9mXDXKdE=@emersion.fr>

On Mon, Dec 31, 2018 at 12:57:24PM +0000, Simon Ser wrote:
> On Monday, December 24, 2018 11:23 AM, Daniel Vetter <daniel@ffwll.ch> wrote:
> > On Sun, Dec 23, 2018 at 09:16:13AM +0000, Simon Ser wrote:
> >
> > > Hi all,
> > > Right now, the kernel parses EDIDs and exposes some of the data to
> > > userspace. For instance, drmModeConnector has mm{Width,Height} and
> > > subpixel.
> > > Generally, userspace also has another EDID parser. For instance,
> > > wlroots uses it just to get the make/model/serial. I've talked about
> > > this at XDC 2018, and someone mentioned it could be a good idea to
> > > de-duplicate the work.
> >
> > Could have been me ...
> >
> > > Would it be reasonable to expose those as DRM connector properties?
> >
> > Yes, very much. Aside from the kernel-side implementation all we need is
> > the userspace per
> >
> > https://dri.freedesktop.org/docs/drm/gpu/drm-uapi.html#open-source-userspace-requirements
> >
> > Important: Don't merge the userspace side into your main branch before
> > it's all reviewed.
> >
> > And ideally some igts (we have infrastructure to inject edids and hence
> > can check that the right stuff comes back):
> >
> > https://dri.freedesktop.org/docs/drm/gpu/drm-uapi.html#testing-and-validation
> 
> Thanks! I've began to implement this, but I'm wondering what's the best
> way to expose this piece of information to userspace.
> 
> I can think of two solutions:
> 
> 1. A single IDENTIFICATION blob containing one struct with
>    make/serial/model.
> 2. Three properties: MAKE, MODEL, SERIAL.
> 
> I also wonder if it's worth it to expose both the uint32_t for serial
> and the serial string, or just the serial string. Some monitors don't
> have a serial string, but we can generate one from the uint32_t (e.g.
> hex). Same applies to model.
> 
> Thoughts?

Best to pull in some other compositor people and get them to agree. From a
kernel pov I'm fine with whatever userspace preferes.
-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-01-07 10:02 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-23  9:16 Expose more EDID fields to userspace Simon Ser
2018-12-24 10:23 ` Daniel Vetter
2018-12-31 12:57   ` Simon Ser
2019-01-07 10:02     ` Daniel Vetter [this message]
2019-01-07 15:57       ` Keith Packard
2019-01-07 17:07         ` Brian Starkey
2019-01-16 18:35           ` Pekka Paalanen
2019-01-16 19:11             ` Ville Syrjälä
2019-01-16 19:40             ` Adam Jackson
2019-01-16 20:32               ` Keith Packard
2019-01-17  9:28                 ` Daniel Vetter
2019-01-17 19:45                   ` Keith Packard
2019-01-17 19:59             ` Alex Deucher
2019-01-17 20:33               ` Daniel Vetter
2019-01-17 21:23           ` Stéphane Marchesin
2019-01-17 21:36             ` Keith Packard

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=20190107100214.GY21184@phenom.ffwll.local \
    --to=daniel@ffwll.ch \
    --cc=contact@emersion.fr \
    --cc=dri-devel@lists.freedesktop.org \
    /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.