Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1768797lqa; Mon, 29 Apr 2024 20:37:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXjfNAFpXex5fUKR4hYfeGBmCiju3/hHx0xSt6TsA606VFnRXtg8mJvcXolfc7VHOMMmh1Q8Qva6RZKlA8LVt94pRVDNb7U0DsZb9gSMA== X-Google-Smtp-Source: AGHT+IEd9z3FQo8P25A8RivMgmiAss/HKs9sEFO8fIw1OJmB6R3D7Ymb5yQD4TXmH9cpw2npU5dN X-Received: by 2002:a05:6358:d094:b0:186:5f1:3827 with SMTP id jc20-20020a056358d09400b0018605f13827mr11947761rwb.18.1714448228709; Mon, 29 Apr 2024 20:37:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714448228; cv=pass; d=google.com; s=arc-20160816; b=tspX9+2nmaAhj2UXm3t6EKGzfpyjO0AhrsU3QRyH5zZmyyqTSs5NNdPFp2I/btMZIP WlozLKnTW4oAS1OLZfBwhcF427GprOBeTdfLl458hQFOIThn1Pj/V8gZ/en0aQTonmEV pjPFxjCop9+7JVV5XKQqIDInfgXJC8hGgeYjxsEO7/kGcZuCmGgxCdBRXylu/ccO/5aV yIIpzhR6t3MENxfif46fxOOkGiICAkKosl2htF4Gc5xfPrfdxYgHyp8+m3lEvGPcpDvQ 8iSTqPvxy3Sr3JwuEr/AjniBTIKUezr1Z+cNbMPc9w0B7FpJB8K6fzYtKU1eWYVGBSJH arZA== 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=HSJvDv/EvFOpy+l0s+aeTXUJzVlhnlmKvQ/EMTeIWm0=; fh=nJ88MweJ2k+dYfl+yEgTfg/ouD5VBc2cY8ABiwdNvbg=; b=I/62QqIlsPOh1l1u+ju9L1UnJnICtnNTuM46qgtwk9QpdMq1x5DhIC9kjadvlASYxc Pn21KLbDoQdfmO+lavrOcxQCddQVOgNJahaQ4Tu3B80nnXLNUGPHSVZ7GQ2nAZbgNcwJ /SEvPauPMPOrq7Wi0EpMs/8OMyc9Gp9K6llhbLFyitIjU/ycV5gGxfeLZnkcASbFY502 hc392kgOioOCn2ofVB5ZDKJ5JRowsT++CGFQQmXJJoKSERz48XoFgLtip0WJG2qYgwq3 97q1Nyi2sTT4EKsWkWgArVEieqxXAS7s8SG3wr6QPVwfJPMbs5WOfs4rfzQ3zrXOMjt8 EpmQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=bG5KBgTK; 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-163301-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163301-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 7-20020a631147000000b005e83b8031bbsi20540405pgr.746.2024.04.29.20.37.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 20:37:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-163301-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=bG5KBgTK; 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-163301-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163301-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id B3BEEB232D0 for ; Tue, 30 Apr 2024 03:32:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E7F721A5A2; Tue, 30 Apr 2024 03:31:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="bG5KBgTK" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) (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 C075D18637; Tue, 30 Apr 2024 03:31:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.13 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714447897; cv=none; b=ujsDwnBK7hyFOr28LKjY8o1JZmxzGoqcyoE+HoyYUjRSqOiPy2AKM+5RzA/rrnzKSE4IUWEzZ4uBbFEwigKM1lF79nLFnxRVyyn2AsSQr2+sSJJm/sI7QRrtRjQJOpnqePbbTS7DuIHD3ewjP8rSccrDg7ulSX6uS3xboA/dals= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714447897; c=relaxed/simple; bh=mq4Y8ibXMhwIIRyyDw1nn+vBWRQBohV8pJPSfectHRE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=VLGYuipp+onB0IV+CJllfZBFHy0E9T4cNvyb6Tch3jn1F3S7dqEo9TppI0GmGoXmZQY/wcbzi22il8Y1QAk5/FRwinBgpclAKQNMbTgCesfLQlNkb+bD0ZlOBcg7dtE4hqwiMUDleeQUDDvcn4NHkvMuwugrxUoZNHU+13u7fDw= 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=bG5KBgTK; arc=none smtp.client-ip=198.175.65.13 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=1714447896; x=1745983896; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=mq4Y8ibXMhwIIRyyDw1nn+vBWRQBohV8pJPSfectHRE=; b=bG5KBgTKXr7xdpaSSWoqyFugz31G5QKG1AoUtYxbPIIgmJLAzVDVJz4V y/RiAFA1QWKWR5PIIjw2idG9niy1UGs5IWLoyC/KEFUWfKj3Aua+ttnte /DZ4H8gE/DB77EfimuiRGLjhF3Ow1u+HstGsuYmAdq2EzorPW/BuZefFN Ub1oP8FD7UjVLH025wqIMG3WN5srE1iubxzwYgOYSLHSaBabWBAQJiKef Syx51wF/BfNtqoImX4Wxv7RIeFp7tBvoLnLm0/I+wKI1xCmeI191/8NO9 Hp2xq5n8nBdELN8uuzQkEopn18qwuo0C8DOMuLusfbr707Vlr6k12DlO2 A==; X-CSE-ConnectionGUID: 3813MeObTyu6KIof7W4hoQ== X-CSE-MsgGUID: 7EQo10CfTDylUig6sGl9DA== X-IronPort-AV: E=McAfee;i="6600,9927,11059"; a="21284194" X-IronPort-AV: E=Sophos;i="6.07,241,1708416000"; d="scan'208";a="21284194" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Apr 2024 20:31:36 -0700 X-CSE-ConnectionGUID: v9O8VmDgQ2afC3JdwV0NkQ== X-CSE-MsgGUID: 9BStZHmsSjeEOm7099Kf4A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,241,1708416000"; d="scan'208";a="26820011" Received: from xpf.sh.intel.com ([10.239.182.130]) by orviesa007.jf.intel.com with ESMTP; 29 Apr 2024 20:31:33 -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 v1 4/4] selftests: ifs: verify IFS ARRAY BIST functionality Date: Tue, 30 Apr 2024 11:31:48 +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 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 63d13400af4f..2ab310c4aaff 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 @@ -481,6 +481,14 @@ test_ifs() test_ifs_scan_available_imgs test_ifs_same_cpu_loop "$IFS_SCAN_MODE" "$RANDOM_CPU" "$LOOP_TIMES" fi + + # SAPPHIRERAPID CPU could not support IFS ARRAY BIST scan + if [[ "$MODEL" == "$SAPPHIRERAPIDS_X" ]]; then + append_log "[$SKIP] SAPPHIRERAPID CPU, skip IFS ARRAY BIST scan" + else + ifs_test_cpus "$SIBLINGS" "$IFS_ARRAY_BIST_SCAN_MODE" + test_ifs_same_cpu_loop "$IFS_ARRAY_BIST_SCAN_MODE" "$RANDOM_CPU" "$LOOP_TIMES" + fi } trap ifs_cleanup SIGTERM SIGINT -- 2.43.0