From patchwork Thu Mar 3 11:32:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tejas Upadhyay X-Patchwork-Id: 12767378 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 84C96C433EF for ; Thu, 3 Mar 2022 11:46:19 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C054D10E2A3; Thu, 3 Mar 2022 11:46:18 +0000 (UTC) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by gabe.freedesktop.org (Postfix) with ESMTPS id A51FC10E2A3 for ; Thu, 3 Mar 2022 11:46:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646307977; x=1677843977; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=4Y5MafYlwARmWFYGdw4U+hrdceZT6688ygmRBJv7das=; b=m0pUKqBwfYM0xf4tLpeC8Uu0Z0XDvEvHy/GzaWqYscwxeOpNcjDuK88c auEkF1tmHlcm9B2wl+kiea4BDiJEp5ujehFCb0SMEX0xFyffcNR5wVmuo E1mcv6vlRphEvck79dyhcd9dzY0Z7ja8QMzQPwsUgyhrsiSwFogygU8bh 8TnRMRKvmHg4xHyYlbvE+sOIJhIEGAPxZRQaCwq+XBmp8FMQbLBR9NGY4 a4jIRMV3aziWoGkzJyT/R68lgUkk2qVU/wW2/ocpP3Pvp5T2GJxlFtMXm hx8jkZuU/P4ck6H0OADGPd6jscwq+AqhW2YSwq4IRtFtXCggCXeKsMwAT Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10274"; a="314367663" X-IronPort-AV: E=Sophos;i="5.90,151,1643702400"; d="scan'208";a="314367663" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Mar 2022 03:46:17 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,151,1643702400"; d="scan'208";a="551719049" Received: from tejas-system-product-name.iind.intel.com ([10.145.162.130]) by orsmga008.jf.intel.com with ESMTP; 03 Mar 2022 03:46:15 -0800 From: Tejas Upadhyay To: intel-gfx@lists.freedesktop.org Date: Thu, 3 Mar 2022 17:02:52 +0530 Message-Id: <20220303113252.212873-1-tejaskumarx.surendrakumar.upadhyay@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH] drm/i915/adl-n: Add stepping info 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: Tejas Upadhyay Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" Add ADL-N stepping-substepping info in accordance to BSpec. Bspec: 68397 Cc: Matt Roper Signed-off-by: Tejas Upadhyay Reviewed-by: Matt Roper --- drivers/gpu/drm/i915/intel_step.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_step.c b/drivers/gpu/drm/i915/intel_step.c index 4fd69ecd1481..74e8e4680028 100644 --- a/drivers/gpu/drm/i915/intel_step.c +++ b/drivers/gpu/drm/i915/intel_step.c @@ -131,6 +131,10 @@ static const struct intel_step_info adls_rpls_revids[] = { [0xC] = { COMMON_GT_MEDIA_STEP(D0), .display_step = STEP_C0 }, }; +static const struct intel_step_info adlp_n_revids[] = { + [0x0] = { COMMON_GT_MEDIA_STEP(A0), .display_step = STEP_D0 }, +}; + void intel_step_init(struct drm_i915_private *i915) { const struct intel_step_info *revids = NULL; @@ -150,6 +154,9 @@ void intel_step_init(struct drm_i915_private *i915) } else if (IS_XEHPSDV(i915)) { revids = xehpsdv_revids; size = ARRAY_SIZE(xehpsdv_revids); + } else if (IS_ADLP_N(i915)) { + revids = adlp_n_revids; + size = ARRAY_SIZE(adlp_n_revids); } else if (IS_ALDERLAKE_P(i915)) { revids = adlp_revids; size = ARRAY_SIZE(adlp_revids);