Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp2292048pxy; Tue, 3 Aug 2021 02:42:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz5sFwX6xaJXJIBgRwUdYv/Qrp/2Ntk94RK3FPNeBmslBkf3uwDtA2/gIipzFtnbmcXKfS2 X-Received: by 2002:a92:d70f:: with SMTP id m15mr129728iln.162.1627983731864; Tue, 03 Aug 2021 02:42:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627983731; cv=none; d=google.com; s=arc-20160816; b=dRA0WfPGtupmzWImj/Z8nLA0tpXgFIZq0BTgOL/JUNk4yIkhJJCwftsUN2rGxPnGE+ XIPmlB+oWs21P1xFzCPJ2dd+RuXzMeq2010D/ojNoICUDJ5dJipGLcCY7Do2XlDkWZ5L kZz3uZuV3ntLCe2aXNTF0lK0/V8d84j7+3EBluJf/4o1GHlYj8MRMaWMlu1BpH9HnHaW ASbEuym5zPWzOdUU3DHaQSy43EawMFjFynBK5DTKAtlJHzfMrYDq2jVB4HmUp2nSHeDr EevKtS9QlwGDhzixIrafBma4GI5ALOvHW2hJlJaEaMu9vCXrmlHAJAvQJmYGZPkn23sB r2Jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :mime-version:user-agent:date:message-id:to:subject:from; bh=YnC7nJsvDpZaUhJP2zbbsai4FmAmKy5nkCcY7MOpKwk=; b=rSPqqOBFZ9w6UKk+uqccB6PtRwNH9X8/DvwkUOZAeiEWMLtK+ZNSwgpochtMJpk817 kLmuvZDMqBhQKeBJoCQKbbHi9sCBoWyeYgfCw0amBXT06aR7tmOJqRfrWfbVkdq4fgwM q4zv/w+HJcJ0U9ZSqI6c/yNMhkG0N+rAtuSyQho+qPxSqD+nyyNwj75f1cu34IZ8xweC ChyAJJna8G02tmUvjdNll9OJKK0oeT0Pa2DqTACGW0luYTS/Hu0wqwNY4RboQ8gFCG+F LyTjtTuiCVKu46z+lOtIpGXktzEmj/tg3Y4lHQrzRervfkdxCESXz+uJH+Jw9jFzm6Of DDww== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d17si15015611ilf.150.2021.08.03.02.41.59; Tue, 03 Aug 2021 02:42:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234956AbhHCJjG (ORCPT + 99 others); Tue, 3 Aug 2021 05:39:06 -0400 Received: from srv6.fidu.org ([159.69.62.71]:39832 "EHLO srv6.fidu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235013AbhHCJix (ORCPT ); Tue, 3 Aug 2021 05:38:53 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by srv6.fidu.org (Postfix) with ESMTP id 2E4CEC800B5; Tue, 3 Aug 2021 11:38:20 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at srv6.fidu.org Received: from srv6.fidu.org ([127.0.0.1]) by localhost (srv6.fidu.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id j5zpKJ9d8Toa; Tue, 3 Aug 2021 11:38:19 +0200 (CEST) Received: from [192.168.178.30] (host-212-18-30-247.customer.m-online.net [212.18.30.247]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: wse@tuxedocomputers.com) by srv6.fidu.org (Postfix) with ESMTPSA id 64657C80073; Tue, 3 Aug 2021 11:38:19 +0200 (CEST) From: Werner Sembach Subject: New uAPI for color management proposal and feedback request v2 To: "Deucher, Alexander" , Pekka Paalanen , amd-gfx list , =?UTF-8?B?VmlsbGUgU3lyasOkbMOk?= , Intel Graphics Development , Maling list - DRI developers , LKML Message-ID: Date: Tue, 3 Aug 2021 11:38:19 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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