Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2027176pxa; Mon, 24 Aug 2020 03:01:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz5BOlClZyN8Cvx0kG0lYjaLBLn66ydjVQjVlmAa8NZ0ekkm1y1bKDd+OkQ1q/an1DdcQhW X-Received: by 2002:a17:906:688c:: with SMTP id n12mr4798881ejr.3.1598263310488; Mon, 24 Aug 2020 03:01:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598263310; cv=none; d=google.com; s=arc-20160816; b=v9M5xfoOZBpWZfIa6h61R6ms7Xy8uDkJZMst9DGkE0Dl5jMsf0F2jA9vSvNQmxE/J9 3j/89tdLeh/tgH73DmmnKTgdJWey7A8eAk1fMHna3kKD+bc9PXqIT5EIj8/DnB5VSNUI punKdj0wgc8jiJlKNtDhfNpYTcA058dZ+kPEmIe9wMBsVWF0VJ3ldWMULnd98TLYvZQJ x2LdDpoCRRKlcjmZwWAX1y7YvNZc1DfINHvWSvKQbwlCYC6PTJdRLSIxaUW49iSmw63r Knh6EJswRrQpWFkgCMdam+kVXdhaPEuauyIV3m2YdyK2DWYEKkLS+YCUIGZRkg9isLDw 9naw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=cQ+mtg74dCfhfWqEmw0mTrgy18O3takZfJhpMJTB0HQ=; b=W/guro4nPLC5nAoLBjWZd5c3FQbJZMifCtXVNWvPy6mtg2KPv4GlLHScKZ1m22iBpK r9lTOGdUZ0XSLcqCn0lArDO5YUesGxYkXfU55/O+tvoPQGHvowGulUKHE8eyYXrd2gD7 1o4zV/w25s/EdY280HMNPOGfCULH+4AnJJI0Eo8kz7mMpAn7CdW9Fz7ZufJ1WCzYUE6o 7/AM3ZBQrL5jOc9W0hwa52bb6mh2D8JECwIzDgDc2lihp2CTyjG3KP5AIGLh+a0ccMp/ GdXiH1Weg+pnU3hXiLiVLTcXzjnLyESOM5cCVYq6jIry/ljma8A5AvbqkZmGwDQgR1X9 jzZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="btzR8/g2"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bm7si2005872edb.457.2020.08.24.03.01.27; Mon, 24 Aug 2020 03:01:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="btzR8/g2"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727066AbgHXIdf (ORCPT + 99 others); Mon, 24 Aug 2020 04:33:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:41068 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727040AbgHXId0 (ORCPT ); Mon, 24 Aug 2020 04:33:26 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 06913206F0; Mon, 24 Aug 2020 08:33:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1598258006; bh=4CNSfVrCBAZQkhDGS1J1IlqaAAqRPrPo8zCzlL0vzx4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=btzR8/g2fMZy85OD4fnQAjSGjwrZoSWKFtQA/0c4yffhLXIs8NjcCW6iVlyY9HWvq 1cih+fWF1Uxj/Msixn8TMBgFdACXmCmn82TYh0X1WW1ekig1ye8uhCQHsvlzVqhw85 QE00NMODi8Ub81yr8YC1CWdaUmYA7ANLzC5uk5kk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Stylon Wang , Nicholas Kazlauskas , Qingqing Zhuo , Alex Deucher Subject: [PATCH 5.8 039/148] drm/amd/display: Fix EDID parsing after resume from suspend Date: Mon, 24 Aug 2020 10:28:57 +0200 Message-Id: <20200824082415.919874230@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200824082413.900489417@linuxfoundation.org> References: <20200824082413.900489417@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Stylon Wang commit b24bdc37d03a0478189e20a50286092840f414fa upstream. [Why] Resuming from suspend, CEA blocks from EDID are not parsed and no video modes can support YUV420. When this happens, output bpc cannot go over 8-bit with 4K modes on HDMI. [How] In amdgpu_dm_update_connector_after_detect(), drm_add_edid_modes() is called after drm_connector_update_edid_property() to fully parse EDID and update display info. Cc: stable@vger.kernel.org Signed-off-by: Stylon Wang Reviewed-by: Nicholas Kazlauskas Acked-by: Qingqing Zhuo Signed-off-by: Alex Deucher Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -2184,6 +2184,7 @@ void amdgpu_dm_update_connector_after_de drm_connector_update_edid_property(connector, aconnector->edid); + drm_add_edid_modes(connector, aconnector->edid); if (aconnector->dc_link->aux_mode) drm_dp_cec_set_edid(&aconnector->dm_dp_aux.aux,