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 9E55ED3B7EA for ; Tue, 9 Dec 2025 12:53:29 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4F7E110E541; Tue, 9 Dec 2025 12:53:29 +0000 (UTC) Received: from coelho.fi (coelho.fi [88.99.146.29]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9B21010E541; Tue, 9 Dec 2025 12:53:28 +0000 (UTC) Received: from mobile-access-5d6aa7-235.dhcp.inet.fi ([93.106.167.235] helo=[192.168.8.139]) by coelho.fi with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vSxDY-00000000gre-1dp2; Tue, 09 Dec 2025 14:53:26 +0200 Message-ID: <6ad2092ef895e86c12e9bbf920e7e2ee4a60865e.camel@coelho.fi> From: Luca Coelho To: Imre Deak , intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org Date: Tue, 09 Dec 2025 14:53:23 +0200 In-Reply-To: <20251127175023.1522538-8-imre.deak@intel.com> References: <20251127175023.1522538-1-imre.deak@intel.com> <20251127175023.1522538-8-imre.deak@intel.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.56.2-7 MIME-Version: 1.0 Subject: Re: [PATCH 07/50] drm/i915/dp: Fix BW check in is_bw_sufficient_for_dsc_config() X-BeenThere: intel-xe@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Xe graphics driver List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-xe-bounces@lists.freedesktop.org Sender: "Intel-xe" On Thu, 2025-11-27 at 19:49 +0200, Imre Deak wrote: > is_bw_sufficient_for_dsc_config() should return true if the required BW > equals the available BW, make it so. >=20 > Signed-off-by: Imre Deak > --- > drivers/gpu/drm/i915/display/intel_dp.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i9= 15/display/intel_dp.c > index 4722ee26b1181..4556a57db7c02 100644 > --- a/drivers/gpu/drm/i915/display/intel_dp.c > +++ b/drivers/gpu/drm/i915/display/intel_dp.c > @@ -2029,7 +2029,7 @@ static bool is_bw_sufficient_for_dsc_config(int dsc= _bpp_x16, u32 link_clock, > available_bw =3D (link_clock * lane_count * timeslots * 16) / 8; > required_bw =3D dsc_bpp_x16 * (intel_dp_mode_to_fec_clock(mode_clock)); > =20 > - return available_bw > required_bw; > + return available_bw >=3D required_bw; > } > =20 > static int dsc_compute_link_config(struct intel_dp *intel_dp, Reviewed-by: Luca Coelho -- Cheers, Luca.