From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932287AbaFYRcN (ORCPT ); Wed, 25 Jun 2014 13:32:13 -0400 Received: from fw-tnat.cambridge.arm.com ([217.140.96.21]:50411 "EHLO cam-smtp0.cambridge.arm.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1758050AbaFYRcI (ORCPT ); Wed, 25 Jun 2014 13:32:08 -0400 From: Sudeep Holla To: linux-kernel@vger.kernel.org Cc: sudeep.holla@arm.com, Heiko Carstens , Lorenzo Pieralisi , Greg Kroah-Hartman , linux-ia64@vger.kernel.org, linux390@de.ibm.com, linux-s390@vger.kernel.org, x86@kernel.org, linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 0/9] drivers: cacheinfo support Date: Wed, 25 Jun 2014 18:30:35 +0100 Message-Id: <1403717444-23559-1-git-send-email-sudeep.holla@arm.com> X-Mailer: git-send-email 1.8.3.2 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sudeep Holla This series adds a generic cacheinfo support similar to topology. The implementation is based on x86 cacheinfo support. Currently x86, powerpc, ia64 and s390 have their own implementations. While adding similar support to ARM and ARM64, here is the attempt to make it generic quite similar to topology info support. It also adds the missing ABI documentation for the cacheinfo sysfs which is already being used. It moves all the existing different implementations on x86, ia64, powerpc and s390 to use the generic cacheinfo infrastructure introduced here. These changes on non-ARM platforms are only compile tested and tested on x86. This series also adds support for ARM and ARM64 architectures based on the generic support. Since there was no objection to the idea in RFC, I am posting non-RFC version here. The code can be fetched from: git://linux-arm.org/linux-skn cacheinfo Previous RFCs: [1] https://lkml.org/lkml/2014/1/8/523 [2] https://lkml.org/lkml/2014/2/7/654 [3] https://lkml.org/lkml/2014/2/19/391 Cc: Greg Kroah-Hartman Cc: linux-ia64@vger.kernel.org Cc: linux390@de.ibm.com Cc: linux-s390@vger.kernel.org Cc: x86@kernel.org Cc: linuxppc-dev@lists.ozlabs.org Cc: linux-arm-kernel@lists.infradead.org --- Sudeep Holla (9): drivers: base: add new class "cpu" to group cpu devices drivers: base: support cpu cache information interface to userspace via sysfs ia64: move cacheinfo sysfs to generic cacheinfo infrastructure s390: move cacheinfo sysfs to generic cacheinfo infrastructure x86: move cacheinfo sysfs to generic cacheinfo infrastructure powerpc: move cacheinfo sysfs to generic cacheinfo infrastructure ARM64: kernel: add support for cpu cache information ARM: kernel: add support for cpu cache information ARM: kernel: add outer cache support for cacheinfo implementation Documentation/ABI/testing/sysfs-devices-system-cpu | 41 ++ arch/arm/include/asm/outercache.h | 13 + arch/arm/kernel/Makefile | 1 + arch/arm/kernel/cacheinfo.c | 249 +++++++ arch/arm/mm/Kconfig | 13 + arch/arm/mm/cache-l2x0.c | 10 + arch/arm/mm/cache-tauros2.c | 34 + arch/arm/mm/cache-xsc3l2.c | 15 + arch/arm64/kernel/Makefile | 3 +- arch/arm64/kernel/cacheinfo.c | 135 ++++ arch/ia64/kernel/topology.c | 401 ++-------- arch/powerpc/kernel/cacheinfo.c | 813 +++------------------ arch/powerpc/kernel/cacheinfo.h | 8 - arch/powerpc/kernel/sysfs.c | 12 +- arch/s390/kernel/cache.c | 388 +++------- arch/x86/kernel/cpu/intel_cacheinfo.c | 655 ++++------------- drivers/base/Makefile | 2 +- drivers/base/cacheinfo.c | 564 ++++++++++++++ drivers/base/core.c | 39 +- drivers/base/cpu.c | 7 + include/linux/cacheinfo.h | 56 ++ include/linux/cpu.h | 2 + 22 files changed, 1590 insertions(+), 1871 deletions(-) create mode 100644 arch/arm/kernel/cacheinfo.c create mode 100644 arch/arm64/kernel/cacheinfo.c delete mode 100644 arch/powerpc/kernel/cacheinfo.h create mode 100644 drivers/base/cacheinfo.c create mode 100644 include/linux/cacheinfo.h -- 1.8.3.2 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from cam-smtp0.cambridge.arm.com (fw-tnat.cambridge.arm.com [217.140.96.21]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 11F301A0198 for ; Thu, 26 Jun 2014 03:56:39 +1000 (EST) From: Sudeep Holla To: linux-kernel@vger.kernel.org Subject: [PATCH 0/9] drivers: cacheinfo support Date: Wed, 25 Jun 2014 18:30:35 +0100 Message-Id: <1403717444-23559-1-git-send-email-sudeep.holla@arm.com> Cc: linux-s390@vger.kernel.org, Lorenzo Pieralisi , linux-ia64@vger.kernel.org, Greg Kroah-Hartman , x86@kernel.org, Heiko Carstens , sudeep.holla@arm.com, 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: , From: Sudeep Holla This series adds a generic cacheinfo support similar to topology. The implementation is based on x86 cacheinfo support. Currently x86, powerpc, ia64 and s390 have their own implementations. While adding similar support to ARM and ARM64, here is the attempt to make it generic quite similar to topology info support. It also adds the missing ABI documentation for the cacheinfo sysfs which is already being used. It moves all the existing different implementations on x86, ia64, powerpc and s390 to use the generic cacheinfo infrastructure introduced here. These changes on non-ARM platforms are only compile tested and tested on x86. This series also adds support for ARM and ARM64 architectures based on the generic support. Since there was no objection to the idea in RFC, I am posting non-RFC version here. The code can be fetched from: git://linux-arm.org/linux-skn cacheinfo Previous RFCs: [1] https://lkml.org/lkml/2014/1/8/523 [2] https://lkml.org/lkml/2014/2/7/654 [3] https://lkml.org/lkml/2014/2/19/391 Cc: Greg Kroah-Hartman Cc: linux-ia64@vger.kernel.org Cc: linux390@de.ibm.com Cc: linux-s390@vger.kernel.org Cc: x86@kernel.org Cc: linuxppc-dev@lists.ozlabs.org Cc: linux-arm-kernel@lists.infradead.org --- Sudeep Holla (9): drivers: base: add new class "cpu" to group cpu devices drivers: base: support cpu cache information interface to userspace via sysfs ia64: move cacheinfo sysfs to generic cacheinfo infrastructure s390: move cacheinfo sysfs to generic cacheinfo infrastructure x86: move cacheinfo sysfs to generic cacheinfo infrastructure powerpc: move cacheinfo sysfs to generic cacheinfo infrastructure ARM64: kernel: add support for cpu cache information ARM: kernel: add support for cpu cache information ARM: kernel: add outer cache support for cacheinfo implementation Documentation/ABI/testing/sysfs-devices-system-cpu | 41 ++ arch/arm/include/asm/outercache.h | 13 + arch/arm/kernel/Makefile | 1 + arch/arm/kernel/cacheinfo.c | 249 +++++++ arch/arm/mm/Kconfig | 13 + arch/arm/mm/cache-l2x0.c | 10 + arch/arm/mm/cache-tauros2.c | 34 + arch/arm/mm/cache-xsc3l2.c | 15 + arch/arm64/kernel/Makefile | 3 +- arch/arm64/kernel/cacheinfo.c | 135 ++++ arch/ia64/kernel/topology.c | 401 ++-------- arch/powerpc/kernel/cacheinfo.c | 813 +++------------------ arch/powerpc/kernel/cacheinfo.h | 8 - arch/powerpc/kernel/sysfs.c | 12 +- arch/s390/kernel/cache.c | 388 +++------- arch/x86/kernel/cpu/intel_cacheinfo.c | 655 ++++------------- drivers/base/Makefile | 2 +- drivers/base/cacheinfo.c | 564 ++++++++++++++ drivers/base/core.c | 39 +- drivers/base/cpu.c | 7 + include/linux/cacheinfo.h | 56 ++ include/linux/cpu.h | 2 + 22 files changed, 1590 insertions(+), 1871 deletions(-) create mode 100644 arch/arm/kernel/cacheinfo.c create mode 100644 arch/arm64/kernel/cacheinfo.c delete mode 100644 arch/powerpc/kernel/cacheinfo.h create mode 100644 drivers/base/cacheinfo.c create mode 100644 include/linux/cacheinfo.h -- 1.8.3.2 From mboxrd@z Thu Jan 1 00:00:00 1970 From: sudeep.holla@arm.com (Sudeep Holla) Date: Wed, 25 Jun 2014 18:30:35 +0100 Subject: [PATCH 0/9] drivers: cacheinfo support Message-ID: <1403717444-23559-1-git-send-email-sudeep.holla@arm.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org From: Sudeep Holla This series adds a generic cacheinfo support similar to topology. The implementation is based on x86 cacheinfo support. Currently x86, powerpc, ia64 and s390 have their own implementations. While adding similar support to ARM and ARM64, here is the attempt to make it generic quite similar to topology info support. It also adds the missing ABI documentation for the cacheinfo sysfs which is already being used. It moves all the existing different implementations on x86, ia64, powerpc and s390 to use the generic cacheinfo infrastructure introduced here. These changes on non-ARM platforms are only compile tested and tested on x86. This series also adds support for ARM and ARM64 architectures based on the generic support. Since there was no objection to the idea in RFC, I am posting non-RFC version here. The code can be fetched from: git://linux-arm.org/linux-skn cacheinfo Previous RFCs: [1] https://lkml.org/lkml/2014/1/8/523 [2] https://lkml.org/lkml/2014/2/7/654 [3] https://lkml.org/lkml/2014/2/19/391 Cc: Greg Kroah-Hartman Cc: linux-ia64 at vger.kernel.org Cc: linux390 at de.ibm.com Cc: linux-s390 at vger.kernel.org Cc: x86 at kernel.org Cc: linuxppc-dev at lists.ozlabs.org Cc: linux-arm-kernel at lists.infradead.org --- Sudeep Holla (9): drivers: base: add new class "cpu" to group cpu devices drivers: base: support cpu cache information interface to userspace via sysfs ia64: move cacheinfo sysfs to generic cacheinfo infrastructure s390: move cacheinfo sysfs to generic cacheinfo infrastructure x86: move cacheinfo sysfs to generic cacheinfo infrastructure powerpc: move cacheinfo sysfs to generic cacheinfo infrastructure ARM64: kernel: add support for cpu cache information ARM: kernel: add support for cpu cache information ARM: kernel: add outer cache support for cacheinfo implementation Documentation/ABI/testing/sysfs-devices-system-cpu | 41 ++ arch/arm/include/asm/outercache.h | 13 + arch/arm/kernel/Makefile | 1 + arch/arm/kernel/cacheinfo.c | 249 +++++++ arch/arm/mm/Kconfig | 13 + arch/arm/mm/cache-l2x0.c | 10 + arch/arm/mm/cache-tauros2.c | 34 + arch/arm/mm/cache-xsc3l2.c | 15 + arch/arm64/kernel/Makefile | 3 +- arch/arm64/kernel/cacheinfo.c | 135 ++++ arch/ia64/kernel/topology.c | 401 ++-------- arch/powerpc/kernel/cacheinfo.c | 813 +++------------------ arch/powerpc/kernel/cacheinfo.h | 8 - arch/powerpc/kernel/sysfs.c | 12 +- arch/s390/kernel/cache.c | 388 +++------- arch/x86/kernel/cpu/intel_cacheinfo.c | 655 ++++------------- drivers/base/Makefile | 2 +- drivers/base/cacheinfo.c | 564 ++++++++++++++ drivers/base/core.c | 39 +- drivers/base/cpu.c | 7 + include/linux/cacheinfo.h | 56 ++ include/linux/cpu.h | 2 + 22 files changed, 1590 insertions(+), 1871 deletions(-) create mode 100644 arch/arm/kernel/cacheinfo.c create mode 100644 arch/arm64/kernel/cacheinfo.c delete mode 100644 arch/powerpc/kernel/cacheinfo.h create mode 100644 drivers/base/cacheinfo.c create mode 100644 include/linux/cacheinfo.h -- 1.8.3.2 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sudeep Holla Date: Wed, 25 Jun 2014 17:30:35 +0000 Subject: [PATCH 0/9] drivers: cacheinfo support Message-Id: <1403717444-23559-1-git-send-email-sudeep.holla@arm.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-kernel@vger.kernel.org Cc: sudeep.holla@arm.com, Heiko Carstens , Lorenzo Pieralisi , Greg Kroah-Hartman , linux-ia64@vger.kernel.org, linux390@de.ibm.com, linux-s390@vger.kernel.org, x86@kernel.org, linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org From: Sudeep Holla This series adds a generic cacheinfo support similar to topology. The implementation is based on x86 cacheinfo support. Currently x86, powerpc, ia64 and s390 have their own implementations. While adding similar support to ARM and ARM64, here is the attempt to make it generic quite similar to topology info support. It also adds the missing ABI documentation for the cacheinfo sysfs which is already being used. It moves all the existing different implementations on x86, ia64, powerpc and s390 to use the generic cacheinfo infrastructure introduced here. These changes on non-ARM platforms are only compile tested and tested on x86. This series also adds support for ARM and ARM64 architectures based on the generic support. Since there was no objection to the idea in RFC, I am posting non-RFC version here. The code can be fetched from: git://linux-arm.org/linux-skn cacheinfo Previous RFCs: [1] https://lkml.org/lkml/2014/1/8/523 [2] https://lkml.org/lkml/2014/2/7/654 [3] https://lkml.org/lkml/2014/2/19/391 Cc: Greg Kroah-Hartman Cc: linux-ia64@vger.kernel.org Cc: linux390@de.ibm.com Cc: linux-s390@vger.kernel.org Cc: x86@kernel.org Cc: linuxppc-dev@lists.ozlabs.org Cc: linux-arm-kernel@lists.infradead.org --- Sudeep Holla (9): drivers: base: add new class "cpu" to group cpu devices drivers: base: support cpu cache information interface to userspace via sysfs ia64: move cacheinfo sysfs to generic cacheinfo infrastructure s390: move cacheinfo sysfs to generic cacheinfo infrastructure x86: move cacheinfo sysfs to generic cacheinfo infrastructure powerpc: move cacheinfo sysfs to generic cacheinfo infrastructure ARM64: kernel: add support for cpu cache information ARM: kernel: add support for cpu cache information ARM: kernel: add outer cache support for cacheinfo implementation Documentation/ABI/testing/sysfs-devices-system-cpu | 41 ++ arch/arm/include/asm/outercache.h | 13 + arch/arm/kernel/Makefile | 1 + arch/arm/kernel/cacheinfo.c | 249 +++++++ arch/arm/mm/Kconfig | 13 + arch/arm/mm/cache-l2x0.c | 10 + arch/arm/mm/cache-tauros2.c | 34 + arch/arm/mm/cache-xsc3l2.c | 15 + arch/arm64/kernel/Makefile | 3 +- arch/arm64/kernel/cacheinfo.c | 135 ++++ arch/ia64/kernel/topology.c | 401 ++-------- arch/powerpc/kernel/cacheinfo.c | 813 +++------------------ arch/powerpc/kernel/cacheinfo.h | 8 - arch/powerpc/kernel/sysfs.c | 12 +- arch/s390/kernel/cache.c | 388 +++------- arch/x86/kernel/cpu/intel_cacheinfo.c | 655 ++++------------- drivers/base/Makefile | 2 +- drivers/base/cacheinfo.c | 564 ++++++++++++++ drivers/base/core.c | 39 +- drivers/base/cpu.c | 7 + include/linux/cacheinfo.h | 56 ++ include/linux/cpu.h | 2 + 22 files changed, 1590 insertions(+), 1871 deletions(-) create mode 100644 arch/arm/kernel/cacheinfo.c create mode 100644 arch/arm64/kernel/cacheinfo.c delete mode 100644 arch/powerpc/kernel/cacheinfo.h create mode 100644 drivers/base/cacheinfo.c create mode 100644 include/linux/cacheinfo.h -- 1.8.3.2