From patchwork Wed Jul 7 05:06:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Srivatsa, Anusha" X-Patchwork-Id: 12361755 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.0 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,UNWANTED_LANGUAGE_BODY,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8B7D3C07E95 for ; Wed, 7 Jul 2021 05:06:49 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 4599961C99 for ; Wed, 7 Jul 2021 05:06:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4599961C99 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=intel-gfx-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id AB0F86E81D; Wed, 7 Jul 2021 05:06:48 +0000 (UTC) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by gabe.freedesktop.org (Postfix) with ESMTPS id 937026E81C for ; Wed, 7 Jul 2021 05:06:47 +0000 (UTC) X-IronPort-AV: E=McAfee;i="6200,9189,10037"; a="196406275" X-IronPort-AV: E=Sophos;i="5.83,330,1616482800"; d="scan'208";a="196406275" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jul 2021 22:06:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,330,1616482800"; d="scan'208";a="457348288" Received: from anushasr-mobl6.jf.intel.com ([10.165.21.155]) by orsmga008.jf.intel.com with ESMTP; 06 Jul 2021 22:06:46 -0700 From: Anusha Srivatsa To: intel-gfx@lists.freedesktop.org Date: Tue, 6 Jul 2021 22:06:37 -0700 Message-Id: <20210707050645.31043-1-anusha.srivatsa@intel.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH 0/8] Abstract steppings for all platforms 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" Instead of having a separate lookup table in intel_dmc.c per platform, centralize stepping info in intel_step.c. We already have stepping info table for some platforms in intel_step.c, add stepping information for remaining platforms and use this info to laod specific blob for a given stepping/substepping combination. While at it, change the names of stepping info table to simpler names: s/_revid_step_tbl/_revids Anusha Srivatsa (8): drm/i915/step: s/_revid_tbl/_revids drm/i915/dmc: Use RUNTIME_INFO->step for DMC drm/i915/skl: s/IS_SKL_REVID/IS_SKL_GT_STEP drm/i915/bxt: s/IS_BXT_REVID/IS_BXT_GT_STEP drm/i915/icl: s/IS_ICL_REVID/IS_ICL_GT_STEP drm/i915/glk: s/IS_GLK_REVID/IS_GLK_GT_STEP drm/i915/rkl: s/IS_RKL_REVID/IS_RKL_GT_STEP drm/i915/dg1: s/IS_DG1_REVID/IS_DG1_GT_STEP .../drm/i915/display/intel_display_power.c | 2 +- drivers/gpu/drm/i915/display/intel_dmc.c | 112 ++++++++++++------ drivers/gpu/drm/i915/display/intel_psr.c | 4 +- drivers/gpu/drm/i915/gt/intel_region_lmem.c | 2 +- drivers/gpu/drm/i915/gt/intel_workarounds.c | 24 ++-- drivers/gpu/drm/i915/i915_drv.c | 6 +- drivers/gpu/drm/i915/i915_drv.h | 63 ++++------ drivers/gpu/drm/i915/intel_pm.c | 2 +- drivers/gpu/drm/i915/intel_step.c | 93 +++++++++++++-- drivers/gpu/drm/i915/intel_step.h | 6 + 10 files changed, 200 insertions(+), 114 deletions(-)