From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752612AbdKLAPi (ORCPT ); Sat, 11 Nov 2017 19:15:38 -0500 Received: from imap.thunk.org ([74.207.234.97]:36228 "EHLO imap.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752123AbdKLAPg (ORCPT ); Sat, 11 Nov 2017 19:15:36 -0500 Date: Sat, 11 Nov 2017 19:15:31 -0500 From: "Theodore Ts'o" To: Dan Williams Cc: Fengguang Wu , Linus Torvalds , Linux Kernel Mailing List , Vishal Verma Subject: Re: [pmem_attach_disk] WARNING: CPU: 46 PID: 518 at kernel/memremap.c:363 devm_memremap_pages+0x350/0x4b0 Message-ID: <20171112001531.m23yeuuiqmawlbhj@thunk.org> Mail-Followup-To: Theodore Ts'o , Dan Williams , Fengguang Wu , Linus Torvalds , Linux Kernel Mailing List , Vishal Verma References: <20171029225155.qcum5i75awrt5tzm@wfg-t540p.sh.intel.com> <20171030074055.wd56v3wiy2aveh2p@wfg-t540p.sh.intel.com> <20171031000053.gdn5jbxhlrxqmxfq@wfg-t540p.sh.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170609 (1.8.3) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@thunk.org X-SA-Exim-Scanned: No (on imap.thunk.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 30, 2017 at 05:24:42PM -0700, Dan Williams wrote: > > Something is going wrong with memmap= because you are not getting 1G > aligned address ranges. I think you would have better luck switching > to the official nvdimm emulation in qemu-kvm rather than relying on > memmap= which is just a fragile / unreliable interface. In fact we > should look to deprecate it and point everyone to use the standard > methods. We just have a problem of legacy pre-ACPI6 platforms that > have no other way than a kernel command line to identify persistent > memory ranges. Why is memmap fragile/unreliable? I'm not using qemu-kvm for most of my testing and right now memmap is the only way I can test ext4 DAX codepaths. :-/ - Ted