From patchwork Thu Sep 1 06:00:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Nautiyal, Ankit K" X-Patchwork-Id: 12961853 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 9070AECAAD1 for ; Thu, 1 Sep 2022 06:01:23 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 68CBE10E54F; Thu, 1 Sep 2022 06:01:22 +0000 (UTC) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by gabe.freedesktop.org (Postfix) with ESMTPS id E617110E59C for ; Thu, 1 Sep 2022 06:01:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662012078; x=1693548078; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=6iXJduPEBOxV+mmA5A99irJrGOB4Ldd16nXWiA3X5sw=; b=fbR75upAkdY54FKPHTWjwoeHyyOgb/YkxOsP1gP65lAb1BKhdv3/AtUD iQ9WU7NvqqQoXqUOSGjy3I/W/BsQ3cNZV7eNJPh5QBf2ml3P1HBoma8ZU y8aKsYqGFqn4tTbLNm5oKpMFYnMhPCZjcT9UH/BQdbUqVfadkI+AaDj9c v95MSn5hUAzTB/KaBQrJKxGM4ts0Qu0gfTM+bO5gQgtOvj5YQdY+Pj905 Pz6aOQqb9Z3aip8oLjx3ShIkyKV676eWhTMpobUqR6mn3VyE3plTIGzXS a0w9yOd1RCUISJ+oEzubvTHEV4vlX92E49h9izPkMu3PBywCIcykS8hqd A==; X-IronPort-AV: E=McAfee;i="6500,9779,10456"; a="381920215" X-IronPort-AV: E=Sophos;i="5.93,280,1654585200"; d="scan'208";a="381920215" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Aug 2022 23:01:18 -0700 X-IronPort-AV: E=Sophos;i="5.93,280,1654585200"; d="scan'208";a="754685606" Received: from srr4-3-linux-103-aknautiy.iind.intel.com ([10.223.34.160]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Aug 2022 23:01:16 -0700 From: Ankit Nautiyal To: intel-gfx@lists.freedesktop.org Date: Thu, 1 Sep 2022 11:30:52 +0530 Message-Id: <20220901060101.1000290-1-ankit.k.nautiyal@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH v2 0/9] Handle BPC for HDMI2.1 PCON without DSC1.2 sink and other fixes 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" This series fixes issues faced when an HDMI2.1 sink that does not support DSC is connected via HDMI2.1PCON. It also icludes other minor HDMI2.1 PCON fixes/refactoring. Patch 1-3 Have minor fixes/cleanups. Patch 4-7 Pull the decision making to use DFP conversion capabilities for every mode during compute config, instead of having that decision during DP initializing phase. Patch 8-9 Calculate the max BPC that can be sufficient with either RGB or YCbcr420 format for the maximum FRL rate supported. Rev2: Split the refactoring of DFP RG->YCBCR conversion into smaller patches, as suggested by Jani N. Also dropped the unnecessary helper for DSC1.2 support for HDMI2.1 DFP. Ankit Nautiyal (9): drm/i915/dp: Reset frl trained flag before restarting FRL training drm/i915/dp: Add RGB to YCBCR conversion case in is_dp_ycbcr420 helper drm/i915/dp: Remove whitespace at the end of function. drm/i915/display: Add new members to configure PCON color conversion drm/i915/dp: Compute configuration for using PCON's color/format conversion drm/i915/dp: Use crtc_state members in dp_is_ycbcr420 drm/i915/dp: Replace intel_dp.dfp members with the new crtc_state dp_dfp members drm/i915/dp: Handle BPP where HDMI2.1 DFP doesn't support DSC drm/i915/dp: Fix FRL BW check for HDMI2.1 DFP .../drm/i915/display/intel_display_types.h | 7 + drivers/gpu/drm/i915/display/intel_dp.c | 234 ++++++++++++++---- 2 files changed, 191 insertions(+), 50 deletions(-)