Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp238456imu; Mon, 26 Nov 2018 10:13:00 -0800 (PST) X-Google-Smtp-Source: AFSGD/VoAsC/ce4nieMbyW9Y3s/ZV27qdw9rDzqO64QeixFTZtzfyY+cSi01mak4OnTlf2aO8y2U X-Received: by 2002:a17:902:166:: with SMTP id 93-v6mr28269856plb.68.1543255980559; Mon, 26 Nov 2018 10:13:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543255980; cv=none; d=google.com; s=arc-20160816; b=dQ3NF4HfgDRRZfJlIVmJQQLV2DRgG8sGaXtWbNElqZl3mYuIaYiZUFQDv4JalLTeIO MnNW8Nu90wQztMYwSKScG+6c3c7T+Pyg8aqelqqTk/quSGcGWSFmViMAdFwoaDY7Ic6O U+/AQslUM2Ao8NoJPRhnTaw75jIKdvBLpQa0Wi/lHtFHQKRXAEy03MIzVMPtxi2pNnkl FDYkiRrDsgQTTP63oIVxBFFHagnR374JvX8i+9OXEMwwWnjxfsG5CzkBgmj320rCJmPj NFh+bChaRfAifzxUaUZXt2PaE7q0Cy3dBsJe1Q0oszannmWKJbs679xje7LBKgqd8MeS tmfg== 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=AzI3Y6/89Bw4vbZl5XXZYpJXzbnTAAgZ69VKphCpYl8=; b=ZQs5q+Ykuuk/n1IO6/rFywjfQBDSiGYjD0S/HBakfr7/tejLpfitTXhqib5V18lVgp qKvMF6iHH6cjpymnPMSbEjp7X+Y2cp98CXGJJYX+8B+PaNmsuWVqzCJpqkPctbyePkUK sCL9bFoE85IH3I+Jm1/Usf6Xtf8ACZUzpuM49UVuY/pjAqUopGeH08HUbUzGirB9aaFl tbMmFj2YB+HFtRfK1dlIf1hsjywAuGATWBJgtHpkuQes/07UdZRv2WV+NV2VmsyB6pe/ +G+2T+6dpxQiN5ZK4/bQa7t/QZfA8ItifQvLg9WU96eFDxlzi92acIMyywWa1AtCESP8 16cA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=px+R53O9; 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 x16-v6si999034pfm.39.2018.11.26.10.12.10; Mon, 26 Nov 2018 10:13:00 -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=px+R53O9; 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 S1726294AbeK0FDT (ORCPT + 99 others); Tue, 27 Nov 2018 00:03:19 -0500 Received: from mail-ot1-f65.google.com ([209.85.210.65]:45708 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725199AbeK0FDT (ORCPT ); Tue, 27 Nov 2018 00:03:19 -0500 Received: by mail-ot1-f65.google.com with SMTP id 32so17465817ota.12 for ; Mon, 26 Nov 2018 10:08:26 -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=AzI3Y6/89Bw4vbZl5XXZYpJXzbnTAAgZ69VKphCpYl8=; b=px+R53O95subW6m6mOWCNlVfDv1A0Vq2NjWh1Xu6pzSO4VrsgnBE6f1MEQZlDXQYbV YHUkR0PWAXKdiEuiEf0cELGLoulA4lf9VirFJkG0ODSsRwbd6f5kq2QDY57jODCrG7pt vMFiFkfgvmyeDn0qpGL1HbzrJoC3zH800lfolLcFbbI4vk9vCYaLmtVtZpKtt/Nq7UWq 46yBEus2pekcivAH6eEGqfZH1zoS7yaLdZ1Y5U+g8nY3YIDH31eLv3RczWB2vABNP017 eVEA1g0JHBDF5x8BuvDzFE+loN/sprLGkiv/8rgdZJUnhQb5fNkexQPrKREeWzsrHVqf Fd7A== 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=AzI3Y6/89Bw4vbZl5XXZYpJXzbnTAAgZ69VKphCpYl8=; b=hcn786D49mb01IgCe7PMDGFizyMAUUiPkoSZxXvpIpH8GxbKXhIh7qv5eJUf77aENt QYLDQ4MraKvXPr5bp0QHI5wliLGYP3upJDheSgu/LBe1ZZHo0mwlcsuqUbcXRhrN8BOr dZ0R0XJFX4uxAFbnY2VaRDG70zD+14nQEZl+urJmMRp/Uy+sjgNeiGTEtoAo7Z+V/1Dz DF4l/uwdFPwUoy6JSeFcwK7CtqJD2XIx8ZEbIS+4FxgbFkV9eQFi01qAa/tJppkylfI/ Wt15AKaO7N1W+5cl1GHxdybC23xndBQ8gE7lsuB2myTKn0R1B2aX2jl/ehABJTaa4jn9 csEg== X-Gm-Message-State: AA+aEWb/dxfIMmo8+HGBlMRQZ/f1BSK36vYFpziZyya86pFtOjnFf2oX P5sFPoz6yUmV6aNnUuSgHkM3pgfWE31tjEzeOo58XWx3 X-Received: by 2002:a9d:3ac:: with SMTP id f41mr12033324otf.98.1543255705724; Mon, 26 Nov 2018 10:08:25 -0800 (PST) MIME-Version: 1.0 References: <20181114224902.12082-1-keith.busch@intel.com> <1ed406b2-b85f-8e02-1df0-7c39aa21eca9@arm.com> <4ea6e80f-80ba-6992-8aa0-5c2d88996af7@intel.com> <9015e51a-3584-7bb2-cc5e-25b0ec8e5494@intel.com> In-Reply-To: From: Dan Williams Date: Mon, 26 Nov 2018 10:08:12 -0800 Message-ID: Subject: Re: [PATCH 0/7] ACPI HMAT memory sysfs representation To: Dave Hansen Cc: anshuman.khandual@arm.com, Keith Busch , Linux Kernel Mailing List , Linux ACPI , Linux MM , Greg KH , "Rafael J. Wysocki" 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 Mon, Nov 26, 2018 at 8:42 AM Dave Hansen wrote: > > On 11/23/18 1:13 PM, Dan Williams wrote: > >> A new system call makes total sense to me. I have the same concern > >> about the completeness of what's exposed in sysfs, I just don't see a > >> _route_ to completeness with sysfs itself. Thus, the minimalist > >> approach as a first step. > > Outside of platform-firmware-id to Linux-numa-node-id what other > > userspace API infrastructure does the kernel need to provide? It seems > > userspace enumeration of memory attributes is fully enabled once the > > firmware-to-Linux identification is established. > > It would be nice not to have each app need to know about each specific > platform's firmware. The app wouldn't need to know if it uses a common library. Whether the library calls into the kernel or not is an implementation detail. If it is information that only the app cares about and the kernel does not consume, why have a syscall?