From patchwork Thu Nov 23 04:27:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Nautiyal, Ankit K" X-Patchwork-Id: 13465757 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 D7A2CC61DF7 for ; Thu, 23 Nov 2023 04:33:36 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 95D9E10E6CA; Thu, 23 Nov 2023 04:33:33 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8460210E0B1 for ; Thu, 23 Nov 2023 04:33:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700714007; x=1732250007; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=1Bm7Tg8XaqB4OuE+zVDz10txH/E0hBGbImU7vGLJI58=; b=GzRcK91fUcyMouhqD1N03Kq045Hw0XrHKj5C7xZzJ8VQuy+y4ta2F1VX 0OPlPkNuEwU48AzOxwX+C5FQOF/VKw2N4UIVZ8g3S9bW+W7r1rAx4lP3F TWcrqiW4nImJW/5fcYK4igHaZ0LuekZNm/Awst9hlSYxbOvlZeFSbQJSq CXlG0R65vKrqw5I7EC/bRIkHa51WCDjUVtpijPJLn0oiJDZ4bhAlo/Sh6 SRlWtp50d6MtYuOyKKDb2bkafB6eCWQTMd0spF9JnVGsMujD/a2iKUeOP YA0pJRE0D/mKUgrXYq4gDoELPkNCWDDss+TQK33k8EjieeduuE6b+o9cS g==; X-IronPort-AV: E=McAfee;i="6600,9927,10902"; a="5336586" X-IronPort-AV: E=Sophos;i="6.04,220,1695711600"; d="scan'208";a="5336586" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Nov 2023 20:33:27 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10902"; a="796223326" X-IronPort-AV: E=Sophos;i="6.04,220,1695711600"; d="scan'208";a="796223326" Received: from srr4-3-linux-103-aknautiy.iind.intel.com ([10.223.34.160]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Nov 2023 20:33:25 -0800 From: Ankit Nautiyal To: intel-gfx@lists.freedesktop.org Date: Thu, 23 Nov 2023 09:57:31 +0530 Message-Id: <20231123042733.1027046-3-ankit.k.nautiyal@intel.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231123042733.1027046-1-ankit.k.nautiyal@intel.com> References: <20231123042733.1027046-1-ankit.k.nautiyal@intel.com> MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH 2/4] drm/i915/dp: Fix the max DSC bpc supported by source X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: jani.nikula@intel.com Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" Use correct helper for getting max DSC bpc supported by the source. Fixes: 1c56e9a39833 ("drm/i915/dp: Get optimal link config to have best compressed bpp") Cc: Ankit Nautiyal Cc: Stanislav Lisovskiy Cc: Jani Nikula Signed-off-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display/intel_dp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c index 54306271f5c2..37320cc4346f 100644 --- a/drivers/gpu/drm/i915/display/intel_dp.c +++ b/drivers/gpu/drm/i915/display/intel_dp.c @@ -2098,7 +2098,7 @@ static int intel_dp_dsc_compute_pipe_bpp(struct intel_dp *intel_dp, } } - dsc_max_bpc = intel_dp_dsc_min_src_input_bpc(i915); + dsc_max_bpc = intel_dp_dsc_max_src_input_bpc(i915); if (!dsc_max_bpc) return -EINVAL;