Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp252844imj; Fri, 15 Feb 2019 23:05:50 -0800 (PST) X-Google-Smtp-Source: AHgI3IaQA4a4QDrZRH9EQKwq+pZw4Izrefu6x/nOTxBL1Nh37Mr0TU7mzqgH3CypdfyUVB5YkWBy X-Received: by 2002:a63:2c8a:: with SMTP id s132mr9047260pgs.440.1550300750894; Fri, 15 Feb 2019 23:05:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550300750; cv=none; d=google.com; s=arc-20160816; b=yZWq5LKOmuhynMrWvG5gv4zbHCOMIjGJ063LATeW8HThm/xeUkwjYnqsU7Ia0EEtWz SVdJc9jASsYPJao/Ql38M5LML6DrZp2n0ptzG7K/MqtM3z37nwI28S9tHDDakcEwVhFi QMVnYMfGfnxHVqb4g328N4VWCYg2OlS27noHK9NSNuSMLve2p2gyHqLMNbxfu6eMPH5k 7aK3e/QTXzhcYdJgCCLfOoNw9Bir9euDzK73GDElHarAvNtJJwWujATAHA8s+UIAbAuP Ka+Ws9rr/Mvm1wPh79Uijb9b2FlyAjO/KsF2JAp3JX8DUMJLKONqzUwerpHet6+dHu4B Gx7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:cc:to:from :subject; bh=5hBf6oVU4K1GZBk2CzAP5CDK3/nYbKN6feK8pdTHzxk=; b=WZLBaacPR6R+MwooWu/SY9zsRKnHfhQbcFrSVhz9fUltYdPe5FVHBXJxRR4Vn2ToaI gXKSsHGA2ELU9j7Xnf7ttFwJuqOfE0LMoXxYtwpx3zmc2iUICHLD7N1Po7m7J3VxnHDN awWYDtXxNn2LdmtEUvWzaMv2bEUE/mI0l1D79pD8k0tUZ75WF/GTQhIaeJMgw8vnWLI+ /EZ2Xz1jqAJVvNWkN6oaDPgc0fyBH24zZfaIs8AvBWUcmdrPFYk0BDkZQ3Qp1hxlF6Yx OJxhgRJTf4HgH2J0xn8Dqufd0xPbNRpuBI9ByxsYeCZAi58L03NCYsvFAdF/ZGz2eUJb WGvQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q4si1902243pgv.338.2019.02.15.23.05.35; Fri, 15 Feb 2019 23:05:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732839AbfBOT4c (ORCPT + 99 others); Fri, 15 Feb 2019 14:56:32 -0500 Received: from mga14.intel.com ([192.55.52.115]:33226 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732725AbfBOT4b (ORCPT ); Fri, 15 Feb 2019 14:56:31 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Feb 2019 11:56:30 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,373,1544515200"; d="scan'208";a="118277815" Received: from dwillia2-desk3.jf.intel.com (HELO dwillia2-desk3.amr.corp.intel.com) ([10.54.39.16]) by orsmga008.jf.intel.com with ESMTP; 15 Feb 2019 11:56:30 -0800 Subject: [PATCH v2 1/6] nfit/ars: Attempt a short-ARS whenever the ARS state is idle at boot From: Dan Williams To: linux-nvdimm@lists.01.org Cc: Krzysztof Rusocki , vishal.l.verma@intel.com, linux-kernel@vger.kernel.org Date: Fri, 15 Feb 2019 11:43:52 -0800 Message-ID: <155025983247.1043225.5927153534700111609.stgit@dwillia2-desk3.amr.corp.intel.com> In-Reply-To: <155025982726.1043225.15436410616433285475.stgit@dwillia2-desk3.amr.corp.intel.com> References: <155025982726.1043225.15436410616433285475.stgit@dwillia2-desk3.amr.corp.intel.com> User-Agent: StGit/0.18-2-gc94f MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Signed-off-by: Dan Williams --- 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