From patchwork Thu Jun 16 04:22:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ankit Nautiyal X-Patchwork-Id: 12883308 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 0B48BC43334 for ; Thu, 16 Jun 2022 04:21:18 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 98F7C113D1A; Thu, 16 Jun 2022 04:21:17 +0000 (UTC) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2842D113CFE for ; Thu, 16 Jun 2022 04:21:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655353276; x=1686889276; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=4HQyzpVPe3fzEQYxFDMSiafvmKYmMYAsICn7ApdaE68=; b=J7stmt+CTN+GPiO727rBtg8nERL4jHQ0d7mhgXUMJMwHwlNXQpCNjfhL 1BuD7rZfViIMozlpw8PPuOQ3d1buxdpKwLSS1JSyMTUB45Omt4GSClQ7T OKshLwENsXjAKzR5Hgq+inodG6mhOibkfxjimZ7gLCa6+TOlJI3H5cFgA JW0al5HTlygYLBn5lSPWlePPok8DpcgyTyVTqU/xwtlT4W8JtdQ7nBzNg aTgVd4nMEOgtKfjg/MCXz9lrpPTHqpZkYCykfL2fAQ+pcVHxEzy6Fi507 nvX672P95vrs7otfRKGip8AH4LBeo6PjEZyvnWO3uiYzZqVxuSbcrTDIc g==; X-IronPort-AV: E=McAfee;i="6400,9594,10379"; a="279219504" X-IronPort-AV: E=Sophos;i="5.91,304,1647327600"; d="scan'208";a="279219504" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jun 2022 21:21:15 -0700 X-IronPort-AV: E=Sophos;i="5.91,304,1647327600"; d="scan'208";a="911993754" Received: from srr4-3-linux-103-aknautiy.iind.intel.com ([10.223.34.160]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jun 2022 21:21:13 -0700 From: Ankit Nautiyal To: intel-gfx@lists.freedesktop.org Date: Thu, 16 Jun 2022 09:52:44 +0530 Message-Id: <20220616042247.324969-1-ankit.k.nautiyal@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [Intel-gfx] [RFC PATCH 0/3] Get dsc optimal output bpp 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: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" Currently, when going with DSC for DP, we take the max lane, rate and pipe bpp, to get the maximum compressed bpp possible. We then set the output bpp to this value. It might be possible to have lesser rate or lane count, for which the same compressed bpp works. This RFC series attempts to get the best compressed bpp such that we have maximum bpc, with minimum link rate and lane possible. The policy here is chosen such that 'best compressed bpp' mean minimum compression, ie. maximum compressed bpp. It means compress only that is sufficient to sent over the link, and for that compressed bpp, use minimum lanes, and rate. Current series, only touches the DSC for DisplayPort. eDP might require some more changes and also a different policy. Ankit Nautiyal (3): drm/i915/dp: Rename helper to calculate dsc output bpp drm/i915/dp: Rename helper to get max pipe bpp with DSC drm/i915/dp: Get optimal link config to have best compressed bpp drivers/gpu/drm/i915/display/intel_dp.c | 263 ++++++++++++++++++------ 1 file changed, 201 insertions(+), 62 deletions(-)