From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sudeep Holla Subject: Re: [PATCH v4 04/11] drivers: base: support cpu cache information interface to userspace via sysfs Date: Mon, 22 Sep 2014 09:55:18 +0100 Message-ID: <541FE3F6.4070806@arm.com> References: <1409763617-17074-1-git-send-email-sudeep.holla@arm.com> <1409763617-17074-5-git-send-email-sudeep.holla@arm.com> <541CAD16.6030309@codeaurora.org> Mime-Version: 1.0 Content-Type: text/plain; charset=WINDOWS-1252; format=flowed Content-Transfer-Encoding: 8BIT Return-path: In-Reply-To: <541CAD16.6030309@codeaurora.org> Sender: linux-ia64-owner@vger.kernel.org To: Stephen Boyd , LKML Cc: Sudeep Holla , Heiko Carstens , Lorenzo Pieralisi , Greg Kroah-Hartman , "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" List-Id: linux-api@vger.kernel.org Hi Stephen, On 19/09/14 23:24, Stephen Boyd wrote: > On 09/03/14 10: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. >> >> Signed-off-by: Sudeep Holla >> Cc: Greg Kroah-Hartman >> Cc: Stephen Boyd >> Cc: linux-api@vger.kernel.org >> Cc: linux390@de.ibm.com >> Cc: linux-arm-kernel@lists.infradead.org >> Cc: linux-ia64@vger.kernel.org >> Cc: linuxppc-dev@lists.ozlabs.org >> Cc: linux-s390@vger.kernel.org >> Cc: x86@kernel.org >> > > Reviewed-by: Stephen Boyd > Tested-by: Stephen Boyd > Thanks for all the reviews and testings of the series. Regards, Sudeep From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sudeep Holla Date: Mon, 22 Sep 2014 08:55:18 +0000 Subject: Re: [PATCH v4 04/11] drivers: base: support cpu cache information interface to userspace via sysfs Message-Id: <541FE3F6.4070806@arm.com> List-Id: References: <1409763617-17074-1-git-send-email-sudeep.holla@arm.com> <1409763617-17074-5-git-send-email-sudeep.holla@arm.com> <541CAD16.6030309@codeaurora.org> In-Reply-To: <541CAD16.6030309@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Stephen Boyd , LKML Cc: Sudeep Holla , Heiko Carstens , Lorenzo Pieralisi , Greg Kroah-Hartman , "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" Hi Stephen, On 19/09/14 23:24, Stephen Boyd wrote: > On 09/03/14 10: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. >> >> Signed-off-by: Sudeep Holla >> Cc: Greg Kroah-Hartman >> Cc: Stephen Boyd >> Cc: linux-api@vger.kernel.org >> Cc: linux390@de.ibm.com >> Cc: linux-arm-kernel@lists.infradead.org >> Cc: linux-ia64@vger.kernel.org >> Cc: linuxppc-dev@lists.ozlabs.org >> Cc: linux-s390@vger.kernel.org >> Cc: x86@kernel.org >> > > Reviewed-by: Stephen Boyd > Tested-by: Stephen Boyd > Thanks for all the reviews and testings of the series. Regards, Sudeep From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from service87.mimecast.com (service87.mimecast.com [91.220.42.44]) by lists.ozlabs.org (Postfix) with ESMTP id 273471A0771 for ; Mon, 22 Sep 2014 18:54:58 +1000 (EST) Message-ID: <541FE3F6.4070806@arm.com> Date: Mon, 22 Sep 2014 09:55:18 +0100 From: Sudeep Holla MIME-Version: 1.0 To: Stephen Boyd , LKML 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> <541CAD16.6030309@codeaurora.org> In-Reply-To: <541CAD16.6030309@codeaurora.org> Content-Type: text/plain; charset=WINDOWS-1252; format=flowed Cc: "linux-s390@vger.kernel.org" , Lorenzo Pieralisi , "linux-ia64@vger.kernel.org" , Greg Kroah-Hartman , Sudeep Holla , Heiko Carstens , "x86@kernel.org" , "linux-api@vger.kernel.org" , "linux390@de.ibm.com" , "linuxppc-dev@lists.ozlabs.org" , "linux-arm-kernel@lists.infradead.org" List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hi Stephen, On 19/09/14 23:24, Stephen Boyd wrote: > On 09/03/14 10:00, Sudeep Holla wrote: >> From: Sudeep Holla >> >> This patch adds initial support for providing processor cache informatio= n >> 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 exist= ing >> different implementations. >> >> This implementation maintains the hierarchy of cache objects which refle= cts >> the system's cache topology. Cache devices are instantiated as needed as >> CPUs come online. The cache information is replicated per-cpu even if th= ey are >> shared. A per-cpu array of cache information maintained is used mainly f= or >> 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 cac= he >> topology. >> >> This patch also add the missing ABI documentation for the cacheinfo sysf= s >> interface already, which is well defined and widely used. >> >> Signed-off-by: Sudeep Holla >> Cc: Greg Kroah-Hartman >> Cc: Stephen Boyd >> Cc: linux-api@vger.kernel.org >> Cc: linux390@de.ibm.com >> Cc: linux-arm-kernel@lists.infradead.org >> Cc: linux-ia64@vger.kernel.org >> Cc: linuxppc-dev@lists.ozlabs.org >> Cc: linux-s390@vger.kernel.org >> Cc: x86@kernel.org >> > > Reviewed-by: Stephen Boyd > Tested-by: Stephen Boyd > Thanks for all the reviews and testings of the series. Regards, Sudeep From mboxrd@z Thu Jan 1 00:00:00 1970 From: sudeep.holla@arm.com (Sudeep Holla) Date: Mon, 22 Sep 2014 09:55:18 +0100 Subject: [PATCH v4 04/11] drivers: base: support cpu cache information interface to userspace via sysfs In-Reply-To: <541CAD16.6030309@codeaurora.org> References: <1409763617-17074-1-git-send-email-sudeep.holla@arm.com> <1409763617-17074-5-git-send-email-sudeep.holla@arm.com> <541CAD16.6030309@codeaurora.org> Message-ID: <541FE3F6.4070806@arm.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Hi Stephen, On 19/09/14 23:24, Stephen Boyd wrote: > On 09/03/14 10: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. >> >> Signed-off-by: Sudeep Holla >> Cc: Greg Kroah-Hartman >> Cc: Stephen Boyd >> Cc: linux-api at vger.kernel.org >> Cc: linux390 at de.ibm.com >> Cc: linux-arm-kernel at lists.infradead.org >> Cc: linux-ia64 at vger.kernel.org >> Cc: linuxppc-dev at lists.ozlabs.org >> Cc: linux-s390 at vger.kernel.org >> Cc: x86 at kernel.org >> > > Reviewed-by: Stephen Boyd > Tested-by: Stephen Boyd > Thanks for all the reviews and testings of the series. Regards, Sudeep