Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp286284lqh; Fri, 31 May 2024 00:54:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW3O4sg5YH3tUDCIdeS1egXUVTb4+hqWIzlJTNBNZesIh9oCwrFvOCdzUG7BqihSAoLTRrnX0u0Q1ALhVXTRB9qKEIn4qGFWA8Ml/bexA== X-Google-Smtp-Source: AGHT+IFSVyINU9XXWBfIlWaxEUv2VCwKevxxx9NBUmw/CiqE7iMhOzzYqzqTSeG00233xtlrzlzE X-Received: by 2002:a05:6102:3009:b0:48a:51db:669b with SMTP id ada2fe7eead31-48bc20a3394mr1238352137.2.1717142065919; Fri, 31 May 2024 00:54:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717142065; cv=pass; d=google.com; s=arc-20160816; b=ptenqk6n+94iboWAh0w+gt2i9QL8xphiK31CbZ51IPk7Axb39AGSk2/7FYEobByRV2 zgMUMhrmM/S2UPR5ZbxOBwCHZrbgw86UHEzJZMsSkX4+jPNPF91hd5IzUJKyNWa3yyl/ +maGy+kFFA9szoKn4uy883GWGgina1y2dMvxW1G/2LvEkgWct2D2AsuoaDFmvQeyshFx K9V550ZK6Z6HEWM+RVbcNZzIq2HSNHvkSY6WMi1ZzPoAqh4lvP27frCTZg3P6HXRQ8/P JHE86lUFAE6f/2oHHcVJqvxVyXj7vvSAaz+9QaeJZuKzphqkeeAeztZmhksFgUCNaa/g KIOg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=25BIDneeg+Dey7tXhtA+q4HdjWaFgxZgqI6yY+zsm4M=; fh=nJ88MweJ2k+dYfl+yEgTfg/ouD5VBc2cY8ABiwdNvbg=; b=ne+W3cGTHzIZaAChqTV45UczHfoR4lSyNWMepfeu5sgARzu58Kkue4phn9u5D+Zvk3 UYfv03hRC1z8YA72P8g19JXOqzN8qy56o61+V1kFR5MLMnnjBeIAEAZPd8sDcrPrlFpV nNJ0GtrjaEOBxufdVpq4bzouwWvH4cvW9nlSACq1+iM8Rabmg6AfV14SSUDQyhjQ9kh5 X6OioI3DtzdH7cAP5Ir+itSx7tBBQW9gRVs11ikU88ij1ke1iPk3CeeD/gLI6GQexw7Y nkrz9O2z5ehCHwVFFFpbFaby2AbB77lCZwVGXuIwe+RblZnn3yVcWZSM0x/pr8XMpi75 9QIg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=cSelCeBU; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-196436-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196436-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43ff257d7dasi1615941cf.416.2024.05.31.00.54.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 00:54:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-196436-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=cSelCeBU; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-196436-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196436-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 9CDCE1C25342 for ; Fri, 31 May 2024 07:54:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5B0A676035; Fri, 31 May 2024 07:53:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="cSelCeBU" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 211CA7B3EB; Fri, 31 May 2024 07:53:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.9 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717142018; cv=none; b=ivLAe9ZNedx+muqMFoVrNbkit2ovc3DUq37mKsOt+w/cq1UXjUcQFBU99R0jk/jojbaIiLiEHIYvECJ76izBNxMw5Sfua1fTbGgXIo56K3ooD+mIIym4s6obzMCoYDub0qq6QcpIzYC/BOS2NiNDZ5jhKUhNeQ1RGy+1rzCkwNo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717142018; c=relaxed/simple; bh=ZnELZO/KlIAqu27St8QzH8oaCR6e6BrBe8FF/NLKmuY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=k71KfOZOct0i/ep/5X4HoslrR07mafwE00d79eu4dmMB+GIsRsZ6twy3fKHslelyAlg98Diq1xYHQjywBcaOmGtaNLJgq/KWxdrj8dNl31McpLS92BWdn/Y5K1d6qGu5A+fbKP3WxeNZzrEOI5/BcOXdDjtvg4Sa9v6b7CgVhzo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=cSelCeBU; arc=none smtp.client-ip=192.198.163.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1717142018; x=1748678018; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ZnELZO/KlIAqu27St8QzH8oaCR6e6BrBe8FF/NLKmuY=; b=cSelCeBUAfzKl6UX0JGPlfkn4Iv76ZrRUCL00MjDG7aAYABkY/d3TD8b Nlj5VXjONsu+31u1WTYqBLQ6UgaCrnj/kDgxxzMO+wY/JGCkDFl0norOW HNH+RKiPmjKmzmkYalTv20HBCZOxUuVQjh+PS2T14vSpEmeYCT6/Q+Zkx 4MY4ybCdjN8j9rrjJRcwCCnGBDHgJeJIGPQkyPDbJQYJPRSNp2+h8I2ZL 1ZHPAN65JTBT/bx63RA3BXdFlcxfYrCFn8M4ZJRf6rvG+DzUrsJUdt+mV 8igOywujhutcqhfEgkmHcICMquzEYbicgf2AHUDLob7dUyEJnV9G0/e/D Q==; X-CSE-ConnectionGUID: 3AGRNwYuS2CdOatxSxq9XA== X-CSE-MsgGUID: Xbx/ck8zRjW6Q424AkklPg== X-IronPort-AV: E=McAfee;i="6600,9927,11088"; a="24336943" X-IronPort-AV: E=Sophos;i="6.08,203,1712646000"; d="scan'208";a="24336943" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by fmvoesa103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 May 2024 00:53:37 -0700 X-CSE-ConnectionGUID: TsdvSXMYTzqF3xyw0kj5tQ== X-CSE-MsgGUID: IuvCCeT3Qa2J8VH03V62nA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,203,1712646000"; d="scan'208";a="36081111" Received: from xpf.sh.intel.com ([10.239.182.130]) by fmviesa008.fm.intel.com with ESMTP; 31 May 2024 00:53:34 -0700 From: Pengfei Xu To: Shuah Khan , shuah@kernel.org, linux-kselftest Cc: linux-kernel , jithu.joseph@intel.com, Pengfei Xu , ashok.raj@intel.com, sathyanarayanan.kuppuswamy@intel.com Subject: [PATCH v2 4/4] selftests: ifs: verify IFS ARRAY BIST functionality Date: Fri, 31 May 2024 15:53:50 +0800 Message-ID: X-Mailer: git-send-email 2.43.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit There are two selftest scenarios for ARRAY BIST(Board Integrated System Test) tests: 1. Perform IFS ARRAY BIST tests once on each CPU. 2. Perform IFS ARRAY BIST tests on a random CPU with 3 rounds. These are not meant to be exhaustive, but are some minimal tests for for checking IFS ARRAY BIST. Reviewed-by: Jithu Joseph Reviewed-by: Kuppuswamy Sathyanarayanan Co-developed-by: Ashok Raj Signed-off-by: Ashok Raj Signed-off-by: Pengfei Xu --- .../selftests/drivers/platform/x86/intel/ifs/test_ifs.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/testing/selftests/drivers/platform/x86/intel/ifs/test_ifs.sh b/tools/testing/selftests/drivers/platform/x86/intel/ifs/test_ifs.sh index 82fc5a461b12..8b68964b29f4 100755 --- a/tools/testing/selftests/drivers/platform/x86/intel/ifs/test_ifs.sh +++ b/tools/testing/selftests/drivers/platform/x86/intel/ifs/test_ifs.sh @@ -17,6 +17,7 @@ readonly IFS_SCAN_MODE="0" readonly IFS_ARRAY_BIST_SCAN_MODE="1" readonly IFS_PATH="/sys/devices/virtual/misc/intel_ifs" readonly IFS_SCAN_SYSFS_PATH="${IFS_PATH}_${IFS_SCAN_MODE}" +readonly IFS_ARRAY_BIST_SYSFS_PATH="${IFS_PATH}_${IFS_ARRAY_BIST_SCAN_MODE}" readonly RUN_TEST="run_test" readonly STATUS="status" readonly DETAILS="details" @@ -479,6 +480,13 @@ test_ifs() test_ifs_scan_available_imgs test_ifs_same_cpu_loop "$IFS_SCAN_MODE" "$RANDOM_CPU" "$LOOP_TIMES" fi + + if [[ -d "$IFS_ARRAY_BIST_SYSFS_PATH" ]]; then + ifs_test_cpus "$SIBLINGS" "$IFS_ARRAY_BIST_SCAN_MODE" + test_ifs_same_cpu_loop "$IFS_ARRAY_BIST_SCAN_MODE" "$RANDOM_CPU" "$LOOP_TIMES" + else + append_log "[$SKIP] No $IFS_ARRAY_BIST_SYSFS_PATH, skip IFS ARRAY BIST scan" + fi } trap ifs_cleanup SIGTERM SIGINT -- 2.43.0