Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5568320pxj; Wed, 23 Jun 2021 04:20:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxbfGpzIZGr0amwCUEsS1lUifj104DKiAbAePWNTJsdJtO7WMoMdZSh80OfDUUZPUHoU4uJ X-Received: by 2002:a5d:96c6:: with SMTP id r6mr6817025iol.25.1624447221829; Wed, 23 Jun 2021 04:20:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624447221; cv=none; d=google.com; s=arc-20160816; b=b5u+7oCE01zZ9Hq1oeEG3gpR2fam8wmDzuSeOkN6+FqZxNoZJp/KBKneU5K2wAGqr9 1q8WWgn5qmH6S7JOYZiuok7qvdwM1E0AU6ud1I+2s5AYZksM/Jzrqux4VHP1fwQH9j28 FPZTFD53MtHbWQ2bAj0NdzkquYERLSb4EWYd9oJmohEBG9flB3AOTOHXBlhi9IjNnRgP qGGhof2LF2zfoemxZiUavh9jGDbftxn1dh1jenOTPktHLPfUkR80FW/drPgzLjeUWMRX dUn86VdafU3ak59JKWjrGrqo2gStCqj/lWgxoQzQ5PEl31Url/tgmS0AoRa5HoP4Tp88 hGJw== 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 :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=Kc3s7RwvaJeQj99cHBrXNExZfLYgI5ZSwzDRq214b6g=; b=ZT3Ila5Ch6or+5HcrQJjh0KtVJP0cFlW0DnR33WHXeVVBrConVGSsTTvLA3jf0p1J6 BK/4B78oCKFYFFlsHd19q48ZG9SdzHT2FOEgwuh/N/1WOVnC7+McwkEdfSwg/ddPuIcl Ms02A0+Bt80xce901/LugU+iAxH7IdD+ysqxc1R7V/0FtCS4dgR7GFvYgV+HA/XxIxGG q+0ayjs9qFOs6kDReBgpERio3ZQvOrrGxfO+/Y4avJMafNPqKVVyLVoNDE8yaZ59nOBy 9WoWikAYfcu5IEfHFOr1usMgbIy4XdJsEUv1jbt7hzBStdRTmYUUOW0gbxRlSpBcv0KG IMrw== 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 t8si17757787ilu.89.2021.06.23.04.20.09; Wed, 23 Jun 2021 04:20:21 -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 S230098AbhFWLWA (ORCPT + 99 others); Wed, 23 Jun 2021 07:22:00 -0400 Received: from srv6.fidu.org ([159.69.62.71]:44612 "EHLO srv6.fidu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230061AbhFWLWA (ORCPT ); Wed, 23 Jun 2021 07:22:00 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by srv6.fidu.org (Postfix) with ESMTP id B2A3DC800A7; Wed, 23 Jun 2021 13:19:41 +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 VnxvvrRkcqOg; Wed, 23 Jun 2021 13:19:41 +0200 (CEST) Received: from [IPv6:2003:e3:7f39:4900:3156:839d:aed8:6ea6] (p200300e37f3949003156839daED86Ea6.dip0.t-ipconnect.de [IPv6:2003:e3:7f39:4900:3156:839d:aed8:6ea6]) (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 3B189C8009D; Wed, 23 Jun 2021 13:19:41 +0200 (CEST) Subject: Re: [PATCH v4 09/17] drm/uAPI: Add "active color range" drm property as feedback for userspace To: Pekka Paalanen 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 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> <20210623141423.3f6c3e9f@eldfell> From: Werner Sembach Message-ID: Date: Wed, 23 Jun 2021 13:19:41 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210623141423.3f6c3e9f@eldfell> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 23.06.21 um 13:14 schrieb Pekka Paalanen: > 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: >>> >>>> On Tuesday, June 22nd, 2021 at 11:50, Werner Sembach wrote: >>>> >>>>> Unknown is when no monitor is connected or is when the >>>>> connector/monitor is disabled. >>>> 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. >>> That sounds fine to me. >> 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. >> >> 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. Ok, I have already renamed the "unknown" option to "not applicable" in my next revision (not yet posted to the mailing list). > > > Thanks, > pq