Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3536008rdb; Wed, 13 Sep 2023 15:28:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEc24M6b70CP1R+JCQ1hL3xZ3b2DHcY80flXx2J8AsjrqVfZ5+H5cIWbxyhwU+vlD9p2WTE X-Received: by 2002:a05:6a20:4287:b0:153:a461:d96e with SMTP id o7-20020a056a20428700b00153a461d96emr4373971pzj.47.1694644096398; Wed, 13 Sep 2023 15:28:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694644096; cv=none; d=google.com; s=arc-20160816; b=LWOFPPU/6AgBjrIad0jIeK5+vGxILgWzCdABKQIWwTDGsG2vzwo44zNHtHt6iZARnr cxqHDI09kC5QfP3vaog1ylSSCoOiLZwZSZsr1Mh+K3ICMEFUTGZXL7SdJ4TaR/TiC1Bl FJNO9VUvgdPzN8yuLY3hoYJd1hm4RkUZ4KY4y5ytLW1y+uQCEsv1E9YreS0D827LG9i4 KpudqUQkd+GmiiwNJtMdseIfAgrsfRdAWmRWoVzOAgdn25zSwh4UcMYTK3JuAi5aIRiB dzc912XU+zVKN96KZIuU69VP6Us4wPVCmwhltMQG5oOgUerliEGPVjhcoUUvd+KBBXad Wjhg== 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=DyC+xV0PgVoYWPw6gMwPuHtGiNljTWAakUXdBoA1lTs=; fh=8xS9zNNEexx7KHEczBpq5wXIDtxA/g5mXnxETx6X+p0=; b=VVO+fJB4wUAD/kXliei+j8C/xNkeqB5RQqSqFYrFIdkg9uYvfprLqzrp2rmsDV3ag+ UU7Q6au40DMEIZyHoVJGLQPtca7nPM9wp2GOi+0EBIzKV09Wvzi0y5qSc3NSIGpNiSgt 4K9vF8tDK1Fw6+KmD2I2SUSBQOYx+gOtTMrhCGgOTZ8Px6nU+iihUKHRqRrKH5MygbF2 /yqGSnVSgiZfMze6xmovpXkW/v5zX/AayWlF3t/FFg85PwQX/u71WURhDixx+OgmRFND dF2OTTckDZvE3r8ZypNdTPKgS0+HENrhLqBOqk9k93CyAWbEsK61AWeyYOp4p2/5S0x4 gW6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=f3fC0vmL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id d12-20020a170903230c00b001c3b2d40b32si292972plh.400.2023.09.13.15.28.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 15:28:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=f3fC0vmL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (Postfix) with ESMTP id 01E2F801F95F; Wed, 13 Sep 2023 11:38:50 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232041AbjIMSiX (ORCPT + 99 others); Wed, 13 Sep 2023 14:38:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231924AbjIMSiB (ORCPT ); Wed, 13 Sep 2023 14:38:01 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E763EA3; Wed, 13 Sep 2023 11:37:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1694630277; x=1726166277; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=xI88hAM69WWRoFYmYgNa2YKj3tBz+3B5FzPZW/C4gzc=; b=f3fC0vmL1vzgRRu8q2gAd2+/f9HiVV3nbItRn5aKArpYKX7Tw76Q1UAz V9diXBYhVt57EQT1X0BYreK5WzGl2EtT2QpTeHMFeXEOB2WnbMH4vgZwW sjXGegrxqEz/j2bsaFgWT/nxLHQ8Bgj7gvqW3bzNlN/8DzqG7DUFQMLpH D8f9Ys7cODwEX+FJljER66uwf75Bi1I42G+BT5EioKLjAiUX7K7ajnZlK DmnQJ1EGH8q6TPyWfk5GhtkpjZX9rz/cBueEWBCdOtFy0lG+4mT2+9elf nTaaTX4mZFQviQz57WV/sYdeejCtqNUPm9b1ICbsS9ugkwY+Eb1O1eI8r Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10832"; a="369019203" X-IronPort-AV: E=Sophos;i="6.02,143,1688454000"; d="scan'208";a="369019203" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Sep 2023 11:37:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10832"; a="744238603" X-IronPort-AV: E=Sophos;i="6.02,143,1688454000"; d="scan'208";a="744238603" Received: from jithujos.sc.intel.com ([172.25.103.66]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Sep 2023 11:37:57 -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 Subject: [PATCH 09/10] platform/x86/intel/ifs: Add new error code Date: Wed, 13 Sep 2023 11:33:47 -0700 Message-Id: <20230913183348.1349409-10-jithu.joseph@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230913183348.1349409-1-jithu.joseph@intel.com> References: <20230913183348.1349409-1-jithu.joseph@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 (fry.vger.email [0.0.0.0]); Wed, 13 Sep 2023 11:38:50 -0700 (PDT) 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 fry.vger.email 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 ba3f9ad88a82..997d2f07aa0c 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