Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp75581imm; Thu, 31 May 2018 18:58:42 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLaqbgIxtm+5LeLl3LdakOHH1U23fNUYbkOcaqml0XXAbRf2U6CfPearjC4wnKs+xE89QrM X-Received: by 2002:a65:5807:: with SMTP id g7-v6mr7230847pgr.409.1527818322800; Thu, 31 May 2018 18:58:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527818322; cv=none; d=google.com; s=arc-20160816; b=k/LhBuqCn4QKLtQfbxviqGjLlxSQkXhkZ9DbiqRxBFLs8a+YDfuhIf4jNtMTQAc0cz JU1OhO7kaHKzl88YXFlQitKK5nyNJImM7/ISTl1ra75CsDrSNA7y8aCuUOqcn+aIwceH IEu54JGAvD/U2PsH7XznpH70got+KhFa26hfmfXZml5kCeKo8wfBUoikDlblFNlX887r kY1wbQsVaJGusUOQphOZTHK4Rg54+7CTyEQqTEqlRh/fyFLVAThqOMH11AwynFT5WpF0 yzOvGxYDt/TmNVDKFyfzm+gCHyGXaoaQV7wDdCPdz0REdiWHj/OJX/abXzDk89ZkyJsz wcpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=xUsEeh1V9QspprolHMTWvSOyM2SrxbLV83DeGKoi0M4=; b=Jhdigfo71/llG8JskvR+qs0BvwiLU9vdBt3MXrTz7GCKuSVOX6Xkx4qUjhz8PIgToj YJNjSa2HZ6PQyPWlB3eWoC7ZX+8Pkud5U3E14hRKh7OZQpVIkA7MtXPfRbcLzhJjVRBa sqT4KBWfpqP4C7gYtAMWzYVjf++hwZlxPPW1myxCqdUnFGz3zdVSeakT477peoiOKs2D CEDEX7bi/u4rfk0ffOl33iFp3gKTNv9yGxOJn3snS40FcWSGAWnUTOvKb3OF+HE7dThd NmXf6+ZR8eJmTusKyxN2EVIGvOsrfW2JXxawMKP16kPLwmzJhuEeOUFE5BAm34c1mTPU iUWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=QFZrkpXY; 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 v190-v6si38350924pfb.324.2018.05.31.18.58.28; Thu, 31 May 2018 18:58:42 -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; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=QFZrkpXY; 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 S1751357AbeFAB5g (ORCPT + 99 others); Thu, 31 May 2018 21:57:36 -0400 Received: from mail-oi0-f68.google.com ([209.85.218.68]:44830 "EHLO mail-oi0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751194AbeFAB5e (ORCPT ); Thu, 31 May 2018 21:57:34 -0400 Received: by mail-oi0-f68.google.com with SMTP id c128-v6so11976074oig.11 for ; Thu, 31 May 2018 18:57:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=xUsEeh1V9QspprolHMTWvSOyM2SrxbLV83DeGKoi0M4=; b=QFZrkpXYcbddOXJZFDmhYi7xwH9ce/JUqzaaS3BDJr6SkT7C51y3A4a7TKaiefkPP9 BUpU/g+qvR/Wb7fsc6oG33dfL/og5HN1yfjJ4zE8nY6guB/SJQ4LhK90kEkqJJXkLbRv 2j0+Avg/xvZLrs1mElwxE4vPumW/+S86V55dqXLmIL7cFQbD/pN4HxocvYkMOYkOSquu pGu8TYPNJhzS0B3UCrDwa1CNW6qV0USICYanjeAPYWBROckdUcoLSGo0G1ElmuA7PN7j ZWR043OD1HXukuQeeQdNp/T3XigI026YyNI7TWxZOkaqMgP6oxzk5PZxnetqr5bpU+T5 fHXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=xUsEeh1V9QspprolHMTWvSOyM2SrxbLV83DeGKoi0M4=; b=htTp8jtTCox2SWbXSlJ+XrKeOtH2C4dCuM5JE4jXbdfZp8HNBPO5kuvZkZlnp8NOhu bhBp8NpEUDfunHZls12G33wl09r2ffQgMIt/fQeuWXOjgB4auXD17xT9lLBCmkBxGFAQ 97o+9QDzWi5Nsh7oI/rEpv9GemDHwnvvb8zqGbnzIQuWktN40AZq51ly6uyQ2BLzWIE7 HPh/mCfF11Xt4vFXmybp5fG4Ihwrk0tTZwRQ0HUReMnvS3G+tXz12giJEb5YOwaBK2rG cARjzRCnf2zGcXYfyZIc3Ef1C+CBtXPLla6omdr9itiHu9vUhhjmstOX+BtynRUJ3tnO PVyA== X-Gm-Message-State: ALKqPwcpxxQnmDqIP3g//X9MnW14Ks4tzwgqyylBnUN+WdxbkaiDiIpL tRgbIWD+x7HB44Rt5Rswdy2wOPwbDreOV4dqkIY0OQ== X-Received: by 2002:aca:ab15:: with SMTP id u21-v6mr2610706oie.272.1527818253757; Thu, 31 May 2018 18:57:33 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:2ea9:0:0:0:0:0 with HTTP; Thu, 31 May 2018 18:57:33 -0700 (PDT) In-Reply-To: <20180601012657.GQ10363@dastard> 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> From: Dan Williams Date: Thu, 31 May 2018 18:57:33 -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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 31, 2018 at 6:26 PM, Dave Chinner wrote: > On Thu, May 31, 2018 at 12:13:32PM -0700, Darrick J. Wong wrote: >> On Tue, May 29, 2018 at 04:01:14PM -0600, Ross Zwisler wrote: >> > On Tue, May 29, 2018 at 02:25:10PM -0700, Darrick J. Wong wrote: >> > > On Tue, May 29, 2018 at 01:51:01PM -0600, Ross Zwisler wrote: >> > > > From: Dave Jiang >> > > > >> > > > The function return values are confusing with the way the function is >> > > > named. We expect a true or false return value but it actually returns >> > > > 0/-errno. This makes the code very confusing. Changing the return values >> > > > to return a bool where if DAX is supported then return true and no DAX >> > > > support returns false. >> > > > >> > > > Signed-off-by: Dave Jiang >> > > > Signed-off-by: Ross Zwisler >> > > >> > > Looks ok, do you want me to pull the first two patches through the xfs >> > > tree? >> > > >> > > Reviewed-by: Darrick J. Wong >> > >> > Thanks for the review. >> > >> > I'm not sure what's best. If you do that then Mike will need to have a DM >> > branch for the rest of the series based on your stable commits, yea? >> > >> > Mike what would you prefer? >> >> I /was/ about to say that I would pull in the first two patches, but now >> I can't get xfs to mount with pmem at all, and have no way of testing >> this...? > > I have similar problems, too, but: > > $ ndctl list > [ > { > "dev":"namespace1.0", > "mode":"raw", > "size":8589934592, > "sector_size":512, > "blockdev":"pmem1" > }, > { > "dev":"namespace0.0", > "mode":"raw", > "size":8589934592, > "sector_size":512, > "blockdev":"pmem0" > } > ] > $ sudo ndctl create-namespace -f -e namespace0.0 --mode=fsdax > Error: operation failed, region0 fsdax mode not available > > failed to reconfigure namespace: Invalid argument > $ > > I can't make head or tail of what is going wrong here - how am I > supposed to debug this and get it working again? > > 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? This commit caused the behavior change: 569d0365f571 dax: require 'struct page' by default for filesystem dax The justification is in that patch, but the short summary is we killed off "pageless" dax because it had so many incomplete holes and surprise behaviors. It needed to die on the path to making dax not experimental, i.e. to close safety holes, and be feature complete for all the ways userspace expects to use mappings (direct-io, fork, poison handling, etc). 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 I've created a task to go improve ndctl's error reporting for troubleshooting this failure.