Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp12853imu; Mon, 26 Nov 2018 07:20:47 -0800 (PST) X-Google-Smtp-Source: AFSGD/WB7XNBfCP3NASGFtYXBrNjbevGD2oJj6H8ECNKECqs0OMyFLmp+KTPAPOCVPBv3+dDD59o X-Received: by 2002:a63:db02:: with SMTP id e2mr25566591pgg.419.1543245647301; Mon, 26 Nov 2018 07:20:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543245647; cv=none; d=google.com; s=arc-20160816; b=pmrd22nzYXGrUnjQpsfxxWlEAvcLUHIsN/cPgnN3iZLH+hsnesVK+6AbDSoafYN7aG jBEunPH437n5/YoMy6R8o6By56DU2gkVdMSaTL4p/t5Rfhv5PKSsXeY9nGhMUYZSZToz YtuX9LkrrwrUUjPQTDQRV2TlLN8szSVzRmDL58AuozmhudtnssqRgkhUCc7b6d4YV5mq EdBVmtYdvLw/3dYWDEeb/uK44MkmmTBSYJJF2jkIX2CvCvU/zenawz63BlNf5VPpo4j8 iMkb9ojN6o33drEQlA9J0jHpHup/uJPVwa5hB8crIft++x+BizMdAe+YmqVm8tEK7+vE pwlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=6GGor3IYntWZ65jLZ2w2gT8P6CXC+1AUwR/w88P0bkQ=; b=zYJBH/gYwul60ZcVFpXi1wDEV7z/g9St7+9XPxEEDSWeNaj5aKXfUoKpA8GED3gAaS SDucPqbsjbTegQY/B8XCKVGCf455kWo0hlkRAWSuc3LG0bdUe3DZmVtn58IaYzyKDaRw 15Rc5u/FHuzzmNibl8wuS5HTKqeqiRueKxtlXYpyFoZ1FuZy/1PK8N4bkoy/ZdzBlZbi Bka4LTyRzdZfeXLouF6fgbH8k9kxoBrjzi9aBl4EDrWqhVoQinR+YOhkikB4p8M4nS26 UvD8M6NQ5Br5gjxdVf/5HqB6IHZO52REjy48e6U1nSj5ovwxTwEC0jrIwnETaolXCc6S Negw== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e125si661776pfe.14.2018.11.26.07.20.06; Mon, 26 Nov 2018 07:20:47 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726355AbeK0CMS (ORCPT + 99 others); Mon, 26 Nov 2018 21:12:18 -0500 Received: from mga11.intel.com ([192.55.52.93]:46986 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726242AbeK0CMR (ORCPT ); Mon, 26 Nov 2018 21:12:17 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Nov 2018 07:17:49 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,282,1539673200"; d="scan'208";a="108598701" Received: from unknown (HELO localhost.localdomain) ([10.232.112.69]) by fmsmga002.fm.intel.com with ESMTP; 26 Nov 2018 07:17:48 -0800 Date: Mon, 26 Nov 2018 08:14:47 -0700 From: Keith Busch To: Anshuman Khandual Cc: linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, linux-mm@kvack.org, Greg Kroah-Hartman , Rafael Wysocki , Dave Hansen , Dan Williams Subject: Re: [PATCH 4/7] node: Add memory caching attributes Message-ID: <20181126151446.GK26707@localhost.localdomain> References: <20181114224921.12123-2-keith.busch@intel.com> <20181114224921.12123-5-keith.busch@intel.com> <91698cef-cdcd-5143-884f-3da5536e156f@arm.com> <20181119230600.GC26707@localhost.localdomain> <731533d5-26e1-ade7-1a63-d1f85461d091@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <731533d5-26e1-ade7-1a63-d1f85461d091@arm.com> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 22, 2018 at 06:59:21PM +0530, Anshuman Khandual wrote: > > > On 11/20/2018 04:36 AM, Keith Busch wrote: > > On Mon, Nov 19, 2018 at 09:44:00AM +0530, Anshuman Khandual wrote: > >> On 11/15/2018 04:19 AM, Keith Busch wrote: > >>> System memory may have side caches to help improve access speed. While > >>> the system provided cache is transparent to the software accessing > >>> these memory ranges, applications can optimize their own access based > >>> on cache attributes. > >> > >> Cache is not a separate memory attribute. It impacts how the real attributes > >> like bandwidth, latency e.g which are already captured in the previous patch. > >> What is the purpose of adding this as a separate attribute ? Can you explain > >> how this is going to help the user space apart from the hints it has already > >> received with bandwidth, latency etc properties. > > > > I am not sure I understand the question here. Access bandwidth and latency > > are entirely attributes different than what this patch provides. If the > > system side-caches memory, the associativity, line size, and total size > > can optionally be used by software to improve performance. > > Okay but then does this belong to this series which about memory attributes ? This patch series is about exporting memory attributes, and this system memory caching is one such attribute, so yes, I think it belongs.