From patchwork Tue Mar 29 22:31:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Souza, Jose" X-Patchwork-Id: 12795293 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 5A930C43219 for ; Tue, 29 Mar 2022 22:29:55 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C31F010E2C1; Tue, 29 Mar 2022 22:29:54 +0000 (UTC) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6FE5310E2C1 for ; Tue, 29 Mar 2022 22:29:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1648592993; x=1680128993; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=n3AgMGZq4BLzdLuTM9nI3/Q5H/I7VNcQuoNDXaqYhYE=; b=knsqoluT0YW60jCAIKak6XvfTflhegw3NWmTR9uRH8wvGrIoIIYpE/nB QnBThBAagYdUNm9bI2ftWJB7K8N/kw8RnQ25YNluHuYI/JbJjkGcmD5kU UthmV5m0n16M/Xqp53qP1xeX8eWdF8x2aXzwuXQUpj2oRBd7FEGfQaJTF HpNUS3G/06bwP7RCaJFjVz40o5ig40I6AWYBzWbBuErQGgNpB0fWrJaJ4 1tiug3EkkEwfLGlzCp4cmLdl1SskbikbDV3TIJRaMfAU+XgTURlJ+hAn9 Hwg8D9amDKjrFouvWqRq0p5K+nGq/rW2S6iCHKtpbkt6sSXGVOSuNP4dK w==; X-IronPort-AV: E=McAfee;i="6200,9189,10301"; a="239319332" X-IronPort-AV: E=Sophos;i="5.90,220,1643702400"; d="scan'208";a="239319332" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Mar 2022 15:29:53 -0700 X-IronPort-AV: E=Sophos;i="5.90,220,1643702400"; d="scan'208";a="653332886" Received: from srmusala-desk.amr.corp.intel.com (HELO josouza-mobl2.amr.corp.intel.com) ([10.212.104.251]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Mar 2022 15:29:50 -0700 From: =?utf-8?q?Jos=C3=A9_Roberto_de_Souza?= To: intel-gfx@lists.freedesktop.org Date: Tue, 29 Mar 2022 15:31:00 -0700 Message-Id: <20220329223102.218689-2-jose.souza@intel.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220329223102.218689-1-jose.souza@intel.com> References: <20220329223102.218689-1-jose.souza@intel.com> MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH v4 2/4] drm/i915/display/adlp: Adjust MBUS DBOX BW and B credits 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 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" From: Caz Yokoyama Alderlake-P has different MBUS DBOX BW and B credits than other platforms, so here setting it properly. BSpec: 49213 BSpec: 50343 Cc: Matt Roper Cc: Stanislav Lisovskiy Cc: Jani Nikula Cc: Ville Syrjälä Signed-off-by: Caz Yokoyama Signed-off-by: José Roberto de Souza Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_display.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/display/intel_display.c index 234f363aad651..389a3c988dc6f 100644 --- a/drivers/gpu/drm/i915/display/intel_display.c +++ b/drivers/gpu/drm/i915/display/intel_display.c @@ -1844,7 +1844,10 @@ static void icl_pipe_mbus_enable(struct intel_crtc *crtc, bool joined_mbus) else val |= MBUS_DBOX_A_CREDIT(2); - if (DISPLAY_VER(dev_priv) >= 12) { + if (IS_ALDERLAKE_P(dev_priv)) { + val |= MBUS_DBOX_BW_CREDIT(2); + val |= MBUS_DBOX_B_CREDIT(8); + } else if (DISPLAY_VER(dev_priv) >= 12) { val |= MBUS_DBOX_BW_CREDIT(2); val |= MBUS_DBOX_B_CREDIT(12); } else {