From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756273AbaIQRZW (ORCPT ); Wed, 17 Sep 2014 13:25:22 -0400 Received: from service87.mimecast.com ([91.220.42.44]:52785 "EHLO service87.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756052AbaIQRZT convert rfc822-to-8bit (ORCPT ); Wed, 17 Sep 2014 13:25:19 -0400 Message-ID: <5419C3F6.4050607@arm.com> Date: Wed, 17 Sep 2014 18:25:10 +0100 From: Sudeep Holla User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.1 MIME-Version: 1.0 To: LKML CC: Sudeep Holla , Heiko Carstens , Lorenzo Pieralisi , Greg Kroah-Hartman , Stephen Boyd , "linux-api@vger.kernel.org" , "linux390@de.ibm.com" , "linux-arm-kernel@lists.infradead.org" , "linux-ia64@vger.kernel.org" , "linuxppc-dev@lists.ozlabs.org" , "linux-s390@vger.kernel.org" , "x86@kernel.org" Subject: Re: [PATCH v4 04/11] drivers: base: support cpu cache information interface to userspace via sysfs References: <1409763617-17074-1-git-send-email-sudeep.holla@arm.com> <1409763617-17074-5-git-send-email-sudeep.holla@arm.com> In-Reply-To: <1409763617-17074-5-git-send-email-sudeep.holla@arm.com> X-OriginalArrivalTime: 17 Sep 2014 17:25:16.0058 (UTC) FILETIME=[589EFFA0:01CFD29C] X-MC-Unique: 114091718251601301 Content-Type: text/plain; charset=WINDOWS-1252; format=flowed Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Greg, On 03/09/14 18:00, Sudeep Holla wrote: > From: Sudeep Holla > > This patch adds initial support for providing processor cache information > to userspace through sysfs interface. This is based on already existing > implementations(x86, ia64, s390 and powerpc) and hence the interface is > intended to be fully compatible. > > The main purpose of this generic support is to avoid further code > duplication to support new architectures and also to unify all the existing > different implementations. > > This implementation maintains the hierarchy of cache objects which reflects > the system's cache topology. Cache devices are instantiated as needed as > CPUs come online. The cache information is replicated per-cpu even if they are > shared. A per-cpu array of cache information maintained is used mainly for > sysfs-related book keeping. > > It also implements the shared_cpu_map attribute, which is essential for > enabling both kernel and user-space to discover the system's overall cache > topology. > > This patch also add the missing ABI documentation for the cacheinfo sysfs > interface already, which is well defined and widely used. > Can you review the first 4 patches in this series please ? Regards, Sudeep