From patchwork Thu Oct 12 12:30:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 115619 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp1884779qgn; Thu, 12 Oct 2017 05:31:31 -0700 (PDT) X-Google-Smtp-Source: AOwi7QBernSEyzu+hipbUuWJz9nuHB5RRdrS1JKTUWSYJh9L0jezsFCAYfGhLwzKFgLGoV8PDqXt X-Received: by 10.84.234.198 with SMTP id i6mr116872plt.260.1507811491171; Thu, 12 Oct 2017 05:31:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507811491; cv=none; d=google.com; s=arc-20160816; b=MQJmIjE7GKWvmCt9ubD2jivJlKJRKWGFXrkuAvwNokWn6Y5XV7EmzivevWzevO0pID Sqb9q10+oHtVsz8NX6b180FZboTuFtq9snKlJb3LvBGDG21pcNGxDGF+h20ZRO1q6+6C FBz0zyqlmDShFIu48UCEjNO/X7CoEp71RuN+XKucjyzrIaAphhvE88TRmxf1uZuTizyB +nOrE5+5BzH2f82KrQmrW/DN5h+JG+EZ+IODc4a/Boa4NMz2UTMzmIsNPFGiqfHJvfEp /XPmLc1SbCaxDKkcBQpd/L/PxmVy4np1C8gFF96r8YVfv5OrX8rXkouWtX6dq8MVWhlq YuhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=qSftJ6Vh/uJTafSFCF9DU0T9PWAR6UW5kNnbkvgW/KM=; b=pr3I118wdbqhw1BfdQGKV8mtXTXweYg3T0krCw3JfTyLf9WUUoe2PB6KWu/lBMrtGF 0XRH7t42zpD/APNYpJgim9Vt3o9vkHmf9jiRaGOQiafxbhJlSMvYCNu63pPICwzs10+w koI4QRM4/uyM16u7q+PdGKm4G28NxrdVM56oj1mEmJi413ZXjCOib+m+LrkQ5Tc0/aAf TmIXVfEthWdOF2smoW2ZrO3wnA3knGp846zWONt9mkRVu2JunNv5D+0o9+FndNTgYkVZ Zj19y0BpdBBSS6RV5DQGAniVqGLR4yRR6vPUA/Cm0SAlzTrGN1wzXRnaOJb2d4d2eENk DmxQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ba12si10529806plb.138.2017.10.12.05.31.30; Thu, 12 Oct 2017 05:31:31 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757235AbdJLMaj (ORCPT + 27 others); Thu, 12 Oct 2017 08:30:39 -0400 Received: from foss.arm.com ([217.140.101.70]:45808 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752286AbdJLMah (ORCPT ); Thu, 12 Oct 2017 08:30:37 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id DF9D21435; Thu, 12 Oct 2017 05:30:36 -0700 (PDT) Received: from edgewater-inn.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id B12053F599; Thu, 12 Oct 2017 05:30:36 -0700 (PDT) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id 6A1161AE2E09; Thu, 12 Oct 2017 13:30:40 +0100 (BST) From: Will Deacon To: linux-arm-kernel@lists.infradead.org Cc: marc.zyngier@arm.com, mark.rutland@arm.com, kim.phillips@arm.com, tglx@linutronix.de, peterz@infradead.org, alexander.shishkin@linux.intel.com, robh@kernel.org, suzuki.poulose@arm.com, pawel.moll@arm.com, mathieu.poirier@linaro.org, mingo@redhat.com, linux-kernel@vger.kernel.org, Will Deacon Subject: [PATCH v6 0/7] Add support for the ARMv8.2 Statistical Profiling Extension Date: Thu, 12 Oct 2017 13:30:31 +0100 Message-Id: <1507811438-2267-1-git-send-email-will.deacon@arm.com> X-Mailer: git-send-email 2.1.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, This is the 8th posting of the patches previously posted here: rfcv1: http://lists.infradead.org/pipermail/linux-arm-kernel/2017-January/476450.html rfcv2: http://lists.infradead.org/pipermail/linux-arm-kernel/2017-January/479387.html v1: http://lists.infradead.org/pipermail/linux-arm-kernel/2017-January/483684.html v2: http://lists.infradead.org/pipermail/linux-arm-kernel/2017-April/499938.html v3: http://lists.infradead.org/pipermail/linux-arm-kernel/2017-May/507132.html v4: http://lists.infradead.org/pipermail/linux-arm-kernel/2017-June/510799.html v5: http://lists.infradead.org/pipermail/linux-arm-kernel/2017-September/533478.html The only change since v5 is the addition of Acked-by tags, so I'd like to queue this soon. The architecture documentation is available here: https://developer.arm.com/products/architecture/a-profile/docs/ddi0586/latest/arm-architecture-reference-manual-supplement-statistical-profiling-extension-for-armv8-a and there's a high-level overview on this official ARM blog: https://community.arm.com/processors/b/blog/posts/statistical-profiling-extension-for-armv8-a Cheers, Will --->8 Will Deacon (7): genirq: export irq_get_percpu_devid_partition to modules perf/core: Export AUX buffer helpers to modules perf/core: Add PERF_AUX_FLAG_COLLISION to report colliding samples arm64: sysreg: Move SPE registers and PSB into common header files arm64: head: Init PMSCR_EL2.{PA,PCT} when entered at EL2 without VHE dt-bindings: Document devicetree binding for ARM SPE drivers/perf: Add support for ARMv8.2 Statistical Profiling Extension Documentation/devicetree/bindings/arm/spe-pmu.txt | 20 + arch/arm64/include/asm/barrier.h | 2 + arch/arm64/include/asm/sysreg.h | 93 ++ arch/arm64/kernel/head.S | 17 +- arch/arm64/kvm/hyp/debug-sr.c | 24 +- drivers/perf/Kconfig | 8 + drivers/perf/Makefile | 1 + drivers/perf/arm_spe_pmu.c | 1246 +++++++++++++++++++++ include/uapi/linux/perf_event.h | 1 + kernel/events/ring_buffer.c | 4 + kernel/irq/irqdesc.c | 1 + 11 files changed, 1395 insertions(+), 22 deletions(-) create mode 100644 Documentation/devicetree/bindings/arm/spe-pmu.txt create mode 100644 drivers/perf/arm_spe_pmu.c -- 2.1.4