Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752385AbdFQADg (ORCPT ); Fri, 16 Jun 2017 20:03:36 -0400 Received: from g9t5009.houston.hpe.com ([15.241.48.73]:33903 "EHLO g9t5009.houston.hpe.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751812AbdFQADe (ORCPT ); Fri, 16 Jun 2017 20:03:34 -0400 From: "Kani, Toshimitsu" To: Dan Williams CC: "Rafael J. Wysocki" , Vishal L Verma , "Knippers, Linda" , "linux-nvdimm@lists.01.org" , Linux ACPI , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH v2 2/2] acpi/nfit: Issue Start ARS to retrieve existing records Thread-Topic: [PATCH v2 2/2] acpi/nfit: Issue Start ARS to retrieve existing records Thread-Index: AQHS4IZRMg43qIj9PEqfNzKR8/MwJKImhfEAgAGvE8A= Date: Sat, 17 Jun 2017 00:01:44 +0000 Message-ID: References: <20170608183658.24731-1-toshi.kani@hpe.com> <20170608183658.24731-3-toshi.kani@hpe.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=hpe.com; x-originating-ip: [106.143.130.118] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DF4PR84MB0074;7:nGLRuUaAzSOMB+18Wsjo0NIngsHQQbgQ+whVlNZf9/W6sYZIBO5lQtMrIJbnOdDB6Vgero46QJXsOY9Rv1IqA1qZjI7pE1o3tVdpVb1c0agS06MS78KnPdDNsESSKbRgPzT5w6GPooRHyqaagNuvyI4DBnzfQF++7uhmUwIpHM1sQVJTLKccKehX8e1lt1GgIHBSBes0AJil/91/Q2PWXXnxI0XlAyp7/8OAWgb1D5tIV42aFYAT4BFtO8718l1why3mH6VL0DMKcClVn4qeutFlusc/AdtX/QRgzzdGWC2PwTvZ4+8QGvYbF649wxkbYwry75P31YUTltU+wr6ChitKwRZo541Vd64T1EKHJJ2O1Qlo0VHLGLM9VUoYD6VrzfePid0tGEo4ac+J5EWSWlE49RgUEu58J+tZ6nvfV1ysSFc4bHme6rmHJOcXOcouuoL92I3oSJ7Q67p5wDL6fn/XO49GNpeZ8pimo48Ow8IIgCQ9ojo4vtbDCNhlckVsR+HW+fxvyw8iZd5uTFAi1dnX7FCZUmgbLy3H8r1gNKMM84TTMIkJOan4F3s/qTRH3qhnAYxE1cTqOVWRYjK4F9r9sazyf3IGoqdlOEudbG7xKryF40/RH/a0JDGGcgy6FoRqSf/tQGVhxhyHmZ+fRtjcx2IRCkVG2xgeq/MSz1Cm5Cm5Drf/uYLfGF6Acn/Ol33Wx2jjhFti23VrHKX+NJxOwmL4RoEuBDaWDmh3xNUajgAFueyq9XpyqJqPSofwMxF+m6ZzXuvDxC+IWobNhE+f6OD5PXBUEIo1QP+LwvQ= x-forefront-antispam-report: SFV:SKI;SCL:-1SFV:NSPM;SFS:(10019020)(6009001)(39860400002)(39850400002)(39450400003)(39840400002)(39400400002)(39410400002)(5660300001)(7736002)(189998001)(3846002)(3660700001)(7696004)(86362001)(122556002)(102836003)(76176999)(74316002)(33656002)(6116002)(305945005)(6246003)(110136004)(53936002)(55016002)(54906002)(50986999)(9686003)(54356999)(6916009)(2950100002)(3280700002)(66066001)(38730400002)(478600001)(25786009)(6506006)(8676002)(14454004)(81166006)(6436002)(8936002)(77096006)(4326008)(2900100001)(2906002)(229853002);DIR:OUT;SFP:1102;SCL:1;SRVR:DF4PR84MB0074;H:DF4PR84MB0105.NAMPRD84.PROD.OUTLOOK.COM;FPR:;SPF:None;MLV:sfv;LANG:en; x-ms-traffictypediagnostic: DF4PR84MB0074: x-ms-office365-filtering-correlation-id: 8fd1b62f-b748-401f-d671-08d4b5140a62 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(2017030254075)(48565401081)(201703131423075)(201703031133081)(201702281549075);SRVR:DF4PR84MB0074; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(93006095)(93001095)(3002001)(100000703101)(100105400095)(10201501046)(6055026)(6041248)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123555025)(20161123560025)(20161123564025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:DF4PR84MB0074;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:DF4PR84MB0074; x-forefront-prvs: 034119E4F6 spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Jun 2017 00:01:44.2742 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 105b2061-b669-4b31-92ac-24d304d195dc X-MS-Exchange-Transport-CrossTenantHeadersStamped: DF4PR84MB0074 X-OriginatorOrg: hpe.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by mail.home.local id v5H03k5j010667 Content-Length: 1262 Lines: 34 > > --- a/drivers/acpi/nfit/core.c > > +++ b/drivers/acpi/nfit/core.c > > @@ -1031,7 +1031,7 @@ static ssize_t scrub_store(struct device *dev, > > if (nd_desc) { > > struct acpi_nfit_desc *acpi_desc = to_acpi_desc(nd_desc); > > > > - rc = acpi_nfit_ars_rescan(acpi_desc); > > + rc = acpi_nfit_ars_rescan(acpi_desc, 0); > > } > > device_unlock(dev); > > if (rc) > > @@ -2057,6 +2057,10 @@ static int ars_start(struct acpi_nfit_desc > *acpi_desc, struct nfit_spa *nfit_spa > > ars_start.type = ND_ARS_VOLATILE; > > else > > return -ENOTTY; > > + if (nfit_spa->ars_prev_data) { > > + ars_start.flags |= ND_ARS_RETURN_PREV_DATA; > > + nfit_spa->ars_prev_data = 0; > > + } > > I'd rather you plumb a new 'flags' parameter all the way through from > acpi_nfit_ars_rescan() to ars_start() rather than carrying this as a > property of nfit_spa. Yes, I wanted to carry 'flags' all the way, but since acpi_nfit_ars_rescan() calls acpi_nfit_scrub() via acpi_desc->work, all info needs to be marshalled into struct acpi_nfit_desc. Using nfit_spa allows a request to be carried as per-spa basis... Thanks, -Toshi