Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1171431ybl; Thu, 23 Jan 2020 15:08:04 -0800 (PST) X-Google-Smtp-Source: APXvYqzB52lJsPdxYsAsoUL0ml9rB/QTjXQTkhz4SfaLxuMftCVgsox8DC82JT15m6TmTarb0FAm X-Received: by 2002:aca:4442:: with SMTP id r63mr210922oia.33.1579820884161; Thu, 23 Jan 2020 15:08:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579820884; cv=none; d=google.com; s=arc-20160816; b=Y4kdyf2WCHK6kBehDigNpQOUFL/HiN5wICauWFZZTFTNN7pPhf7AwOhNS5t9INKKFH RQtFLKIUl6Qg8sGTThnkiSAweZe+hCT22er80Kd7PRWts+GHAaCmN61x7mAf0LShpyMm WZFdVQjL7dXY+duzMZ2nU87GgKSt6+0V8KMykhCZwxUuQWbQ76Hl5Z4kGCEPVh6hD76F xmQAJQFAOmwQNN39O1QuHLy+bN2Ys0dQ5pc2ARlTwcDrNeTnSuIZYEnS9b6Y/k9RhjDY KAVeWiEc6UBRPGwc8hp4b9iqob5AzFe0bo7haK1gb59sCwi3O7iwsqpMQb5FYFcwxGnk mL9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature; bh=hgQq6Cm2C8WFWwe4zjX8Nmm79ZjwTRrTKn+plFJyrz8=; b=E7C9TKzLiYmeWLWyq1Z/s+BsHuHfq2DtAHgpYrQq0Anqefgs4e90rw5jAJMRTIVLCM qzZXkSN6utp2OVsqP6wTw+HIup1yg90934gf0dO6oOsETDxrGejyrYlFrmaDEfciIUkD DneVNX9VWUFzu2TMib+Ezh/hZetOWc/4gC/WDIbOwfkmiDXatzdOfE/M6ZFPUjja++P5 lCnkpelr3bm/Uw2+9Ma+biCgzpk3JHo8oLizbfoDmhWhj/+sjuJ4ZH0zW2qZ+GryHbo+ 3jrsCYC+gY6s5hWAJFrIXDK9U5Ei6zv8ZOSS0JsOJ+jVnDK60zA3RCvApbqZRKW602RY N77Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=N7TA0gcQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a22si498081oia.15.2020.01.23.15.07.49; Thu, 23 Jan 2020 15:08:04 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=N7TA0gcQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729537AbgAWXGM (ORCPT + 99 others); Thu, 23 Jan 2020 18:06:12 -0500 Received: from mail25.static.mailgun.info ([104.130.122.25]:25192 "EHLO mail25.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727056AbgAWXGL (ORCPT ); Thu, 23 Jan 2020 18:06:11 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1579820771; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=hgQq6Cm2C8WFWwe4zjX8Nmm79ZjwTRrTKn+plFJyrz8=; b=N7TA0gcQ27QJ03RE3iQuHPQFObslW+B6B9HFg4Oqlrpo2k+0ZWIWtTPoT3PYThdYvmi5hBeD 2wu6/QlurXm1Mfmyw0iRlmtiyUX0C+V5NFYZtEvEZ9SuTfv94ucNy6bGPhFL2DadVVOQ/HoE HG2qCyQFM68J8PF5SFxfPn+Rl1A= X-Mailgun-Sending-Ip: 104.130.122.25 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by mxa.mailgun.org with ESMTP id 5e2a26de.7f30f685b110-smtp-out-n01; Thu, 23 Jan 2020 23:06:06 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 7FAF5C447A3; Thu, 23 Jan 2020 23:06:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: abhinavk) by smtp.codeaurora.org (Postfix) with ESMTPSA id ADB32C43383; Thu, 23 Jan 2020 23:06:03 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Thu, 23 Jan 2020 15:06:03 -0800 From: abhinavk@codeaurora.org To: =?UTF-8?Q?Ville_Syrj=C3=A4l=C3=A4?= Cc: Laurentiu Palcu , Daniel Vetter , Uma Shankar , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, dl-linux-imx , nganji@codeaurora.org, aravindh@codeaurora.org, adelva@google.com, seanpaul@chromium.org, jsanka@codeaurora.org Subject: Re: [EXT] Re: [PATCH] drm: fix HDR static metadata type field numbering In-Reply-To: <20191128111418.GP1208@intel.com> References: <1574865719-24490-1-git-send-email-laurentiu.palcu@nxp.com> <20191127151703.GJ1208@intel.com> <20191128083940.GC10251@fsr-ub1664-121> <20191128111418.GP1208@intel.com> Message-ID: X-Sender: abhinavk@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Ville and Laurentiu On 2019-11-28 03:14, Ville Syrjälä wrote: > On Thu, Nov 28, 2019 at 08:39:41AM +0000, Laurentiu Palcu wrote: >> On Wed, Nov 27, 2019 at 05:17:03PM +0200, Ville Syrjälä wrote: >> > Caution: EXT Email >> > >> > On Wed, Nov 27, 2019 at 02:42:35PM +0000, Laurentiu Palcu wrote: >> > > According to CTA-861 specification, HDR static metadata data block allows a >> > > sink to indicate which HDR metadata types it supports by setting the SM_0 to >> > > SM_7 bits. Currently, only Static Metadata Type 1 is supported and this is >> > > indicated by setting the SM_0 bit to 1. >> > > >> > > However, the connector->hdr_sink_metadata.hdmi_type1.metadata_type is always >> > > 0, because hdr_metadata_type() in drm_edid.c checks the wrong bit. >> > > >> > > This patch corrects the HDMI_STATIC_METADATA_TYPE1 bit position. >> > >> > Was confused for a while why this has even been workning, but I guess >> > that's due to userspace populating the metadata infoframe blob correctly >> > even if we misreported the metadata types in the parsed EDID metadata >> > blob. >> > >> > Hmm. Actually on further inspection this all seems to be dead code. The >> > only thing we seem to use from the parsed EDID metadata stuff is >> > eotf bitmask. We check that in drm_hdmi_infoframe_set_hdr_metadata() >> > but we don't check the metadata type. >> > >> > Maybe we should just nuke this EDID parsing stuff entirely? Seems >> > pretty much pointless. >> >> I've been thinking about that but we may need the rest of the fields >> as >> well, even though they're not currently used. I'm referring to sink's >> min/max luminance data. Shouldn't we also check min/max cll, besides >> eotf, to make sure the source does not pass higher/lower luminance >> values, than the sink supports, for optimal content rendering? >> >> However, CTA-861 is not very clear on how a sink should behave if >> the CLL values exceed the allowed range... :/ Also, if the CLL range >> or >> the FALL values passed in the DRM infoframe exceed the sink's >> advertised >> min/max values, I guess the sink cannot go lower/higher than it can >> anyway. In which case, we don't really need the rest of the HDR static >> metadata block and nuking that part should be ok. > > I'm thinking we should just conclude that such userspace is a > buggy mess and deserves whatever it gets. [Abhinav] The display driver for MSM chipsets relies on the drm_edid.c parsing for the CEA extension blocks. The parts which use this shall be posted later when we post our changes for HDR support for the display driver for MSM chipset. Meanwhile, if there are no further concerns on this, we would like to go ahead with this change and get it merged as its an important bug fix. Thanks.