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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 D3956C433F5 for ; Tue, 25 Jan 2022 14:29:35 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 23F4F10E3E4; Tue, 25 Jan 2022 14:29:34 +0000 (UTC) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5601210E31D for ; Tue, 25 Jan 2022 14:29:32 +0000 (UTC) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id B3B965C01A4; Tue, 25 Jan 2022 09:29:31 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 25 Jan 2022 09:29:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h=cc :cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to; s=fm1; bh=zkBm/4ZltxxjQFZ2KTdj9lKGrDgPS/EGZfBlNJ PoI2k=; b=G7IZ1MVKyBRQVB7nixFIaCmcBEARgoR92y6bGKOKanDVAD4X8jqfsa lE/p88+FUSaOUQLnIwNz5MMoTyJm4exedCQ97+vqaqw1bUGdTDDGQj8fX76V5Wq2 0NBiXukW5/Bc26/ICkLMrAJmi2xK92ulFozNA0x2Eb5ACyORtHrALqMt1PfHJ/H/ +vrkL8OsQIwgytcbYA7+rebMaxJ8Mz7fNhOH8cuzT1+nGofZ5mf+iposeFmm1355 cOUCTXZDZtdI32VW0Ov490hsu4mJKem2dtzVPF0y+gP9CZ6Fdk8c34av4k94F2Fu 26VxIZ9ZKhaV9BOhcuZqja92+abFRWqw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=zkBm/4 ZltxxjQFZ2KTdj9lKGrDgPS/EGZfBlNJPoI2k=; b=LXPUvWMZ7oP48HTENVPGyv fRjtfSBAHM569uGewIawARsgqamP+L+32aGiosLoNd97JZ7fcymjjD1OGxTKKALi xNQ5ujW6pdF7xQk5JxGwdB5JhXyiLeEb+2Cl1PAzh4QHy5kAvTvQtPnltJp80XBw bdSUzR0GhJWQ1SF1g1tIg/KHGrto5mBX3JMZuMXBb7T2OmFIfIjFBT9s6aRYcZ63 UUplMsZ5v/lLS8P/RSoKQOF1lB6ecaz0LpPDz+MGMrAkZ8UqS7DA2PEuVN7vUxD8 vZRMjZlByj3U25gPZ34ybqJHCfw4BD+Igtaq+KwPBe10aCzzLwlEg2dRCri8oFwA == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrvdelgdeifecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkofggtgfgsehtkeertdertdejnecuhfhrohhmpeforgigihhmvgcu tfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuggftrfgrthhtvg hrnhepueeggefgudeigeekfeffteehtdejfffhgeffueeftedugfeuffdvffdtveegleeh necuffhomhgrihhnpehfrhgvvgguvghskhhtohhprdhorhhgnecuvehluhhsthgvrhfuih iivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgrgihimhgvsegtvghrnhhordht vggthh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 25 Jan 2022 09:29:30 -0500 (EST) From: Maxime Ripard To: Daniel Vetter , David Airlie , Maarten Lankhorst , Thomas Zimmermann , Maxime Ripard Subject: [PATCH] drm/edid: Clear EDID Deep Color Modes in drm_reset_display_info() Date: Tue, 25 Jan 2022 15:29:28 +0100 Message-Id: <20220125142928.750258-1-maxime@cerno.tech> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jani Nikula , dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Even though we have the other drm_display_info fields reset, the DC modes are missing. This shouldn't be an issue since it's explicitly reset every time a new EDID is parsed. Suggested-by: Ville Syrjälä Signed-off-by: Maxime Ripard Reviewed-by: Jani Nikula Reviewed-by: Ville Syrjälä Link: https://patchwork.freedesktop.org/patch/msgid/20220125093251.594772-1-maxime@cerno.tech --- drivers/gpu/drm/drm_edid.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c index a504542238ed..a7663f9a11d2 100644 --- a/drivers/gpu/drm/drm_edid.c +++ b/drivers/gpu/drm/drm_edid.c @@ -5340,6 +5340,9 @@ drm_reset_display_info(struct drm_connector *connector) info->rgb_quant_range_selectable = false; memset(&info->hdmi, 0, sizeof(info->hdmi)); + info->edid_hdmi_rgb444_dc_modes = 0; + info->edid_hdmi_ycbcr444_dc_modes = 0; + info->non_desktop = 0; memset(&info->monitor_range, 0, sizeof(info->monitor_range)); -- 2.34.1