Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp276219imm; Mon, 4 Jun 2018 17:34:07 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJDEvwGQwT00oMDGDZ8ee3WBZolKlrdAeDRAkqNZAkB2r00xSKLrIEMQx0nYQsMzmZ2wVuG X-Received: by 2002:a17:902:728a:: with SMTP id d10-v6mr17037965pll.192.1528158847901; Mon, 04 Jun 2018 17:34:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528158847; cv=none; d=google.com; s=arc-20160816; b=raWMFdCyQgW0ShwtRI8FpMSaOPZ9P2ntTnDek8+XiRZ7HuqbTr9JlRWCRSskHgs3jW zvZdC0/m9cwNSr6CtGV98dH16Vua/wFVlGtVCekxQIYPwP3m0QjnFEYes8Agaccd95/B EsjIDky6Hm5MTdAlO/HfB6bW8m9AWZMylaJY1qafggRkXP0TEa9RTLUL0VipR6lqqD3w 90PTcD+GNJo42hrA3IaHQItcjz9eSU3n3I1Y/icTI9bpliBPkf3nfkCdsq+BznrHfkO4 2cx9Y2PnG6MayartICD4es/LFvmvgGD4xrROHAPdu7gTKFeZwAxBNI+/WLzlXptSUdWz L+fA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=Ff2CWx2z0/nGc4OXr0fmVMLNttQrzWlgalYqrKKp7lI=; b=v4mPXAFo5F2FedsQVjRr6J0Evpql8f8/MTafy2II7T0WIt0Il59V2vNq8FcO93Hud7 GQTF9ZfhS40VLpGVPkL94PQbga6cyE3kzj40vfjbPRVnreWPZed22VV2GNGJjJX06E74 mkPQDpT4bSGFMPm0ajwr05gbWuzb0aUY4ECBL8I7VqPjnUDPP+/tBd9n9YEjF1n8PT/v 2Y5jn6JytL86ba2Oj54IrjTQXYIuH6+NbbvlBQ5myKMBSY2OfkqymwMSnD5bdMrIyFpT JvmGbUhwOQSAEbmEX3izk3SGYELR2/N+xxefxz3WkXEjz2plJzTYQcnWARO/K5thMq0G T6KQ== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p5-v6si44832633plk.537.2018.06.04.17.33.53; Mon, 04 Jun 2018 17:34:07 -0700 (PDT) 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751354AbeFEAd3 (ORCPT + 99 others); Mon, 4 Jun 2018 20:33:29 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:44180 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751046AbeFEAd1 (ORCPT ); Mon, 4 Jun 2018 20:33:27 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C9DBC401C0BD; Tue, 5 Jun 2018 00:33:26 +0000 (UTC) Received: from localhost (unknown [10.18.25.149]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7B1B6205D521; Tue, 5 Jun 2018 00:33:26 +0000 (UTC) Date: Mon, 4 Jun 2018 20:33:26 -0400 From: Mike Snitzer To: Dave Chinner , Dan Williams Cc: "Darrick J. Wong" , linux-nvdimm , Linux Kernel Mailing List , linux-xfs , device-mapper development , linux-fsdevel Subject: Re: [PATCH v2 2/7] dax: change bdev_dax_supported() to support boolean returns Message-ID: <20180605003325.GA6898@redhat.com> References: <20180529220114.GA13948@linux.intel.com> <20180531191332.GB7825@magnolia> <20180601012657.GQ10363@dastard> <20180601022418.GR10363@dastard> <20180603222038.GS10363@dastard> <20180604002525.GI10363@dastard> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Tue, 05 Jun 2018 00:33:26 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Tue, 05 Jun 2018 00:33:26 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'msnitzer@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 04 2018 at 7:40pm -0400, Dan Williams wrote: > On Sun, Jun 3, 2018 at 6:48 PM, Dan Williams wrote: > > On Sun, Jun 3, 2018 at 5:25 PM, Dave Chinner wrote: > >> On Mon, Jun 04, 2018 at 08:20:38AM +1000, Dave Chinner wrote: > >>> On Thu, May 31, 2018 at 09:02:52PM -0700, Dan Williams wrote: > >>> > On Thu, May 31, 2018 at 7:24 PM, Dave Chinner wrote: > >>> > > On Thu, May 31, 2018 at 06:57:33PM -0700, Dan Williams wrote: > >>> > >> > FWIW, XFS+DAX used to just work on this setup (I hadn't even > >>> > >> > installed ndctl until this morning!) but after changing the kernel > >>> > >> > it no longer works. That would make it a regression, yes? > >>> > >>> [....] > >>> > >>> > >> I suspect your kernel does not have CONFIG_ZONE_DEVICE enabled which > >>> > >> has the following dependencies: > >>> > >> > >>> > >> depends on MEMORY_HOTPLUG > >>> > >> depends on MEMORY_HOTREMOVE > >>> > >> depends on SPARSEMEM_VMEMMAP > >>> > > > >>> > > Filesystem DAX now has a dependency on memory hotplug? > >>> > >>> [....] > >>> > >>> > > OK, works now I've found the magic config incantantions to turn > >>> > > everything I now need on. > >>> > >>> By enabling these options, my test VM now has a ~30s pause in the > >>> boot very soon after the nvdimm subsystem is initialised. > >>> > >>> [ 1.523718] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled > >>> [ 1.550353] 00:05: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A > >>> [ 1.552175] Non-volatile memory driver v1.3 > >>> [ 2.332045] tsc: Refined TSC clocksource calibration: 2199.909 MHz > >>> [ 2.333280] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x1fb5dcd4620, max_idle_ns: 440795264143 ns > >>> [ 37.217453] brd: module loaded > >>> [ 37.225423] loop: module loaded > >>> [ 37.228441] virtio_blk virtio2: [vda] 10485760 512-byte logical blocks (5.37 GB/5.00 GiB) > >>> [ 37.245418] virtio_blk virtio3: [vdb] 146800640 512-byte logical blocks (75.2 GB/70.0 GiB) > >>> [ 37.255794] virtio_blk virtio4: [vdc] 1073741824000 512-byte logical blocks (550 TB/500 TiB) > >>> [ 37.265403] nd_pmem namespace1.0: unable to guarantee persistence of writes > >>> [ 37.265618] nd_pmem namespace0.0: unable to guarantee persistence of writes > >>> > >>> The system does not appear to be consuming CPU, but it is blocking > >>> NMIs so I can't get a CPU trace. For a VM that I rely on booting in > >>> a few seconds because I reboot it tens of times a day, this is a > >>> problem.... > >> > >> And when I turn on KASAN, the kernel fails to boot to a login prompt > >> because: > > > > What's your qemu and kernel command line? I'll take look at this first > > thing tomorrow. > > I was able to reproduce this crash by just turning on KASAN... > investigating. It would still help to have your config for our own > regression testing purposes it makes sense for us to prioritize > "Dave's test config", similar to the priority of not breaking Linus' > laptop. Dave, _this_ is when you know you've arrived! ;)