Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp12910rdb; Fri, 29 Sep 2023 14:52:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGKm9hIANwWA2XEWbCYEt+cb9DBoUhi4iwI//3bk1OZWtAwlT47PZ+h5p31nTx+UyVTHA6/ X-Received: by 2002:a92:c545:0:b0:351:1311:c282 with SMTP id a5-20020a92c545000000b003511311c282mr6206461ilj.9.1696024322187; Fri, 29 Sep 2023 14:52:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696024322; cv=none; d=google.com; s=arc-20160816; b=ALBEs+RIvDmtNdmSORbKTTm8mx9MkmzvP4FL1dUG8S4/3xDif0MXxR+1HShuZD+HiR WuIB2KHy43WdxWGTHUrFBlBwFc8crJASdEPD2gbmYnc0Q5LEGJqWnPW5nsCXQWalzhPr zuQ2UvJ24O5qFyAAPugSYjciSB+YKbyZiVqIfY9CMwpf0POp/MAoVmM9uUiFc8Rkg5MB mMI46sHbCT3G/1bDX5XqOzUmHPwo++9HpUo9VfaqhDKeWqlBFRqhvOyVge2XrB75oc3a flqvlKjjZbmMrPWe0t8gj2D9S55CZGmbEfLz0Z1LbxgERSt7JtF/565EHTJUE+4+A9DU Luaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=0T1DsX37y5247zIyTXQDb1gtI6u/91z7ugnR7gBiVtg=; fh=DZTEBuCdFfe2DSdaI+6ceTR59ce872SNjmboNXW/0pA=; b=PIcj16GinxjITFvPyaQe28I46x1TaWGOPARvYRA12rnDJwpr717quotFmA7r35tOQp hgH+4MD4OUdp6ieK/KmlXBxtdO/EjMzmg+f5pepZGn9fk1GgOwb20X7svkiWW11i9Kya twxK3vBQfX9MgL3hfJ7lwmW3caA9sSXByZMgv9LYOwI2lEMpWx60fWkG2UIYMQIL3tSh DjmrsXDXaQW0gXXr4b5YnP67jxOx7K6viHjl9bXrvfjmYIu0XQPgZ0f8bnxfCZAPVLM0 J4Cqvsz6SeMUJ+I5QqMh1NSgV8j15rmbZlSZ8itP2TkTsT30qzOCwW7nGdVTOxNhKgbo eIGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=LnuOF7vQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id c7-20020a633507000000b00584b3e195basi10577417pga.289.2023.09.29.14.52.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Sep 2023 14:52:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=LnuOF7vQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 93092801E6AA; Fri, 29 Sep 2023 13:47:13 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233922AbjI2Upt (ORCPT + 99 others); Fri, 29 Sep 2023 16:45:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233829AbjI2Up2 (ORCPT ); Fri, 29 Sep 2023 16:45:28 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75C0A1AB; Fri, 29 Sep 2023 13:45:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1696020325; x=1727556325; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=c8ofPZQg6aJ0kE1jG7f82ai6elYHrz7FK0oJN2MLVaE=; b=LnuOF7vQThmb+sMqmYLKQrUB0uve3SgmgQiyGiPmeyT/IUun61I+FYIy QRyLZ/Pt3dKhI8mf/c5TBfalCy6VSbRFlUSjEUwLnRT5r9qmnLqpJzVl7 D51ciHADPxphMCOJagFa+Y9A8JIN4fWXargxLXTmPJ6fWdtu3hKJYIGL9 iQokc0DeZpbYCGtNnqyVIPPZvAF3HRpmH3tdZKyOcjVgIEoH1TBxbD8NW n0rHCxr5ONGpDSJfj/ui7EGASZj093lhc6m/k5zI+kThAoZA0Nmes8P6q O4OPKVt8Wm3J+DeiG5n1rPAEFxTrC/5D9baKWBC835G+LCrApKx9DcEmH g==; X-IronPort-AV: E=McAfee;i="6600,9927,10848"; a="468654487" X-IronPort-AV: E=Sophos;i="6.03,188,1694761200"; d="scan'208";a="468654487" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Sep 2023 13:28:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10848"; a="893539262" X-IronPort-AV: E=Sophos;i="6.03,188,1694761200"; d="scan'208";a="893539262" Received: from jithujos.sc.intel.com ([172.25.103.66]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Sep 2023 13:27:30 -0700 From: Jithu Joseph To: hdegoede@redhat.com, markgross@kernel.org Cc: tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, rostedt@goodmis.org, jithu.joseph@intel.com, ashok.raj@intel.com, tony.luck@intel.com, linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org, patches@lists.linux.dev, ravi.v.shankar@intel.com, pengfei.xu@intel.com, ilpo.jarvinen@linux.intel.com Subject: [PATCH v3 8/9] platform/x86/intel/ifs: Add new error code Date: Fri, 29 Sep 2023 13:24:35 -0700 Message-Id: <20230929202436.2850388-9-jithu.joseph@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230929202436.2850388-1-jithu.joseph@intel.com> References: <20230922232606.1928026-1-jithu.joseph@intel.com> <20230929202436.2850388-1-jithu.joseph@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Fri, 29 Sep 2023 13:47:13 -0700 (PDT) Make driver aware of a newly added error code so that it can provide a more appropriate error message. Signed-off-by: Jithu Joseph Reviewed-by: Tony Luck Reviewed-by: Ilpo Järvinen Tested-by: Pengfei Xu --- drivers/platform/x86/intel/ifs/runtest.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/platform/x86/intel/ifs/runtest.c b/drivers/platform/x86/intel/ifs/runtest.c index 925c30c79011..4fe544d79946 100644 --- a/drivers/platform/x86/intel/ifs/runtest.c +++ b/drivers/platform/x86/intel/ifs/runtest.c @@ -40,6 +40,8 @@ enum ifs_status_err_code { IFS_UNASSIGNED_ERROR_CODE = 7, IFS_EXCEED_NUMBER_OF_THREADS_CONCURRENT = 8, IFS_INTERRUPTED_DURING_EXECUTION = 9, + IFS_UNASSIGNED_ERROR_CODE_0xA = 0xA, + IFS_CORRUPTED_CHUNK = 0xB, }; static const char * const scan_test_status[] = { @@ -55,6 +57,8 @@ static const char * const scan_test_status[] = { [IFS_EXCEED_NUMBER_OF_THREADS_CONCURRENT] = "Exceeded number of Logical Processors (LP) allowed to run Scan-At-Field concurrently", [IFS_INTERRUPTED_DURING_EXECUTION] = "Interrupt occurred prior to SCAN start", + [IFS_UNASSIGNED_ERROR_CODE_0xA] = "Unassigned error code 0xA", + [IFS_CORRUPTED_CHUNK] = "Scan operation aborted due to corrupted image. Try reloading", }; static void message_not_tested(struct device *dev, int cpu, union ifs_status status) @@ -123,6 +127,8 @@ static bool can_restart(union ifs_status status) case IFS_MISMATCH_ARGUMENTS_BETWEEN_THREADS: case IFS_CORE_NOT_CAPABLE_CURRENTLY: case IFS_UNASSIGNED_ERROR_CODE: + case IFS_UNASSIGNED_ERROR_CODE_0xA: + case IFS_CORRUPTED_CHUNK: break; } return false; -- 2.25.1