From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi0-x244.google.com (mail-oi0-x244.google.com [IPv6:2607:f8b0:4003:c06::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 0F001209818D4 for ; Mon, 4 Jun 2018 16:40:26 -0700 (PDT) Received: by mail-oi0-x244.google.com with SMTP id h79-v6so368069oig.13 for ; Mon, 04 Jun 2018 16:40:26 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <20180529195106.14268-1-ross.zwisler@linux.intel.com> <20180529195106.14268-3-ross.zwisler@linux.intel.com> <20180529212510.GJ30110@magnolia> <20180529220114.GA13948@linux.intel.com> <20180531191332.GB7825@magnolia> <20180601012657.GQ10363@dastard> <20180601022418.GR10363@dastard> <20180603222038.GS10363@dastard> <20180604002525.GI10363@dastard> From: Dan Williams Date: Mon, 4 Jun 2018 16:40:25 -0700 Message-ID: Subject: Re: [PATCH v2 2/7] dax: change bdev_dax_supported() to support boolean returns List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-nvdimm-bounces@lists.01.org Sender: "Linux-nvdimm" To: Dave Chinner Cc: Mike Snitzer , linux-nvdimm , "Darrick J. Wong" , Linux Kernel Mailing List , linux-xfs , device-mapper development , linux-fsdevel List-ID: 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. _______________________________________________ Linux-nvdimm mailing list Linux-nvdimm@lists.01.org https://lists.01.org/mailman/listinfo/linux-nvdimm From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752132AbeFDXk3 (ORCPT ); Mon, 4 Jun 2018 19:40:29 -0400 Received: from mail-oi0-f67.google.com ([209.85.218.67]:37394 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752016AbeFDXk0 (ORCPT ); Mon, 4 Jun 2018 19:40:26 -0400 X-Google-Smtp-Source: ADUXVKJiueMNVJf1PYEgg3nvGmkROIOyhZyx+mD4mSlz6ff7ACQLlcGjE3+vI4hLa1t5gwFJTFb+zd4GdrR6oaORLpQ= MIME-Version: 1.0 In-Reply-To: References: <20180529195106.14268-1-ross.zwisler@linux.intel.com> <20180529195106.14268-3-ross.zwisler@linux.intel.com> <20180529212510.GJ30110@magnolia> <20180529220114.GA13948@linux.intel.com> <20180531191332.GB7825@magnolia> <20180601012657.GQ10363@dastard> <20180601022418.GR10363@dastard> <20180603222038.GS10363@dastard> <20180604002525.GI10363@dastard> From: Dan Williams Date: Mon, 4 Jun 2018 16:40:25 -0700 Message-ID: Subject: Re: [PATCH v2 2/7] dax: change bdev_dax_supported() to support boolean returns To: Dave Chinner Cc: "Darrick J. Wong" , Mike Snitzer , linux-nvdimm , Linux Kernel Mailing List , linux-xfs , device-mapper development , linux-fsdevel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Williams Subject: Re: [PATCH v2 2/7] dax: change bdev_dax_supported() to support boolean returns Date: Mon, 4 Jun 2018 16:40:25 -0700 Message-ID: References: <20180529195106.14268-1-ross.zwisler@linux.intel.com> <20180529195106.14268-3-ross.zwisler@linux.intel.com> <20180529212510.GJ30110@magnolia> <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-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-nvdimm-bounces-hn68Rpc1hR1g9hUCZPvPmw@public.gmane.org Sender: "Linux-nvdimm" To: Dave Chinner Cc: Mike Snitzer , linux-nvdimm , "Darrick J. Wong" , Linux Kernel Mailing List , linux-xfs , device-mapper development , linux-fsdevel List-Id: dm-devel.ids 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.