Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp50260imp; Wed, 20 Feb 2019 14:03:34 -0800 (PST) X-Google-Smtp-Source: AHgI3IZLSDoWOjuakBNlpM5K965bjJhYEApvXYJeTtDf8evfbkO+dYngiMhmNKNwRvvuTmnD1AM9 X-Received: by 2002:a63:2c7:: with SMTP id 190mr33229973pgc.367.1550700214520; Wed, 20 Feb 2019 14:03:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550700214; cv=none; d=google.com; s=arc-20160816; b=ath/weCUkHyzudn2ZiZKtcojPQrA1IFKNG4/mVx8OggOTH1cCv90iN6BCb5PgkXoiG zHLGLd2Hyq4ufNUaZBb+zP2FskjS4iPIeRUkDdj7R78oV9vGTEghujyZzILZbQPxKfm8 cshXxDzRS8mLmFlIetV3x1CJ/g6xm+o4OQElfv+3mayOFmhxlFAskerb8tIia/wTpxR8 M0ksdcKA0BPlbgs9Ih/bUCkeAB2jrqlUKwdnBbGFq6FhexPda+Za560ZUV210DzXddqm UrV1D0P56YipQM2gtcMIejmKRBd+/DgYj8Xoaeu0XGOPEASAHWrh6dlRihQL2VProDc0 OcsA== 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=vvbga5/rKMhGa+NSWBfXnVaRcn9H55kD51cNX0PyggM=; b=nJ0BKaGGLhjqrdG7qNhDbLg+psVW930EuHOCL6XrQ5YAXZwZf8EtRYWDHflOH2tveg K82qSegfHXQ6XYTOo+dO995Ap2UFBlRf2QUl2JKihAouf0Qg3Io/wQNYiCsARX8fiZEc PDUapYIqUfVDt7MqyQy1wZlOJWbB/EfxOwDILqrRe9adyyInA1xdgwKXu5OWJWbvkmNI V+0jGBLcHf8MUbWTLvg351y4/X+3eASZ5sYgivk5kSe5wAyPm2ZRdQP/p94vufJnE2s5 FSyWAaETPDRqgHawXzEQzCehliPMEOoK9MvJKT612jM/ffICJmtJtIYk+U7Qb4F1EA/i vpSw== 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 h79si19630771pfa.127.2019.02.20.14.03.18; Wed, 20 Feb 2019 14:03:34 -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; 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 S1727395AbfBTWCN (ORCPT + 99 others); Wed, 20 Feb 2019 17:02:13 -0500 Received: from mail-ot1-f65.google.com ([209.85.210.65]:33264 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727200AbfBTWCN (ORCPT ); Wed, 20 Feb 2019 17:02:13 -0500 Received: by mail-ot1-f65.google.com with SMTP id i20so43000013otl.0; Wed, 20 Feb 2019 14:02:13 -0800 (PST) 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=vvbga5/rKMhGa+NSWBfXnVaRcn9H55kD51cNX0PyggM=; b=HPZth5Mk/YoyDz3sHOI5eHhplxGssR4eoCWMlaRLSX8zETCQIqDXc0f3xje48Adpel m2WeOK0glufe1qmb9cW6lD1D83a5EEodYu8NbEgzB8x5W9m1JxXhjepMfatvUFBBDy0F bYn9jwpVWNIoTQRAgtqzliAoenwpvyRONaxrDMlRwJvczGpA1cNJmEKL/MB+1eOPlNRy 9CW9v4C3EQ0D+5wE5KTogpwFgKGqr1JE6TJ1kelSOnfkdt+HpOAnyB/bZH6bMfuILxzR 2vpKhkvM8aTm6uIJns/ejpxgZywiAdJU0ouJBrL4OpjFjdgVw9bn4+R3pmrgHCEUckRW 620A== X-Gm-Message-State: AHQUAuYKmUP9mJcZNC0WJ0yERklpkSZZMGrVygv2Zj+pb0UQbWnYY5Nr VvbZS4qYcj1gKRwuN7LP2DBLuzhZZrR6SfUM2QHmH5DH X-Received: by 2002:aca:6046:: with SMTP id u67mr2338709oib.84.1550700132699; Wed, 20 Feb 2019 14:02:12 -0800 (PST) MIME-Version: 1.0 References: <20190214171017.9362-1-keith.busch@intel.com> <20190214171017.9362-8-keith.busch@intel.com> In-Reply-To: <20190214171017.9362-8-keith.busch@intel.com> From: "Rafael J. Wysocki" Date: Wed, 20 Feb 2019 23:02:01 +0100 Message-ID: Subject: Re: [PATCHv6 07/10] acpi/hmat: Register processor domain to its memory To: Keith Busch Cc: Linux Kernel Mailing List , ACPI Devel Maling List , Linux Memory Management List , Linux API , Greg Kroah-Hartman , Rafael Wysocki , Dave Hansen , Dan Williams 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 Thu, Feb 14, 2019 at 6:10 PM Keith Busch wrote: > > If the HMAT Subsystem Address Range provides a valid processor proximity > domain for a memory domain, or a processor domain matches the performance > access of the valid processor proximity domain, register the memory > target with that initiator so this relationship will be visible under > the node's sysfs directory. > > By registering only the best performing relationships, this provides the > most useful information applications may want to know when considering > which CPU they should run on for a given memory node, or which memory > node they should allocate memory from for a given CPU. > > Since HMAT requires valid address ranges have an equivalent SRAT entry, > verify each memory target satisfies this requirement. > > Signed-off-by: Keith Busch > --- > drivers/acpi/hmat/Kconfig | 1 + > drivers/acpi/hmat/hmat.c | 396 +++++++++++++++++++++++++++++++++++++++++++++- > 2 files changed, 396 insertions(+), 1 deletion(-) > > diff --git a/drivers/acpi/hmat/Kconfig b/drivers/acpi/hmat/Kconfig > index c9637e2e7514..08e972ead159 100644 > --- a/drivers/acpi/hmat/Kconfig > +++ b/drivers/acpi/hmat/Kconfig > @@ -2,6 +2,7 @@ > config ACPI_HMAT > bool "ACPI Heterogeneous Memory Attribute Table Support" > depends on ACPI_NUMA > + select HMEM_REPORTING If you want to do this here, I'm not sure that defining HMEM_REPORTING as a user-selectable option is a good idea. In particular, I don't really think that setting ACPI_HMAT without it makes a lot of sense. Apart from this, the patch looks reasonable to me.