Skip to content

Commit c6c5df2

Browse files
committed
nfit/ars: Attempt a short-ARS whenever the ARS state is idle at boot
If query-ARS reports that ARS has stopped and requires continuation attempt to retrieve short-ARS results before continuing the long operation. Fixes: bc6ba80 ("nfit, address-range-scrub: rework and simplify ARS...") Cc: <stable@vger.kernel.org> Reported-by: Krzysztof Rusocki <krzysztof.rusocki@intel.com> Reviewed-by: Toshi Kani <toshi.kani@hpe.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
1 parent d139371 commit c6c5df2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/acpi/nfit/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3012,6 +3012,7 @@ static int ars_register(struct acpi_nfit_desc *acpi_desc,
30123012

30133013
switch (acpi_nfit_query_poison(acpi_desc)) {
30143014
case 0:
3015+
case -ENOSPC:
30153016
case -EAGAIN:
30163017
rc = ars_start(acpi_desc, nfit_spa, ARS_REQ_SHORT);
30173018
/* shouldn't happen, try again later */
@@ -3036,7 +3037,6 @@ static int ars_register(struct acpi_nfit_desc *acpi_desc,
30363037
break;
30373038
case -EBUSY:
30383039
case -ENOMEM:
3039-
case -ENOSPC:
30403040
/*
30413041
* BIOS was using ARS, wait for it to complete (or
30423042
* resources to become available) and then perform our

0 commit comments

Comments
 (0)