linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dan Williams <dan.j.williams@intel.com>
To: linux-nvdimm@lists.01.org
Cc: Krzysztof Rusocki <krzysztof.rusocki@intel.com>,
	vishal.l.verma@intel.com, linux-kernel@vger.kernel.org
Subject: [PATCH 1/6] nfit/ars: Attempt a short-ARS whenever the ARS state is idle at boot
Date: Thu, 14 Feb 2019 12:10:10 -0800	[thread overview]
Message-ID: <155017501057.944049.2284804890743224154.stgit@dwillia2-desk3.amr.corp.intel.com> (raw)
In-Reply-To: <155017500427.944049.2254497897075714747.stgit@dwillia2-desk3.amr.corp.intel.com>

If query-ARS reports that ARS has stopped and requires continuation
attempt to retrieve short-ARS results before continuing the long
operation.

Reported-by: Krzysztof Rusocki <krzysztof.rusocki@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
---
 drivers/acpi/nfit/core.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/acpi/nfit/core.c b/drivers/acpi/nfit/core.c
index e18ade5d74e9..3d681a92ff7f 100644
--- a/drivers/acpi/nfit/core.c
+++ b/drivers/acpi/nfit/core.c
@@ -3012,6 +3012,7 @@ static int ars_register(struct acpi_nfit_desc *acpi_desc,
 
 	switch (acpi_nfit_query_poison(acpi_desc)) {
 	case 0:
+	case -ENOSPC:
 	case -EAGAIN:
 		rc = ars_start(acpi_desc, nfit_spa, ARS_REQ_SHORT);
 		/* shouldn't happen, try again later */
@@ -3036,7 +3037,6 @@ static int ars_register(struct acpi_nfit_desc *acpi_desc,
 		break;
 	case -EBUSY:
 	case -ENOMEM:
-	case -ENOSPC:
 		/*
 		 * BIOS was using ARS, wait for it to complete (or
 		 * resources to become available) and then perform our


  reply	other threads:[~2019-02-14 20:22 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-14 20:10 [PATCH 0/6] nfit/ars: Improve polling and short-ARS execution Dan Williams
2019-02-14 20:10 ` Dan Williams [this message]
2019-02-14 20:10 ` [PATCH 2/6] nfit/ars: Attempt short-ARS even in the no_init_ars case Dan Williams
2019-02-14 20:10 ` [PATCH 3/6] nfit/ars: Allow root to busy-poll the ARS state machine Dan Williams
2019-02-14 20:19   ` [PATCH v2] " Dan Williams
2019-02-15 16:43     ` Dan Williams
2019-02-14 20:27   ` [PATCH 3/6] " Dan Williams
2019-02-14 20:10 ` [PATCH 4/6] nfit/ars: Remove ars_start_flags Dan Williams
2019-02-14 20:10 ` [PATCH 5/6] nfit/ars: Introduce scrub_flags Dan Williams
2019-02-14 20:10 ` [PATCH 6/6] nfit/ars: Avoid stale ARS results Dan Williams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=155017501057.944049.2284804890743224154.stgit@dwillia2-desk3.amr.corp.intel.com \
    --to=dan.j.williams@intel.com \
    --cc=krzysztof.rusocki@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-nvdimm@lists.01.org \
    --cc=vishal.l.verma@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).