Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 84CAAC4320A for ; Tue, 17 Aug 2021 14:54:32 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id F2A2C60F41 for ; Tue, 17 Aug 2021 14:54:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org F2A2C60F41 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=sebastianwick.net Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 74BE26E037; Tue, 17 Aug 2021 14:54:30 +0000 (UTC) X-Greylist: delayed 91024 seconds by postgrey-1.36 at gabe; Tue, 17 Aug 2021 14:54:29 UTC Received: from h1954565.stratoserver.net (sebastianwick.net [85.214.192.246]) by gabe.freedesktop.org (Postfix) with ESMTP id 7007E6E037 for ; Tue, 17 Aug 2021 14:54:29 +0000 (UTC) Received: from mail.sebastianwick.net (sebastianwick.net [IPv6:2a01:238:4226:4f00:79f5:2d39:beca:3cf1]) by h1954565.stratoserver.net (Postfix) with ESMTPSA id 744AF164FE0 for ; Tue, 17 Aug 2021 16:54:28 +0200 (CEST) MIME-Version: 1.0 Date: Tue, 17 Aug 2021 16:54:28 +0200 From: sebastian@sebastianwick.net To: dri-devel@lists.freedesktop.org Subject: Re: New uAPI for color management proposal and feedback request v2 In-Reply-To: User-Agent: Roundcube Webmail/1.4.11 Message-ID: X-Sender: sebastian@sebastianwick.net Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" > Greetings, > > Original proposal: > https://www.mail-archive.com/amd-gfx@lists.freedesktop.org/msg62387.html > > Abstract: Add "preferred color format", "active color format", "active > bpc", and "active Broadcast RGB" drm properties, > to control color information send to the monitor. > > It seems that the "preferred-" properties is not what is actually the > most useful for the userspace devs. > > Preferable (Note: with only a sample size of 2 people) would be a > "force color format" property. If the color format is > not available for the current Monitor and GPU combo. the TEST_ONLY > check should fail and the property should not be setable. > > This however opens another problem: When a Monitor is disconnected and > a new one is connected, the drm properties do not > get resetted. So if the old monitor did allow to set for example > ycbcr420, but the new monitor does not support this > color format at all, it will stay permanently black until the drm > property is set to a correct value by hand. This is > not an expected behavior imho. User space is aware of output changes and already has to set properties such that the new output will light up. So IMO what you describe is expected behavior. What makes this still a bit hary is when you switch from user space which set the property to user space which is not aware of the property but this is a more general problem that already exists for all new properties. The solution here is a reset mechanism for user space. More context: https://oftc.irclog.whitequark.org/dri-devel/2021-06-16#1623837713-1623842163; > So a discussion questions: Does it make sense that connector properties > are keep for different Monitors? > > If no: On connecting a new Monitor all atomic drm properties should be > reset to a default value. > > I have an idea how this could be implemented (correct me if i'm wrong): > When an atomic property is attached it get > assigned an inital value. But if I understood the docu correctly, this > value is ignored because atomic properties use > the getter and setter methods when their values are read or written. My > implementation suggestion would be to iterate > over all attached atomic properties once a new monitor is connected and > reset them to this initial value, which should > be unchanged since initialization? This assumes that besides the > initial value being unused it's still a sane default > for all drivers. > > Kind Regards, > > Werner Sembach