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 E3D5EE743F0 for ; Fri, 29 Sep 2023 20:45:30 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 888EF10E6DE; Fri, 29 Sep 2023 20:45:30 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.126]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7FBF410E71B for ; Fri, 29 Sep 2023 20:45: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=1696020325; x=1727556325; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=qBfLTNV6AmlKC+P+pa1tFiRVwkB7WaYe8pj2P+udNu4=; b=Wt3GQA4IWUzhqwT5htacD/1BDpjNVH1e91wmO+dv5RfZiKrpnfwyuiBe b7b9tkK4GbWHd//ktaxethVhWc7C/TOG31ShRF6zRa/ZG9+Hvv2iND5cT +ybOfLrD3+kxKvRWOTOwfbaVeJprwvD92aN9M/PLAyfj1Z8HYe2DleZuJ KAt3lzNC79irfE1596NdFl3nVN6nPhaJ7PbDWbG/D97WMJiWI0PeN17ve Ds1XztHPuiVdDjvMZjfqmYB4e7M8owbAU1LRg3DuOZS0mBwI2it1hluTf /4M8Xbyyg7H+8M11NQ3GAtKqKKwZsZ1ZNXvIomzY+UKvFDZDflqoyUmNB Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10848"; a="367427390" X-IronPort-AV: E=Sophos;i="6.03,188,1694761200"; d="scan'208";a="367427390" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Sep 2023 13:18:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10848"; a="726691239" X-IronPort-AV: E=Sophos;i="6.03,188,1694761200"; d="scan'208";a="726691239" Received: from anushasr-simics.jf.intel.com ([10.165.21.200]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Sep 2023 13:18:57 -0700 From: Anusha Srivatsa To: intel-xe@lists.freedesktop.org Date: Fri, 29 Sep 2023 13:16:58 -0700 Message-Id: <20230929201659.2840724-5-anusha.srivatsa@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230929201659.2840724-1-anusha.srivatsa@intel.com> References: <20230929201659.2840724-1-anusha.srivatsa@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Intel-xe] [PATCH 4/5] drm/xe/rpls: Add Stepping info for RPLS X-BeenThere: intel-xe@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Xe graphics driver List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Anusha Srivatsa , Matt Roper Errors-To: intel-xe-bounces@lists.freedesktop.org Sender: "Intel-xe" Add stepping-substepping info. Though it looks weird, the revision ID for the newer stepping is indeed backwards and is in accordance to the spec. v2: s/RPLS/RAPTORLAKE_S (Anusha) v3: rebase (Anusha) Signed-off-by: Anusha Srivatsa Reviewed-by: Matt Roper (v1) --- drivers/gpu/drm/xe/xe_step.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/gpu/drm/xe/xe_step.c b/drivers/gpu/drm/xe/xe_step.c index 903c65405d3a..eaf1b718f26c 100644 --- a/drivers/gpu/drm/xe/xe_step.c +++ b/drivers/gpu/drm/xe/xe_step.c @@ -60,6 +60,11 @@ static const struct xe_step_info adls_revids[] = { [0xC] = { COMMON_GT_MEDIA_STEP(D0), .display = STEP_C0 }, }; +static const struct xe_step_info adls_rpls_revids[] = { + [0x4] = { COMMON_GT_MEDIA_STEP(D0), .display = STEP_D0 }, + [0xC] = { COMMON_GT_MEDIA_STEP(D0), .display = STEP_C0 }, +}; + static const struct xe_step_info adlp_revids[] = { [0x0] = { COMMON_GT_MEDIA_STEP(A0), .display = STEP_A0 }, [0x4] = { COMMON_GT_MEDIA_STEP(B0), .display = STEP_B0 }, @@ -143,6 +148,9 @@ struct xe_step_info xe_step_pre_gmdid_get(struct xe_device *xe) } else if (xe->info.platform == XE_ALDERLAKE_N) { revids = adln_revids; size = ARRAY_SIZE(adln_revids); + } else if (xe->info.subplatform == XE_SUBPLATFORM_ALDERLAKE_S_RPLS) { + revids = adls_rpls_revids; + size = ARRAY_SIZE(adls_rpls_revids); } else if (xe->info.subplatform == XE_SUBPLATFORM_ALDERLAKE_P_RPLU) { revids = adlp_rpl_revids; size = ARRAY_SIZE(adlp_rpl_revids); -- 2.25.1