Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp66068imj; Wed, 13 Feb 2019 04:52:06 -0800 (PST) X-Google-Smtp-Source: AHgI3IZwcKXIXj51d3SpmFC4v55vASA8kV5c37rvr+k6o03BxwVn6L6UEFUilKDQGj7E3tqOnadX X-Received: by 2002:a17:902:b60e:: with SMTP id b14mr326907pls.301.1550062326509; Wed, 13 Feb 2019 04:52:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550062326; cv=none; d=google.com; s=arc-20160816; b=XX4YSzJ8p8dA9XeER1xGZpGPkwUF+JhxDDSpO3IHPjjXIgPivB3sEwgGgR/gAMDBSG lwb9YmgH2NdcmquEm+6A153lJlHbi/5ZYMvJxDIZBmeVdcOqXpOECKVQwPGGc8+2B3gM xnzFur/uALR4oiMmszPtEptQjmvYmJLJMaTi0Esr/tA5HL4Ig2jxk3m0E+iji99ZIlb9 /TTG2zIPhFgD2OXVwkHfXHrzj/CzubV4H2rniTf51GjB/fOkIeRcSyzlRrRvLIUKWydp FT1PNPTrXnm06bHE72DDiKvguBz3inWkT65TnuoNvnG1kiL31+SUZNbwJw5eHVT+K3yM uIQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:to:autocrypt:openpgp:from:references:cc:subject; bh=lQCsR+EKXtrhsKH6SU9rKikBI9dPobu2olo4WhByBqk=; b=KYo+wpAUxInTtiYUGXLCYTc0CSx9xKk/opVeoBgC1NjLrid+CmEHJ/9y55OgUEcNLW 9y8reRd6VM7RTLMge6Ak3dVQDh2EHTogTHFv6sDK0lm9YgkOjDgXIOElfTXSpcvLW1M+ d/fEdOjycboHLKKAkw+QBmbk2e872hiiH1YaST27YjoGJOX2cOZD0sUCAuE6gKsnq/oc fIBSGS6UgbXNUnjOmmTn9N4c94+RY9YrF53yRMLkoidBrORklDLg/iS4U8Ah8gmspTk6 jPAaF7ceZ3Gb8DhEYhhr2LqCgP7JjjTFBKsetBvBCZyRz7zSU11f7cFTFGxAh6NiRlNF Lxug== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c8si14005856pgq.300.2019.02.13.04.51.50; Wed, 13 Feb 2019 04:52:06 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732954AbfBMIMS (ORCPT + 99 others); Wed, 13 Feb 2019 03:12:18 -0500 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:53818 "EHLO mail2-relais-roc.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730382AbfBMIMR (ORCPT ); Wed, 13 Feb 2019 03:12:17 -0500 X-IronPort-AV: E=Sophos;i="5.58,365,1544482800"; d="scan'208";a="369202876" Received: from unknown (HELO [193.50.110.185]) ([193.50.110.185]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/AES128-SHA; 13 Feb 2019 09:12:15 +0100 Subject: Re: [PATCH 5/5] dax: "Hotplug" persistent memory for use like normal RAM Cc: Dan Williams , Linux Kernel Mailing List , Tom Lendacky , Michal Hocko , linux-nvdimm , Takashi Iwai , Ross Zwisler , Linux MM , =?UTF-8?B?SsOpcsO0bWUgR2xpc3Nl?= , Fengguang Wu , Yaowei Bai , "Huang, Ying" , Bjorn Helgaas , Andrew Morton , Borislav Petkov References: <20190124231441.37A4A305@viggo.jf.intel.com> <20190124231448.E102D18E@viggo.jf.intel.com> <26ac36f4-7391-5321-217b-50d67e2119d7@intel.com> <453f13cd-a7fe-33eb-9a27-8490825ca29c@inria.fr> From: Brice Goglin Openpgp: preference=signencrypt Autocrypt: addr=Brice.Goglin@inria.fr; prefer-encrypt=mutual; keydata= mQINBFNg91oBEADMfOyfz9iilNPe1Yy3pheXLf5O/Vpr+gFJoXcjA80bMeSWBf4on8Mt5Fg/ jpVuNBhii0Zyq4Lip1I2ve+WQjfL3ixYQqvNRLgfw/FL0gNHSOe9dVFo0ol0lT+vu3AXOVmh AM4IrsOp2Tmt+w89Oyvu+xwHW54CJX3kXp4c7COz79A6OhbMEPQUreerTavSvYpH5pLY55WX qOSdjmlXD45yobQbMg9rFBy1BECrj4DJSpym/zJMFVnyC5yAq2RdPFRyvYfS0c491adD/iw9 eFZY1XWj+WqLSW8zEejdl78npWOucfin7eAKvov5Bqa1MLGS/2ojVMHXJN0qpStpKcueV5Px igX8i4O4pPT10xCXZ7R6KIGUe1FE0N7MLErLvBF6AjMyiFHix9rBG0pWADgCQUUFjc8YBKng nwIKl39uSpk5W5rXbZ9nF3Gp/uigTBNVvaLO4PIDw9J3svHQwCB31COsUWS1QhoLMIQPdUkk GarScanm8i37Ut9G+nB4nLeDRYpPIVBFXFD/DROIEfLqOXNbGwOjDd5RWuzA0TNzJSeOkH/0 qYr3gywjiE81zALO3UeDj8TaPAv3Dmu7SoI86Bl7qm6UOnSL7KQxZWuMTlU3BF3d+0Ly0qxv k1XRPrL58IyoHIgAVom0uUnLkRKHczdhGDpNzsQDJaO71EPp8QARAQABtCRCcmljZSBHb2ds aW4gPEJyaWNlLkdvZ2xpbkBpbnJpYS5mcj6JAjgEEwECACIFAlNg+aMCGwMGCwkIBwMCBhUI AgkKCwQWAgMBAh4BAheAAAoJEESRkPMjWr076RoQAJhJ1q5+wlHIf+YvM0N1V1hQyf+aL35+ BPqxlyw4H65eMWIN/63yWhcxrLwNCdgY1WDWGoiW8K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zXJo/OfC3mwNW4zQWJkG233UOf6YE rmrSaTIBTIWF8CxGY9iXPaJGNYSUa6R/VJS09EWeZgRz9Gk3h5AyDrdo5RFN9HNwOj41o0cj eLDF69092Lg5p5isuOqsrlPi5imHKcDtrXS7LacUI6H0c8onWoH9LuW99WznEtFgPJg++TAv f9M2x57Gzl+/nYTB5/Kpl1qdPPC91zUipiKbnF5f8bQpol0WC+ovmQARAQABiQIfBBgBAgAJ BQJTYPdaAhsMAAoJEESRkPMjWr074+0P/iEcN27dx3oBTzoeGEBhZUVQRZ7w4A61H/vW8oO8 IPkZv9kFr5pCfIonmHEbBlg6yfjeHXwF5SF2ywWRKkRsFHpaFWywxqk9HWXu8cGR1pFsrwC3 EdossuVbEFNmhjHvcAo11nJ7JFzPTEnlPjE6OY9tEDwl+kp1WvyXqNk9bosaX8ivikhmhB47 7BA3Kv8uUE7UL6p7CBdqumaOFISi1we5PYE4P/6YcyhQ9Z2wH6ad2PpwAFNBwxSu+xCrVmaD skAwknf6UVPN3bt67sFAaVgotepx6SPhBuH4OSOxVHMDDLMu7W7pJjnSKzMcAyXmdjON05Sz SaILwfceByvHAnvcFh2pXK9U4E/SyWZDJEcGRRt79akzZxls52stJK/2Tsr0vKtZVAwogiaK uSp+m6BRQcVVhTo/Kq3E0tSnsTHFeIO6QFHKJCJv4FRE3Dmtz15lueihUBowsq9Hk+u3UiLo SmrMAZ6KgA4SQxB2p8/M53kNJl92HHc9nc//aCQDi1R71NyhtSx+6PyivoBkuaKYs+S4pHmt sFE+5+pkUNROtm4ExLen4N4OL6Kq85mWGf2f6hd+OWtn8we1mADjDtdnDHuv+3E3cacFJPP/ wFV94ZhqvW4QcyBWcRNFA5roa7vcnu/MsCcBoheR0UdYsOnJoEpSZswvC/BGqJTkA2sf To: Dave Hansen Message-ID: Date: Wed, 13 Feb 2019 09:12:14 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 13/02/2019 à 01:30, Dan Williams a écrit : > On Tue, Feb 12, 2019 at 11:59 AM Brice Goglin wrote: >> # ndctl disable-region all >> # ndctl zero-labels all >> # ndctl enable-region region0 >> # ndctl create-namespace -r region0 -t pmem -m devdax >> { >> "dev":"namespace0.0", >> "mode":"devdax", >> "map":"dev", >> "size":"1488.37 GiB (1598.13 GB)", >> "uuid":"ad0096d7-3fe7-4402-b529-ad64ed0bf789", >> "daxregion":{ >> "id":0, >> "size":"1488.37 GiB (1598.13 GB)", >> "align":2097152, >> "devices":[ >> { >> "chardev":"dax0.0", >> "size":"1488.37 GiB (1598.13 GB)" >> } >> ] >> }, >> "align":2097152 >> } >> # ndctl enable-namespace namespace0.0 >> # echo -n dax0.0 > /sys/bus/dax/drivers/device_dax/remove_id >> >> >> I tried with and without dax_pmem_compat loaded, but it doesn't help. > I think this is due to: > > a9f1ffdb6a20 device-dax: Auto-bind device after successful new_id > > I missed that this path is also called in the remove_id path. Thanks > for the bug report! I'll get this fixed up. Now that remove_id is fixed, things fails later in Dave's procedure: # echo -n dax0.0 > /sys/bus/dax/drivers/device_dax/remove_id # echo -n dax0.0 > /sys/bus/dax/drivers/device_dax/unbind # echo -n dax0.0 > /sys/bus/dax/drivers/kmem/new_id # echo -n dax0.0 > /sys/bus/dax/drivers/kmem/bind -bash: echo: write error: No such device (And nothing seems to have changed in /sys/devices/system/memory/*/state) Brice