Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp280641lqg; Fri, 1 Mar 2024 05:16:24 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUInVfg+whBwHLelbefj/80Jg/wdsQI38X7hD6krCiKsfE7chi0zswvdwifr9QhtW2Z23RJd2CIf4SlfnwIYQQEUkjSBOsrNUlCLRZjHw== X-Google-Smtp-Source: AGHT+IFkVufvXLSgYFh7KVwPVNNf8jUWDzrjD1aR0qTy9VlA8y8KpC61+qRGhOlOUCJMLA26oiSZ X-Received: by 2002:a05:6a00:1808:b0:6e4:d3b1:76ca with SMTP id y8-20020a056a00180800b006e4d3b176camr1976244pfa.16.1709298984267; Fri, 01 Mar 2024 05:16:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709298984; cv=pass; d=google.com; s=arc-20160816; b=fZNiU8a9L42s/Gyd/GVHFr3R12Surrof5F9SN17X6jpz/8f4d7ekuhIvQmfztuGLcv GW5SlFKYIh769f74q0tUFNsrmyXhp5GX4VV7BBLEE2YKIf59Ms+sdB03HjP4XpG74MgH bUoOAaMiKISFekDkpA+N13kncnfmmOJ4FmvaxFDKN39yxVFI6q2/3vsEOw4ylP992YPU 11EPBaT4Vu2K+gcBaILu4To2R3MJqZgh6x7AQCxQHa8Zk/BiXvc+UmKpuqLXAYHpuCmj sKiasogsl0pRSU7IFQA7wTm8hR/XW0iIGH1ft6klrfHtiZWmueAtnTOTdcPCTgJuMRot 1U4g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=j6JDdzMRW33EgNy8WVE2rwXJul+k7YILcoZp2XURKLI=; fh=zs6ZgSe59BBvLcvfrjBrAT4Ybv1ZQOCMt7eF70UbsUk=; b=p+iwD+T0B0f2uLUXSfaYDcVxna/ZVNAqQSe9nASCag0hjhnWtRVRRuvkySuKZatGL2 yyp1UOODPEhoVpACMyVSgJcgDJyvhP+t/8sZfKDPQqgC8332AHUURxMxRcDE8am/CiKN 72ysCID279Zy3VSKcsCSQjWp+CYO11mX87UusaONhsEBdfiDamI+8Q/nt2MUeaNxA5HF eNmZn7Gl4MRVlt7Uoceo8HQR1Se6zXMgmNNkO1Xh/kkqn8IEmaGv0qHTM5ZRJfzHOTjs n7kKPnpf6ZynBsIxD0XoudgZnfHkikhrxl8hv6JwmVr/RWxuJikJ445q/ceO2EyR5wmU gC7g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=iI8lTj7s; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-88444-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88444-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id s4-20020a056a00194400b006e5a659dd8fsi2526556pfk.392.2024.03.01.05.16.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 05:16:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-88444-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=@redhat.com header.s=mimecast20190719 header.b=iI8lTj7s; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-88444-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88444-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 76BC8284C9D for ; Fri, 1 Mar 2024 13:16:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EE93740BEB; Fri, 1 Mar 2024 13:15:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="iI8lTj7s" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4BA8667E74 for ; Fri, 1 Mar 2024 13:15:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709298928; cv=none; b=Neml9djaOgAjTfu70N0Se7qi4tQj+Bt2EnofwA5hOTLRArC/4Sm5Doblzo37l6XW5lQVM604x2tBRUKGBuSl72FVWjy8B+0RV6blMHNnOFSxZ6/Ox4iShj9vsVccJXWgyV48ebQi2hW90PGSgMkXdNPgyJE/CFFuzgqIKuS3z6Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709298928; c=relaxed/simple; bh=ppxwsid024kYh+xIImopd5C7MqjcjcriC8usZ9HcFiA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=QqU/t15iedfkjizmPE/jG03qp5rWITfZg4ucUTUkdvuxjlFZxLabnBLBflJ+SK3jshb4TQMoUC7J37slO7HRtU0EJbAx/kB8MYxnPGZ3S4vWKXgBB5Cn5dSyQwRXTv8EL96WPJSWAq910DvN8EMy+CR3/w/c7SE2Y2YanPBek6Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=iI8lTj7s; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1709298925; 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: in-reply-to:in-reply-to:references:references; bh=j6JDdzMRW33EgNy8WVE2rwXJul+k7YILcoZp2XURKLI=; b=iI8lTj7syOyTuYUrra2JC9Ixh25zlm6lpJ5/XDSxvHHZ/6ckDatltHl+o0x+DBKt8i4e14 GWgGHG02FIHk3CvRUBtRNIt2Pb3jLghh+3m1ZOV1vVbydisna2iAiG8iA+MKLF1Y12RhUs cSNRD4SkeYAhCd1c/P3E/TVKYPX2EQo= Received: from mail-lf1-f72.google.com (mail-lf1-f72.google.com [209.85.167.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-128-zDEt7PcTPaSgWk0YyCOCqw-1; Fri, 01 Mar 2024 08:15:23 -0500 X-MC-Unique: zDEt7PcTPaSgWk0YyCOCqw-1 Received: by mail-lf1-f72.google.com with SMTP id 2adb3069b0e04-512a5c6465bso1589246e87.1 for ; Fri, 01 Mar 2024 05:15:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709298922; x=1709903722; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=j6JDdzMRW33EgNy8WVE2rwXJul+k7YILcoZp2XURKLI=; b=igZDPDfy9lA6gb6N56fFTXAv9r+mzuB8Oy63/YUjpWjsDqBDSVPU4o/VD7gZlNr7ua 6FO2grsbR283vd3JT2yiKFjAmnON+ccfB+UbPymBox/PpnvyDTWw+yJwKIR59j157mp8 31Yd9YgqRnKCi7IJy/Wo/iGXfRDdlD5ZgS/2dkMa/njB2yW5XrA/DxXTvmUyhdVAGtk+ wpQHwkxTFoPmG3ZZ1857nrcCIg1Y3l77R1U9mlIwwhHAmyEnJTU9rQ46FwGAevcbri0B ABvNgfbixREhrXtmjBlvwx07YRyqNvqH7Zv/RjvS4EWjWdiyZrxq/yGKgPycHw0sj1Jk PVhQ== X-Forwarded-Encrypted: i=1; AJvYcCUt+4Zry9Gm0hzPlxN4imq4TT2EFIEQbPypK2fysg+XWcwOu315HkPo5hlvHXkYa6lmGDVMhFvPPXLPtyW79qd8oPY40iCiQl1qhkzm X-Gm-Message-State: AOJu0Yz314+6a+cKzNB9izXFDof9YMizb86FAT2mLU8rI9UFNlPy8Tx/ XS0wFlvTbpXjN8iwo6+Gtx+LAYElDb3T26G8M5qYgjtWCZDdDsy9GC1x01KxD8Iw87WNsl4E7XO zBLHbnGXjR8FXXt+3wKhLlLjiEGm0n+pN2kIbgKsdH/mM4NSKYdxp2hyhIi7NmQ== X-Received: by 2002:ac2:599b:0:b0:512:f6d3:9998 with SMTP id w27-20020ac2599b000000b00512f6d39998mr1223719lfn.17.1709298922219; Fri, 01 Mar 2024 05:15:22 -0800 (PST) X-Received: by 2002:ac2:599b:0:b0:512:f6d3:9998 with SMTP id w27-20020ac2599b000000b00512f6d39998mr1223689lfn.17.1709298921881; Fri, 01 Mar 2024 05:15:21 -0800 (PST) Received: from toolbox ([2001:9e8:89a0:c500:c65:1f3a:8c08:2a1d]) by smtp.gmail.com with ESMTPSA id bw1-20020a0560001f8100b0033db0c866f7sm4639850wrb.11.2024.03.01.05.15.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 05:15:21 -0800 (PST) Date: Fri, 1 Mar 2024 14:15:19 +0100 From: Sebastian Wick To: Maxime Ripard Cc: Maarten Lankhorst , Thomas Zimmermann , David Airlie , Daniel Vetter , Jonathan Corbet , Sandy Huang , Heiko =?iso-8859-1?Q?St=FCbner?= , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Hans Verkuil , Ville =?iso-8859-1?Q?Syrj=E4l=E4?= , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-sunxi@lists.linux.dev, Dave Stevenson Subject: Re: [PATCH v7 21/36] drm/connector: hdmi: Add Broadcast RGB property Message-ID: <20240301131519.GA10491@toolbox> References: <20240222-kms-hdmi-connector-state-v7-0-8f4af575fce2@kernel.org> <20240222-kms-hdmi-connector-state-v7-21-8f4af575fce2@kernel.org> <20240229194726.GB166694@toolbox> <20240301-light-impressive-grasshopper-adabeb@houat> <20240301112941.GE166694@toolbox> <20240301-loyal-cornflower-oxpecker-83ed59@houat> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240301-loyal-cornflower-oxpecker-83ed59@houat> On Fri, Mar 01, 2024 at 01:12:02PM +0100, Maxime Ripard wrote: > On Fri, Mar 01, 2024 at 12:29:41PM +0100, Sebastian Wick wrote: > > On Fri, Mar 01, 2024 at 11:30:56AM +0100, Maxime Ripard wrote: > > > On Thu, Feb 29, 2024 at 08:47:26PM +0100, Sebastian Wick wrote: > > > > > @@ -1708,6 +1731,39 @@ EXPORT_SYMBOL(drm_connector_attach_dp_subconnector_property); > > > > > /** > > > > > * DOC: HDMI connector properties > > > > > * > > > > > + * Broadcast RGB (HDMI specific) > > > > > + * Indicates the Quantization Range (Full vs Limited) used. The color > > > > > + * processing pipeline will be adjusted to match the value of the > > > > > + * property, and the Infoframes will be generated and sent accordingly. > > > > > + * > > > > > + * This property is only relevant if the HDMI output format is RGB. If > > > > > + * it's one of the YCbCr variant, it will be ignored and the output will > > > > > + * use a limited quantization range. > > > > > > > > Uh, maybe just say that the quantization range is selected automatically > > > > in case a YCbCr output format is in use. I'm not sure every YCbCr > > > > variant requires limited and even if it does, new formats could change > > > > this. > > > > > > I documented what i915 is doing: > > > https://elixir.bootlin.com/linux/latest/source/drivers/gpu/drm/i915/display/intel_hdmi.c#L2143 > > > > Sure, this is one valid strategy for the automatic behavior of YCbCr. > > Drivers could also always send an InfoFrame to ensure full range where > > possible. The point here is that this property shall not affect YCbCr > > output formats! > > > > Maybe it's even better to say "driver specific" instead of "automatic". > > Honestly, I'm not sure what you want from me here. Ville and you > insisted on the previous version to document what i915 is doing and to > follow whatever the behaviour was, and that we shouldn't spend time > improving the property. Fine, I did that. > > But now, you want me to ... improve the property? The property has a clear scope: quantization range for RGB output formats. What Intel does with things that are not in scope of the property is irrelevant. This isn't improving the property either but documenting the scope of the property. Sorry if this seems arbitrary but these details are so important to get right because the interactions between all the different things is already majorly broken. > Maxime >