Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp970947rdd; Wed, 10 Jan 2024 05:09:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IEAshEbzUO8H0CQFoJ8Z7O+YoyJ+qeM5LpPYbowuC1perr4oTXmAgeK+mFNhny14nYjLpMj X-Received: by 2002:a50:d5c9:0:b0:54a:f72d:38b2 with SMTP id g9-20020a50d5c9000000b0054af72d38b2mr453503edj.8.1704892171825; Wed, 10 Jan 2024 05:09:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704892171; cv=none; d=google.com; s=arc-20160816; b=aVzdq1SwImbUDVqggGiwjdTKuoH2ms9zAmi2WFZ2JSCx6mxGQQb+JewtZtjKm9c0KC r4EOmK4cSMdFGOD1Y/eSUN97xZepxiAc1zG38d/Ak0SK+YSAOVmrIIstixrJ+i2C5jdY p+mGYgF+kncx2PWNbCcq5JgroWBLhgSZ248paF2CE89+nlZgvLLrlTsVgOBqOnHB3ZjX Bo7/stHIZEztLNNK4k8TU/BWb7Qs/m9yG1ir5yLwBuAxLao07z3hG0Hkif0x+1CQng0C 6z581PesVPeU6zl7wtPmFJLgEEMnfTssvqf7OBSoUTIGwtXK2/Lpbn8oTBK69v+27Vk9 VSMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=RjmCj0ca8jaa062CnfpuGDxA7/7+921oq64gB2rF+Ig=; fh=KRvZSphzoSvCDOFY33SY+/utlfdNK/S+rDf7Yu59Ogg=; b=NwPxQLbWGFDfjZLF6XzTfibX7Fe+So2rVeugr9H8IGWsYngC5zXz//CYTCBfrVFxQ6 etRoFjUVeWUqfp273k5guJ+Dv897aIws4IPyXZsQBfBp2E8ytRMB7hSjwrJVX83qlBf0 7LjBU2ftC4+89KHFiTv4dwKHpqsgtmqltlxInV/KwFhvhnLyTIOkLnndb6bX3pT6q5lq lnG96FjSyho7IE3LQ+RIuCkShzS8dLamdy5uL5rhGTGr3NqGHU16z5+qG+usRhjSlXnN DnDzh2J8luKeBA2XOgZbDDqV2KRYVJr9wWNCIeMsIBXkufvHgHbhZ+Hlkii7zzss+Wbq h6Jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tuxedocomputers.com header.s=default header.b=bmxA38PG; spf=pass (google.com: domain of linux-kernel+bounces-22212-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22212-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=tuxedocomputers.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id h1-20020a0564020e8100b00558617ef5bbsi364974eda.310.2024.01.10.05.09.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 05:09:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-22212-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@tuxedocomputers.com header.s=default header.b=bmxA38PG; spf=pass (google.com: domain of linux-kernel+bounces-22212-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22212-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=tuxedocomputers.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 8E3391F22759 for ; Wed, 10 Jan 2024 13:09:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 03D5D4879F; Wed, 10 Jan 2024 13:09:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=tuxedocomputers.com header.i=@tuxedocomputers.com header.b="bmxA38PG" Received: from mail.tuxedocomputers.com (mail.tuxedocomputers.com [157.90.84.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F085348790 for ; Wed, 10 Jan 2024 13:09:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=tuxedocomputers.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tuxedocomputers.com Received: from [192.168.42.20] (p5de453e7.dip0.t-ipconnect.de [93.228.83.231]) (Authenticated sender: wse@tuxedocomputers.com) by mail.tuxedocomputers.com (Postfix) with ESMTPSA id 1C8582FC0057; Wed, 10 Jan 2024 14:09:12 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxedocomputers.com; s=default; t=1704892153; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RjmCj0ca8jaa062CnfpuGDxA7/7+921oq64gB2rF+Ig=; b=bmxA38PGD1K6FPTSKTedfnYmsEGQy/MDis1bHTG7qt2F6Bkt7VAsjrUQ3P0tRW4d7z3+mA 701MaIPi4w3uhfMbYOG4k1yqcC5vx9SY+iyX3XK+da1Qt7CN7eAM64ikLSjKcTpwXi2SUM 5t0Zf0znq0run9e7S5M4qnzgEUgapis= Authentication-Results: mail.tuxedocomputers.com; auth=pass smtp.auth=wse@tuxedocomputers.com smtp.mailfrom=wse@tuxedocomputers.com Message-ID: <92e20f9b-2cbf-4efe-b61b-989da0cc1668@tuxedocomputers.com> Date: Wed, 10 Jan 2024 14:09:11 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 5/7] drm/uAPI: Add "preferred color format" drm property as setting for userspace Content-Language: en-US To: Andri Yngvason , Maxime Ripard Cc: Harry Wentland , Leo Li , Rodrigo Siqueira , Alex Deucher , =?UTF-8?Q?Christian_K=C3=B6nig?= , "Pan, Xinhui" , David Airlie , Daniel Vetter , Maarten Lankhorst , Thomas Zimmermann , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, intel-gfx@lists.freedesktop.org, Simon Ser , Dan Carpenter References: <20240109181104.1670304-1-andri@yngvason.is> <20240109181104.1670304-6-andri@yngvason.is> From: Werner Sembach In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hi, Am 10.01.24 um 11:11 schrieb Andri Yngvason: > Hi, > > mið., 10. jan. 2024 kl. 09:27 skrifaði Maxime Ripard : >> On Tue, Jan 09, 2024 at 06:11:02PM +0000, Andri Yngvason wrote: >>> From: Werner Sembach >>> >>> Add a new general drm property "preferred color format" which can be used >>> by userspace to tell the graphic drivers to which color format to use. >>> >>> Possible options are: >>> - auto (default/current behaviour) >>> - rgb >>> - ycbcr444 >>> - ycbcr422 (not supported by both amdgpu and i915) >>> - ycbcr420 >>> >>> In theory the auto option should choose the best available option for the >>> current setup, but because of bad internal conversion some monitors look >>> better with rgb and some with ycbcr444. >> I looked at the patch and I couldn't find what is supposed to happen if >> you set it to something else than auto, and the driver can't match that. >> Are we supposed to fallback to the "auto" behaviour, or are we suppose >> to reject the mode entirely? >> >> The combination with the active output format property suggests the >> former, but we should document it explicitly. > It is also my understanding that it should fall back to the "auto" > behaviour. I will add this to the documentation. Yes, that was the intention, and then userspace can check, but it wasn't well received: https://gitlab.freedesktop.org/drm/amd/-/issues/476#note_964530 Actually a lot of the thoughts that went into the original patch set can be found in that topic. There was another iteration of the patch set that I never finished and sent to the LKML because I got discouraged by this: https://lore.kernel.org/dri-devel/20210623102923.70877c1a@eldfell/ I can try to dig it up, but it is completely untested and I don't think I still have the respective TODO list anymore, so I don't know if it is a better or worst starting point than the last iteration I sent to the LKML. Greetings Werner > > Thanks, > Andri