From mboxrd@z Thu Jan 1 00:00:00 1970 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 38ACD6BFD4 for ; Fri, 1 Mar 2024 11:29:47 +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=1709292588; cv=none; b=m5Leu9J5se1Ln0fjoRN8pdb+xni19KeAhDz+BP8fZIBxoge6kZqHLS08AzbQh398RdJRjnOt4TQgiQCRsNxpUhb2h3FHFpvZbBitaJftVW1x3AzA7TGPG1XOj2BWfDC7MvQ6C9AgXukqCagbwRKyk0Z1EdCPTN1KOt6ZXj51Hm0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709292588; c=relaxed/simple; bh=zog0qIVMaTlG1ASknli4b3SB8p1aLaDCqtbud0WxAu0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Fu4uXeZ0eexAOVYa9ccN7bwO0wqChHbbZPC88PpwSiNqeEBCAF1cw4MSwkqbdwi+AjP+z5O8i1yBT6aNLO7VSrEHycXqhkue0a44Mj06z31vuGXPLPfr/rlwljKOvyT0eQFkCNEhox0sA/crLHApwYT7bn47t2Y2et/zbk3st4k= 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=F9pGdZbc; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="F9pGdZbc" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1709292586; 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=qRUqDJ3Iv/k5nE0Cga6hqzTdj9gEhtnN2QTBMasCuKc=; b=F9pGdZbcEzpk40Ls1JSsenOgFOvaouCHNc/b1trORFyX7Dq7fonr2Nff8u9x0ZoFkeLj1d QoVVBc6/JRqybXGnpaBkYPJPvertPwv2lJ3iCnrWqfWxTncuTSCJa5I9ewxoqYVXxPRz2O ft3An8HMqP3zlsLD9b2v75Txn+IDUxU= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-32-uJ6B1NG4MTKzg4yhtvc5Pg-1; Fri, 01 Mar 2024 06:29:45 -0500 X-MC-Unique: uJ6B1NG4MTKzg4yhtvc5Pg-1 Received: by mail-wm1-f70.google.com with SMTP id 5b1f17b1804b1-412977dd5a1so9555405e9.1 for ; Fri, 01 Mar 2024 03:29:44 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709292584; x=1709897384; 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=qRUqDJ3Iv/k5nE0Cga6hqzTdj9gEhtnN2QTBMasCuKc=; b=Hbk0MZ3mYYWtWCVx0fHF9Mdp0VMVOUo+ZHngI2WSisXPdCpxbmVry7Fs+Cs2DFsKJN 9t3qdiJfjpXzbC2aH+FVxF9dpWYhYc3K58eZAGYBORY2xkrF5Pcm3A5Gm9FHrkDEER5g EaVg/VloG5aVJnm/hs9OU74MP4y2cH03rxiMcj7CBUNVWfcwn6Nlqy/yikYsh+hp0Yrj njoOPkcKkqhHwYnVQOYWctZHAfg36zLgzz7Y9dZCVCHtcbxhUSCZzDT8nnChlMdPRWT0 OmrW2FkD1bJFXMHDtIDGSNdGDoRdmABFScOfXYo3nRmCX2sjYqHxASaQfHAnnipJMRUM 1lzA== X-Forwarded-Encrypted: i=1; AJvYcCUDRjuRgJqUR0IKkGJhR9TsVB+pBYpciQBxYm0FiU8jgH6Xb1A19wC4FpePcrNCAudRiF2nMu9DCWR7viQ/jKUtqD4W0vSOirTH X-Gm-Message-State: AOJu0Yx38THQbUnQQa2KxF5CL6fYNhUZdMtGRZA1dqPoDu5eOTjzVKWO x9251iJnKGtXrlGxSGJvwH7ffQXDjI/PWbwdAm5jcxDhCuwz9KvWYLV4iyClXNkNjvGc0yDgIz4 MbfodtvZRDXjuSV6iNA6LdI5cuLKF6+P9nFnk5iJ3LRNWfj7m/Bjo0UxTww== X-Received: by 2002:a05:600c:4fc4:b0:412:c8c9:c844 with SMTP id o4-20020a05600c4fc400b00412c8c9c844mr988482wmq.26.1709292584012; Fri, 01 Mar 2024 03:29:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IEKqlwQ+JstuXu5h4wbg4ZOpZ/dkea6nQ1ibG6iOdPso+qOIY2FCKYMPY6GH4tsyMvb9w+yJg== X-Received: by 2002:a05:600c:4fc4:b0:412:c8c9:c844 with SMTP id o4-20020a05600c4fc400b00412c8c9c844mr988453wmq.26.1709292583675; Fri, 01 Mar 2024 03:29:43 -0800 (PST) Received: from toolbox ([2001:9e8:89a0:c500:c65:1f3a:8c08:2a1d]) by smtp.gmail.com with ESMTPSA id bi19-20020a05600c3d9300b00412ca030252sm1036720wmb.30.2024.03.01.03.29.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 03:29:43 -0800 (PST) Date: Fri, 1 Mar 2024 12:29:41 +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: <20240301112941.GE166694@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> Precedence: bulk X-Mailing-List: linux-doc@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-light-impressive-grasshopper-adabeb@houat> 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". > Maxime > From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 23869C5478C for ; Fri, 1 Mar 2024 11:31:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=X8vdXv/bxVslVKPB3dro3PZQAyvdWEgmLeYtT7SbKEo=; b=GEOeoCbNbOVWkz kH+VyNwEHY/I7tuf4CLx0WUMo1r7F9TLMfm+hYz+qmYMvDj/fPchG6n0lFS1wU1lefe4ANhH/IBhh GXDrKQ6gzpd3+rHXcq1FazAJeQx3F7c1CX2UgNhrXx7a80IUmlSYAjJ3X0UfP9NizyKzd80B85JmS 23caxYVlN8+K/3dbv5bnbzXjAax056xE//1WbaK2dTDrhTkyIZwX8Uj00nSE7KW3/57NOuzhCsJ4c lUl5t1LS2w0drh7lavoWlzfp0cF3F7A96LFtslfVPatWb1FPzrnZLWvoNWAxRZj8zowUVEfca/N6F 6l8UNj30AAG7N3EjL8Zw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rg16i-0000000Hb7p-0WVo; Fri, 01 Mar 2024 11:31:16 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rg16d-0000000Hb2X-1mLD for linux-rockchip@lists.infradead.org; Fri, 01 Mar 2024 11:31:14 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1709292669; 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=qRUqDJ3Iv/k5nE0Cga6hqzTdj9gEhtnN2QTBMasCuKc=; b=inR0I0fZEt1MfWlHqLLYIzCNNzLRI9sSB7cAJCBfIP5IhKfbMgGMyEBazFLl8kX0RzZCxd Z/c/tqUfDHfGrofh7me0JxV8hR3JjGPFPkbeZ1IrWdxQ7YISlW5QcpMGieB4+ZBW/vCK5U LDpmVrK4OZb+hFzKztOruYCfcjsvxyc= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-330-u0xQGNIJOr29WUSeiW-r8A-1; Fri, 01 Mar 2024 06:29:45 -0500 X-MC-Unique: u0xQGNIJOr29WUSeiW-r8A-1 Received: by mail-wm1-f72.google.com with SMTP id 5b1f17b1804b1-412add7c18fso9527995e9.2 for ; Fri, 01 Mar 2024 03:29:44 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709292584; x=1709897384; 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=qRUqDJ3Iv/k5nE0Cga6hqzTdj9gEhtnN2QTBMasCuKc=; b=we0C6YjGFOvMVcbL/icsuZHRXRlxlj743UQX3DyuMBLY5ggXzlK4OSqzY9uPARrB08 rqG8kI+dcfYoAgTSg94FjoWrxA0dzx3PrRTYCVJzYbKLFEgqyJglqLjEYXEZzEXV/MqS 3TVgkHhZ733K/fGFSP8/z62gsqUaTJlb21FxEeOLoIuj0eucDNLOuTsLqI3adfG9g3P/ bumq0SZoelapcZQPlDNH3f2LMSdgh/sAOMlWZ3kAp+PUNZLR+Ehf0YUtXSJa4nVuYwAu cKHWStGU/Wyumfbbkr1c3xytejgV6MM4tA7G+Bzsw/vogPM7TgHaZ6+7Bt8HuI6R0Mg4 /iMg== X-Forwarded-Encrypted: i=1; AJvYcCXR3SEYJrkewMRS3Xnl28/tsfjQXhEG//OA5IWcdpNygC0mULr4BoZ/ymvuplr6mmXWdnQAaj4iFy4G8dfQ3ISlZwuaJam2t3VfqbEwgdjCpsem X-Gm-Message-State: AOJu0Yys/4KYXGlCGdq4sP0AXU6J0BfIZOrH+TWH2J4P2er5GcaBphCT bRv134baWl1e0gSJD+8Q7GUDsuIIrLCJikdhYxb5CjY7g3zwe1wBg7K9055zHVCVifeRvl2d0lq w2pXtbFWs3t4CvjuFcXem0CQ1TGUiRdGFISptR6f0mM0O7pIEKR66Be/rpwyLpdn9Oxa6Iw== X-Received: by 2002:a05:600c:4fc4:b0:412:c8c9:c844 with SMTP id o4-20020a05600c4fc400b00412c8c9c844mr988474wmq.26.1709292584000; Fri, 01 Mar 2024 03:29:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IEKqlwQ+JstuXu5h4wbg4ZOpZ/dkea6nQ1ibG6iOdPso+qOIY2FCKYMPY6GH4tsyMvb9w+yJg== X-Received: by 2002:a05:600c:4fc4:b0:412:c8c9:c844 with SMTP id o4-20020a05600c4fc400b00412c8c9c844mr988453wmq.26.1709292583675; Fri, 01 Mar 2024 03:29:43 -0800 (PST) Received: from toolbox ([2001:9e8:89a0:c500:c65:1f3a:8c08:2a1d]) by smtp.gmail.com with ESMTPSA id bi19-20020a05600c3d9300b00412ca030252sm1036720wmb.30.2024.03.01.03.29.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 03:29:43 -0800 (PST) Date: Fri, 1 Mar 2024 12:29:41 +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: <20240301112941.GE166694@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> MIME-Version: 1.0 In-Reply-To: <20240301-light-impressive-grasshopper-adabeb@houat> X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Disposition: inline X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240301_033111_780483_A17CBC7C X-CRM114-Status: GOOD ( 19.92 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org 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". > Maxime > _______________________________________________ Linux-rockchip mailing list Linux-rockchip@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-rockchip From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 48660C5478C for ; Fri, 1 Mar 2024 11:30:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=mLbriYLv7U/s24uXE3tpficD4sc02LBu7TQH68Isqqs=; b=bf5asU86mZ5jw6 WxmogAruHl90wCrL4biXY+zm0CjZQNmWpAo7en9Gu3E4hfuJrIJIGm25ZYQmbbIgKI9tDb94o2GSk zbebgyd10+G2JzV6P6MA4UUd6zX2Ix9HLckshz4JYZQfy/RnxMdfBwQmaAGZBVVh3boiiQfdsOtd4 0U8kx8W5AA12O356ieOaVtkzUr69H9ARgCkyGdM+rOvEQ088RbtsY8mzd0wvrHdRuZBSzT+SWSem1 40t1+eg3feug5LCDm2hCtsDcsvy1HpOU5PudYoo6CFnebNQu0faSI7XcrZl5UrDSVCDO5QrHM5dAy Izc30ZhcWGeZ9BvtxE9Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rg15Z-0000000HaZK-0639; Fri, 01 Mar 2024 11:30:05 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rg15H-0000000HaMh-1k1r for linux-arm-kernel@lists.infradead.org; Fri, 01 Mar 2024 11:30:03 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1709292586; 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=qRUqDJ3Iv/k5nE0Cga6hqzTdj9gEhtnN2QTBMasCuKc=; b=F9pGdZbcEzpk40Ls1JSsenOgFOvaouCHNc/b1trORFyX7Dq7fonr2Nff8u9x0ZoFkeLj1d QoVVBc6/JRqybXGnpaBkYPJPvertPwv2lJ3iCnrWqfWxTncuTSCJa5I9ewxoqYVXxPRz2O ft3An8HMqP3zlsLD9b2v75Txn+IDUxU= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-607-wIrxS5MiPG6T3-855NnynA-1; Fri, 01 Mar 2024 06:29:45 -0500 X-MC-Unique: wIrxS5MiPG6T3-855NnynA-1 Received: by mail-wm1-f71.google.com with SMTP id 5b1f17b1804b1-412aae6022bso9596735e9.0 for ; Fri, 01 Mar 2024 03:29:45 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709292584; x=1709897384; 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=qRUqDJ3Iv/k5nE0Cga6hqzTdj9gEhtnN2QTBMasCuKc=; b=wbzi4WRyN3qv/pA/TOhy1kHMK5M7MOBXpb2U80PI5LT8ZFRwEMLJQ1kb0vcQne6Cmo zM86UtyRlhJIqGuwf9wAQkuKRrGKfdQcX9692By+S8qKhuj6TEOmEJYJVjICLg9GFLbx Pq9T7zBdYAFRdBaZw4ocVjHWATCTcksoD7FY1Hni0qNJYpWb9xCtvrqd9x3UYMXb++6K Kg5qL+cCR2A4TX+KqFxSXzX023PnL+oFt7VZxcy0ZeQSqXjnqeG+zj7yfaphArsocYDl llyoR+dBR6tfuzN6i8UUReD+KWhkTAEslIVvsvg/9N7nRYGCvLhWO4mDXAFZ2IRxYyzG OVOQ== X-Forwarded-Encrypted: i=1; AJvYcCXig8NNYvKVerVGCrJZ5CR+71VJb30D8Ofyofw2DNXpNn8uY7/ZadmbM6UydYikAmQBHTySEAW2ao67+479mTOk02D9jpmvG6Nz63VSIHXN8N6H/3w= X-Gm-Message-State: AOJu0Ywo+3IADgI9XwVO9Nkb6lX6dDUuRMx2kBRZK2cIfxSdUuJHSD6r MI2GEudt6B8gSd11mXrZNbx86faem7O6SzALi7TYS293rg2VBpg0JxRMQnV4C6nFxTk5B5i6OWw NOFNEbs4iUFyZf60KKgBH1wbKP5/EF6f9an3Yr8Jbz4l46HmYrpnsbqLR+HOJXkp+tFTLG27b X-Received: by 2002:a05:600c:4fc4:b0:412:c8c9:c844 with SMTP id o4-20020a05600c4fc400b00412c8c9c844mr988480wmq.26.1709292584008; Fri, 01 Mar 2024 03:29:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IEKqlwQ+JstuXu5h4wbg4ZOpZ/dkea6nQ1ibG6iOdPso+qOIY2FCKYMPY6GH4tsyMvb9w+yJg== X-Received: by 2002:a05:600c:4fc4:b0:412:c8c9:c844 with SMTP id o4-20020a05600c4fc400b00412c8c9c844mr988453wmq.26.1709292583675; Fri, 01 Mar 2024 03:29:43 -0800 (PST) Received: from toolbox ([2001:9e8:89a0:c500:c65:1f3a:8c08:2a1d]) by smtp.gmail.com with ESMTPSA id bi19-20020a05600c3d9300b00412ca030252sm1036720wmb.30.2024.03.01.03.29.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 03:29:43 -0800 (PST) Date: Fri, 1 Mar 2024 12:29:41 +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: <20240301112941.GE166694@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> MIME-Version: 1.0 In-Reply-To: <20240301-light-impressive-grasshopper-adabeb@houat> X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Disposition: inline X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240301_032947_748233_162415DD X-CRM114-Status: GOOD ( 21.34 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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". > Maxime > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel