From patchwork Fri Mar 24 21:39:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Umesh Nerlige Ramappa X-Patchwork-Id: 13187392 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 92A70C6FD1C for ; Fri, 24 Mar 2023 21:39:25 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0C2EA10E1A3; Fri, 24 Mar 2023 21:39:25 +0000 (UTC) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by gabe.freedesktop.org (Postfix) with ESMTPS id 847E710E1A3 for ; Fri, 24 Mar 2023 21:39:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1679693963; x=1711229963; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=T4dS1yQl4NDwF6IhKCiwAC7DVbhS2fgZEpeQXjzaYEk=; b=KPnXjYNTJNmJYqKX9HuPPOaSdQEOs4Fwrhtt5vOUlNmCBJ68tBMKbKaK leoxB2e4+z4yVDvvT/5rn5Y4QFH3vfsTcZpi5afjfIpAFkeO8trnQFcpR WMQCQG8PRjkwkosNDYgvHUugci8GUFHM2sNuEuSKMWTjZ71ubv9pfAlsN ol9y6W4wsdd5hcxfnur1pyY9adx6kTE5dCemSHXY0g6b/z1Yj0XL4rTTi Apc9hh9sPBkefvqnVS62Um/OgfZ611WU2jVfAJCFTZwpTInqlHh1FvYYU UQcHwcKAle5ty08k6Hx+eehMuQCAK4B30tnOG+ZZS+nROX9mdW/TZE7S8 Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10659"; a="367626646" X-IronPort-AV: E=Sophos;i="5.98,288,1673942400"; d="scan'208";a="367626646" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Mar 2023 14:39:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10659"; a="715392969" X-IronPort-AV: E=Sophos;i="5.98,288,1673942400"; d="scan'208";a="715392969" Received: from orsosgc001.jf.intel.com ([10.165.21.138]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Mar 2023 14:39:22 -0700 From: Umesh Nerlige Ramappa To: intel-gfx@lists.freedesktop.org Date: Fri, 24 Mar 2023 14:39:18 -0700 Message-Id: <20230324213918.75212-1-umesh.nerlige.ramappa@intel.com> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH] drm/i915/mtl: Disable C6 on MTL A0 for media 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" Earlier merge dropped an if block when applying the patch - "drm/i915/mtl: Synchronize i915/BIOS on C6 enabling". Bring back the if block as the check is required by - "drm/i915/mtl: Disable MC6 for MTL A step" to disable C6 on media for A0 stepping. Fixes: 3735040978a4 ("drm/i915/mtl: Synchronize i915/BIOS on C6 enabling") Signed-off-by: Umesh Nerlige Ramappa Reviewed-by: Vinay Belgaumkar --- drivers/gpu/drm/i915/gt/intel_rc6.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/gpu/drm/i915/gt/intel_rc6.c b/drivers/gpu/drm/i915/gt/intel_rc6.c index f760586f9f46..8f3cd68d14f8 100644 --- a/drivers/gpu/drm/i915/gt/intel_rc6.c +++ b/drivers/gpu/drm/i915/gt/intel_rc6.c @@ -525,6 +525,13 @@ static bool rc6_supported(struct intel_rc6 *rc6) return false; } + if (IS_MTL_MEDIA_STEP(gt->i915, STEP_A0, STEP_B0) && + gt->type == GT_MEDIA) { + drm_notice(&i915->drm, + "Media RC6 disabled on A step\n"); + return false; + } + return true; }