From mboxrd@z Thu Jan 1 00:00:00 1970 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 DC8FCC5DF87 for ; Thu, 20 Aug 2026 12:19:18 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8E76810F010; Thu, 20 Aug 2026 12:19:18 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="dX3o30g7"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) by gabe.freedesktop.org (Postfix) with ESMTPS id 76B0B10E1D6 for ; Thu, 20 Aug 2026 12:16:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1787228207; x=1818764207; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=dO3sMolQ5rSPBc98N/LWBBxvmAF8sWLrDs+EuyuBz10=; b=dX3o30g7y05n9o9GK74W2M5AGQfClNOmkAwJU6H+jh0/93DwHAwLGm5W fwSW6uyIewLFzwM6Tvz1KrJtASBpQFEsv6vtHcXQa35amzHI1vVhmEQY6 oBYpe+1nap6y33qkNqEB05ROSFQBuXjToeTC/+XBmFrcM7QdmviZyXX7M waNdTthCwyEuMIgD8d/LjER/tCfwiAM6Mx5MCKTh3YRGrYEum65KEatP0 fnSJC+JdvplTg0tAB9mKUWmyIk+IIGulPaYi+q5AQ9SP8zZMEhH25u0GN eayDO0rJE43/bLcUOJN4jKQmor/D/wrFd0ppqIdpE3heOjd7u60yZlnjL w==; X-CSE-ConnectionGUID: Mhl6ykAcShOlvHRlr3zf+Q== X-CSE-MsgGUID: lnAntyYWSvWso1rg3z4BiA== X-IronPort-AV: E=McAfee;i="6800,10657,11880"; a="98917307" X-IronPort-AV: E=Sophos;i="6.25,233,1779174000"; d="scan'208";a="98917307" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Aug 2026 05:16:47 -0700 X-CSE-ConnectionGUID: 1bRGL1EKSWK2y1cYG+ENbw== X-CSE-MsgGUID: U2J5NvSeQ1+k4vxCHay33Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.25,233,1779174000"; d="scan'208";a="264675991" Received: from rkoppura-z790i-aorus-ultra.iind.intel.com ([10.190.239.17]) by orviesa010-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Aug 2026 05:16:46 -0700 From: Ravi Kishore Koppuravuri To: igt-dev@lists.freedesktop.org Cc: riana.tauro@intel.com, anshuman.gupta@intel.com, mallesh.koujalagi@intel.com, raag.jadav@intel.com, soham.purkait@intel.com, Ravi Kishore Koppuravuri Subject: [PATCH v2 8/8] tests/intel/xe_err_injection: add CRI GPU requirement check Date: Thu, 20 Aug 2026 17:46:00 +0530 Message-Id: <20260820121600.75052-9-ravi.kishore.koppuravuri@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260820121600.75052-1-ravi.kishore.koppuravuri@intel.com> References: <20260820121600.75052-1-ravi.kishore.koppuravuri@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: igt-dev@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development mailing list for IGT GPU Tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" Add support to verify the CRI GPU and skips test gracefully on non-cri platforms Signed-off-by: Ravi Kishore Koppuravuri --- tests/intel/xe_err_injection.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/intel/xe_err_injection.c b/tests/intel/xe_err_injection.c index 13a316c74..ccc19724c 100644 --- a/tests/intel/xe_err_injection.c +++ b/tests/intel/xe_err_injection.c @@ -20,6 +20,7 @@ #include "igt.h" #include "lib/igt_drm_netlink.h" +#include "lib/intel_chipset.h" #include "lib/intel_reg.h" #include "lib/intel_compute.h" @@ -544,6 +545,14 @@ static void l2_bank_single_corr_err_injection(struct xe_mmio *mmio, int fd) CLEANUP_ON_ERROR(ctx, fw_handle); } +static void igt_require_cri(int fd) +{ + uint16_t dev_id = xe_dev_id(fd); + + igt_require_f(IS_CRESCENTISLAND(dev_id), + "This test requires CRI GPU, but found device ID 0x%04x\n", dev_id); +} + static void inject_error(const char *injection, struct xe_mmio *mmio, int fd) { igt_info("Starting Error Injection test: %s\n", injection); @@ -567,6 +576,11 @@ int igt_main() igt_fixture() { fd = drm_open_driver(DRIVER_XE); igt_require(igt_debugfs_exists(fd, "forcewake_all", O_RDONLY)); + igt_require_cri(fd); + /* + * TODO: Add firmware query for error injection support. + * Should check: EOM (End of Manufacturing) status and error injection jumper state. + */ xe_mmio_access_init(fd, &mmio); igt_require(xe_mmio_is_initialized(&mmio)); } -- 2.34.1