Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp997191rdb; Fri, 2 Feb 2024 10:06:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IHp6nP5PaCfFBmF4icRnR4Tnr+IX6LNmEESvqa7VBIuWS7YcijYPb9yUJfgKbyCUIDhvsu7 X-Received: by 2002:a17:906:32d0:b0:a37:1e9a:c958 with SMTP id k16-20020a17090632d000b00a371e9ac958mr1482711ejk.22.1706897175746; Fri, 02 Feb 2024 10:06:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706897175; cv=pass; d=google.com; s=arc-20160816; b=vKvYqyoWHRyQmYCgj62d5tlnYXcoPvOOacEP40Yhlft3V3rd7i2UGPkBkFwjcNsUQ6 Ji5qg4JJQAnpqIVVwUaQ/WwZfSiLvevwBQYw2mCYCRol/D3KLB0j3+cS5L6TTPsQv0H7 0+/jbmY4Dw5Hy4Ip5RvAPZepnbhEalRi2cgG2aleLNRY7UPw+upmzYsKcmiQXDpVlXFV vesl61+WjqjZEeh8jOXv3TaAAVLJIBwsooXJzKPzJhY09Xc2+S/IsygGWqbsVkjZDzl8 o4p/EzQV/sv2nPo7++ZVRrxBaeZfOlujPkZnO8TszLARAnG3TS3tjl13nIGt1SFtcy9n Mxtw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=LYQlqZdN74plUM1RpuldHa0BQ35ZY6EZLl4pihwCwL8=; fh=mBTR+QEYvJfVmfcc2IjQS2/GRet32ih/drcOds1TWBo=; b=eV1v4BaixZ/rk0BrlRnFl4eIJxm8MA3dx8u5xZpYmjBh3I3Lb6g3nLzNrgGse0dZi5 qny5AUah9jUSvCt8XTnWNDeIARGOpDt3eh4Kyl+AKlqhjDsTfD0NqgBupciCbPVKVA8s YuyodSGFyLtRRtJk8KzGOp7f26SCTkQG55TLUFmx05ZfztnM63VOw+j05CrHhoGTyBls C0NRBMpGDEF3+ed+f7dhpF+VJLMzlXepv+aiq5bXLFqzCmliaItlh4IZCTXRaa6pIu0d FWuFnCVfN+PSxKZG2Ac6QMMo+oyyClBW0GeVd4MYQSICvfthT9M8+0AG8sKqn/uJ0TMY YUOg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ABhSRxiy; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-50035-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50035-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=1; AJvYcCVjKWrwVf6lyYp7O0aZ/XPd+e8lecYSm9e+2VOKin3BHd0EFPJKSnU2J/UZuIYGPFkRQmN+3GaZN8hjHnBEW1jyD7WhjdKzZpJuXEehJQ== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id d19-20020a1709067f1300b00a373890b7acsi93881ejr.567.2024.02.02.10.06.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 10:06:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-50035-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=@intel.com header.s=Intel header.b=ABhSRxiy; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-50035-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50035-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.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 8CB011F277EF for ; Fri, 2 Feb 2024 15:41:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C0B1014462A; Fri, 2 Feb 2024 15:40:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="ABhSRxiy" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.18]) (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 40C2C1798F; Fri, 2 Feb 2024 15:40:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706888457; cv=none; b=FU9IDYRq/uE86eAGZruJ0L4Mby1zghccM7uNUYNrac78v78RebUloDj/Roe2V5b1ReBWxIAN6S0+swHSbqWneS9AQOoqHY3uzuTQ1y93PELAk5iXjOD4yYxAbLSp3yHznIaXf/2GZKKJp1Peg3NUmtLxyyLa7m4mr8xlu3fLw6M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706888457; c=relaxed/simple; bh=Wzt2OKA98oRZpOPKfSYMaxS0U0E4dZGMDfd4SSadYFo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=KHTolzLbzp2nwLpBOClcOH5A0Lrtez72tUtTKoaAdrTMqNjREyJdAuV1VDdHpLui9MYgkwsNnWeJcRpnE4CNV7T+BYmSk0gb1Umz9zJTeo679RarQctdt2jMIKtLFgBY3QaU7ABxipF/u2QSMvRkA/QoBcKJFST0oKhb1Gj6zCI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=ABhSRxiy; arc=none smtp.client-ip=198.175.65.18 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1706888457; x=1738424457; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=Wzt2OKA98oRZpOPKfSYMaxS0U0E4dZGMDfd4SSadYFo=; b=ABhSRxiyJy8zTBa61YNqripqMeQNC2WejO5F4DjWpUM4wmERjFmDyeEG +WnOUflOM+Y2QTfYKjoSfhVu2KedSe9sryc9IQmoXyLfFXTo7uwYdNUqa vSj2grjgCZIbjFAxX+SSHq7cZ8pUoax/gdxwgztVak7lCnqH8Lz+9TjxF oOtFAzz+bA6ly+hnraBu4lREf2/+5M917LiwgJzXFlbEZpFZkjYYnw7yL lJ7+5Oi9JCnF/E5tytoGL4Z99op6j6VsuGvnUcBtkSrLuXEJjyl0X2Ah5 1l0xInrbgnsaW31qv8D6E8kv1WyicqIffyPkkv3zH9m62oWcUrF1v267t Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10971"; a="356367" X-IronPort-AV: E=Sophos;i="6.05,238,1701158400"; d="scan'208";a="356367" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orvoesa110.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Feb 2024 07:40:56 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10971"; a="823240563" X-IronPort-AV: E=Sophos;i="6.05,238,1701158400"; d="scan'208";a="823240563" Received: from stinkpipe.fi.intel.com (HELO stinkbox) ([10.237.72.74]) by orsmga001.jf.intel.com with SMTP; 02 Feb 2024 07:40:48 -0800 Received: by stinkbox (sSMTP sendmail emulation); Fri, 02 Feb 2024 17:40:47 +0200 Date: Fri, 2 Feb 2024 17:40:47 +0200 From: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= To: Maxime Ripard Cc: Sebastian Wick , Maarten Lankhorst , Thomas Zimmermann , David Airlie , Daniel Vetter , Emma Anholt , Jonathan Corbet , Sandy Huang , Heiko =?iso-8859-1?Q?St=FCbner?= , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Hans Verkuil , linux-rockchip@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org Subject: Re: Re: [PATCH v5 08/44] drm/connector: hdmi: Add Broadcast RGB property Message-ID: References: <20231207-kms-hdmi-connector-state-v5-0-6538e19d634d@kernel.org> <20231207-kms-hdmi-connector-state-v5-8-6538e19d634d@kernel.org> <20240115143308.GA159345@toolbox> <20240115143720.GA160656@toolbox> <73peztbeeikb3fg6coxu3punxllgtyrmgco34tnxkojtsjbr3s@26bud3sjbcez> 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=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <73peztbeeikb3fg6coxu3punxllgtyrmgco34tnxkojtsjbr3s@26bud3sjbcez> X-Patchwork-Hint: comment On Fri, Feb 02, 2024 at 02:01:39PM +0100, Maxime Ripard wrote: > Hi, > > On Mon, Jan 15, 2024 at 03:37:20PM +0100, Sebastian Wick wrote: > > > > /** > > > > * DOC: HDMI connector properties > > > > * > > > > + * Broadcast RGB > > > > + * Indicates the RGB Quantization Range (Full vs Limited) used. > > > > + * Infoframes will be generated according to that value. > > > > + * > > > > + * The value of this property can be one of the following: > > > > + * > > > > + * Automatic: > > > > + * RGB Range is selected automatically based on the mode > > > > + * according to the HDMI specifications. > > > > + * > > > > + * Full: > > > > + * Full RGB Range is forced. > > > > + * > > > > + * Limited 16:235: > > > > + * Limited RGB Range is forced. Unlike the name suggests, > > > > + * this works for any number of bits-per-component. > > > > + * > > > > + * Drivers can set up this property by calling > > > > + * drm_connector_attach_broadcast_rgb_property(). > > > > + * > > > > > > This is a good time to document this in more detail. There might be two > > > different things being affected: > > > > > > 1. The signalling (InfoFrame/SDP/...) > > > 2. The color pipeline processing > > > > > > All values of Broadcast RGB always affect the color pipeline processing > > > such that a full-range input to the CRTC is converted to either full- or > > > limited-range, depending on what the monitor is supposed to accept. > > > > > > When automatic is selected, does that mean that there is no signalling, > > > or that the signalling matches what the monitor is supposed to accept > > > according to the spec? Also, is this really HDMI specific? > > > > > > When full or limited is selected and the monitor doesn't support the > > > signalling, what happens? > > > > Forgot to mention: user-space still has no control over RGB vs YCbCr on > > the cable, so is this only affecting RGB? If not, how does it affect > > YCbCr? > > So I dug a bit into both the i915 and vc4 drivers, and it looks like if > we're using a YCbCr format, i915 will always use a limited range while > vc4 will follow the value of the property. The property is literally called "Broadcast *RGB*". That should explain why it's only affecting RGB. Full range YCbCr is a much rarer beast so we've never bothered to enable it. Eg. with DP it only became possible with the introduction of the VSC SDP (and I don't recall if there's additional capability checks that are also required). With DP MSA signalling full range YCbCr is not possible at all. I don't recall right now what the HDMI requirements are. -- Ville Syrj?l? Intel