From: Pekka Paalanen <ppaalanen@gmail.com>
To: "Ville Syrjälä" <ville.syrjala@linux.intel.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: Mon, 12 Oct 2020 10:11:01 +0300 [thread overview]
Message-ID: <20201012101101.12c6bbb8@eldfell> (raw)
In-Reply-To: <20201009142018.GT6112@intel.com>
[-- Attachment #1.1: Type: text/plain, Size: 3103 bytes --]
On Fri, 9 Oct 2020 17:20:18 +0300
Ville Syrjälä <ville.syrjala@linux.intel.com> wrote:
> 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.
Thanks for the heads-up.
If userspace uses all available KMS color management properties
(CTM, LUTs, etc.) *and* the video mode implies limited range on the
cable, at what point in the pixel pipeline does that conversion from
full to limited range occur?
That is something I expect to need codify into Weston at some point so
that the complete pixel pipeline works as intended.
Thanks,
pq
[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
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-12 7:11 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ä
2020-10-12 7:11 ` Pekka Paalanen [this message]
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=20201012101101.12c6bbb8@eldfell \
--to=ppaalanen@gmail.com \
--cc=daniel.vetter@intel.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=ville.syrjala@linux.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 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.