From patchwork Tue May 24 23:59:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Roper X-Patchwork-Id: 12860617 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 DF330C433F5 for ; Tue, 24 May 2022 23:59:20 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7591510E29E; Tue, 24 May 2022 23:59:20 +0000 (UTC) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0FE4D10E29E; Tue, 24 May 2022 23:59:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1653436759; x=1684972759; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=rtpJwwAy5VXKeTiRNQKVq843YOp/n/x6dFdM0pYgrJw=; b=AGv4BeB92s9a1BIY7wYAcXQW7vK386kqaxMXIzTZ5mrYA1DN4x/ejjuU tCd9p8j/tZHNL5sB7ShXpHTviqf1MDZb7A0nY+CL3C6YrH/XzSBwpGMWy BbHfV8BNK9HyD45EYgTUZOIxEZDSIberliOuluHUr2m0qTXdtqUdnab+T Zu1FP95dLRkndJb1+b0BY1x71tyY8yirlv9NR4bsnbw8wc9B/pNKMqJ1R XgS0aQFZzy5Ul3ueabMXO81kJc0Ec9e4BJ2a0MeouQ9VXIjEFpQ68WIOp k4L1FHO7KFNFTYL7N9XnuvCzs1z0E/QW5k0gbB8OP7xHpjUj5JTw+5RXm w==; X-IronPort-AV: E=McAfee;i="6400,9594,10357"; a="255739766" X-IronPort-AV: E=Sophos;i="5.91,250,1647327600"; d="scan'208";a="255739766" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 May 2022 16:59:18 -0700 X-IronPort-AV: E=Sophos;i="5.91,250,1647327600"; d="scan'208";a="676627410" Received: from mdroper-desk1.fm.intel.com ([10.1.27.134]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 May 2022 16:59:18 -0700 From: Matt Roper To: intel-gfx@lists.freedesktop.org Date: Tue, 24 May 2022 16:59:06 -0700 Message-Id: <20220524235906.529771-1-matthew.d.roper@intel.com> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH] drm/i915/hwconfig: Future-proof platform checks 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: dri-devel@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" PVC also has a hwconfig table. Actually the current expectation is that all future platforms will have hwconfig, so let's just change the condition to an IP version check so that we don't need to keep updating this for each new platform that shows up. Cc: John Harrison Cc: Radhakrishna Sripada Signed-off-by: Matt Roper Reviewed-by: John Harrison --- drivers/gpu/drm/i915/gt/uc/intel_guc_hwconfig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/gt/uc/intel_guc_hwconfig.c b/drivers/gpu/drm/i915/gt/uc/intel_guc_hwconfig.c index 5aaa3948de74..4781fccc2687 100644 --- a/drivers/gpu/drm/i915/gt/uc/intel_guc_hwconfig.c +++ b/drivers/gpu/drm/i915/gt/uc/intel_guc_hwconfig.c @@ -96,7 +96,7 @@ static bool has_table(struct drm_i915_private *i915) { if (IS_ALDERLAKE_P(i915) && !IS_ADLP_N(i915)) return true; - if (IS_DG2(i915)) + if (GRAPHICS_VER_FULL(i915) >= IP_VER(12, 55)) return true; return false;