Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp39641imu; Mon, 26 Nov 2018 07:41:22 -0800 (PST) X-Google-Smtp-Source: AFSGD/XwIShgUhP2w9vPPLvp0kSzsqNiwnXVrZ4DnUCZhqaqnb/EbEDaADc3txmCRNDJS50YKYVK X-Received: by 2002:a17:902:50e:: with SMTP id 14mr20050539plf.141.1543246882569; Mon, 26 Nov 2018 07:41:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543246882; cv=none; d=google.com; s=arc-20160816; b=vXiIsR7kbiBULZVveAE883h2JtTN8Hcv8U/9aHgDsx4my0s0q4bpd7WH8pzO/8eAWB K7XY70VvRjMUYlQ5mxE6/ASBLhmsEuFjaOfVTlEV2vSI/MQezLIUYnQWsy3efIhUEoCM RncaqrRsPWefy7FxMQsdRbnT7c5b7mJBgwEtfDzb3pn3lF4Bx1m/FPthZuqVOawFa7Mi A3v2mmpEAsowQZPry3lmErRu03Msdn1/olpsNoBLeUH5z4lZRNEZ+oJfvq4ioQZDXY+X /kW+RtWkN2w+13wf9jUYg4vt/WuOwn/YXQ20s/8LaE+/wWBs8m9xjg7gqoRyxPYchAkO u60A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=inv/pPVJq6Yv5R7NigTO3bxiE8qjaS++37FLPNP4Thc=; b=gYFX1ZNMdN1mUjm1OjDEdRaoa5hKFFxL1389hYIx7FlHCIgdE7URTpUGpu+z4FaX+D Ya/2TW5GEYvgGy7PhO2zuH1Tmx0Pw/uKgoG/yBLSH+FP2DEsXG4T15EOcR7nvax98Kx0 EWKIRZN/krDS8zZJImBsN+Cx1D19TYz1kV1Fx9cr/czNPE9NRkhK2Oue928FCRIZD2EC wPWW3w1A91XFh0+Thh9T7udp3rjSwoBmIWC+5E1oA/E6w14oTCllwBFSRtHdZhjXIMrX 2Z4q4q7dOwjhCqxNEbJkBk3v1kHaFG+shuJKrVuTzd8LNcwx3ojBR4Me/LrGI8f6SVE2 E1RQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i13si632767pgi.260.2018.11.26.07.41.00; Mon, 26 Nov 2018 07:41:22 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726549AbeK0CdT (ORCPT + 99 others); Mon, 26 Nov 2018 21:33:19 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:40576 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726224AbeK0CdT (ORCPT ); Mon, 26 Nov 2018 21:33:19 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 6A24B351D; Mon, 26 Nov 2018 07:38:51 -0800 (PST) Received: from [10.1.196.73] (unknown [10.1.196.73]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 0C77E3F59C; Mon, 26 Nov 2018 07:38:49 -0800 (PST) Subject: Re: [PATCH 0/7] ACPI HMAT memory sysfs representation To: Dave Hansen , Keith Busch , linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, linux-mm@kvack.org Cc: Greg Kroah-Hartman , Rafael Wysocki , Dan Williams 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> From: Anshuman Khandual Message-ID: <1a9e887b-8087-e897-6195-e8df325bd458@arm.com> Date: Mon, 26 Nov 2018 21:08:51 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <9015e51a-3584-7bb2-cc5e-25b0ec8e5494@intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/24/2018 12:51 AM, Dave Hansen wrote: > On 11/22/18 10:42 PM, Anshuman Khandual wrote: >> Are we willing to go in the direction for inclusion of a new system >> call, subset of it appears on sysfs etc ? My primary concern is not >> how the attribute information appears on the sysfs but lack of it's >> completeness. > > 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. Okay if we agree on the need for a new specific system call extracting the superset attribute information MAX_NUMNODES * MAX_NUMNODES * U64 (u64 packs 8 bit values for 8 attributes or something like that) as we had discussed before, it makes sense to export a subset of it which can be faster but useful for the user space without going through a system call. Do you agree on a (system call + sysfs) approach in principle ? Also sysfs exported information has to be derived from whats available through the system call not the other way round. Hence the starting point has to be the system call definition.