Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp831624imp; Wed, 20 Feb 2019 09:46:10 -0800 (PST) X-Google-Smtp-Source: AHgI3IZ9SWytiLEg0EHvEEj88L6kI+tqe40R6g0t/yMhMlTL1DcCCdTzI18AwskPcNe8ZJjv/Thr X-Received: by 2002:a63:f07:: with SMTP id e7mr20836847pgl.173.1550684770484; Wed, 20 Feb 2019 09:46:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550684770; cv=none; d=google.com; s=arc-20160816; b=VJq7tnh51ITcUu7eKOVW2bhY0x2tzu39Bi25dhcmoBLwtqTIgFASBPWsuy+Zo1vSuC YcIdbIcmOaHFM9hwe7WeSP8zB9lc7u3OdPQfay77HaqPW98Fi8H2XDnBfuWH0xNhDKBD Tg5OhasdDxr2gid5uU08RUFDj+5+OlyUrhxDkyUzqxGdGdbbGBAMJPT+XHn3u2ADUilt 8gw/ZhnfaKxc2Iaf/Px1EYtMxqBVcWitQ+hZ1Z4YGIe0e/8r8yN67yq0oHU/9KW7mAIT Iv1ULAXhb+Oz7x95gt8tBhJhpPi+B5ntd7cSBUvgCPkETUwRGZUZCuuDL7ZHUHArRPxo Lm1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from; bh=kDWjA2lailRmdvq9bwi0KSvzjc3ibc4HJePpuJtvN9c=; b=bV+7U16hPjylwxcx5GduexEvHrZCDFyKW89qqKdCRd2kKEv2UeqMin6QA1OuoacirW 807WYcrFhUcEWt2JEWWRLC0kZKaY46royoNaUe6JkuWvIM2GK8KmqxuwPtQPWikzjLAB QABp1anCFhlLJHrb+t22fYnCa5Mqi8/cJlYqrFEayHJk2ywOcRao/I3OZ0pm3l7bBKD1 HYMFZpXqrxbELzTWXrUi2+ImrJucCPzDe/L974pT+fcazTZvLDn4AiAplNhQdd6wFSr+ baAhrioEjppOJiya84VHEwoF3SiWShpVOYRXXUoQkSTc0WXDq0gryFM68wzDFq+8R5uQ XGgg== 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 97si19915979plm.3.2019.02.20.09.45.55; Wed, 20 Feb 2019 09:46:10 -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; 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 S1726352AbfBTRpe (ORCPT + 99 others); Wed, 20 Feb 2019 12:45:34 -0500 Received: from mx1.redhat.com ([209.132.183.28]:55002 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725796AbfBTRpe (ORCPT ); Wed, 20 Feb 2019 12:45:34 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 659AB19C65B; Wed, 20 Feb 2019 17:45:33 +0000 (UTC) Received: from segfault.boston.devel.redhat.com (segfault.boston.devel.redhat.com [10.19.60.26]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 504C360149; Wed, 20 Feb 2019 17:45:32 +0000 (UTC) From: Jeff Moyer To: Dan Williams Cc: linux-nvdimm , "Darrick J. Wong" , stable , Jan Kara , "Oliver O'Halloran" , Johannes Thumshirn , Linux Kernel Mailing List , Vishal L Verma , linux-fsdevel Subject: Re: [PATCH 0/7] libnvdimm/pfn: Fix section-alignment padding References: <155000668075.348031.9371497273408112600.stgit@dwillia2-desk3.amr.corp.intel.com> X-PGP-KeyID: 1F78E1B4 X-PGP-CertKey: F6FE 280D 8293 F72C 65FD 5A58 1FF8 A7CA 1F78 E1B4 Date: Wed, 20 Feb 2019 12:45:31 -0500 In-Reply-To: (Dan Williams's message of "Wed, 20 Feb 2019 09:11:04 -0800") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Wed, 20 Feb 2019 17:45:33 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dan Williams writes: > On Tue, Feb 12, 2019 at 1:37 PM Dan Williams wrote: >> >> Lately Linux has encountered platforms that collide Persistent Memory >> regions between each other, specifically cases where ->start_pad needed >> to be non-zero. This lead to commit ae86cbfef381 "libnvdimm, pfn: Pad >> pfn namespaces relative to other regions". That commit allowed >> namespaces to be mapped with devm_memremap_pages(). However dax >> operations on those configurations currently fail if attempted within the >> ->start_pad range because pmem_device->data_offset was still relative to >> raw resource base not relative to the section aligned resource range >> mapped by devm_memremap_pages(). >> >> Luckily __bdev_dax_supported() caught these failures and simply disabled >> dax. However, to fix this situation a non-backwards compatible change >> needs to be made to the interpretation of the nd_pfn info-block. >> ->start_pad needs to be accounted in ->map.map_offset (formerly >> ->data_offset), and ->map.map_base (formerly ->phys_addr) needs to be >> adjusted to the section aligned resource base used to establish >> ->map.map formerly (formerly ->virt_addr). >> >> See patch 7 "libnvdimm/pfn: Fix 'start_pad' implementation" for more >> details, and the ndctl patch series "Improve support + testing for >> labels + info-blocks" for the corresponding regression test. > > Hello valued reviewers, can I plead for a sanity check of at least > "libnvdimm/pfn: Introduce super-block minimum version requirements" > and "libnvdimm/pfn: Fix 'start_pad' implementation"? In particular > Jeff / Johannes this has end user / distro impact in that users may > lose access to namespaces that are upgraded to v1.3 info-blocks and > then boot an old kernel. I did not see a way around that sharp edge. Yes, I'll take a look. Cheers, Jeff