Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp4528663imj; Tue, 12 Feb 2019 18:36:55 -0800 (PST) X-Google-Smtp-Source: AHgI3IZ+fxrvTfNQoz338D5WMoK9VjDO9zqtWMqlqQfXgAD1GAKiFC/93FOzyjdaqM3xD1kTB2Nn X-Received: by 2002:a63:2b03:: with SMTP id r3mr6400088pgr.1.1550025414985; Tue, 12 Feb 2019 18:36:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550025414; cv=none; d=google.com; s=arc-20160816; b=rKUW/iLPA/zJ4NfrEUIpQ8lrHWvq0SBvlhf1wF2e3Hl9/a0PDDAc2HhepRupUF9Omk SUCo8I6K6wmvJTALBJzgRjF9JvMheAKStYv08RkTDfvCqQOxDW6KsB3vK1liXTK7IMhM A2R8m+zPyWaHbPCe58aNqVyREztPZDDF8AodtIW6u893vFrcMgwtq5/0xHsInyTI08m8 OZJ5FWUrjDyRMoaJe1IaDlCOmF/umCLz/pqeRj2HDiohrtj+LF9KpOwwf9pwoMLD1N/X 51EzJcG349UEw+kKZHUeWmU5bdpLkww17LH/5wH1XZmRz2Lv0s6e6cveaTU/HQ4+UAS8 ZRag== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=xYmrRYaE5CixJaAgNDYErhzzOhW5/liHoijaul9aviw=; b=oo3hZy79Q9mR9UpB9xNxnsw3P62oI0aYskDy+btrjPOaI+u7QwwjbOeOVL1ND1Kfzv 38gKpALJaTtuyOmemA3ocaafGkDd8HYXnbKQ9nz0xvKRq22+lHD0RBnf3DkabgW+TSeS gXiA2v3i9o2H1f9oWG3GwcBopLit5qyYmv25tH2M+vtBHEmy+3kh1bKYsFEoK+G0LGmc aVPOnCqCBwf7dRfc+YXpRw8vXnTojvPZqZK4t4fHbYNAPgcYULARigc/LfMu7deR1cuc d0VPRmOdEalIJhf8yI1ZcyolsF775/5g3zbrvjuLRN8KSnvVmciRpWiAsWKhhljqSWw5 Pf9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=qlBQx88F; 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 bh5si14148701plb.42.2019.02.12.18.36.39; Tue, 12 Feb 2019 18:36:54 -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; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=qlBQx88F; 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 S1731302AbfBMAa3 (ORCPT + 99 others); Tue, 12 Feb 2019 19:30:29 -0500 Received: from mail-ot1-f66.google.com ([209.85.210.66]:43520 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728438AbfBMAa2 (ORCPT ); Tue, 12 Feb 2019 19:30:28 -0500 Received: by mail-ot1-f66.google.com with SMTP id n71so1010206ota.10 for ; Tue, 12 Feb 2019 16:30:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=xYmrRYaE5CixJaAgNDYErhzzOhW5/liHoijaul9aviw=; b=qlBQx88F8mFF9E24rJbJYEin8dY3+oc9LNXKt4SgBaHFE/+5LXGpr2NGXaLT0rfAcP LWI1vJOmJx6Bt8XPXS/MvlU6JN/OOxnlcWoSnPzNQvQsbT5RgSQeRypgwEFeZ5M2GiH+ qm8+q7tB9DuEv7KRXpnMECYSFd/3I6jXUXvJAnKXs3/Oxn9NUBmrp9g8nt1iGjUT0rCm Q3gRoJ57/+4MV/FqMvF4yZ/+RQ+qMqO7TIrfj3HCRBri0f0Js3YixlJ79uw485owxWkJ j40CorJRjQhuXwa4FLcfSmziGfyuDLMtb/ojuS7I9+GWXloUr/A2pnQyJXlYzMNaxdzZ ucpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=xYmrRYaE5CixJaAgNDYErhzzOhW5/liHoijaul9aviw=; b=D/UJ+GoRHW0QFeI6y6PG6P/5xeAlPdjT0VaqOnh6lfI/kLdIqT5dbdiPri5uoSkv6P 7Fn3fNNE/UlFNCjJTwsUvRNfebalx6lvdAkNafJ1SggI2ANnocdCXQaQKV9C7dzqOvtl 276roBqRBFCl1KZsCmBrhYczz/hpG6yJTuM6PtRDGfkot/WKIyg5O+alYpZZecEnFvh6 EjQMOwv7Gp1zKsrKlfSAVtLJCE8DubnkBEUjHsHhioPUv16Zs9wuQB6R0azhQ8ymP9wG SRkQ9ZAd8VFnxPBow8MNISseTknwi5Avx/shcUh3GD3P+DAy5UWsGFtvPMB3JCAEtH7r BW/A== X-Gm-Message-State: AHQUAubFS0u/3SIEm2VGnvluTfewnKtjbvxRzpE0982S/KGjWptRqvnV 8lp+b6CZipawzrGpsZb75t9Kfd0lCc31BUl2YTdyPg== X-Received: by 2002:a05:6830:16d4:: with SMTP id l20mr232222otr.32.1550017827710; Tue, 12 Feb 2019 16:30:27 -0800 (PST) MIME-Version: 1.0 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> In-Reply-To: <453f13cd-a7fe-33eb-9a27-8490825ca29c@inria.fr> From: Dan Williams Date: Tue, 12 Feb 2019 16:30:17 -0800 Message-ID: Subject: Re: [PATCH 5/5] dax: "Hotplug" persistent memory for use like normal RAM To: Brice Goglin Cc: Dave Hansen , 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 12, 2019 at 11:59 AM Brice Goglin wrote= : > > Le 11/02/2019 =C3=A0 17:22, Dave Hansen a =C3=A9crit : > > > On 2/9/19 3:00 AM, Brice Goglin wrote: > >> I've used your patches on fake hardware (memmap=3Dxx!yy) with an older > >> nvdimm-pending branch (without Keith's patches). It worked fine. This > >> time I am running on real Intel hardware. Any idea where to look ? > > I've run them on real Intel hardware too. > > > > Could you share the exact sequence of commands you're issuing to > > reproduce the hang? My guess would be that there's some odd interactio= n > > between Dan's latest branch and my now (slightly) stale patches. > > > > I'll refresh them this week and see if I can reproduce what you're seei= ng. > > # 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.