Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1016393imm; Thu, 31 May 2018 13:36:44 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKBxyjbKuGI1qtHDiFhmixSiX8EOit/momcF4XxGWg6xkq41Z8Um0xw4GNKIHtN3DnOI+Nj X-Received: by 2002:a62:9099:: with SMTP id q25-v6mr8225648pfk.66.1527799004874; Thu, 31 May 2018 13:36:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527799004; cv=none; d=google.com; s=arc-20160816; b=RAHZQ/9sk619w0HbNYUBwnYSBvSkgby5mwc9u1Ut4n9UaXkxvQlFyCo9HUu/ZvCJeH +p/xGSWvJRcDJ7N6jfrjXnBw5Q8LXLcPGQTpj2C6zts6CAZnfuf6tmCfpWGhr76KfD4F 0fJmm1+DKc7yhXqcq2K31lIi8h3bdcPa3mnMacNBc4+jo9BVSyDPMQOhk26ANPN5wyrv xVmFVd15vFomXHbx5pDallklE6mj33BvHQu1GqWlf1BZgkttH06nVUk1v2WSQfdeQPY3 7JTx7RN2F6RWWnuLDsDQyi+H2d0jU9bgcQSS+9eHYMRb2VSkiI2e7AaabHCtAxNggXHN +CZQ== 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=1kyJ3plplypR8cSEQ1taPT6K122Thv8Tze1wCv8o2CU=; b=rXz6cPQWxSE6qDfnpXP265Qj9XRbBEKCgZJJ3w/V4JKKKmLnYYUIbQOqyiGO766OYO 4v4Q8Xrur8BUboAMhgwdeAQN2MlWHAeR+v4e2RW0qR4HZqCKcSM57jCCH3VItB2ERx16 13x0Hg0HmaLEOwijch9LVEzngJu9k3FmIHUAn6xciuP1cnNHKpDhoy1v7IkF0vrnPH8/ FUsoLrRBVPpNbKLWMXxcIErFiaegNFwNNIRTrZqR71QL+j1QHqJ1+/PCxWjbVPyc+Nxx Eqoiy/abEEJOqv7QyWzhYNxhUKOTGkZNg8MvQCTLg6E1T3IJ6JFfLdbo/mPnUj08UXyF hjwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=abym7HNd; 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 d123-v6si30099129pgc.445.2018.05.31.13.36.30; Thu, 31 May 2018 13:36:44 -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=abym7HNd; 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 S1754461AbeEaUf7 (ORCPT + 99 others); Thu, 31 May 2018 16:35:59 -0400 Received: from mail-ot0-f195.google.com ([74.125.82.195]:43021 "EHLO mail-ot0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754160AbeEaUfz (ORCPT ); Thu, 31 May 2018 16:35:55 -0400 Received: by mail-ot0-f195.google.com with SMTP id y10-v6so26796804otg.10 for ; Thu, 31 May 2018 13:35:55 -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=1kyJ3plplypR8cSEQ1taPT6K122Thv8Tze1wCv8o2CU=; b=abym7HNd2OWz7Qlz0LS9UlWWGoFJLRQHWJ8CL0X3msO/Ymf+x7bnLE7tAffKIPklvm UWXUDPs8K/Mf90vMr38YF2zHoSQo+9133g3mYdFeGUKOnHQWktlGaWVJ0lmK8GUtv9iy KH6nN7klOTffIVOucCx7L0s1P7s6QLinwfp9QBYVpMGG+j8S2qy3aQn8FfJi7ND3YApA zww1drNdNl1gseLYk7c9Mhh4LgouTH50joiMczCCDsfns7NR43UwkriuyYurM/ElAxck kEcSk2Wxu+IZJQUhsDzr2ZLJIIOZXmYL+ivex9rM1gApUTfyNwXddrWOt4tsbQtt44sd Iq+Q== 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=1kyJ3plplypR8cSEQ1taPT6K122Thv8Tze1wCv8o2CU=; b=MiTipfkNeLNk1trI15UI0UN2qjRKgIWc4xWDfb5pTN54ntqbwdJNRxFj13+w5VxGY2 7m4CEAgqMwcd3ts4nfhUHcf9XIpkHx+vyDJQmenZtJYvbUK2Qz1VF9vjsSBV73FCtlLv HwjVGhs4V81yGjqyLHh6TEwNy/qI9fZ6PKIIwrF31rZmkJqOEQeawdakmoxIs+FmwWMe o4DyJEIoovbiJqECWaWm6kO3y7eDxogcNHcvWRtsKBPTUxBRA5s7e37a23HdnWddM0sN St07Fu+yrPTWcrrzhhdcSQlGy3fMeKiTo5K/znmZ12hGui0QsonNJAIqR3c0PB4BAyKO jJIA== X-Gm-Message-State: ALKqPwcJnIrgTXDmb2zmj67shnAPJ2k7q5n+DTJm4aJrafAFCDsZfZHs fJhW3AW1OoLZqnnIJSCYgE9xPJTE+S1a0kyfgGGaww== X-Received: by 2002:a9d:4a63:: with SMTP id d32-v6mr6008663otj.194.1527798955192; Thu, 31 May 2018 13:35:55 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:2ea9:0:0:0:0:0 with HTTP; Thu, 31 May 2018 13:35:54 -0700 (PDT) In-Reply-To: <20180531191332.GB7825@magnolia> 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> From: Dan Williams Date: Thu, 31 May 2018 13:35:54 -0700 Message-ID: Subject: Re: [PATCH v2 2/7] dax: change bdev_dax_supported() to support boolean returns To: "Darrick J. Wong" Cc: Ross Zwisler , Toshi Kani , Mike Snitzer , device-mapper development , Dave Jiang , linux-fsdevel , Linux Kernel Mailing List , linux-nvdimm , linux-xfs 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 12:13 PM, 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...? > > # echo 'file drivers/dax/* +p' > /sys/kernel/debug/dynamic_debug/control > # mount /dev/pmem3 -o rtdev=/dev/pmem4,dax /mnt > # dmesg > > SGI XFS with ACLs, security attributes, realtime, scrub, debug enabled > XFS (pmem3): DAX enabled. Warning: EXPERIMENTAL, use at your own risk > pmem3: error: dax support not enabled > pmem4: error: dax support not enabled > XFS (pmem3): DAX unsupported by block device. Turning off DAX. > XFS (pmem3): Mounting V5 Filesystem > XFS (pmem3): Ending clean mount > > Evidently the pfn it picks up is missing PFN_MAP in flags because > ND_REGION_PAGEMAP isn't set, and looking at the kernel source, pmem that > comes in via NFIT never gets that set...? > > relevant qemu pmem options: > > -object memory-backend-file,id=memnvdimm0,prealloc=no,mem-path=/dev/shm/a.img,share=yes,size=13488881664 > -device nvdimm,node=0,memdev=memnvdimm0,id=nvdimm0,slot=0 > (repeat for five more devices) > > > What does "ndctl list" say? The namespaces need to be in fsdax mode.