From mboxrd@z Thu Jan 1 00:00:00 1970 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=-4.2 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_2 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 A5D55C4743C for ; Wed, 23 Jun 2021 11:14:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8A9DD61076 for ; Wed, 23 Jun 2021 11:14:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230224AbhFWLQ6 (ORCPT ); Wed, 23 Jun 2021 07:16:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230071AbhFWLQy (ORCPT ); Wed, 23 Jun 2021 07:16:54 -0400 Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35BE7C061574 for ; Wed, 23 Jun 2021 04:14:36 -0700 (PDT) Received: by mail-lj1-x22c.google.com with SMTP id a21so2452995ljj.1 for ; Wed, 23 Jun 2021 04:14:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version; bh=sVCNkG1sjid0l6fkpvpwMveMxwqV4qVEQF+03S3gbMk=; b=Isyhss64Lo63ULrdcWdldg3vYy7t0wFmWBADC2lk5CeYqL/ia93o6sG6WtC0AoE99G nx2LRunRuYeLP4HcccRiXUeVeu0hI9A5xJ/KMd2sEIbZLqUmjq5JInhftZIJv+Sq/U1T K7uf8aAU8Yc96U+SqguGfHGLQ2frBV+qk0is0ra9ozBeYyms27veirfW4k3M7uA0t1gZ ufs2XYMgEqBNYThhmMRoqs/NnuYC2Pyn2u34ElQDSMY9gZqAQzlmXABtmlrvzIIUtUV4 zxYLXbcjV5VSYqpACDmGzaev3ujPrYveGOAHF0n2CvlmbvL6t09teuefXabGuiSnw+Qn Xx7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version; bh=sVCNkG1sjid0l6fkpvpwMveMxwqV4qVEQF+03S3gbMk=; b=O9KnWWiap2q33wfVpE425oUzUWE0vYF2ht/5umdfbZah9iDjnsujGRjMKWCtVa8dCB 7ixKoiHxePGAJqOjfCSnWwxeQXroVXB6DPP78LD7Dd3jLhXq69Sqos4TIohJ5I1orRzi ILoBDmh4Z6+m/qPonNVqKXG+UPoYKnsgNEHDG+trfK/bFtHvf13HSuYT9aN33JB5pYQn WwJxOJeZYz0sGLQlQqcMyFXrFoYf0B1iQIqx7mcaqcK1eTMMNsIEJKc1lq2K5TOEbK6t f212J8YeMP0ZorpUCMF+BXC0riN2aDH9Z3Gq6oNIJH13kTy2YLqVq7VhZrvYbKtpDcVP ru/Q== X-Gm-Message-State: AOAM531MfDVj/7FLxdVmLT2tn5KYiGr0m6dsQOdwh7AFuFMtzzAOksBP ppwCUkBu5Geq7HqwBiGXfwg= X-Google-Smtp-Source: ABdhPJwgFL6X5sNyB5lAj2pWReVokn5IciFDnMioc3JNGQrae8usHzOmGagfauGFAy/RJNs1/LbboA== X-Received: by 2002:a2e:8584:: with SMTP id b4mr5964164lji.107.1624446874580; Wed, 23 Jun 2021 04:14:34 -0700 (PDT) Received: from eldfell ([194.136.85.206]) by smtp.gmail.com with ESMTPSA id b14sm2508766lfb.149.2021.06.23.04.14.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Jun 2021 04:14:34 -0700 (PDT) Date: Wed, 23 Jun 2021 14:14:23 +0300 From: Pekka Paalanen To: Werner Sembach Cc: Simon Ser , amd-gfx@lists.freedesktop.org, sunpeng.li@amd.com, intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, airlied@linux.ie, tzimmermann@suse.de, rodrigo.vivi@intel.com, alexander.deucher@amd.com, christian.koenig@amd.com Subject: Re: [PATCH v4 09/17] drm/uAPI: Add "active color range" drm property as feedback for userspace Message-ID: <20210623141423.3f6c3e9f@eldfell> In-Reply-To: <5947f768-dd87-6b39-ecfc-b7c4aaa88aca@tuxedocomputers.com> References: <20210618091116.14428-1-wse@tuxedocomputers.com> <20210618091116.14428-10-wse@tuxedocomputers.com> <20210622100042.4041624a@eldfell> <56d079d4-841a-0ca5-b8a6-d2c10f91d211@tuxedocomputers.com> <20210623103256.01d680ba@eldfell> <5947f768-dd87-6b39-ecfc-b7c4aaa88aca@tuxedocomputers.com> 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_/gPEvcW1kQm+Ybq.N/v+Zg1q"; protocol="application/pgp-signature"; micalg=pgp-sha256 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/gPEvcW1kQm+Ybq.N/v+Zg1q Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Wed, 23 Jun 2021 12:17:40 +0200 Werner Sembach wrote: > Am 23.06.21 um 09:32 schrieb Pekka Paalanen: > > On Tue, 22 Jun 2021 11:48:52 +0000 > > Simon Ser wrote: > > =20 > >> On Tuesday, June 22nd, 2021 at 11:50, Werner Sembach wrote: > >> =20 > >>> Unknown is when no monitor is connected or is when the > >>> connector/monitor is disabled. =20 > >> I think the other connector props (link-status, non-desktop, etc) don't > >> have a special "unset" value, and instead the value is set to a random > >> enum entry. User-space should ignore the prop on these disconnected > >> connectors anyways. =20 > > That sounds fine to me. =20 >=20 > Currently the only case for "not applicable" is when the monitor is > disconnected, but sicne the properties are so interdependent, there > might be a case in the future where e.g. a color format that has no > differentiation between full and limited arises. When there is no > special unset/not applicable option, the userspace has to know > exactly when an option is valid or not, possible requiring additional > logic. >=20 > Setting a "not applicable" value allows userspace to be more dumb, > without much hassle on the kernelspace side. That's a good point too. So "not applicable" would be a value, but "unknown" would not be. Thanks, pq --Sig_/gPEvcW1kQm+Ybq.N/v+Zg1q Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEJQjwWQChkWOYOIONI1/ltBGqqqcFAmDTF48ACgkQI1/ltBGq qqe5aBAAqjWygSQjmKD6D7wupf6+Ir2Pto1tmAW7ioCbPvk4RutUtuKzbT4WoBku RtE2pHxKp2SiqKyo8rjRfgOR2gvDdOmfuKI5yfdKfPDZKhiyNIA2Wpyx9ntnFS+f HGVdWVFTJh61TfNtqC0FQqvEASiRPC7mnu9GzLtb69DU/0Jdu+NlALsH2FIYo1lb 4+HpBXhq1sd3EsgqnWbnC8BquKmH0Whea27uEidyo0B1VdHdT+vDEJzc0juN7TSo xs3us/rckFCEkhP0dASPe9ieWsYfUQIklQw1oKb/4WHHy0O9lyW5x0qABTbD34oF jOy9byLTiWmXQuR9zLpiW24Qo6n58hRTQ2+10mFPif7j/brhobX/k1js+cO9sDRJ +BkFsAJ0eU+cajpPi/lUGMgyTRPTT49yv1tjfzwsZihnH02Att+PtlXuCdmAei2/ 6imtfO3ETUcbyqgbmOeqPkY4dXqY7bhRCt82KCmAf1Bx/gJz2rhrBOjwhwJbXTeF NwcsWiFljcfSE118AJlkdHDGXnq+NaXNIqbfeOTYN0moUePis31A8+j78AEtFkAh dapDvoirU08Z2MgQAElb3HfD9EZf+en8s7JvPn/VTCi7jxMVBUPqyzZf8pceQVwU Vh7z8kFjqJKrRwBOSp6EpGnKYW244wCIc/24cUwx34e4MmOWmNc= =r73d -----END PGP SIGNATURE----- --Sig_/gPEvcW1kQm+Ybq.N/v+Zg1q-- From mboxrd@z Thu Jan 1 00:00:00 1970 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=-2.0 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_2 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 8A3BCC48BE5 for ; Wed, 23 Jun 2021 11:14:39 +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 5CD4D61076 for ; Wed, 23 Jun 2021 11:14:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5CD4D61076 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id ED2476E8AD; Wed, 23 Jun 2021 11:14:37 +0000 (UTC) Received: from mail-lj1-x22b.google.com (mail-lj1-x22b.google.com [IPv6:2a00:1450:4864:20::22b]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2FA9F6E8AB; Wed, 23 Jun 2021 11:14:36 +0000 (UTC) Received: by mail-lj1-x22b.google.com with SMTP id u20so2416054ljl.13; Wed, 23 Jun 2021 04:14:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version; bh=sVCNkG1sjid0l6fkpvpwMveMxwqV4qVEQF+03S3gbMk=; b=Isyhss64Lo63ULrdcWdldg3vYy7t0wFmWBADC2lk5CeYqL/ia93o6sG6WtC0AoE99G nx2LRunRuYeLP4HcccRiXUeVeu0hI9A5xJ/KMd2sEIbZLqUmjq5JInhftZIJv+Sq/U1T K7uf8aAU8Yc96U+SqguGfHGLQ2frBV+qk0is0ra9ozBeYyms27veirfW4k3M7uA0t1gZ ufs2XYMgEqBNYThhmMRoqs/NnuYC2Pyn2u34ElQDSMY9gZqAQzlmXABtmlrvzIIUtUV4 zxYLXbcjV5VSYqpACDmGzaev3ujPrYveGOAHF0n2CvlmbvL6t09teuefXabGuiSnw+Qn Xx7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version; bh=sVCNkG1sjid0l6fkpvpwMveMxwqV4qVEQF+03S3gbMk=; b=pcbiPZPwGlFZfbZ7Bli9Qw0vmWpmAbr3z2f50DHBsKGqOePbydTCmU2MBxVpizCDD1 d92IC9IrPd0wXF5ncJ+IFLxajrfsuiBh2XtlD9MCKqgAPMs3T6ce3e61lUC4TvJ2HzSy uw5PYIn8KbX+3PEOU1zSN5hUKtGTiTg4GhfpHm5DNIJ3efHcqbXu3grDdBiwCnlcUHLg ZKnq1dv5ky6lElexBj1smWDMAP3uQwGggS7CvJWsuqoUUVbJsSX4VAl+8M+lZJcsRkNY Oxxk7iw3cVUEKQw4Nr+YAg1v+2fYDXVyFFnQNVHjy6rSLWN4ldW4AiNWIy2QJZTDHpEX hLFA== X-Gm-Message-State: AOAM532LzF3EGFS6k360Od5tcqJeNZlecn5SICnsff5aXYEagEerENn1 Zty3nhGQbpRPfSRdrnTkHMs= X-Google-Smtp-Source: ABdhPJwgFL6X5sNyB5lAj2pWReVokn5IciFDnMioc3JNGQrae8usHzOmGagfauGFAy/RJNs1/LbboA== X-Received: by 2002:a2e:8584:: with SMTP id b4mr5964164lji.107.1624446874580; Wed, 23 Jun 2021 04:14:34 -0700 (PDT) Received: from eldfell ([194.136.85.206]) by smtp.gmail.com with ESMTPSA id b14sm2508766lfb.149.2021.06.23.04.14.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Jun 2021 04:14:34 -0700 (PDT) Date: Wed, 23 Jun 2021 14:14:23 +0300 From: Pekka Paalanen To: Werner Sembach Subject: Re: [PATCH v4 09/17] drm/uAPI: Add "active color range" drm property as feedback for userspace Message-ID: <20210623141423.3f6c3e9f@eldfell> In-Reply-To: <5947f768-dd87-6b39-ecfc-b7c4aaa88aca@tuxedocomputers.com> References: <20210618091116.14428-1-wse@tuxedocomputers.com> <20210618091116.14428-10-wse@tuxedocomputers.com> <20210622100042.4041624a@eldfell> <56d079d4-841a-0ca5-b8a6-d2c10f91d211@tuxedocomputers.com> <20210623103256.01d680ba@eldfell> <5947f768-dd87-6b39-ecfc-b7c4aaa88aca@tuxedocomputers.com> 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_/gPEvcW1kQm+Ybq.N/v+Zg1q"; protocol="application/pgp-signature"; micalg=pgp-sha256 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: , Cc: sunpeng.li@amd.com, intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, airlied@linux.ie, amd-gfx@lists.freedesktop.org, tzimmermann@suse.de, rodrigo.vivi@intel.com, alexander.deucher@amd.com, christian.koenig@amd.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" --Sig_/gPEvcW1kQm+Ybq.N/v+Zg1q Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Wed, 23 Jun 2021 12:17:40 +0200 Werner Sembach wrote: > Am 23.06.21 um 09:32 schrieb Pekka Paalanen: > > On Tue, 22 Jun 2021 11:48:52 +0000 > > Simon Ser wrote: > > =20 > >> On Tuesday, June 22nd, 2021 at 11:50, Werner Sembach wrote: > >> =20 > >>> Unknown is when no monitor is connected or is when the > >>> connector/monitor is disabled. =20 > >> I think the other connector props (link-status, non-desktop, etc) don't > >> have a special "unset" value, and instead the value is set to a random > >> enum entry. User-space should ignore the prop on these disconnected > >> connectors anyways. =20 > > That sounds fine to me. =20 >=20 > Currently the only case for "not applicable" is when the monitor is > disconnected, but sicne the properties are so interdependent, there > might be a case in the future where e.g. a color format that has no > differentiation between full and limited arises. When there is no > special unset/not applicable option, the userspace has to know > exactly when an option is valid or not, possible requiring additional > logic. >=20 > Setting a "not applicable" value allows userspace to be more dumb, > without much hassle on the kernelspace side. That's a good point too. So "not applicable" would be a value, but "unknown" would not be. Thanks, pq --Sig_/gPEvcW1kQm+Ybq.N/v+Zg1q Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEJQjwWQChkWOYOIONI1/ltBGqqqcFAmDTF48ACgkQI1/ltBGq qqe5aBAAqjWygSQjmKD6D7wupf6+Ir2Pto1tmAW7ioCbPvk4RutUtuKzbT4WoBku RtE2pHxKp2SiqKyo8rjRfgOR2gvDdOmfuKI5yfdKfPDZKhiyNIA2Wpyx9ntnFS+f HGVdWVFTJh61TfNtqC0FQqvEASiRPC7mnu9GzLtb69DU/0Jdu+NlALsH2FIYo1lb 4+HpBXhq1sd3EsgqnWbnC8BquKmH0Whea27uEidyo0B1VdHdT+vDEJzc0juN7TSo xs3us/rckFCEkhP0dASPe9ieWsYfUQIklQw1oKb/4WHHy0O9lyW5x0qABTbD34oF jOy9byLTiWmXQuR9zLpiW24Qo6n58hRTQ2+10mFPif7j/brhobX/k1js+cO9sDRJ +BkFsAJ0eU+cajpPi/lUGMgyTRPTT49yv1tjfzwsZihnH02Att+PtlXuCdmAei2/ 6imtfO3ETUcbyqgbmOeqPkY4dXqY7bhRCt82KCmAf1Bx/gJz2rhrBOjwhwJbXTeF NwcsWiFljcfSE118AJlkdHDGXnq+NaXNIqbfeOTYN0moUePis31A8+j78AEtFkAh dapDvoirU08Z2MgQAElb3HfD9EZf+en8s7JvPn/VTCi7jxMVBUPqyzZf8pceQVwU Vh7z8kFjqJKrRwBOSp6EpGnKYW244wCIc/24cUwx34e4MmOWmNc= =r73d -----END PGP SIGNATURE----- --Sig_/gPEvcW1kQm+Ybq.N/v+Zg1q-- From mboxrd@z Thu Jan 1 00:00:00 1970 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=-2.0 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_2 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 DCFB1C48BC2 for ; Wed, 23 Jun 2021 11:14:38 +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 B00F361075 for ; Wed, 23 Jun 2021 11:14:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B00F361075 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=intel-gfx-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2D1E46E8B0; Wed, 23 Jun 2021 11:14:38 +0000 (UTC) Received: from mail-lj1-x22b.google.com (mail-lj1-x22b.google.com [IPv6:2a00:1450:4864:20::22b]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2FA9F6E8AB; Wed, 23 Jun 2021 11:14:36 +0000 (UTC) Received: by mail-lj1-x22b.google.com with SMTP id u20so2416054ljl.13; Wed, 23 Jun 2021 04:14:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version; bh=sVCNkG1sjid0l6fkpvpwMveMxwqV4qVEQF+03S3gbMk=; b=Isyhss64Lo63ULrdcWdldg3vYy7t0wFmWBADC2lk5CeYqL/ia93o6sG6WtC0AoE99G nx2LRunRuYeLP4HcccRiXUeVeu0hI9A5xJ/KMd2sEIbZLqUmjq5JInhftZIJv+Sq/U1T K7uf8aAU8Yc96U+SqguGfHGLQ2frBV+qk0is0ra9ozBeYyms27veirfW4k3M7uA0t1gZ ufs2XYMgEqBNYThhmMRoqs/NnuYC2Pyn2u34ElQDSMY9gZqAQzlmXABtmlrvzIIUtUV4 zxYLXbcjV5VSYqpACDmGzaev3ujPrYveGOAHF0n2CvlmbvL6t09teuefXabGuiSnw+Qn Xx7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version; bh=sVCNkG1sjid0l6fkpvpwMveMxwqV4qVEQF+03S3gbMk=; b=pcbiPZPwGlFZfbZ7Bli9Qw0vmWpmAbr3z2f50DHBsKGqOePbydTCmU2MBxVpizCDD1 d92IC9IrPd0wXF5ncJ+IFLxajrfsuiBh2XtlD9MCKqgAPMs3T6ce3e61lUC4TvJ2HzSy uw5PYIn8KbX+3PEOU1zSN5hUKtGTiTg4GhfpHm5DNIJ3efHcqbXu3grDdBiwCnlcUHLg ZKnq1dv5ky6lElexBj1smWDMAP3uQwGggS7CvJWsuqoUUVbJsSX4VAl+8M+lZJcsRkNY Oxxk7iw3cVUEKQw4Nr+YAg1v+2fYDXVyFFnQNVHjy6rSLWN4ldW4AiNWIy2QJZTDHpEX hLFA== X-Gm-Message-State: AOAM532LzF3EGFS6k360Od5tcqJeNZlecn5SICnsff5aXYEagEerENn1 Zty3nhGQbpRPfSRdrnTkHMs= X-Google-Smtp-Source: ABdhPJwgFL6X5sNyB5lAj2pWReVokn5IciFDnMioc3JNGQrae8usHzOmGagfauGFAy/RJNs1/LbboA== X-Received: by 2002:a2e:8584:: with SMTP id b4mr5964164lji.107.1624446874580; Wed, 23 Jun 2021 04:14:34 -0700 (PDT) Received: from eldfell ([194.136.85.206]) by smtp.gmail.com with ESMTPSA id b14sm2508766lfb.149.2021.06.23.04.14.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Jun 2021 04:14:34 -0700 (PDT) Date: Wed, 23 Jun 2021 14:14:23 +0300 From: Pekka Paalanen To: Werner Sembach Message-ID: <20210623141423.3f6c3e9f@eldfell> In-Reply-To: <5947f768-dd87-6b39-ecfc-b7c4aaa88aca@tuxedocomputers.com> References: <20210618091116.14428-1-wse@tuxedocomputers.com> <20210618091116.14428-10-wse@tuxedocomputers.com> <20210622100042.4041624a@eldfell> <56d079d4-841a-0ca5-b8a6-d2c10f91d211@tuxedocomputers.com> <20210623103256.01d680ba@eldfell> <5947f768-dd87-6b39-ecfc-b7c4aaa88aca@tuxedocomputers.com> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Subject: Re: [Intel-gfx] [PATCH v4 09/17] drm/uAPI: Add "active color range" drm property as feedback for userspace X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: sunpeng.li@amd.com, Simon Ser , intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, airlied@linux.ie, amd-gfx@lists.freedesktop.org, tzimmermann@suse.de, alexander.deucher@amd.com, christian.koenig@amd.com Content-Type: multipart/mixed; boundary="===============0610544509==" Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" --===============0610544509== Content-Type: multipart/signed; boundary="Sig_/gPEvcW1kQm+Ybq.N/v+Zg1q"; protocol="application/pgp-signature"; micalg=pgp-sha256 --Sig_/gPEvcW1kQm+Ybq.N/v+Zg1q Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Wed, 23 Jun 2021 12:17:40 +0200 Werner Sembach wrote: > Am 23.06.21 um 09:32 schrieb Pekka Paalanen: > > On Tue, 22 Jun 2021 11:48:52 +0000 > > Simon Ser wrote: > > =20 > >> On Tuesday, June 22nd, 2021 at 11:50, Werner Sembach wrote: > >> =20 > >>> Unknown is when no monitor is connected or is when the > >>> connector/monitor is disabled. =20 > >> I think the other connector props (link-status, non-desktop, etc) don't > >> have a special "unset" value, and instead the value is set to a random > >> enum entry. User-space should ignore the prop on these disconnected > >> connectors anyways. =20 > > That sounds fine to me. =20 >=20 > Currently the only case for "not applicable" is when the monitor is > disconnected, but sicne the properties are so interdependent, there > might be a case in the future where e.g. a color format that has no > differentiation between full and limited arises. When there is no > special unset/not applicable option, the userspace has to know > exactly when an option is valid or not, possible requiring additional > logic. >=20 > Setting a "not applicable" value allows userspace to be more dumb, > without much hassle on the kernelspace side. That's a good point too. So "not applicable" would be a value, but "unknown" would not be. Thanks, pq --Sig_/gPEvcW1kQm+Ybq.N/v+Zg1q Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEJQjwWQChkWOYOIONI1/ltBGqqqcFAmDTF48ACgkQI1/ltBGq qqe5aBAAqjWygSQjmKD6D7wupf6+Ir2Pto1tmAW7ioCbPvk4RutUtuKzbT4WoBku RtE2pHxKp2SiqKyo8rjRfgOR2gvDdOmfuKI5yfdKfPDZKhiyNIA2Wpyx9ntnFS+f HGVdWVFTJh61TfNtqC0FQqvEASiRPC7mnu9GzLtb69DU/0Jdu+NlALsH2FIYo1lb 4+HpBXhq1sd3EsgqnWbnC8BquKmH0Whea27uEidyo0B1VdHdT+vDEJzc0juN7TSo xs3us/rckFCEkhP0dASPe9ieWsYfUQIklQw1oKb/4WHHy0O9lyW5x0qABTbD34oF jOy9byLTiWmXQuR9zLpiW24Qo6n58hRTQ2+10mFPif7j/brhobX/k1js+cO9sDRJ +BkFsAJ0eU+cajpPi/lUGMgyTRPTT49yv1tjfzwsZihnH02Att+PtlXuCdmAei2/ 6imtfO3ETUcbyqgbmOeqPkY4dXqY7bhRCt82KCmAf1Bx/gJz2rhrBOjwhwJbXTeF NwcsWiFljcfSE118AJlkdHDGXnq+NaXNIqbfeOTYN0moUePis31A8+j78AEtFkAh dapDvoirU08Z2MgQAElb3HfD9EZf+en8s7JvPn/VTCi7jxMVBUPqyzZf8pceQVwU Vh7z8kFjqJKrRwBOSp6EpGnKYW244wCIc/24cUwx34e4MmOWmNc= =r73d -----END PGP SIGNATURE----- --Sig_/gPEvcW1kQm+Ybq.N/v+Zg1q-- --===============0610544509== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx --===============0610544509==-- From mboxrd@z Thu Jan 1 00:00:00 1970 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=-2.0 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_2 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 DEF63C4743C for ; Wed, 23 Jun 2021 11:14:37 +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 A858861075 for ; Wed, 23 Jun 2021 11:14:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A858861075 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=amd-gfx-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 599BE6E8AB; Wed, 23 Jun 2021 11:14:37 +0000 (UTC) Received: from mail-lj1-x22b.google.com (mail-lj1-x22b.google.com [IPv6:2a00:1450:4864:20::22b]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2FA9F6E8AB; Wed, 23 Jun 2021 11:14:36 +0000 (UTC) Received: by mail-lj1-x22b.google.com with SMTP id u20so2416054ljl.13; Wed, 23 Jun 2021 04:14:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version; bh=sVCNkG1sjid0l6fkpvpwMveMxwqV4qVEQF+03S3gbMk=; b=Isyhss64Lo63ULrdcWdldg3vYy7t0wFmWBADC2lk5CeYqL/ia93o6sG6WtC0AoE99G nx2LRunRuYeLP4HcccRiXUeVeu0hI9A5xJ/KMd2sEIbZLqUmjq5JInhftZIJv+Sq/U1T K7uf8aAU8Yc96U+SqguGfHGLQ2frBV+qk0is0ra9ozBeYyms27veirfW4k3M7uA0t1gZ ufs2XYMgEqBNYThhmMRoqs/NnuYC2Pyn2u34ElQDSMY9gZqAQzlmXABtmlrvzIIUtUV4 zxYLXbcjV5VSYqpACDmGzaev3ujPrYveGOAHF0n2CvlmbvL6t09teuefXabGuiSnw+Qn Xx7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version; bh=sVCNkG1sjid0l6fkpvpwMveMxwqV4qVEQF+03S3gbMk=; b=pcbiPZPwGlFZfbZ7Bli9Qw0vmWpmAbr3z2f50DHBsKGqOePbydTCmU2MBxVpizCDD1 d92IC9IrPd0wXF5ncJ+IFLxajrfsuiBh2XtlD9MCKqgAPMs3T6ce3e61lUC4TvJ2HzSy uw5PYIn8KbX+3PEOU1zSN5hUKtGTiTg4GhfpHm5DNIJ3efHcqbXu3grDdBiwCnlcUHLg ZKnq1dv5ky6lElexBj1smWDMAP3uQwGggS7CvJWsuqoUUVbJsSX4VAl+8M+lZJcsRkNY Oxxk7iw3cVUEKQw4Nr+YAg1v+2fYDXVyFFnQNVHjy6rSLWN4ldW4AiNWIy2QJZTDHpEX hLFA== X-Gm-Message-State: AOAM532LzF3EGFS6k360Od5tcqJeNZlecn5SICnsff5aXYEagEerENn1 Zty3nhGQbpRPfSRdrnTkHMs= X-Google-Smtp-Source: ABdhPJwgFL6X5sNyB5lAj2pWReVokn5IciFDnMioc3JNGQrae8usHzOmGagfauGFAy/RJNs1/LbboA== X-Received: by 2002:a2e:8584:: with SMTP id b4mr5964164lji.107.1624446874580; Wed, 23 Jun 2021 04:14:34 -0700 (PDT) Received: from eldfell ([194.136.85.206]) by smtp.gmail.com with ESMTPSA id b14sm2508766lfb.149.2021.06.23.04.14.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Jun 2021 04:14:34 -0700 (PDT) Date: Wed, 23 Jun 2021 14:14:23 +0300 From: Pekka Paalanen To: Werner Sembach Subject: Re: [PATCH v4 09/17] drm/uAPI: Add "active color range" drm property as feedback for userspace Message-ID: <20210623141423.3f6c3e9f@eldfell> In-Reply-To: <5947f768-dd87-6b39-ecfc-b7c4aaa88aca@tuxedocomputers.com> References: <20210618091116.14428-1-wse@tuxedocomputers.com> <20210618091116.14428-10-wse@tuxedocomputers.com> <20210622100042.4041624a@eldfell> <56d079d4-841a-0ca5-b8a6-d2c10f91d211@tuxedocomputers.com> <20210623103256.01d680ba@eldfell> <5947f768-dd87-6b39-ecfc-b7c4aaa88aca@tuxedocomputers.com> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 X-BeenThere: amd-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion list for AMD gfx List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: sunpeng.li@amd.com, Simon Ser , intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, airlied@linux.ie, amd-gfx@lists.freedesktop.org, tzimmermann@suse.de, rodrigo.vivi@intel.com, alexander.deucher@amd.com, christian.koenig@amd.com Content-Type: multipart/mixed; boundary="===============1352366075==" Errors-To: amd-gfx-bounces@lists.freedesktop.org Sender: "amd-gfx" --===============1352366075== Content-Type: multipart/signed; boundary="Sig_/gPEvcW1kQm+Ybq.N/v+Zg1q"; protocol="application/pgp-signature"; micalg=pgp-sha256 --Sig_/gPEvcW1kQm+Ybq.N/v+Zg1q Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Wed, 23 Jun 2021 12:17:40 +0200 Werner Sembach wrote: > Am 23.06.21 um 09:32 schrieb Pekka Paalanen: > > On Tue, 22 Jun 2021 11:48:52 +0000 > > Simon Ser wrote: > > =20 > >> On Tuesday, June 22nd, 2021 at 11:50, Werner Sembach wrote: > >> =20 > >>> Unknown is when no monitor is connected or is when the > >>> connector/monitor is disabled. =20 > >> I think the other connector props (link-status, non-desktop, etc) don't > >> have a special "unset" value, and instead the value is set to a random > >> enum entry. User-space should ignore the prop on these disconnected > >> connectors anyways. =20 > > That sounds fine to me. =20 >=20 > Currently the only case for "not applicable" is when the monitor is > disconnected, but sicne the properties are so interdependent, there > might be a case in the future where e.g. a color format that has no > differentiation between full and limited arises. When there is no > special unset/not applicable option, the userspace has to know > exactly when an option is valid or not, possible requiring additional > logic. >=20 > Setting a "not applicable" value allows userspace to be more dumb, > without much hassle on the kernelspace side. That's a good point too. So "not applicable" would be a value, but "unknown" would not be. Thanks, pq --Sig_/gPEvcW1kQm+Ybq.N/v+Zg1q Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEJQjwWQChkWOYOIONI1/ltBGqqqcFAmDTF48ACgkQI1/ltBGq qqe5aBAAqjWygSQjmKD6D7wupf6+Ir2Pto1tmAW7ioCbPvk4RutUtuKzbT4WoBku RtE2pHxKp2SiqKyo8rjRfgOR2gvDdOmfuKI5yfdKfPDZKhiyNIA2Wpyx9ntnFS+f HGVdWVFTJh61TfNtqC0FQqvEASiRPC7mnu9GzLtb69DU/0Jdu+NlALsH2FIYo1lb 4+HpBXhq1sd3EsgqnWbnC8BquKmH0Whea27uEidyo0B1VdHdT+vDEJzc0juN7TSo xs3us/rckFCEkhP0dASPe9ieWsYfUQIklQw1oKb/4WHHy0O9lyW5x0qABTbD34oF jOy9byLTiWmXQuR9zLpiW24Qo6n58hRTQ2+10mFPif7j/brhobX/k1js+cO9sDRJ +BkFsAJ0eU+cajpPi/lUGMgyTRPTT49yv1tjfzwsZihnH02Att+PtlXuCdmAei2/ 6imtfO3ETUcbyqgbmOeqPkY4dXqY7bhRCt82KCmAf1Bx/gJz2rhrBOjwhwJbXTeF NwcsWiFljcfSE118AJlkdHDGXnq+NaXNIqbfeOTYN0moUePis31A8+j78AEtFkAh dapDvoirU08Z2MgQAElb3HfD9EZf+en8s7JvPn/VTCi7jxMVBUPqyzZf8pceQVwU Vh7z8kFjqJKrRwBOSp6EpGnKYW244wCIc/24cUwx34e4MmOWmNc= =r73d -----END PGP SIGNATURE----- --Sig_/gPEvcW1kQm+Ybq.N/v+Zg1q-- --===============1352366075== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ amd-gfx mailing list amd-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/amd-gfx --===============1352366075==--