From patchwork Mon Mar 22 11:07:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tejas Upadhyay X-Patchwork-Id: 12154569 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 42804C433DB for ; Mon, 22 Mar 2021 11:17:10 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 0CAB960C3D for ; Mon, 22 Mar 2021 11:17:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0CAB960C3D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=intel-gfx-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A306E89E5B; Mon, 22 Mar 2021 11:17:09 +0000 (UTC) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by gabe.freedesktop.org (Postfix) with ESMTPS id 969F089E5B for ; Mon, 22 Mar 2021 11:17:08 +0000 (UTC) IronPort-SDR: 6qJ3sKECVkjLE9jff/i30zUWzhF30/hYFoG/wpBETcpDaTzOXz3BWwAKj+zisL3Ga0BUoRz5Vj jvE5PPLGnGqQ== X-IronPort-AV: E=McAfee;i="6000,8403,9930"; a="187926664" X-IronPort-AV: E=Sophos;i="5.81,268,1610438400"; d="scan'208";a="187926664" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Mar 2021 04:17:08 -0700 IronPort-SDR: +30HLbZea/05mmuGGz6Z1mqHF4JmYiAjICVLQMNu/dyFarw/86+LfRC5a+0dd8on/ZpoiTT3/1 7rYNQoZVq/Zg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,268,1610438400"; d="scan'208";a="513271179" Received: from tejas-system-product-name.iind.intel.com ([10.145.162.130]) by fmsmga001.fm.intel.com with ESMTP; 22 Mar 2021 04:17:06 -0700 From: Tejas Upadhyay To: intel-gfx@lists.freedesktop.org Date: Mon, 22 Mar 2021 16:37:15 +0530 Message-Id: <20210322110715.126105-1-tejaskumarx.surendrakumar.upadhyay@intel.com> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH V2] drm/i915/display: Disable PSR2 on Gen12/12+ 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: hariom.pandey@intel.com Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" In light of PSR2 can be enabled only on BOM9 platform team has requested to disable PSR2 by default in driver, starting with gfx-driver-ci-master-7517. Disabling it for all gen12/12+. Changes since V1 : - Added check for GEN12/12+ - Modified commit message accoringly Signed-off-by: Tejas Upadhyay --- drivers/gpu/drm/i915/display/intel_psr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/display/intel_psr.c b/drivers/gpu/drm/i915/display/intel_psr.c index cd434285e3b7..df55799c53da 100644 --- a/drivers/gpu/drm/i915/display/intel_psr.c +++ b/drivers/gpu/drm/i915/display/intel_psr.c @@ -727,7 +727,7 @@ static bool intel_psr2_config_valid(struct intel_dp *intel_dp, return false; /* JSL and EHL only supports eDP 1.3 */ - if (IS_JSL_EHL(dev_priv)) { + if (IS_JSL_EHL(dev_priv) || INTEL_GEN(dev_priv) >= 12) { drm_dbg_kms(&dev_priv->drm, "PSR2 not supported by phy\n"); return false; }