Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp447482ybb; Wed, 25 Mar 2020 03:04:03 -0700 (PDT) X-Google-Smtp-Source: ADFU+vt4newSVr77NDjxEJrc7c5L4qVYSYnVFcEeaEeyGykiKOlCM51UqNkWUgMmASO8xvyEaxJL X-Received: by 2002:aca:ab4b:: with SMTP id u72mr1978652oie.26.1585130643539; Wed, 25 Mar 2020 03:04:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585130643; cv=none; d=google.com; s=arc-20160816; b=ILUadzhtXZdwiNf1/xEEwQDTg4nCu0njx4RqvhS4XmUSzPOrWsGL5bCjutLjqa+GVo Nm6puyioEuR82PK2M0e8ZBKpoDtoJpHdcFbJacL1N+EVac7EAuxC0ibdCHbcAtjKoArs GtYUzwtZxBvxiXaKZ92wjcoMs1VmmNp8HJWhFEtgesFETPlsrlWb1ooeaS9K1sjUoXTT +HvnPdYcYffyyMkCz8+GYOVJlPomrUL5w5LWsPLQfjGhX/WgXzO3XUkWK3RMhIKgVfqi EfVah9kU/G/lRWpvaj+bXzPT7q39Xion9eus7D1BbjqvfgymOlUv+tTl43w3+2bNvsZZ nRJw== 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; bh=RbxsF3iTBYd8Alr5a+AtfnDNHQ5nhFVuguNGxWvurh0=; b=jUUGC0Re/d4ogNNck09iseHFAiBbpEk6ky/N0sD26XX0XpL44O+Tt/TkzCwKnvMvdt aVOxYXthJ20QDtWjECHz7ToeUDF0GH/G5IibCXZlUYzl2ju0cEG1YkA4CubFR5yXYDsa gWs618wfV5C86nS29gWErxh+6r0GGI/dNHQF0mklajeCz5/LgMOAGSbwcmWE9bQ/JhBR kW1BpWWQBLIJ52q2r5MtCwtmfQYjVAACXMwjaZNYJuPmkCxQkXFI3TCRuUYoZtL7ckUt ofVvTlIczxjS9E7/YPjGmPwysHmZENa5PCHJmtz57Te5o0aEpISOsCAIEquWz5hDH5XW 39VQ== 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s200si9624156oie.188.2020.03.25.03.03.37; Wed, 25 Mar 2020 03:04:03 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727346AbgCYKDL (ORCPT + 99 others); Wed, 25 Mar 2020 06:03:11 -0400 Received: from mail-oi1-f195.google.com ([209.85.167.195]:38575 "EHLO mail-oi1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726154AbgCYKDL (ORCPT ); Wed, 25 Mar 2020 06:03:11 -0400 Received: by mail-oi1-f195.google.com with SMTP id w2so1549727oic.5; Wed, 25 Mar 2020 03:03:10 -0700 (PDT) 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=RbxsF3iTBYd8Alr5a+AtfnDNHQ5nhFVuguNGxWvurh0=; b=AAPa5MwXmDQSu4zA9dPlBPcV5CEKHNNruTSqcBA41tVpwg+YUmFEj+1IUzIfsTu6P+ sZ90j5lLoX90U68YrWvXMwe7LS5IjnZac4hTITfdjUcUyv/M+FjCssQkdCemvrztVo89 IZ0voE+t1ViCVH71uZNaZJ5YFtxPZSMcqMlyAPj2802MTEeuUMS0X5rb9S0ipohTz8wa rSvAISnD6VmdzuCL8X8loynmDDiQL7P0hemUVGAGnwkodhEE1LWtUcpOCcTzpCXKHm+6 eYRAdAdrwJPYZQqV5Qj8TYbilpoN9sBFqQSr/fvv7GO0dAoZAFfpt6iuC4WIJ1+cQr04 hivw== X-Gm-Message-State: ANhLgQ0kCii8TSmT5tPqJKe15zHeWq8WyLyD9MHAHft6v3nVzOVkNtKN EFTbUSTO3uMjAwSGMPbFeHCGqN5lp45ZYDFbFpI= X-Received: by 2002:aca:f07:: with SMTP id 7mr207477oip.68.1585130590326; Wed, 25 Mar 2020 03:03:10 -0700 (PDT) MIME-Version: 1.0 References: <158489354353.1457606.8327903161927980740.stgit@dwillia2-desk3.amr.corp.intel.com> In-Reply-To: <158489354353.1457606.8327903161927980740.stgit@dwillia2-desk3.amr.corp.intel.com> From: "Rafael J. Wysocki" Date: Wed, 25 Mar 2020 11:02:58 +0100 Message-ID: Subject: Re: [PATCH v2 0/6] Manual definition of Soft Reserved memory devices To: Dan Williams Cc: ACPI Devel Maling List , Jason Gunthorpe , "Rafael J. Wysocki" , Peter Zijlstra , Ard Biesheuvel , Jonathan Cameron , Borislav Petkov , Wei Yang , "the arch/x86 maintainers" , "H. Peter Anvin" , Brice Goglin , Thomas Gleixner , Catalin Marinas , Jeff Moyer , Ingo Molnar , Dave Hansen , Will Deacon , "Rafael J. Wysocki" , Ard Biesheuvel , Andy Lutomirski , Tom Lendacky , "linux-nvdimm@lists.01.org" , Linux Kernel Mailing List , Joao Martins 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 Sun, Mar 22, 2020 at 5:28 PM Dan Williams wrote: > > Changes since v1 [1]: > - Kill the ifdef'ery in arch/x86/mm/numa.c (Rafael) > > - Add a dummy phys_to_target_node() for ARM64 (0day-robot) > > - Initialize ->child and ->sibling to NULL in the resource returned by > find_next_iomem_res() (Inspired by Tom's feedback even though it does > not set them like he suggested) > > - Collect Ard's Ack > > [1]: http://lore.kernel.org/r/158318759687.2216124.4684754859068906007.stgit@dwillia2-desk3.amr.corp.intel.com > > --- > > My primary motivation is making the dax_kmem facility useful to > shipping platforms that have performance differentiated memory, but > may not have EFI-defined soft-reservations / HMAT (or > non-EFI-ACPI-platform equivalent). I'm anticipating HMAT enabled > platforms where the platform firmware policy for what is > soft-reserved, or not, is not the policy the system owner would pick. > I'd also highlight Joao's work [2] (see the TODO section) as an > indication of the demand for custom carving memory resources and > applying the device-dax memory management interface. > > 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. > > [2]: https://lore.kernel.org/lkml/20200110190313.17144-1-joao.m.martins@oracle.com/ > > With Ard's and Rafael's ack I'd feel ok taking this through the nvdimm > tree, please holler if anything still needs some fixups. Acked-by: Rafael J. Wysocki for the whole series. Thanks!