Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp888539pxj; Wed, 16 Jun 2021 16:22:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzvpjrSOYP7r2kxQjIwDcP4dhFtCN6jH50jeyW8ox1Rv40094X74DXxIAmswC1p4e2/GpxJ X-Received: by 2002:a92:190f:: with SMTP id 15mr1287325ilz.45.1623885732121; Wed, 16 Jun 2021 16:22:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623885732; cv=none; d=google.com; s=arc-20160816; b=P9DZtb+Vq4eOsz5BBv50YAKvOTqGgt3Dn0gApiZzdc8bXusLpxKSRu5EneQnZUaPSq vBIH2jb6P6ILC4z/GAR6VsbnwcxiyHvSI0pdtuhe9ZRsYaLTBo1AGir55lQtfYZBF0mI W9+m8VfRanFeNGWpueII74p4XUfrPLk95EusA//uP8uhz2u+v36JegFTNB3Kw/Td6lu3 ghtJ5phx+RXAPLp3GpHl1ZMSvdyWSj/oVljl8lm4Iv7z4Aqq5L4JHhBisM+uuzdFNyqc Baf89hgtgWmMhma+Io155BsTwPG+fcQTMFts0h5ke6+9iMnal38mFjXuJ6H3F7s6AARC rP1g== 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=yhJeoxR0Xe/5aKEYzH/ILJ0EBw33ykNeUVuTMbJGPeM=; b=mrMCQtGNRApci8NYLNmQtwVwY7IXAZM8jps9lx3/o1mcz8b6ApIM6rlja8ggjwCV4Q u/ZrA20E4lCDYPqFU9DH+mR0hzgHcj+DTWgTiWjDfau3eawZ/HGvMPs5cyweU/aDRuVH vz2U8zFQAcBlLS04mH61FfP2Hxb2DKmPFZMFhQCdIDTnuhQe83rCD5PpkkOaGP2+7IBB L2vX9Qigag+GF4dPnc9NNI5MJwXtZI41EeJPjoeM4OCgKr6MFwkplVc6xccvGDoJAngp YSeyWlGMvofAb47X9RIVz3XXYhFwxwBBH1woD0MFOrEEuL7KuhwhLH0ZnhFJxjIzZXx2 96Xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tH3Gulak; 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 d12si4081730jam.9.2021.06.16.16.21.52; Wed, 16 Jun 2021 16:22:12 -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=tH3Gulak; 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 S235475AbhFPPo4 (ORCPT + 99 others); Wed, 16 Jun 2021 11:44:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:51140 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235468AbhFPPmA (ORCPT ); Wed, 16 Jun 2021 11:42:00 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6526D613F0; Wed, 16 Jun 2021 15:37:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1623857865; bh=TphpqG65VcUpX5OfHGY506kWnLKwdbUh7j08C20Yb7Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tH3GulakB3sC2gdXAGfM4stA54JWYPiyCZ3jAeZt6HLH5pUzYo/H1RG6FBYqFXKtP MDW3GXfkFIOi4PLeVzZAGAVCy7isu1CcFoThRzPh/yevo4MivmgXsDlgZERRBpS1rk Mt4HZ/KiBUoKCnUjtvqdfiXhLt/6J8fov/ItRLQg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Bindu Ramamurthy , Roman Li , Alex Deucher , Sasha Levin Subject: [PATCH 5.12 40/48] drm/amd/display: Allow bandwidth validation for 0 streams. Date: Wed, 16 Jun 2021 17:33:50 +0200 Message-Id: <20210616152837.910135347@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210616152836.655643420@linuxfoundation.org> References: <20210616152836.655643420@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: Bindu Ramamurthy [ Upstream commit ba8e59773ae59818695d1e20b8939282da80ec8c ] [Why] Bandwidth calculations are triggered for non zero streams, and in case of 0 streams, these calculations were skipped with pstate status not being updated. [How] As the pstate status is applicable for non zero streams, check added for allowing 0 streams inline with dcn internal bandwidth validations. Signed-off-by: Bindu Ramamurthy Reviewed-by: Roman Li Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c index bfbc23b76cd5..3e3c898848bd 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c +++ b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c @@ -3231,7 +3231,7 @@ static noinline bool dcn20_validate_bandwidth_fp(struct dc *dc, voltage_supported = dcn20_validate_bandwidth_internal(dc, context, false); dummy_pstate_supported = context->bw_ctx.bw.dcn.clk.p_state_change_support; - if (voltage_supported && dummy_pstate_supported) { + if (voltage_supported && (dummy_pstate_supported || !(context->stream_count))) { context->bw_ctx.bw.dcn.clk.p_state_change_support = false; goto restore_dml_state; } -- 2.30.2