Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2484156pxj; Mon, 10 May 2021 04:12:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNXC8N2/BHolb3IzRl/KjDivL5Yl6wI/OZzw+fMvHn2EsSprwdxXr8Hu9P1UOOO+IKoR3s X-Received: by 2002:a05:6402:3126:: with SMTP id dd6mr28230858edb.379.1620645145452; Mon, 10 May 2021 04:12:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620645145; cv=none; d=google.com; s=arc-20160816; b=MuesWAs06NxbNi7nk2BDNLTMC1GSesGVef0KmGKQZKqhS8nY3rNBny1Wy5awbQxoVQ jErvVw5sVup7KCtPDHOsfPWmdOlsENXp2Uv/16ZQPl51Rbsgn9JXKcV5crTdMwZkDbwj yHGnc4QvwfHasI1WJ82b8jQZIljpKV5x5qSf5vbc0TikDUNda6d9OAXL0LWAnWt8Ugxp /e+A1/hNg2n+ZWhT+vKtMD9pS6Yu0qBG3+KCxpD9VOHzFMJCowLLrGupbjplOu7GUytO QVTxuB/tqI8EhxEIOfIZlbuCM0mGESsRDRLv33TMq1mTwUHwr3Gd4I09KRIRUWhsPLrr 1Dgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=wHIN5HidKhMFNycFCKzJYOmrYLWWI4daeSLntZzTJvY=; b=qtdrT1ZDB5F8syZkHd8OcR8bOLulmtL5+SUwVQ4GYFFWNyLp03BwktzHAk9xquaWPw VubZBRWcBVDQzWXJKd6+LMRvVUR9koPeQEmIZLfFBCvcofncC5+IZEZwblUhsM3P1KJd puOufbG1aCZRsyicjWyuz/Dg0NJX6G2D08b7okO/UntfVD4vOO5WXPCSpwRIb8QNlfP+ GIetDk5MRTbvbLpPbH3gqvr6kivoG75lYmcm8UWzHgY/PmvrC2TZCfDHZw8wZEeWZ2cI +FMRyDZFKyk09JKsPNBLIN8UGafXz2rga4g4J0Dx9zJlH3A64r1TI9grVvpR36HPeP8q 6Mgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=LAgh6IsO; 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=pass (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 c17si13531824ede.337.2021.05.10.04.12.01; Mon, 10 May 2021 04:12:25 -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=@linuxfoundation.org header.s=korg header.b=LAgh6IsO; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236444AbhEJLIJ (ORCPT + 99 others); Mon, 10 May 2021 07:08:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:59364 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232544AbhEJKrv (ORCPT ); Mon, 10 May 2021 06:47:51 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C8DE76193F; Mon, 10 May 2021 10:37:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620643067; bh=eTN+de3NHgpVDaYMabz2GfZkvrhhJsTxTr5eGN63y5k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LAgh6IsOBt0c9R3DqF3CYWSoEhjc5/mRLJjzCWWXJe4t2rbT5Nglqv+ek1mQPJhkC Mruyij5lYY0Kq9vV23B8c73rnG8uJe3f2bi74J+Yyt0L5WvY/g1H6ORYExRAe6PChr tkP7HQbosyrPsQvzITyONZaegH5IYc11CvK1W3Q8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Eryk Brol , Bindu Ramamurthy , Daniel Wheeler , Alex Deucher , Sasha Levin Subject: [PATCH 5.10 119/299] drm/amd/display: Check for DSC support instead of ASIC revision Date: Mon, 10 May 2021 12:18:36 +0200 Message-Id: <20210510102008.904924849@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210510102004.821838356@linuxfoundation.org> References: <20210510102004.821838356@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Eryk Brol [ Upstream commit 349a19b2f1b01e713268c7de9944ad669ccdf369 ] [why] This check for ASIC revision is no longer useful and causes lightup issues after a topology change in MST DSC scenario. In this case, DSC configs should be recalculated for the new topology. This check prevented that from happening on certain ASICs that do, in fact, support DSC. [how] Change the ASIC revision to instead check if DSC is supported. Signed-off-by: Eryk Brol Acked-by: Bindu Ramamurthy Tested-by: Daniel Wheeler Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c index c07737c45677..830d302be045 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -8659,7 +8659,7 @@ static int amdgpu_dm_atomic_check(struct drm_device *dev, } #if defined(CONFIG_DRM_AMD_DC_DCN) - if (adev->asic_type >= CHIP_NAVI10) { + if (dc_resource_is_dsc_encoding_supported(dc)) { for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { if (drm_atomic_crtc_needs_modeset(new_crtc_state)) { ret = add_affected_mst_dsc_crtcs(state, crtc); -- 2.30.2