All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pekka Paalanen <ppaalanen@gmail.com>
To: Werner Sembach <wse@tuxedocomputers.com>
Cc: "Deucher, Alexander" <alexander.deucher@amd.com>,
	intel-gfx@lists.freedesktop.org,
	Maling list - DRI developers <dri-devel@lists.freedesktop.org>,
	amd-gfx list <amd-gfx@lists.freedesktop.org>
Subject: Re: New uAPI for color management proposal and feedback request
Date: Wed, 23 Jun 2021 10:29:23 +0300	[thread overview]
Message-ID: <20210623102923.70877c1a@eldfell> (raw)
In-Reply-To: <faf25c43-656d-bbb3-d2f2-8205353e19f6@tuxedocomputers.com>

[-- Attachment #1: Type: text/plain, Size: 4071 bytes --]

On Tue, 22 Jun 2021 19:06:43 +0200
Werner Sembach <wse@tuxedocomputers.com> wrote:

> Am 19.05.21 um 11:34 schrieb Pekka Paalanen:
> > On Wed, 12 May 2021 16:04:16 +0300
> > Ville Syrjälä <ville.syrjala@linux.intel.com> wrote:
> >  
> >> On Wed, May 12, 2021 at 02:06:56PM +0200, Werner Sembach wrote:  
> >>> Hello,
> >>>
> >>> In addition to the existing "max bpc", and "Broadcast RGB/output_csc" drm properties I propose 4 new properties:
> >>> "preferred pixel encoding", "active color depth", "active color range", and "active pixel encoding"
> >>>
> >>>
> >>> Motivation:
> >>>
> >>> Current monitors have a variety pixel encodings available: RGB, YCbCr 4:4:4, YCbCr 4:2:2, YCbCr 4:2:0.
> >>>
> >>> In addition they might be full or limited RGB range and the monitors accept different bit depths.
> >>>
> >>> Currently the kernel driver for AMD and Intel GPUs automatically configure the color settings automatically with little
> >>> to no influence of the user. However there are several real world scenarios where the user might disagree with the
> >>> default chosen by the drivers and wants to set his or her own preference.
> >>>
> >>> Some examples:
> >>>
> >>> 1. While RGB and YCbCr 4:4:4 in theory carry the same amount of color information, some screens might look better on one
> >>> than the other because of bad internal conversion. The driver currently however has a fixed default that is chosen if
> >>> available (RGB for Intel and YCbCr 4:4:4 for AMD). The only way to change this currently is by editing and overloading
> >>> the edid reported by the monitor to the kernel.
> >>>
> >>> 2. RGB and YCbCr 4:4:4 need a higher port clock then YCbCr 4:2:0. Some hardware might report that it supports the higher
> >>> port clock, but because of bad shielding on the PC, the cable, or the monitor the screen cuts out every few seconds when
> >>> RGB or YCbCr 4:4:4 encoding is used, while YCbCr 4:2:0 might just work fine without changing hardware. The drivers
> >>> currently however always default to the "best available" option even if it might be broken.
> >>>
> >>> 3. Some screens natively only supporting 8-bit color, simulate 10-Bit color by rapidly switching between 2 adjacent
> >>> colors. They advertise themselves to the kernel as 10-bit monitors but the user might not like the "fake" 10-bit effect
> >>> and prefer running at the native 8-bit per color.
> >>>
> >>> 4. Some screens are falsely classified as full RGB range wile they actually use limited RGB range. This results in
> >>> washed out colors in dark and bright scenes. A user override can be helpful to manually fix this issue when it occurs.
> >>>
> >>> There already exist several requests, discussion, and patches regarding the thematic:
> >>>
> >>> - https://gitlab.freedesktop.org/drm/amd/-/issues/476
> >>>
> >>> - https://gitlab.freedesktop.org/drm/amd/-/issues/1548
> >>>
> >>> - https://lkml.org/lkml/2021/5/7/695
> >>>
> >>> - https://lkml.org/lkml/2021/5/11/416
> >>>  
> > ...
> >  
> >>> Adoption:
> >>>
> >>> A KDE dev wants to implement the settings in the KDE settings GUI:
> >>> https://gitlab.freedesktop.org/drm/amd/-/issues/476#note_912370
> >>>
> >>> Tuxedo Computers (my employer) wants to implement the settings desktop environment agnostic in Tuxedo Control Center. I
> >>> will start work on this in parallel to implementing the new kernel code.    
> >> I suspect everyone would be happier to accept new uapi if we had
> >> multiple compositors signed up to implement it.  
> > I think having Weston support for these would be good, but for now it
> > won't be much of an UI: just weston.ini to set, and the log to see what
> > happened.  
> 
> Since a first version of the patch set is now feature complete,
> please let me know if a MR regarding this is started.

I'll try to remember that if I see someone else do it, but I'm also
pretty sure I won't be writing it any time soon. Still a long way until
it would be used with the color management work.


Thanks,
pq

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: Pekka Paalanen <ppaalanen@gmail.com>
To: Werner Sembach <wse@tuxedocomputers.com>
Cc: "Deucher, Alexander" <alexander.deucher@amd.com>,
	intel-gfx@lists.freedesktop.org,
	Maling list - DRI developers <dri-devel@lists.freedesktop.org>,
	amd-gfx list <amd-gfx@lists.freedesktop.org>
Subject: Re: [Intel-gfx] New uAPI for color management proposal and feedback request
Date: Wed, 23 Jun 2021 10:29:23 +0300	[thread overview]
Message-ID: <20210623102923.70877c1a@eldfell> (raw)
In-Reply-To: <faf25c43-656d-bbb3-d2f2-8205353e19f6@tuxedocomputers.com>


[-- Attachment #1.1: Type: text/plain, Size: 4071 bytes --]

On Tue, 22 Jun 2021 19:06:43 +0200
Werner Sembach <wse@tuxedocomputers.com> wrote:

> Am 19.05.21 um 11:34 schrieb Pekka Paalanen:
> > On Wed, 12 May 2021 16:04:16 +0300
> > Ville Syrjälä <ville.syrjala@linux.intel.com> wrote:
> >  
> >> On Wed, May 12, 2021 at 02:06:56PM +0200, Werner Sembach wrote:  
> >>> Hello,
> >>>
> >>> In addition to the existing "max bpc", and "Broadcast RGB/output_csc" drm properties I propose 4 new properties:
> >>> "preferred pixel encoding", "active color depth", "active color range", and "active pixel encoding"
> >>>
> >>>
> >>> Motivation:
> >>>
> >>> Current monitors have a variety pixel encodings available: RGB, YCbCr 4:4:4, YCbCr 4:2:2, YCbCr 4:2:0.
> >>>
> >>> In addition they might be full or limited RGB range and the monitors accept different bit depths.
> >>>
> >>> Currently the kernel driver for AMD and Intel GPUs automatically configure the color settings automatically with little
> >>> to no influence of the user. However there are several real world scenarios where the user might disagree with the
> >>> default chosen by the drivers and wants to set his or her own preference.
> >>>
> >>> Some examples:
> >>>
> >>> 1. While RGB and YCbCr 4:4:4 in theory carry the same amount of color information, some screens might look better on one
> >>> than the other because of bad internal conversion. The driver currently however has a fixed default that is chosen if
> >>> available (RGB for Intel and YCbCr 4:4:4 for AMD). The only way to change this currently is by editing and overloading
> >>> the edid reported by the monitor to the kernel.
> >>>
> >>> 2. RGB and YCbCr 4:4:4 need a higher port clock then YCbCr 4:2:0. Some hardware might report that it supports the higher
> >>> port clock, but because of bad shielding on the PC, the cable, or the monitor the screen cuts out every few seconds when
> >>> RGB or YCbCr 4:4:4 encoding is used, while YCbCr 4:2:0 might just work fine without changing hardware. The drivers
> >>> currently however always default to the "best available" option even if it might be broken.
> >>>
> >>> 3. Some screens natively only supporting 8-bit color, simulate 10-Bit color by rapidly switching between 2 adjacent
> >>> colors. They advertise themselves to the kernel as 10-bit monitors but the user might not like the "fake" 10-bit effect
> >>> and prefer running at the native 8-bit per color.
> >>>
> >>> 4. Some screens are falsely classified as full RGB range wile they actually use limited RGB range. This results in
> >>> washed out colors in dark and bright scenes. A user override can be helpful to manually fix this issue when it occurs.
> >>>
> >>> There already exist several requests, discussion, and patches regarding the thematic:
> >>>
> >>> - https://gitlab.freedesktop.org/drm/amd/-/issues/476
> >>>
> >>> - https://gitlab.freedesktop.org/drm/amd/-/issues/1548
> >>>
> >>> - https://lkml.org/lkml/2021/5/7/695
> >>>
> >>> - https://lkml.org/lkml/2021/5/11/416
> >>>  
> > ...
> >  
> >>> Adoption:
> >>>
> >>> A KDE dev wants to implement the settings in the KDE settings GUI:
> >>> https://gitlab.freedesktop.org/drm/amd/-/issues/476#note_912370
> >>>
> >>> Tuxedo Computers (my employer) wants to implement the settings desktop environment agnostic in Tuxedo Control Center. I
> >>> will start work on this in parallel to implementing the new kernel code.    
> >> I suspect everyone would be happier to accept new uapi if we had
> >> multiple compositors signed up to implement it.  
> > I think having Weston support for these would be good, but for now it
> > won't be much of an UI: just weston.ini to set, and the log to see what
> > happened.  
> 
> Since a first version of the patch set is now feature complete,
> please let me know if a MR regarding this is started.

I'll try to remember that if I see someone else do it, but I'm also
pretty sure I won't be writing it any time soon. Still a long way until
it would be used with the color management work.


Thanks,
pq

[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

WARNING: multiple messages have this Message-ID (diff)
From: Pekka Paalanen <ppaalanen@gmail.com>
To: Werner Sembach <wse@tuxedocomputers.com>
Cc: "Deucher, Alexander" <alexander.deucher@amd.com>,
	intel-gfx@lists.freedesktop.org,
	"Maling list - DRI developers" <dri-devel@lists.freedesktop.org>,
	"amd-gfx list" <amd-gfx@lists.freedesktop.org>,
	"Ville Syrjälä" <ville.syrjala@linux.intel.com>
Subject: Re: New uAPI for color management proposal and feedback request
Date: Wed, 23 Jun 2021 10:29:23 +0300	[thread overview]
Message-ID: <20210623102923.70877c1a@eldfell> (raw)
In-Reply-To: <faf25c43-656d-bbb3-d2f2-8205353e19f6@tuxedocomputers.com>


[-- Attachment #1.1: Type: text/plain, Size: 4071 bytes --]

On Tue, 22 Jun 2021 19:06:43 +0200
Werner Sembach <wse@tuxedocomputers.com> wrote:

> Am 19.05.21 um 11:34 schrieb Pekka Paalanen:
> > On Wed, 12 May 2021 16:04:16 +0300
> > Ville Syrjälä <ville.syrjala@linux.intel.com> wrote:
> >  
> >> On Wed, May 12, 2021 at 02:06:56PM +0200, Werner Sembach wrote:  
> >>> Hello,
> >>>
> >>> In addition to the existing "max bpc", and "Broadcast RGB/output_csc" drm properties I propose 4 new properties:
> >>> "preferred pixel encoding", "active color depth", "active color range", and "active pixel encoding"
> >>>
> >>>
> >>> Motivation:
> >>>
> >>> Current monitors have a variety pixel encodings available: RGB, YCbCr 4:4:4, YCbCr 4:2:2, YCbCr 4:2:0.
> >>>
> >>> In addition they might be full or limited RGB range and the monitors accept different bit depths.
> >>>
> >>> Currently the kernel driver for AMD and Intel GPUs automatically configure the color settings automatically with little
> >>> to no influence of the user. However there are several real world scenarios where the user might disagree with the
> >>> default chosen by the drivers and wants to set his or her own preference.
> >>>
> >>> Some examples:
> >>>
> >>> 1. While RGB and YCbCr 4:4:4 in theory carry the same amount of color information, some screens might look better on one
> >>> than the other because of bad internal conversion. The driver currently however has a fixed default that is chosen if
> >>> available (RGB for Intel and YCbCr 4:4:4 for AMD). The only way to change this currently is by editing and overloading
> >>> the edid reported by the monitor to the kernel.
> >>>
> >>> 2. RGB and YCbCr 4:4:4 need a higher port clock then YCbCr 4:2:0. Some hardware might report that it supports the higher
> >>> port clock, but because of bad shielding on the PC, the cable, or the monitor the screen cuts out every few seconds when
> >>> RGB or YCbCr 4:4:4 encoding is used, while YCbCr 4:2:0 might just work fine without changing hardware. The drivers
> >>> currently however always default to the "best available" option even if it might be broken.
> >>>
> >>> 3. Some screens natively only supporting 8-bit color, simulate 10-Bit color by rapidly switching between 2 adjacent
> >>> colors. They advertise themselves to the kernel as 10-bit monitors but the user might not like the "fake" 10-bit effect
> >>> and prefer running at the native 8-bit per color.
> >>>
> >>> 4. Some screens are falsely classified as full RGB range wile they actually use limited RGB range. This results in
> >>> washed out colors in dark and bright scenes. A user override can be helpful to manually fix this issue when it occurs.
> >>>
> >>> There already exist several requests, discussion, and patches regarding the thematic:
> >>>
> >>> - https://gitlab.freedesktop.org/drm/amd/-/issues/476
> >>>
> >>> - https://gitlab.freedesktop.org/drm/amd/-/issues/1548
> >>>
> >>> - https://lkml.org/lkml/2021/5/7/695
> >>>
> >>> - https://lkml.org/lkml/2021/5/11/416
> >>>  
> > ...
> >  
> >>> Adoption:
> >>>
> >>> A KDE dev wants to implement the settings in the KDE settings GUI:
> >>> https://gitlab.freedesktop.org/drm/amd/-/issues/476#note_912370
> >>>
> >>> Tuxedo Computers (my employer) wants to implement the settings desktop environment agnostic in Tuxedo Control Center. I
> >>> will start work on this in parallel to implementing the new kernel code.    
> >> I suspect everyone would be happier to accept new uapi if we had
> >> multiple compositors signed up to implement it.  
> > I think having Weston support for these would be good, but for now it
> > won't be much of an UI: just weston.ini to set, and the log to see what
> > happened.  
> 
> Since a first version of the patch set is now feature complete,
> please let me know if a MR regarding this is started.

I'll try to remember that if I see someone else do it, but I'm also
pretty sure I won't be writing it any time soon. Still a long way until
it would be used with the color management work.


Thanks,
pq

[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

[-- Attachment #2: Type: text/plain, Size: 154 bytes --]

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

  reply	other threads:[~2021-06-23  7:29 UTC|newest]

Thread overview: 49+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-12 12:06 New uAPI for color management proposal and feedback request Werner Sembach
2021-05-12 12:06 ` Werner Sembach
2021-05-12 12:06 ` [Intel-gfx] " Werner Sembach
2021-05-12 13:04 ` Ville Syrjälä
2021-05-12 13:04   ` Ville Syrjälä
2021-05-12 13:04   ` [Intel-gfx] " Ville Syrjälä
2021-05-12 13:09   ` Simon Ser
2021-05-12 13:09     ` Simon Ser
2021-05-12 13:09     ` [Intel-gfx] " Simon Ser
2021-05-12 17:59   ` Alex Deucher
2021-05-12 17:59     ` Alex Deucher
2021-05-12 17:59     ` [Intel-gfx] " Alex Deucher
2021-05-31 17:46     ` Werner Sembach
2021-05-31 17:46       ` Werner Sembach
2021-05-31 17:46       ` [Intel-gfx] " Werner Sembach
2021-05-19  9:34   ` Pekka Paalanen
2021-05-19  9:34     ` Pekka Paalanen
2021-05-19  9:34     ` [Intel-gfx] " Pekka Paalanen
2021-05-19 13:49     ` Ville Syrjälä
2021-05-19 13:49       ` Ville Syrjälä
2021-05-19 13:49       ` [Intel-gfx] " Ville Syrjälä
2021-05-20  7:58       ` Pekka Paalanen
2021-05-20  7:58         ` Pekka Paalanen
2021-05-20  7:58         ` [Intel-gfx] " Pekka Paalanen
2021-05-31 17:55       ` Werner Sembach
2021-05-31 17:55         ` Werner Sembach
2021-05-31 17:55         ` [Intel-gfx] " Werner Sembach
2021-06-22 17:06     ` Werner Sembach
2021-06-22 17:06       ` Werner Sembach
2021-06-22 17:06       ` [Intel-gfx] " Werner Sembach
2021-06-23  7:29       ` Pekka Paalanen [this message]
2021-06-23  7:29         ` Pekka Paalanen
2021-06-23  7:29         ` [Intel-gfx] " Pekka Paalanen
2021-05-12 14:53 ` Werner Sembach
2021-05-12 14:53   ` Werner Sembach
2021-05-12 14:53   ` [Intel-gfx] " Werner Sembach
2021-05-12 14:53   ` Werner Sembach
2021-05-17 14:28 ` Werner Sembach
2021-05-17 14:28   ` Werner Sembach
2021-05-17 14:28   ` [Intel-gfx] " Werner Sembach
2021-06-07  7:48 ` Maxime Ripard
2021-06-07  7:48   ` Maxime Ripard
2021-06-07  7:48   ` [Intel-gfx] " Maxime Ripard
2021-06-07  8:06   ` Pekka Paalanen
2021-06-07  8:06     ` Pekka Paalanen
2021-06-07  8:06     ` [Intel-gfx] " Pekka Paalanen
2021-06-16  7:27     ` Maxime Ripard
2021-06-16  7:27       ` Maxime Ripard
2021-06-16  7:27       ` [Intel-gfx] " Maxime Ripard

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=20210623102923.70877c1a@eldfell \
    --to=ppaalanen@gmail.com \
    --cc=alexander.deucher@amd.com \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=wse@tuxedocomputers.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.