Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1217495pxb; Thu, 16 Sep 2021 02:27:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxfY+65iRO9qdswAIcReUhQNzfHtDQxW44HKPEsR/C4nFnHzomNzO9O4r8xp1UKg9rG5Mec X-Received: by 2002:a17:906:8a41:: with SMTP id gx1mr5459720ejc.507.1631784426942; Thu, 16 Sep 2021 02:27:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631784426; cv=none; d=google.com; s=arc-20160816; b=hSGjTA/jZbgB1wglnd6r+AuyIUbHFyeyXjUK/2BgwpHGBxV7fUWsw7uoB2Q3x6PYru y4SL3eBDysLcjgtSJXeT6wECJAm5j3JnpORURsvUW/3L0WJysXJJgjhQ/7/a4tRnACbh YuWYBtqvK3+MUV8g08rOPNBvM/4ht+9AlxvWMq0MVJ/qg9CPJex2JtrTiaS3bjPqU4IS HUas7lHsrOMGyX8rOFIrR15nIRUnKV22QhInYRQI6px9DTYcOkNbxjI20iNmMWrc2CzY PsLq/mlAZppzIEBEE8l2vFOFrcQvF3nSKteGUpvHeOUzMsYLJBvzQffIb4QB8LVp6z48 0mwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=quKEGUskroMnOu7oGIk1sVTPT2DFxBdoMb1glSkwvKk=; b=mgfd26GJaVaKGIO0n1YXJwaB9aEst2SclUh+qxTt/uIBYeducsvo0a03RX4ImQsc5j E2Y0PQDx0tPe6EPw4D1qaA/KjRMQaOQeFCZtOYMC1VzVDMThR1TrqsjPAz52CFAPWQXt E4iURJfBbizzZkE1TbN9jnm/xi5XbpmJgRfa8CCjBdG19dQfogkYBRIkj9VORf7y5a+r BCr9tZ/n3mHhMboKtnpQdjCJ7DuhGSlXBwKSq272AhZB+QfOctgm8aOfNaHdNR1xus5v ZMUIKHPODjHCO5bUJctLFedooU2zhr8FGbzizABvBbrYuv+uRLtMBNI8kKbwWl7C73Dj lK4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=DdQLuXNL; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 21si3102507eji.148.2021.09.16.02.26.43; Thu, 16 Sep 2021 02:27:06 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=DdQLuXNL; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236194AbhIPJZz (ORCPT + 99 others); Thu, 16 Sep 2021 05:25:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236214AbhIPJZj (ORCPT ); Thu, 16 Sep 2021 05:25:39 -0400 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 134E1C0613E5 for ; Thu, 16 Sep 2021 02:24:18 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id bq5so15908644lfb.9 for ; Thu, 16 Sep 2021 02:24:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version; bh=quKEGUskroMnOu7oGIk1sVTPT2DFxBdoMb1glSkwvKk=; b=DdQLuXNLstvEe8u7lBnJSUCrEFrVhP9ZTkNPdZXzkB0z8bZMJYjYTuvm6JuTF5aTJg y96QGvmOh47F16/RLbTdE9xp1iFKGIGi2zY1hnBO2vfpTXII8KqilUWFxUzkw4GOfIVl H9RwsIO8VP0+XaOFcK159kZqic9/RSwctibopJ0qSdxvR2nCdnYl5CettDYCGaQZ10XX 44oPPG2/eI3r+72VPDQ8mMuMjC9i87fKbfRDB3fx1+4+aiN+vZzyNZpvj4KDWuEr25ek j7zswXTbnFaKnQq1MXjxJWlJ7XCJTe3iio0G5JPwz99UIfdJZ6t6UHtpK/K0M/2m32vh 0oxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version; bh=quKEGUskroMnOu7oGIk1sVTPT2DFxBdoMb1glSkwvKk=; b=oPnzVwlz6N5OK/dnQg9Nh+NxNgkbht88wIIfSWVYqAy12CEhzH7HnVdwCoUDV3HXWE neGcatizc7xPlk/zZ5v+bnAz+4V1fLTZyK2Kwf9PjRJfa8RaxVCnjE/LmiUtGsp+QnGJ hnXWfu9tMeljOalLa2sDZ51erwCnuJGzCDEU6AP8qNxgYgOTjyH4cBnHIG66gc2nL0zS Lv63MqXU2EYOnNnOA9mAfqqWLUPKwmVpi9WyrPDk8y0SkNG/sop/+Eld46wMMWnCZrPH 4L0VQhTQQBh7nNowH9rjLGPi9J856yhqqrYc0WuZ3PQLcCoMFYDvkYABhLDhhaPjsf0V yz+A== X-Gm-Message-State: AOAM530TXdbjAzFKxncvuqSAUuFtnu/eqvBIop8c3HyjqSs+zPwn8Xbm 1bVNyeQleoimdlE7owc3BGc= X-Received: by 2002:a05:6512:39d6:: with SMTP id k22mr3452313lfu.258.1631784256272; Thu, 16 Sep 2021 02:24:16 -0700 (PDT) Received: from eldfell ([194.136.85.206]) by smtp.gmail.com with ESMTPSA id l11sm209652lfg.39.2021.09.16.02.24.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Sep 2021 02:24:15 -0700 (PDT) Date: Thu, 16 Sep 2021 12:24:06 +0300 From: Pekka Paalanen To: Werner Sembach Cc: "Deucher, Alexander" , amd-gfx list , Ville =?UTF-8?B?U3lyasOkbMOk?= , Intel Graphics Development , Maling list - DRI developers , LKML , sebastian@sebastianwick.net Subject: Re: New uAPI for color management proposal and feedback request v2 Message-ID: <20210916122406.7c132525@eldfell> In-Reply-To: References: X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/m2oIbyLut0gDnAcjrS61zLj"; protocol="application/pgp-signature"; micalg=pgp-sha256 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/m2oIbyLut0gDnAcjrS61zLj Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Tue, 3 Aug 2021 11:38:19 +0200 Werner Sembach wrote: > Greetings, >=20 > Original proposal: https://www.mail-archive.com/amd-gfx@lists.freedesktop= .org/msg62387.html >=20 > Abstract: Add "preferred color format", "active color format", "active bp= c", and "active Broadcast RGB" drm properties, > to control color information send to the monitor. >=20 > It seems that the "preferred-" properties is not what is actually the mos= t useful for the userspace devs. >=20 > 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. >=20 > 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 propert= y is set to a correct value by hand. This is > not an expected behavior imho. >=20 > So a discussion questions: Does it make sense that connector properties a= re keep for different Monitors? >=20 > If no: On connecting a new Monitor all atomic drm properties should be re= set to a default value. >=20 > I have an idea how this could be implemented (correct me if i'm wrong): W= hen an atomic property is attached it get > assigned an inital value. But if I understood the docu correctly, this va= lue is ignored because atomic properties use > the getter and setter methods when their values are read or written. My i= mplementation suggestion would be to iterate > over all attached atomic properties once a new monitor is connected and r= eset 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. >=20 > Kind Regards, >=20 > Werner Sembach >=20 Hi Werner, I just wanted to say that I appreciate the effort and something like these are things I would likely want to use some day in Weston, but currently I can't spend time on this since it's still so far in the future for me. I also feel that I've said what I can without spending a significant amount of time thinking how it should actually work. The same goes with the thing pointed out by Sebastian, the KMS property reset idea. Since I can't really work on it now, I'll stop shouting about it and wait for problems to arise in the wild and see where that leads. (Probably just patching the KMS client of the day to set a couple more KMS properties.) Thanks, pq --Sig_/m2oIbyLut0gDnAcjrS61zLj Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEJQjwWQChkWOYOIONI1/ltBGqqqcFAmFDDTYACgkQI1/ltBGq qqfxZg//bxjNceiMruwsAHhjW56idiGLy07lSyp5IItUXdTQHZer4dERd/jmd5ee 4ln2oszEfUjJDOc+MgtyuarG/5XwD6riUu353cvGAO+Ugd66yRxuDT4sGe2ZcZOs hhkH6AT/qKJioQ3CWPLpXX5oK9i/wrzSx55TIZyPvhDkaGIpEwFbJ843evdmURGZ vclCG0f4y5Uk976QUttDRl+llhPK8vWbMwNWzchNWroyTuaYeLU7fWM9jrycO3wo 44hNJatGdW+gqZBM98VaL5p7OAw0VMo9S/hDAOnXCXp79U+fUWWI5bArcjEsbhA/ vD4oCte3YfQ51l3Ihv3NLUkiMKmwrpQ9xiQp+pNqj2lAu/AzpsC1HAyLBEZaxA6U YzvW55ONMvVgVy1TMPp4BatC+WP/XyFZrKzsG4gNzyDpc64Az9HmXRoeF241Obmr /LxbJ7f9uihfLlwguwliyAaoMaZNzMYpKXE153KDbRCv0JwYNG5i0rU5Bywx+CNW r/1eMvelNkxvKzbEtpY5Wl0vjvZllq8HE1dZ5/+EOUV35lnh/XEq9j0lr8d/BHsw 3DPqCwrNVxqvgvv4yutr4QeCFjbfs+hx98/KI4pX0imxbGCG/lPhK4i8a7P1LVK5 dd2zzBPmB4evvh7DTEiq1V7M5VQgJHmHUXdv+BoTEcCBOJN+K/E= =Ldod -----END PGP SIGNATURE----- --Sig_/m2oIbyLut0gDnAcjrS61zLj--