Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp305556imu; Mon, 26 Nov 2018 11:08:44 -0800 (PST) X-Google-Smtp-Source: AJdET5cSIWrxiAlOh2cEjD0vIzOuhwsoHDdiduCUghkQVSiL6H+Bb06+xeAmlOCZjAW4tc7JvFiz X-Received: by 2002:aa7:83c6:: with SMTP id j6mr29389836pfn.91.1543259324845; Mon, 26 Nov 2018 11:08:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543259324; cv=none; d=google.com; s=arc-20160816; b=nsXzTnBlErhKLUp8cmbhSVdV6OW3+nD2K5aVe3UvXd4qO1vU71VHdlldBKrv6TSZLD 0Kv+j24w5KXJtHYc/lTBDoshHAWUWfLlV3Ojkm6rx33hbvD/C+mIGymo389gLBUVx+MW dF+Ity043HagoZbT+9i2UtagUihfT1y23sdySHvIi+zbh51jcX1dU/2m2Qf9GjuP+CfT aOUGsooQEDfnk4WpUD1ugAj8QUxq9VC+4rFcK9YjGzMDsQ4vEbp7IC6l/qqoxJXPvHUA GlaBl7a/GvPEARXIxAt+HCV/yRsCN/57BeV/HzskryexoN/XArPBkGduy2vUpuwpwfrX 7PSA== 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:dkim-signature; bh=d3SSmeQ7BuoT3wjd4wxcOZN5rR8fl+h4CRwlAms/94Y=; b=vJ4zkgVuhe4o5UsG2T3LDAF92UVuJeXkfTAQPojnEpnGcTX47lZdc29qyqCQtfz6e+ 1HFemCMQNa2uFVUqBcwhjXuFiuWmX1NYRRPiMHc9lG45jb0r+/htoCJBZ0jNSp7Ei3H8 YUouHKG1Z9hyLxb9oju9leKXcrA4QUfWI0FiVx8Xm/tah+PtpCgWZFC1aw5K1LihnfRJ CvE6gJSVXOr/wqc/khlF2QH0+yL1Qto08LeJ1PFIRnU8juBhRc36mfCD/26X8CCgMCSe +3ZvuHxLoyMOXoYMPVEdMo5d2B3q80okZtcJYMb0r6W2nwgXZ2mOs+aT74EaSSp/7/lG f8Bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0NIA8cW8; 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 3si1119885pla.240.2018.11.26.11.08.12; Mon, 26 Nov 2018 11:08:44 -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=@kernel.org header.s=default header.b=0NIA8cW8; 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 S1726985AbeK0GB5 (ORCPT + 99 others); Tue, 27 Nov 2018 01:01:57 -0500 Received: from mail.kernel.org ([198.145.29.99]:42150 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726140AbeK0GB5 (ORCPT ); Tue, 27 Nov 2018 01:01:57 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1BF3C20660; Mon, 26 Nov 2018 19:06:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543259214; bh=+MBMhlaHQL6BF6DWR6Y3zqmLzyN0GD2H2COiqWXqEEE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=0NIA8cW8J528wbCEFjBxOEpQbfdbv54yIhyug4LgjOlu2brjkIr2kISt0Twq+Gzsd D81FMl09QQPNZDc+KLI7oE8xC1vrJNeVcc+iC0gOXZnyv1FLdN8UzG7MKJo3qdhFHy s5+V+j0sCoxG57ll6dBZUnvCUJvTHPbiXoQ1/y/U= Date: Mon, 26 Nov 2018 20:06:52 +0100 From: Greg Kroah-Hartman To: Keith Busch Cc: linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, linux-mm@kvack.org, Rafael Wysocki , Dave Hansen , Dan Williams Subject: Re: [PATCH 4/7] node: Add memory caching attributes Message-ID: <20181126190652.GB32595@kroah.com> References: <20181114224921.12123-2-keith.busch@intel.com> <20181114224921.12123-5-keith.busch@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181114224921.12123-5-keith.busch@intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 14, 2018 at 03:49:17PM -0700, 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. > > In preparation for such systems, provide a new API for the kernel to > register these memory side caches under the memory node that provides it. > > The kernel's sysfs representation is modeled from the cpu cacheinfo > attributes, as seen from /sys/devices/system/cpu/cpuX/cache/. Unlike CPU > cacheinfo, though, a higher node's memory cache level is nearer to the > CPU, while lower levels are closer to the backing memory. Also unlike > CPU cache, the system handles flushing any dirty cached memory to the > last level the memory on a power failure if the range is persistent. > > The exported attributes are the cache size, the line size, associativity, > and write back policy. You also didn't document your new sysfs attributes/layout in a Documentation/ABI/ entry which is required for any sysfs change... thanks, greg k-h