From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Pekka Paalanen <ppaalanen@gmail.com>
Cc: Daniel Vetter <daniel.vetter@intel.com>,
dri-devel <dri-devel@lists.freedesktop.org>
Subject: Re: [PATCH] drm: document that user-space should avoid parsing EDIDs
Date: Fri, 9 Oct 2020 17:20:18 +0300 [thread overview]
Message-ID: <20201009142018.GT6112@intel.com> (raw)
In-Reply-To: <20201009165651.31199071@eldfell>
On Fri, Oct 09, 2020 at 04:56:51PM +0300, Pekka Paalanen wrote:
> On Fri, 9 Oct 2020 16:10:25 +0300
> Ville Syrjälä <ville.syrjala@linux.intel.com> wrote:
>
> > On Fri, Oct 09, 2020 at 01:07:20PM +0100, Daniel Stone wrote:
> > > Hi,
> > >
> > > On Fri, 9 Oct 2020 at 10:24, Simon Ser <contact@emersion.fr> wrote:
> > > > User-space should avoid parsing EDIDs for metadata already exposed via
> > > > other KMS interfaces and properties. For instance, user-space should not
> > > > try to extract a list of modes from the EDID: the kernel might mutate
> > > > the mode list (because of link capabilities or quirks for instance).
> > > >
> > > > Other metadata not exposed by KMS can be parsed by user-space. This
> > > > includes for instance monitor identification (make/model/serial) and
> > > > supported color-spaces.
> > >
> > > So I take it the only way to get modes is through the connector's list
> > > of modes. That sounds reasonable enough to me, but I think to properly
> > > handle colour (e.g. CEA modes have different behaviour for
> > > limited/full range depending on which VIC they correspond to IIRC)
> >
> > If the mode has a VIC and that VIC is not 1, then it's limited range,
> > otherwise full range. There are fortunately no cases where you would
> > have the same exact timings corresponding to different quantization
> > range depending on the VIC.
> >
> > And the only reason the same timings could correspond to multiple VICs
> > is aspect ratio. Which is already exposed via the mode flags, assuming
> > the appropriate client cap is enabled.
> >
> > So I think the only reason to expose the VIC would be if userspace is
> > non-lazy and wants to manage its colors presicely, but is otherwise lazy
> > and doesn't want to figure out what the VIC of the mode is on its own.
>
> What would "figure out what the VIC of the mode is" require in userspace?
>
> A database of all VIC modes and then compare if the detailed timings match?
>
> Is that also how the kernel recognises that userspace wants to set a
> certain VIC mode instead of some arbitrary mode?
Yes and yes.
Note that atm we also don't have a way for userspace to say that it
wants to signal limited range to the sink but wants the kernel
to not do the full->limited range conversion. Ie. no way for userspace
to pass in pixels that are already in limited range. There was a patch
for that posted quite long ago, but it didn't go in.
>
> Can CVT or GVT produce those exact timings? Can that accidentally
> result in limited range?
Not sure.
--
Ville Syrjälä
Intel
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2020-10-09 14:20 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-09 9:24 [PATCH] drm: document that user-space should avoid parsing EDIDs Simon Ser
2020-10-09 9:36 ` Daniel Vetter
2020-10-09 9:48 ` Thomas Zimmermann
2020-10-09 9:49 ` Thomas Zimmermann
2020-10-09 10:28 ` Pekka Paalanen
2020-10-09 10:25 ` Brian Starkey
2020-10-22 10:38 ` Simon Ser
2020-10-09 12:07 ` Daniel Stone
2020-10-09 13:10 ` Ville Syrjälä
2020-10-09 13:56 ` Pekka Paalanen
2020-10-09 14:20 ` Ville Syrjälä [this message]
2020-10-12 7:11 ` Pekka Paalanen
2020-10-16 13:50 ` Ville Syrjälä
2020-10-19 7:49 ` Pekka Paalanen
2020-10-20 3:08 ` Vitaly Prosyak
2020-10-20 15:04 ` Ville Syrjälä
2020-10-21 1:46 ` Vitaly Prosyak
2020-10-21 14:35 ` Ville Syrjälä
2020-10-21 14:56 ` Vitaly Prosyak
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=20201009142018.GT6112@intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=daniel.vetter@intel.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=ppaalanen@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.