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=-1.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED 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 BD3F4C43331 for ; Wed, 25 Mar 2020 10:03:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 91B402077D for ; Wed, 25 Mar 2020 10:03:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585130591; bh=ZVL+2TGpa4rGMW0+gLddSanMIRFJs15vke/jK8GMlQg=; h=References:In-Reply-To:From:Date:Subject:To:Cc:List-ID:From; b=mwynaRrIe9+jjCR3OaW7A80Q+MfpdeQDVJztJ6kBRjhiOMlsGF3EKQAJ/oYOpopqY GEBf2urs8l9KeU/reUK1o324uJIrxRwmzuoMGuPz6yfAqPMoBoMeXbX+urHFDVDLWx PQKPmJVpCVnO65PJbT0NnrMu/1XAaHKWVfk9ODBY= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726239AbgCYKDL (ORCPT ); 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-Google-Smtp-Source: ADFU+vtK7XJIlmRTJBKFQ3UQeLQAPRvyeRH/mRzKTpmVW/rXoTpLQXCBWXpdUAN8zvQ1FBWw76QivKVZ5CBpzMoO6GI= 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-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@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!