Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752819AbdGEXrS (ORCPT ); Wed, 5 Jul 2017 19:47:18 -0400 Received: from g2t2352.austin.hpe.com ([15.233.44.25]:45494 "EHLO g2t2352.austin.hpe.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752609AbdGEXrM (ORCPT ); Wed, 5 Jul 2017 19:47:12 -0400 From: "Kani, Toshimitsu" To: "dan.j.williams@intel.com" , "Knippers, Linda" CC: "linux-kernel@vger.kernel.org" , "hch@lst.de" , "viro@zeniv.linux.org.uk" , "x86@kernel.org" , "mawilcox@microsoft.com" , "linux-nvdimm@lists.01.org" , "linux-fsdevel@vger.kernel.org" , "jack@suse.cz" Subject: Re: [PATCH v4 12/16] libnvdimm, nfit: enable support for volatile ranges Thread-Topic: [PATCH v4 12/16] libnvdimm, nfit: enable support for volatile ranges Thread-Index: AQHS8QGnKkts09hmeUykqHaORyWjLKI8N3yAgAAW54CAAAmYgIAACV8AgAAGVgCAAAR7gIAAAckAgAACPYCAAAHVAIAAAn8AgAAEW4CAACVlAIAJTuiA Date: Wed, 5 Jul 2017 23:46:00 +0000 Message-ID: <1499297819.2042.5.camel@hpe.com> References: <149875877608.10031.17813337234536358002.stgit@dwillia2-desk3.amr.corp.intel.com> <149875884190.10031.6179599135820559644.stgit@dwillia2-desk3.amr.corp.intel.com> <595552F5.5040008@hpe.com> <59556E37.80808@hpe.com> <595580A6.9000004@hpe.com> <595589CF.5010605@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: [15.203.227.8] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DF4PR84MB0073;7:1Z2FW256HLVugAs73GBKojE0pldbpHJqsyhqHNbLaHN2660K+jYHO8ECWWvOS91UFEbp/yxPq4zg0U+a9gOzAlmlT1inxCuHZ/q0GH9qx5BzWWD24xFI6ofg7X417qGROAmOFGT7Cz1Hrh2OemwLBhu3VBXsPtl4KfVyhIltZI70T2e/YBhn//hKCmTonX5J0lePV5rOVyADh67V03XMCQYHKoo2tVST0fBOiwlbun48rkdWY/FG+nzMMW5qDU8CZT1F8tSP7D/kDF4WT5ZwaeHc0x9dbUHvmGqMd+STLqVOL/9osR8TLnH21RrhQC3yZmBwjD4/0NOMYhG1krbAoVaukO8OUYc4myPuggIEyd82e96fTAyv76vUtiBnzYcsbt/kJkYZcRAKNin8veNtS39HZDnaUx0epOIB5AYTYtHgATpbJimtU9O3+BPK7YExO/Fjsg0fhZmYaq5ouobtaFDA1TEs4cjWzjF66iFGyyyrm5B6DnpK7hpaJS3YT2IvyTRla/B3HLOwG6OSkfyfaJmc218b84FoOiXp2xB0X50IYs4uw0/QIZkfSvK2A6MvTsyypLMnWElwJuQuuLsaY0OGH3omtF/1GeCTczVHdv1Nh7gXURTAN/Zq4iDv1LcoVOgmdK0tw5ayY/Ui9L49DC3hlDM9/5DVHMGOzSXfh1qCWtezfFH0fD5POD0nGKqQWAvZ+wsGriKB6OPgQSBkkwY4Vw1/fBPza/5qgX4b0JHLwJSxUSd3n9XZMROZlTBBZ5B73tVf0ikXX3J/4uvLSmg+RirSMpATwTlWGbeqF1U= x-forefront-antispam-report: SFV:SKI;SCL:-1SFV:NSPM;SFS:(10019020)(6009001)(39450400003)(39400400002)(39850400002)(39840400002)(39860400002)(39410400002)(24454002)(377424004)(377454003)(3846002)(102836003)(5660300001)(6116002)(53546010)(4326008)(66066001)(53936002)(229853002)(36756003)(14454004)(6506006)(86362001)(2950100002)(6486002)(2501003)(77096006)(478600001)(93886004)(189998001)(7736002)(8936002)(50986999)(54356999)(76176999)(305945005)(3660700001)(6636002)(3280700002)(6436002)(6246003)(6512007)(8666007)(38730400002)(25786009)(2906002)(103116003)(54906002)(2900100001)(8676002)(81166006)(33646002);DIR:OUT;SFP:1102;SCL:1;SRVR:DF4PR84MB0073;H:DF4PR84MB0105.NAMPRD84.PROD.OUTLOOK.COM;FPR:;SPF:None;MLV:sfv;LANG:en; x-ms-office365-filtering-correlation-id: 99e46f6d-6b4e-4156-1a4a-08d4c3fffdc0 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254075)(48565401081)(300000503095)(300135400095)(2017052603031)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:DF4PR84MB0073; x-ms-traffictypediagnostic: DF4PR84MB0073: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(133145235818549)(236129657087228)(225559137633274)(247924648384137); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(100000703101)(100105400095)(3002001)(6055026)(6041248)(20161123555025)(20161123564025)(20161123560025)(20161123562025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:DF4PR84MB0073;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:DF4PR84MB0073; x-forefront-prvs: 0359162B6D spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: <1644281EC7992B45957F7A84574234DC@NAMPRD84.PROD.OUTLOOK.COM> MIME-Version: 1.0 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Jul 2017 23:46:00.5632 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 105b2061-b669-4b31-92ac-24d304d195dc X-MS-Exchange-Transport-CrossTenantHeadersStamped: DF4PR84MB0073 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 nfs id v65NlPiB020082 Content-Length: 2103 Lines: 54 On Thu, 2017-06-29 at 18:28 -0700, Dan Williams wrote: > On Thu, Jun 29, 2017 at 4:14 PM, Linda Knippers om> wrote: > > On 06/29/2017 06:58 PM, Dan Williams wrote: > > > On Thu, Jun 29, 2017 at 3:49 PM, Linda Knippers > > pe.com> wrote: > > > > > The parent region of the namespace will have a 'volatile' > > > > > type: > > > > > > > > > > # cat /sys/bus/nd/devices/region0/devtype > > > > > nd_volatile > > > > > > > > > > > > If all I know is the /dev/pmem device name, how do I find that? > > > > > > > > > >     cat $(readlink -f /sys/block/pmem0/device)/../devtype > > > > > > ...this is where 'ndctl list' will get the information. > > > > > > > Thanks. > > > > I think we need a section 4 pmem manpage like exists for > > mem, sd, fd, md, etc., where we can put stuff like this, as well > > as providing some overview information that will point people to > > other resources.  I'll give that some thought unless there is one > > already that I'm not finding. > > > > A "pmem" man page sounds like a great idea, I wasn't aware we even > had an sd man page. Sorry for being late to respond, but I agree with Linda that this naming policy is likely to confuse users. I also care less about the current users who use memmap option. This case is pmem-emulation and they know what they are doing. Assuming block device interface is needed (in addition to device-dax) for volatile range for use-cases like swap device, I wonder if user can actually specify a right pmem device for swap from OS-install GUI when both volatile and persistent block devices are listed as /dev/pmemN. Sometimes we are restricted with GUI menu. Some users use GUI all the time like Windows as well. Can we differentiate the naming by adding 'v' like 'pmemNv' (if you can't go with 'vmemN')? I don't think having 's' for BTT was that bad. It's been helpful to tell users that these pmem devices are not byte- addressable. I also think that BTT for volatile range makes no sense (unless emulated as persistent memory by memmap option). Thanks, -Toshi