From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8E002C10F25 for ; Fri, 6 Mar 2020 20:07:48 +0000 (UTC) Received: from ml01.01.org (ml01.01.org [198.145.21.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 60E37206D7 for ; Fri, 6 Mar 2020 20:07:48 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="iORSAA+d" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 60E37206D7 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-nvdimm-bounces@lists.01.org Received: from ml01.vlan13.01.org (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 83D7710FC3405; Fri, 6 Mar 2020 12:08:39 -0800 (PST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=207.211.31.81; helo=us-smtp-delivery-1.mimecast.com; envelope-from=jmoyer@redhat.com; receiver= Received: from us-smtp-delivery-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 20F1010FC33FD for ; Fri, 6 Mar 2020 12:08:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1583525264; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=+YIIYWVi7RdgKfAy7yTaNL+3yMfo1EDUARXKVoiNRlk=; b=iORSAA+dvGs8kGAy7INVNjSgZaeQlvWI0LcSQIeTCrDSFzVoNo2lizxJGSc4gpQvEeF4Ii ywln5Q2Gx4dT0F37AfPsTsHjoWhmXSxNLzskAkYcIS4bJg7X8hsY0OJa56/m/6XBEXyf2K ueAbIihO24iciP2EbmdSq2CsakVLOyQ= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-299-9S-s0OdCNB2jyIvWkNZXNg-1; Fri, 06 Mar 2020 15:07:35 -0500 X-MC-Unique: 9S-s0OdCNB2jyIvWkNZXNg-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id BB225184C804; Fri, 6 Mar 2020 20:07:32 +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 AB79A1001B2D; Fri, 6 Mar 2020 20:07:29 +0000 (UTC) From: Jeff Moyer To: Dan Williams Subject: Re: [PATCH 0/5] Manual definition of Soft Reserved memory devices References: <158318759687.2216124.4684754859068906007.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: Fri, 06 Mar 2020 15:07:28 -0500 In-Reply-To: <158318759687.2216124.4684754859068906007.stgit@dwillia2-desk3.amr.corp.intel.com> (Dan Williams's message of "Mon, 02 Mar 2020 14:19:57 -0800") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Message-ID-Hash: CK3BRODFQDSRVEHNLD4SBX5UPD6AHZTE X-Message-ID-Hash: CK3BRODFQDSRVEHNLD4SBX5UPD6AHZTE X-MailFrom: jmoyer@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header CC: linux-acpi@vger.kernel.org, Jason Gunthorpe , Peter Zijlstra , Ard Biesheuvel , Jonathan Cameron , Borislav Petkov , x86@kernel.org, "H. Peter Anvin" , Brice Goglin , Thomas Gleixner , Ingo Molnar , Dave Hansen , "Rafael J. Wysocki" , Ard Biesheuvel , Andy Lutomirski , Tom Lendacky , linux-nvdimm@lists.01.org, linux-kernel@vger.kernel.org X-Mailman-Version: 3.1.1 Precedence: list List-Id: "Linux-nvdimm developer list." Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Dan Williams writes: > Given the current dearth of systems that supply an ACPI HMAT table, and > the utility of being able to manually define device-dax "hmem" instances > via the efi_fake_mem= option, relax the requirements for creating these > devices. Specifically, add an option (numa=nohmat) to optionally disable > consideration of the HMAT and update efi_fake_mem= to behave like > memmap=nn!ss in terms of delimiting device boundaries. So, am I correct in deducing that your primary motivation is testing without hardware/firmware support? This looks like a bit of a hack to me, and I think maybe it would be better to just emulate the HMAT using qemu. I don't have a strong objection, though. -Jeff > > All review welcome of course, but the E820 changes want an x86 > maintainer ack, the efi_fake_mem update needs Ard, and Rafael has > previously shepherded the HMAT changes. For the changes to > kernel/resource.c, where there is no clear maintainer, I just copied the > last few people to make thoughtful changes in that area. I am happy to > take these through the nvdimm tree along with these prerequisites > already in -next: > > b2ca916ce392 ACPI: NUMA: Up-level "map to online node" functionality > 4fcbe96e4d0b mm/numa: Skip NUMA_NO_NODE and online nodes in numa_map_to_online_node() > 575e23b6e13c powerpc/papr_scm: Switch to numa_map_to_online_node() > 1e5d8e1e47af x86/mm: Introduce CONFIG_NUMA_KEEP_MEMINFO > 5d30f92e7631 x86/NUMA: Provide a range-to-target_node lookup facility > 7b27a8622f80 libnvdimm/e820: Retrieve and populate correct 'target_node' info > > Tested with: > > numa=nohmat efi_fake_mem=4G@9G:0x40000,4G@13G:0x40000 > > ...to create to device-dax instances: > > # daxctl list -RDu > [ > { > "path":"\/platform\/hmem.1", > "id":1, > "size":"4.00 GiB (4.29 GB)", > "align":2097152, > "devices":[ > { > "chardev":"dax1.0", > "size":"4.00 GiB (4.29 GB)", > "target_node":3, > "mode":"devdax" > } > ] > }, > { > "path":"\/platform\/hmem.0", > "id":0, > "size":"4.00 GiB (4.29 GB)", > "align":2097152, > "devices":[ > { > "chardev":"dax0.0", > "size":"4.00 GiB (4.29 GB)", > "target_node":2, > "mode":"devdax" > } > ] > } > ] > > --- > > Dan Williams (5): > ACPI: NUMA: Add 'nohmat' option > efi/fake_mem: Arrange for a resource entry per efi_fake_mem instance > ACPI: HMAT: Refactor hmat_register_target_device to hmem_register_device > resource: Report parent to walk_iomem_res_desc() callback > ACPI: HMAT: Attach a device for each soft-reserved range > > > arch/x86/kernel/e820.c | 16 +++++- > arch/x86/mm/numa.c | 4 + > drivers/acpi/numa/hmat.c | 71 +++----------------------- > drivers/dax/Kconfig | 5 ++ > drivers/dax/Makefile | 3 - > drivers/dax/hmem/Makefile | 6 ++ > drivers/dax/hmem/device.c | 97 +++++++++++++++++++++++++++++++++++ > drivers/dax/hmem/hmem.c | 2 - > drivers/firmware/efi/x86_fake_mem.c | 12 +++- > include/acpi/acpi_numa.h | 1 > include/linux/dax.h | 8 +++ > kernel/resource.c | 1 > 12 files changed, 156 insertions(+), 70 deletions(-) > create mode 100644 drivers/dax/hmem/Makefile > create mode 100644 drivers/dax/hmem/device.c > rename drivers/dax/{hmem.c => hmem/hmem.c} (98%) > > base-commit: 7b27a8622f802761d5c6abd6c37b22312a35343c _______________________________________________ Linux-nvdimm mailing list -- linux-nvdimm@lists.01.org To unsubscribe send an email to linux-nvdimm-leave@lists.01.org