From patchwork Tue Jan 25 22:36:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Srivatsa, Anusha" X-Patchwork-Id: 12724278 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 33D35C433FE for ; Tue, 25 Jan 2022 22:39:07 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id EC1CD10E60D; Tue, 25 Jan 2022 22:38:57 +0000 (UTC) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by gabe.freedesktop.org (Postfix) with ESMTPS id 876E310E618 for ; Tue, 25 Jan 2022 22:38:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643150334; x=1674686334; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=DRUGPgTKaQ0vIUIkBSzHl3gMPotPtyYjQZaNJ5kJhD4=; b=nhJsZ3g/s08lYLnhbMWEjFln37fsnMr+Ha9aY4hWqo67haZLLH4xbeQI lZ24j8WAo92vv+OijsQMGq92jcF5H9HgbJP3q5f0et9nf2P4aRt0ATanA Qhu7h++gfT8/VXoQ1Hp/N2+JqZoOaUITOv+MopyX/aK0PP9lFlZrGyZz1 66kXzTn/mtaZhlR3tWCQF+x5nPLFD+m6N/Eyn/kYrpnUUldljXaWRtOC8 DgMwIrDkq7B3QIQV2MhkO6DG2Bq+TtQTPNnTGMF7jmNjmY5WIk0lAx1sC VirN+Up+G1UcYi6NNZ2aKd7q3zbYLEyPjIW93mxIOCcyDcuXcEOiaB/if w==; X-IronPort-AV: E=McAfee;i="6200,9189,10238"; a="227104864" X-IronPort-AV: E=Sophos;i="5.88,315,1635231600"; d="scan'208";a="227104864" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jan 2022 14:38:53 -0800 X-IronPort-AV: E=Sophos;i="5.88,315,1635231600"; d="scan'208";a="628109800" Received: from anushasr-mobl6.jf.intel.com ([10.165.21.155]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jan 2022 14:38:53 -0800 From: Anusha Srivatsa To: intel-gfx@lists.freedesktop.org Date: Tue, 25 Jan 2022 14:36:25 -0800 Message-Id: <20220125223625.4139326-1-anusha.srivatsa@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [Intel-gfx] [CI] drm/i915/rpl-s: 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: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" Add stepping-substepping info in accordance to BSpec changes. Though it looks weird, the revision ID for the newer stepping is indeed backwards and is in accordance to the spec. v2: Rearrange the platforms in logical order (Matt) Bspec: 53655 Cc: Matt Roper Signed-off-by: Anusha Srivatsa Reviewed-by: Matt Roper --- drivers/gpu/drm/i915/intel_step.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_step.c b/drivers/gpu/drm/i915/intel_step.c index a4b16b9e2e55..9012e4b76a49 100644 --- a/drivers/gpu/drm/i915/intel_step.c +++ b/drivers/gpu/drm/i915/intel_step.c @@ -122,6 +122,11 @@ static const struct intel_step_info dg2_g11_revid_step_tbl[] = { [0x5] = { COMMON_GT_MEDIA_STEP(B1), .display_step = STEP_C0 }, }; +static const struct intel_step_info adls_rpls_revids[] = { + [0x4] = { COMMON_GT_MEDIA_STEP(D0), .display_step = STEP_D0 }, + [0xC] = { COMMON_GT_MEDIA_STEP(D0), .display_step = STEP_C0 }, +}; + void intel_step_init(struct drm_i915_private *i915) { const struct intel_step_info *revids = NULL; @@ -129,6 +134,7 @@ void intel_step_init(struct drm_i915_private *i915) int revid = INTEL_REVID(i915); struct intel_step_info step = {}; + if (IS_DG2_G10(i915)) { revids = dg2_g10_revid_step_tbl; size = ARRAY_SIZE(dg2_g10_revid_step_tbl); @@ -141,6 +147,9 @@ void intel_step_init(struct drm_i915_private *i915) } else if (IS_ALDERLAKE_P(i915)) { revids = adlp_revids; size = ARRAY_SIZE(adlp_revids); + } else if (IS_ADLS_RPLS(i915)) { + revids = adls_rpls_revids; + size = ARRAY_SIZE(adls_rpls_revids); } else if (IS_ALDERLAKE_S(i915)) { revids = adls_revids; size = ARRAY_SIZE(adls_revids);