Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp4204167pxv; Tue, 29 Jun 2021 01:14:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmLfbyd/o+wqCoxfC9Xo/3GmhF78NG1X+jGSfv8s+q3LrWvsLXW7j72IKRsvq3XGEzfNWF X-Received: by 2002:a92:b004:: with SMTP id x4mr21916764ilh.121.1624954441875; Tue, 29 Jun 2021 01:14:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624954441; cv=none; d=google.com; s=arc-20160816; b=KsN+LfXMyC42URpjt8iofkB9fLrXj0AcRBtIoUQvrsvYSG+j2eTS72lVi2g0DrQRf/ 9byJDJQyV02lruVasEiNuSYmswoIUnX7m2ckzLgcK2+us4WTFT04kK2/REVemH0VgYbi Xue4nT8ft57m4jCoMJFm0H3eSEIslR8b3pCvwI1G6dbhzk6pw9Q8ls5unGO71WMwu0Qn maTVzX4wFWCsaIS/punCfpFv2KEF2eXDrYpJkNAPhsO68efTG8iN1w6pVUHygcpzCqYi B65cXHq94/VazQs+bfdWIHnBMsQmqydSq+RwFwGl7bBgxJkTsBppGswA2qyTH00EmF6q jfZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:reply-to:cc:from:to :dkim-signature:date; bh=Wt1VzxpUKhVa3HzTLpE5SfzFn/YP4YxfPtnwrLRl/ko=; b=1J+QsEjX6TEqbAC4Gj74jZ/nTLUvdnx9CHgK1xldu5EdNSfJvC2ApT57pnBN3Ud89L wFr4LGx5o1K5953yzg5028/LMK1er/KIxKiMIOMskKRX07O8fh8JWmBodBrpfINo0+on t8xaj4SkAOrTdYg1t0tx3etmxzJjA/wkSzA6j3kZMZYvQplQU8uWX2tDsVyvpjfDoSCC 9hxDdqgI+Aq4x3tvHBXdEZJ3Q9KHn53jMR4FdboMhVPt8wTaMAGsAwupCKXWnLX2Vphg vVAGerm/wqhEPV3D4hk/EzUY2ZAOCgjR1/A8WoeTrFStf26nqtwyZ79YRsDCieJdZwPS qC2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@emersion.fr header.s=protonmail3 header.b=kT+JW4ZQ; 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=NONE dis=NONE) header.from=emersion.fr Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b5si4301136ilo.101.2021.06.29.01.13.48; Tue, 29 Jun 2021 01:14:01 -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=@emersion.fr header.s=protonmail3 header.b=kT+JW4ZQ; 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=NONE dis=NONE) header.from=emersion.fr Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232338AbhF2IP1 (ORCPT + 99 others); Tue, 29 Jun 2021 04:15:27 -0400 Received: from mail-0201.mail-europe.com ([51.77.79.158]:33115 "EHLO mail-0201.mail-europe.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232308AbhF2IP0 (ORCPT ); Tue, 29 Jun 2021 04:15:26 -0400 Date: Tue, 29 Jun 2021 08:12:54 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=emersion.fr; s=protonmail3; t=1624954376; bh=Wt1VzxpUKhVa3HzTLpE5SfzFn/YP4YxfPtnwrLRl/ko=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=kT+JW4ZQ/XLWZcl11bQR37x0+KSRaeQZh+kE4omXiV6BfWIXtXDd9WyZtDYY/JY9Q 1zd79RntcYijrdG1waxiPh2nou/ZvBfvcZypHdKrnM3PwLNucQr0OzCcTVrq4rh8Ni m00QGUE0GcaCzer16iFx8ghVLePzrSLxcbmBR4jKdOIvbVxdAc9OX7/52DB/6bp8/J 0WoLL0L4vGQIbORx3tk9vDc6XpknNlwi+5ZDIdukmY8s898XGiSCv8U8BfB9vVj2WN cqt8zTHmvFnErL8LXt3H3nz10WMmR/gSmecxKqQLAOoPnTlcU59248/yhsU0VgsSln j3LySWnSFt73Q== To: Pekka Paalanen From: Simon Ser Cc: Werner Sembach , amd-gfx@lists.freedesktop.org, tzimmermann@suse.de, intel-gfx@lists.freedesktop.org, sunpeng.li@amd.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, airlied@linux.ie, rodrigo.vivi@intel.com, alexander.deucher@amd.com, christian.koenig@amd.com Reply-To: Simon Ser Subject: Re: [PATCH v4 12/17] drm/uAPI: Add "preferred color format" drm property as setting for userspace Message-ID: In-Reply-To: <20210622101516.6a53831c@eldfell> References: <20210618091116.14428-1-wse@tuxedocomputers.com> <20210618091116.14428-13-wse@tuxedocomputers.com> <20210622101516.6a53831c@eldfell> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday, June 22nd, 2021 at 09:15, Pekka Paalanen = wrote: > yes, I think this makes sense, even if it is a property that one can't > tell for sure what it does before hand. > > Using a pair of properties, preference and active, to ask for something > and then check what actually worked is good for reducing the > combinatorial explosion caused by needing to "atomic TEST_ONLY commit" > test different KMS configurations. Userspace has a better chance of > finding a configuration that is possible. > > OTOH, this has the problem than in UI one cannot tell the user in > advance which options are truly possible. Given that KMS properties are > rarely completely independent, and in this case known to depend on > several other KMS properties, I think it is good enough to know after > the fact. > > If a driver does not use what userspace prefers, there is no way to > understand why, or what else to change to make it happen. That problem > exists anyway, because TEST_ONLY commits do not give useful feedback > but only a yes/no. By submitting incremental atomic reqs with TEST_ONLY (i.e. only changing on= e property at a time), user-space can discover which property makes the atomi= c commit fail. I'm not a fan of this "preference" property approach. The only way to find = out whether it's possible to change the color format is to perform a user-visib= le change (with a regular atomic commit) and check whether it worked after-the-fact. This is unlike all other existing KMS properties. I'd much rather see a more general approach to fix this combinatorial explo= sion than to add special-cases like this.