Skip to content

Commit b9aa9e4

Browse files
jithu83ij-intel
authored andcommitted
platform/x86/intel/ifs: Add new error code
Make driver aware of a newly added error code so that it can provide a more appropriate error message. Signed-off-by: Jithu Joseph <jithu.joseph@intel.com> Reviewed-by: Tony Luck <tony.luck@intel.com> Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Tested-by: Pengfei Xu <pengfei.xu@intel.com> Link: https://lore.kernel.org/r/20231005195137.3117166-9-jithu.joseph@intel.com Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
1 parent e6483a0 commit b9aa9e4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/platform/x86/intel/ifs/runtest.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ enum ifs_status_err_code {
4040
IFS_UNASSIGNED_ERROR_CODE = 7,
4141
IFS_EXCEED_NUMBER_OF_THREADS_CONCURRENT = 8,
4242
IFS_INTERRUPTED_DURING_EXECUTION = 9,
43+
IFS_UNASSIGNED_ERROR_CODE_0xA = 0xA,
44+
IFS_CORRUPTED_CHUNK = 0xB,
4345
};
4446

4547
static const char * const scan_test_status[] = {
@@ -55,6 +57,8 @@ static const char * const scan_test_status[] = {
5557
[IFS_EXCEED_NUMBER_OF_THREADS_CONCURRENT] =
5658
"Exceeded number of Logical Processors (LP) allowed to run Scan-At-Field concurrently",
5759
[IFS_INTERRUPTED_DURING_EXECUTION] = "Interrupt occurred prior to SCAN start",
60+
[IFS_UNASSIGNED_ERROR_CODE_0xA] = "Unassigned error code 0xA",
61+
[IFS_CORRUPTED_CHUNK] = "Scan operation aborted due to corrupted image. Try reloading",
5862
};
5963

6064
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)
123127
case IFS_MISMATCH_ARGUMENTS_BETWEEN_THREADS:
124128
case IFS_CORE_NOT_CAPABLE_CURRENTLY:
125129
case IFS_UNASSIGNED_ERROR_CODE:
130+
case IFS_UNASSIGNED_ERROR_CODE_0xA:
131+
case IFS_CORRUPTED_CHUNK:
126132
break;
127133
}
128134
return false;

0 commit comments

Comments
 (0)