Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753571AbbBMSYO (ORCPT ); Fri, 13 Feb 2015 13:24:14 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:56177 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752071AbbBMSYM (ORCPT ); Fri, 13 Feb 2015 13:24:12 -0500 From: Stephen Boyd To: Will Deacon Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Mark Rutland , Neil Leeder , Ashwin Chaugule , Ashwin Chaugule , devicetree@vger.kernel.org Subject: [PATCH v2 0/2] Scorpion PMU support Date: Fri, 13 Feb 2015 10:24:07 -0800 Message-Id: <1423851849-6069-1-git-send-email-sboyd@codeaurora.org> X-Mailer: git-send-email 2.3.0.rc1.33.g42e4583 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1502 Lines: 36 These patches add support for the Scorpion PMU found on devices such as msm8660, qsd8x50, etc. The first patch is some groundwork to make functions more "generic". Even then we end up copying quite a bit of code from the Krait part into the Scorpion part with only subtle tweaks because two things happen: 1. We gain another "region" register, L2LPM 2. The way to access the region registers are with different cp15 instructions I'm not sure how to make this better, suggestions are welcome. Changes from v1: * Added stub functions for CONFIG_CPU_V7=n * Fixed L2LPM register accessors * Exposed mp and !mp versions of PMU to userspace differently (mrutland) * Dropped I-cache events that shouldn't be there (mrutland) * Fixed branch misprediction event (mrutland) Stephen Boyd (2): ARM: perf: Preparatory work for Scorpion PMU support ARM: perf: Add support for Scorpion PMUs Documentation/devicetree/bindings/arm/pmu.txt | 2 + arch/arm/kernel/perf_event_cpu.c | 2 + arch/arm/kernel/perf_event_v7.c | 504 +++++++++++++++++++++++--- 3 files changed, 467 insertions(+), 41 deletions(-) -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/