Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp3038232rdb; Fri, 22 Sep 2023 16:35:49 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEqwdMnqfHIhmZBkVmZ6DBd54Py9kosusG8SAOedFOYZJn7iIxpKD6mfeapWZ5z3OJTsOuS X-Received: by 2002:a17:902:e846:b0:1c0:a5c9:e05a with SMTP id t6-20020a170902e84600b001c0a5c9e05amr1139716plg.43.1695425749528; Fri, 22 Sep 2023 16:35:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695425749; cv=none; d=google.com; s=arc-20160816; b=MOKOc9RgKpXSvkeIxjHHbGNKty/xy6ZSGfDizMHTLOvItWJIB8OPpovrYfmQ404Jla V9wyOAvIryTNCmsjdrw1LQNY2izO92fwQNJw33v3U2iOenK67ZvHxkoxNsFWi4hATY9g /VhhMaEtgkWvfRM+cildsugzO9bG4oYhLhVvKKTiH1bdVpKPGqojA1JYx+Kkdx745fSI NoeddeJj/3smXR6OIFQEDJesNPm19Gu+bDuKc6EPxtI+RCUeiWI+wffFjO8ldM4yPz2o xrHyDs8U7hzz9HCRlYVPWxHpZwnuuejtNGdYuj3XchTgpa0KifqOtTT8GZClHW3KJSkG MzKw== 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=SS/VQwKCTDAeAqcAzLLndgUhd9ZmPJ5HxH0FuFsO+8E=; fh=DZTEBuCdFfe2DSdaI+6ceTR59ce872SNjmboNXW/0pA=; b=C2gSEZcZYjYeDMOkitQWRY0xkyhIeKWLXMP2srlSY/e8sANqUpvsdvYLeyICZ/7uWn BOl1P/c+C32S5I9QVrOxbVxyXFlHNcXlQHaV9MpN1EB5PqDairtNDqgZelLJOcPZ5O8B fgg7ScKTgsHd6FnA6tVkPQP1NcOta0xKYx0ftMKdsQVVI1t98EHAzbn41P6g44Hsj9iC TKIPdUkgDXW66JYIK5QLt9wv3ZWOgvDVyiXkSmlfA4L8HQ3tCO14XnbQH/yHTf7pbY4Z KMK7Rh77X+giGhnOUWnRuUGis54xPDawOeDV06UXfdMP/uy+lW/VsgJc+8hGhcZDHZY0 SCgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=eyNHUMPe; 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 y15-20020a17090264cf00b001c09d893c94si3369191pli.612.2023.09.22.16.35.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 16:35:49 -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=eyNHUMPe; 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 CFC5282B2E8C; Fri, 22 Sep 2023 16:31:06 -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 S230437AbjIVXao (ORCPT + 99 others); Fri, 22 Sep 2023 19:30:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230319AbjIVXaW (ORCPT ); Fri, 22 Sep 2023 19:30:22 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F164019E; Fri, 22 Sep 2023 16:30:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695425416; x=1726961416; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=psQXW7/lcmfS9QTLfrs9wDsLw5q6RjkAEKo07iKppi4=; b=eyNHUMPehHz9y+RzJMBGCGhbm9y2U6NbPZcMLSXYU53DpXcDuaTGJDLn VLupBbnOVrHHxzVHYhmt/4GwuDQlbM+qLkbZ3uNbgCXAPDJkKNz4dsfFr YGcKrIVAMl+anS69mC8XeN1FsPy/NT9Skm+cPU/oFnODhTl31rHXW5+Kp YgQhsj6uaKetGOohos3ULfqt2seRVZk6T9yVjT9JjUrmOQmmx+HiQWgk1 N7X06N0TU4bqtsDsTIyjRrB+BJGKvafYNPKEAiB8L/l/gCxy8S+PY4WpM 9X3Myct/fPGCYdPC5uSWnnMGd6Vw34zbM+o1tB1a72LHQgfPr/w1Evo4b A==; X-IronPort-AV: E=McAfee;i="6600,9927,10841"; a="411896990" X-IronPort-AV: E=Sophos;i="6.03,169,1694761200"; d="scan'208";a="411896990" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Sep 2023 16:30:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10841"; a="921350850" X-IronPort-AV: E=Sophos;i="6.03,169,1694761200"; d="scan'208";a="921350850" Received: from jithujos.sc.intel.com ([172.25.103.66]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Sep 2023 16:30:13 -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 v2 8/9] platform/x86/intel/ifs: Add new error code Date: Fri, 22 Sep 2023 16:26:05 -0700 Message-Id: <20230922232606.1928026-9-jithu.joseph@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230922232606.1928026-1-jithu.joseph@intel.com> References: <20230913183348.1349409-1-jithu.joseph@intel.com> <20230922232606.1928026-1-jithu.joseph@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=2.7 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no 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, 22 Sep 2023 16:31:07 -0700 (PDT) X-Spam-Level: ** 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 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 94d486e5d263..a29f7b8fa48e 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