Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp879157rdd; Wed, 10 Jan 2024 02:13:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IEkhzK1EpmuFCAsCmPT++FkgD3kfY4jBrjzkmOUiXmilrmTBiikdSnC46j+GasF5ZSvaRzL X-Received: by 2002:a17:902:e80c:b0:1d5:3f81:f886 with SMTP id u12-20020a170902e80c00b001d53f81f886mr850207plg.77.1704881599634; Wed, 10 Jan 2024 02:13:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704881599; cv=none; d=google.com; s=arc-20160816; b=ziLgV6rlBgP/FTPQze51OpGo5BgNmYs1r/uNX4zdvDhQZTyPYF4S9Rp2ge7Nl8cKFk 6EVMDT6IxBvc4xwrFTh2S5d6EXp/+FEgCNtL0K485G3FMqkftLxPFj79IeTMjY7W80vb p38p8si+t4Bvg3eJxHgNsafG5A/Hop4ZG0b9VwQt2hGPrPhW6XCxDhoTL3aEJgu3OMu0 orP+ZrdHw8HeygbRDeH2il7vEjioB4blJmYXDCyWYlJo4qsyDDU4nLtHVoh/UQVKzxXH cy5M+66FM6exs5tR/W7rQS7ajvQxwqOQ55WscrQ7i2q/7M7YUo8mX3Xf8k68SVtpa6iz d6xQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=96G7DIyssciX4jnAzNrTPlryo3sWO8sgy39soI2lLIM=; fh=f3b/8JRfNoQFG15ObwignvaiD2wRnk6Ur+Gd8QH7qXU=; b=piTX4UbM251611tSRfL3Tuh5oUG3YQ9MGRr2enhaF959WY4aHu9h4SdNmB44pAdV0y 6mcH0XPgekjAFPp/osIHWByBW/9atg39pMO8Mm3Wt5z4VJNMJW9PnuaGgEk3PBv5ymx+ CtFAmHuiAwOAjfelQMqhBEvjsCXxb7q9gial+/nDLG9eCTniSX8iyfCfXVV3UiEG4aRr FvjKdEspFiM/hGe82E/r6TPBiHMh3kJcv11JEsd/LasSdHB6qq42emWCtTmejTAOQut6 BOrO457C0cGw7E+O7pKu4LAe8kQ6dFz3BucRVtzzCzx+VGCLt2DuQPfO8egFm+ZWM0Kc Fw1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yngvason.is header.s=google header.b="b/nLsLCA"; spf=pass (google.com: domain of linux-kernel+bounces-21951-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21951-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=yngvason.is Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id ja18-20020a170902efd200b001cf68d533fasi3232221plb.633.2024.01.10.02.13.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 02:13:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-21951-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@yngvason.is header.s=google header.b="b/nLsLCA"; spf=pass (google.com: domain of linux-kernel+bounces-21951-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21951-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=yngvason.is 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 14A202898DC for ; Wed, 10 Jan 2024 10:12:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 498963FE26; Wed, 10 Jan 2024 10:12:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=yngvason.is header.i=@yngvason.is header.b="b/nLsLCA" Received: from mail-yw1-f170.google.com (mail-yw1-f170.google.com [209.85.128.170]) (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 945FE3FB38 for ; Wed, 10 Jan 2024 10:12:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=yngvason.is Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=yngvason.is Received: by mail-yw1-f170.google.com with SMTP id 00721157ae682-5fa52e173f7so4024727b3.3 for ; Wed, 10 Jan 2024 02:12:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yngvason.is; s=google; t=1704881528; x=1705486328; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=96G7DIyssciX4jnAzNrTPlryo3sWO8sgy39soI2lLIM=; b=b/nLsLCAxAz4HMcmxX32IaIq+DjkSZlvvcu2fPIHOixPYIXTBOgnFvTg7ng+JnyVvc xJJwd+LuDFQYXKEMK+IfLCIxZJuWXc7sCs1sAICVNY6D/+gaTXFHkFax/0bjVS6fVnfB jFZm1oZ0lPSMicbx6XtnpmsrdWzTohus5jTvQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704881528; x=1705486328; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=96G7DIyssciX4jnAzNrTPlryo3sWO8sgy39soI2lLIM=; b=rpILV5lWapZP/5f1ObyHTVM0m84ug+iHGF/BegVFIVwPgDYeRg+b77OG6ueAJ3Dl/a Xx2h9dgMf5hWnb39ispTVHNzzjVKC7SgOiNl1jOMOEXcnKX/4cDPUXDYh7kHHm3S/q6O zfn7vbVhNdUaDvkLSRAHpMEWv6JRTJrEtLj3kIiBFl8XpLd8n3Y4rxEnYBiv5W9JGp9e dz0dBPeqgkw0wlfQ7AxdGK+ZHpufQ+b7abuKdTr8tjbUFHpS4GYG/ewSgTE/6hksreiW p3R1DjvBk0tpfVxthnWQR6o0c6AqheHm9g2MASgGV60KfPBSOTpPQsbMDS60jzQutqz+ 3iCg== X-Gm-Message-State: AOJu0YwWe9X58itWnw1AA5wCk4qZeGaKObp0zGzbKk3xZEEarjN1g+l6 jiODhYTVmPN+m9tTrFCyCmWm2XqDgSeiDMKhX5tEoXnTZruKZw== X-Received: by 2002:a25:f822:0:b0:dbf:227a:a2c with SMTP id u34-20020a25f822000000b00dbf227a0a2cmr504361ybd.126.1704881528497; Wed, 10 Jan 2024 02:12:08 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240109181104.1670304-1-andri@yngvason.is> <20240109181104.1670304-6-andri@yngvason.is> In-Reply-To: From: Andri Yngvason Date: Wed, 10 Jan 2024 10:11:32 +0000 Message-ID: Subject: Re: [PATCH 5/7] drm/uAPI: Add "preferred color format" drm property as setting for userspace To: 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 , Werner Sembach , Dan Carpenter Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, mi=C3=B0., 10. jan. 2024 kl. 09:27 skrifa=C3=B0i 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 us= ed > > 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 t= he > > current setup, but because of bad internal conversion some monitors loo= k > > 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. Thanks, Andri