From patchwork Wed Mar 2 23:11:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Dhanavanthri, Swathi" X-Patchwork-Id: 12766890 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 6939EC433F5 for ; Wed, 2 Mar 2022 23:11:28 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9BDD310E7A2; Wed, 2 Mar 2022 23:11:27 +0000 (UTC) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by gabe.freedesktop.org (Postfix) with ESMTPS id 63F5410E7A2 for ; Wed, 2 Mar 2022 23:11:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646262686; x=1677798686; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=QjVdwvhPGR/Gq+5t6DVYGT8iAPg36g5nO2XuPrTtyhc=; b=WfAofNkeobJtjuEPmGnCeqT3m1cEd3gFFaJjnJX0oq62+CuE9r0EtHId 4wxaxdZEgsLgBOf1eRLjPKFRWzeWt7PgO4WBhjCRUDNRQYFy/Ysp2XQdS XAKxSoyQX+MqdaflrW5sUaLdSY9HOv5hwaiKHDbEtD5D5oc7QEVQtABlW hFvm7EnmuNBjvT876BGHnIELmQ2/Kckod4AzGwTVgLgDdaTuE6zxx61F5 +603Aksfkm5KDpHl9/NtODQFQsv4OgBZNXmwv3vqt91bbU3Sy23v5+Jza GWYTb+sAUWTBUQrtYB9gGt3wSl3XDlJtxpPCYsbuN1PqU8MzHlKwJJBmt w==; X-IronPort-AV: E=McAfee;i="6200,9189,10274"; a="316742050" X-IronPort-AV: E=Sophos;i="5.90,150,1643702400"; d="scan'208";a="316742050" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Mar 2022 15:11:24 -0800 X-IronPort-AV: E=Sophos;i="5.90,150,1643702400"; d="scan'208";a="709693887" Received: from sdhanava-desk2.jf.intel.com ([10.165.21.144]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Mar 2022 15:11:24 -0800 From: Swathi Dhanavanthri To: intel-gfx@lists.freedesktop.org Date: Wed, 2 Mar 2022 15:11:19 -0800 Message-Id: <20220302231119.16876-1-swathi.dhanavanthri@intel.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH] drm/i915/display/adlp: Remove code related to underrun recovery 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 is not supported for ADLP and is not needed. Signed-off-by: Swathi Dhanavanthri --- drivers/gpu/drm/i915/display/intel_display.c | 21 -------------------- 1 file changed, 21 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/display/intel_display.c index 6cae58f921a5..541797a2ff9e 100644 --- a/drivers/gpu/drm/i915/display/intel_display.c +++ b/drivers/gpu/drm/i915/display/intel_display.c @@ -3595,12 +3595,8 @@ static void hsw_set_transconf(const struct intel_crtc_state *crtc_state) static void bdw_set_pipemisc(const struct intel_crtc_state *crtc_state) { struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); - const struct intel_crtc_scaler_state *scaler_state = - &crtc_state->scaler_state; - struct drm_i915_private *dev_priv = to_i915(crtc->base.dev); u32 val = 0; - int i; switch (crtc_state->pipe_bpp) { case 18: @@ -3639,23 +3635,6 @@ static void bdw_set_pipemisc(const struct intel_crtc_state *crtc_state) if (DISPLAY_VER(dev_priv) >= 12) val |= PIPEMISC_PIXEL_ROUNDING_TRUNC; - if (IS_ALDERLAKE_P(dev_priv)) { - bool scaler_in_use = false; - - for (i = 0; i < crtc->num_scalers; i++) { - if (!scaler_state->scalers[i].in_use) - continue; - - scaler_in_use = true; - break; - } - - intel_de_rmw(dev_priv, PIPE_MISC2(crtc->pipe), - PIPE_MISC2_BUBBLE_COUNTER_MASK, - scaler_in_use ? PIPE_MISC2_BUBBLE_COUNTER_SCALER_EN : - PIPE_MISC2_BUBBLE_COUNTER_SCALER_DIS); - } - intel_de_write(dev_priv, PIPEMISC(crtc->pipe), val); }