Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp7233260ybf; Fri, 6 Mar 2020 13:06:15 -0800 (PST) X-Google-Smtp-Source: ADFU+vsIlZwCAFfsQBNUdufOYuKXWkmPnoVPC3c6wJYXdJOeM06MnIMmO1UDxCl7pWOgvkor746V X-Received: by 2002:a05:6808:359:: with SMTP id j25mr3966596oie.15.1583528775388; Fri, 06 Mar 2020 13:06:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583528775; cv=none; d=google.com; s=arc-20160816; b=RfQKabasQtLFCWUH6sQCW7psbpiOZUjmDrOP1dUZYCC6pHSLWPyrfK3+ie24bMwFIU 34iukShJPDW21imcWRNzfIVwsgXcMqkKFPfxLWOjMelWm5bk+wiSsJg4rk59cx8q8GUq Wol2IaPFr7oAQ4wpF7AnNxgweY7KR730UGo2O9b9e9AC12oDyX1dMWFJzaqOa15f3iWF C+KT/DeHM+cHS5nldav9pyPgFZ630952Exas9sU+wQkHTdPsPzkvIeaE+eOisASOUS/q poUfvgUuH7wZX+IviGkKAr3yG4EhPH4VhvTYqGFhkYJKvk7ur31Ed3ZnrlSon2UMN0L8 P9Iw== 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=a1kF/OZzMQLactEcP2uvKaRdr9m2gxg0zsQwgDcUpS8=; b=BCLyoHfCfX5N91m56Jlj4FrSnATwwpFbht1nYrr6gGZ1yisP5AgBkuCtZaAh1zhXf0 ePp4nc9G1CFuCZvzOQRkFE7U/WcHXY0+uBt4T/je+J2GzGHqa+dcc/Q5XNZoGPbAb4mx cXp2zITqIDw4LlVPkpDn4qUtUJINcEsZWSpZJ0WEDMVw7LtG5RMoCKUkvywd+JjoDe/y EeD0D4aPgKeUBl3qMCrQz2esUu3chhXMpGuZuVPH5jRvdXXRLFZhb6dYnWBelpfa8w4e ncUWQkkqTzB+yhImfS5MIeYGaOQIsSYq/WoAzBTJhIAOmRbscLuQCrkfvXU13jb34vT3 ZG6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=zHeO+NAS; 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 m18si2188195ots.151.2020.03.06.13.06.03; Fri, 06 Mar 2020 13:06:15 -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=zHeO+NAS; 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 S1726490AbgCFVFm (ORCPT + 99 others); Fri, 6 Mar 2020 16:05:42 -0500 Received: from mail-ot1-f66.google.com ([209.85.210.66]:39940 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726194AbgCFVFm (ORCPT ); Fri, 6 Mar 2020 16:05:42 -0500 Received: by mail-ot1-f66.google.com with SMTP id x19so3849279otp.7 for ; Fri, 06 Mar 2020 13:05:42 -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=a1kF/OZzMQLactEcP2uvKaRdr9m2gxg0zsQwgDcUpS8=; b=zHeO+NASipBgaWDXKZxHQ9T6Qk7JyQTufn1LqoKL9eCvWxA6ERYUyq5brfvaGK2Q2T O/1XtzLEJ1OB063KrHNDlljqirAy6dSyKF1iCoBOl1Vku6umli7wybNDN4liHG6HiEkL iJQBdSeZVh2iwysFc31yvgGzAfDguHevXnkROYvBITGUqkec3Q6DiV6vn3qAjCSwkC6V 7yLNzobtVea45nRJ6F+O3pxCAX7i2s3r6qp0ctkisp7YTbLrPNxHKjQpvGQULi0khAfv gHd+Vg6XcX50oieboKdVEQSwY9XXXxKOGwnkGWC6OtC68at4+VqDSlJ0yEpTWQIPL97W CziA== 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=a1kF/OZzMQLactEcP2uvKaRdr9m2gxg0zsQwgDcUpS8=; b=YNvfWsHFKRv/sPRpB9jUoOpye54vxmRev0UIgv/EfatxniqPY0ny0U6Lnu72AF20ec mS7CpUZQt/TUIhZIOEzVJykrVk1i63n3qXtckGUoVDHI/lmlctH+M012dxx2GvaQrg/n b7nGSX113RQkWJx2YTiAr4Xn3JC0Xfge4+fTMED2V85VJPR/qiwngWMVqssJKxeDDD6T rg9fMqYtKeaFMetxBgeY9m82pm3u4CajkD4D46gRKjf4N/4u/3nFepHohJeW8s+JJOqJ GvnumsjC+pNh79LzzTbRAWOmLPdmEW6QgEDd6hLKz7weKiicw41QA0FxQw2s84+kMHmm SyhQ== X-Gm-Message-State: ANhLgQ19mHfZ6LvqIDgK6hzGA4mFxEv7pM55gwLWMYDInnke6QgiAk5a hym4mj6IBq3ZYl7FI+9E/+mSUOJkwCdXgZffdpBpFA== X-Received: by 2002:a05:6830:1313:: with SMTP id p19mr763057otq.126.1583528741694; Fri, 06 Mar 2020 13:05:41 -0800 (PST) MIME-Version: 1.0 References: <158318759687.2216124.4684754859068906007.stgit@dwillia2-desk3.amr.corp.intel.com> In-Reply-To: From: Dan Williams Date: Fri, 6 Mar 2020 13:05:30 -0800 Message-ID: Subject: Re: [PATCH 0/5] Manual definition of Soft Reserved memory devices To: Jeff Moyer Cc: Linux ACPI , Jason Gunthorpe , Peter Zijlstra , Ard Biesheuvel , Jonathan Cameron , Borislav Petkov , Wei Yang , X86 ML , "H. Peter Anvin" , Brice Goglin , Thomas Gleixner , Ingo Molnar , Dave Hansen , "Rafael J. Wysocki" , Ard Biesheuvel , Andy Lutomirski , Tom Lendacky , linux-nvdimm , 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 Fri, Mar 6, 2020 at 12:07 PM Jeff Moyer wrote: > > 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? 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 [1] (see the TODO section) as an indication of the demand for custom carving memory resources and applying the device-dax memory management interface. > 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. Yeah, qemu emulation does not help when you, the system owner, have a different use case than what the bare-metal platform-firmware envisioned for "specific-purpose memory". [1]: https://lore.kernel.org/lkml/20200110190313.17144-1-joao.m.martins@oracle.com/