Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp5316232ima; Tue, 5 Feb 2019 09:41:54 -0800 (PST) X-Google-Smtp-Source: AHgI3IY0M+mvtYIQhJ1SynpighpYbKGf2cd+KR1/gVSPVq0ujd4tNiRsTT29lZ6CXTRgSAtnpVbs X-Received: by 2002:a63:4a21:: with SMTP id x33mr5681934pga.428.1549388514257; Tue, 05 Feb 2019 09:41:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549388514; cv=none; d=google.com; s=arc-20160816; b=Lk/gnIF0ss9cPOzybeUfaFcM1tfq9Nj7AS/BIIOyLDHo9n2VjtZVBRbIfNCYuXoOOw nGgm78tZ1shJmoFmiVZuANgJMiBgaUtN2qu1uVfv0AMJWlIqJs0JlslRo1+vWPTF2/x1 Kc1deL/T9eDmxQvhcYShbF4ZSrwmhARkyiIOFry+EfDiCCSPtVnD437C9/hwrykP3IWf XQcgqj1eTFo3QwDPmw1APLt1kRfnc2dbMPHtMMnzvdWkucy+sK8LPJgqE4KVabKLa9Bw WjKA6WnE2/SzJw4r3oDiheCfpticpsTlSVdqCVn0Qj51tntbnHEyRIuKCTbBdl3VrGso Dc3A== 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 :in-reply-to:references:mime-version:dkim-signature; bh=siT1Rz6sNVDgAQHwKHBhG+aM93/lgONHMZBEYh6CWq4=; b=RyvCy64dA6olH5X9eX+fVG+8plIZd3XmNlA3gTu74Cr9yvvVFWB1MO9wksaHmuaS1U 9h4JDP+mG3crUZZgGytrweYg6bchltAkMYjVHg/tOUkGo/uy6p6OBJfC35OL8DT2TiUo B/5npP3ry105txVlMBi461eG3IdOQnRyfh9BS6Kmq/EU9Ufm/NMEuPMF6jGtqataybPW VTLsG4AkNNDuXXsQ61j/T1YTqUh6ZJVcogmPNakmWVnIXWMmmLZhSYU6YS2Jj/h+/UKs 02lYFKzEuQ8dWzOY72w/0wnwN2X9Y9W3892XLgGE7YTt0gKe5HrfXg49dVx2IwpVfEh7 HejA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=iZ4dUDiV; 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 89si3679989pfr.242.2019.02.05.09.41.38; Tue, 05 Feb 2019 09:41: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=iZ4dUDiV; 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 S1727039AbfBERMM (ORCPT + 99 others); Tue, 5 Feb 2019 12:12:12 -0500 Received: from mail-ot1-f65.google.com ([209.85.210.65]:37743 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726196AbfBERMM (ORCPT ); Tue, 5 Feb 2019 12:12:12 -0500 Received: by mail-ot1-f65.google.com with SMTP id s13so6969842otq.4 for ; Tue, 05 Feb 2019 09:12:11 -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; bh=siT1Rz6sNVDgAQHwKHBhG+aM93/lgONHMZBEYh6CWq4=; b=iZ4dUDiVVFZ4KnvAcVdwCjBYTEWr5NR0CIw5+fnHjT6qXGRiBif97uOMiCmFe4by1U Mmm4gXIaD0KBTHCyAs32d6NsycJ/axa7KuBTHmzPP3ZLxek078NlGoRgCdDVf14l4e8g zrDQuSDz17HC3Ld4JqwL8JS/KV9q4ESp2LLDrLApHXMfByOQyJaT3fAcYT3AGbxRjGt9 ZqsrabnCY12xHJ785Ra5Ijwmia1BI4FYgXqBSLlrgMQ9pr4+0uZRr16I+IUmbysQ4Up/ KNzpHPEV6S5OzjcFmYMaMqnAISDdC4Gjm4RbDBafwk0556auO1T0x2bCiO0ogESfhiyf Utvg== 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; bh=siT1Rz6sNVDgAQHwKHBhG+aM93/lgONHMZBEYh6CWq4=; b=LeEkzwcznwk+oMypq+6ZBWARq4yI/lqLD5ilJ2R0L2lr/eEqoa3VVoDiuAQ/mGnE2E MteTmj2TukCnkHdzZFyFH690llEDvu851H+nEW61kfuwuz9Nra3HK24J1wNpfLM9rDDM Wzxom3a/uC95T8SJaUelcv0mpnO6iQzbS8sODd3tss3HeyDS6fJAzIx6YHcNJMNOSc9T 7ou2+olLDEEIcMLuqR5ygGRP8+apyWaa5Dj7D0hms70MpIRO0jrM6lDDBO2D6sFxCaY6 jtmGGjslNrw7eJeyRG4aoSldLxuuNw0ALDCpTMKOeftIQfTT/srYznBRLdDmj5QggBam TDeQ== X-Gm-Message-State: AHQUAuYF7+8OiMwFK6aEeJ4u1zmxuj+4u+XQjrc2Iq+7R8FymRn7JByU oJt34qQT5T2EkRQQM0UCF9+FkTkistVRLBmKcVdf5Q== X-Received: by 2002:a9d:6ac2:: with SMTP id m2mr3102995otq.353.1549386731450; Tue, 05 Feb 2019 09:12:11 -0800 (PST) MIME-Version: 1.0 References: <154915640488.3541628.4947340559510114602.stgit@dwillia2-desk3.amr.corp.intel.com> In-Reply-To: From: Dan Williams Date: Tue, 5 Feb 2019 09:11:59 -0800 Message-ID: Subject: Re: [PATCH] libnvdimm/dimm: Add a no-BLK quirk based on NVDIMM family To: Dexuan Cui Cc: "linux-nvdimm@lists.01.org" , "linux-kernel@vger.kernel.org" , Michael Kelley 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 Tue, Feb 5, 2019 at 8:53 AM Dexuan Cui wrote: > > > From: Dan Williams > > Sent: Sunday, February 3, 2019 11:14 AM > > > ... > > > As I understand, the essence of the issue is: Hyper-V emulates the > > > label mechanism (i.e. it supports _LSI and LSR), but doesn't do it > > > right (i.e. it doesn't support _LSW). > > > > > > To manage the namespaces, Linux can choose to use label or not. > > > > > > If _LSI/_LSR are supported, Linux assumes _LSW is supported as well > > > and chooses to use label (i.e. the label mode), but since Hyper-V doesn't > > > support _LSW, Linux fails to change the namespace configuration. > > > > No, that's not quite right. The reason Linux does not see the fsdax > > mode configuration is due to the missing "address abstraction GUID" in > > the label produced the default Hyper-V configuration. > Hi Dan, > Do you mean NVDIMM_DAX_GUID? Correct. > > > In label-less mode there is no "address abstraction GUID" to validate so > > it falls back to just using the info-block directly. > In the case of not using label storage area, as I understand the info-block > resides in regular data storage area. Can you please tell me where exactly > the info-block is and how its location is decided? > And I suppose the info-block contains the NVDIMM_DAX_GUID? The info-block always lives in the data-storage area, even with labels. It's placed at namespace base address + 4K. When labels are present the label gives the namespace a uuid and the info-block "parent uuid" field must match that value. Without labels the "parent uuid" field is unused / filled with zero's. Also with v1.2 labels the address abstraction uuid must match the info-block type. > I'm asking because I found I lose ~500MBytes of the 32GBytes Hyper-V > NVDIMM device, when the namespace is in fsdax mode. When it's in > raw mode, I'm able to use all of the 32GB space. Yes. A portion of the capacity is reserved for page structures. https://lwn.net/Articles/656197/