From patchwork Tue Feb 6 14:26:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Reichel X-Patchwork-Id: 869787 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=65.50.211.133; helo=bombadil.infradead.org; envelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="DqVc87lW"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zbRcJ5FYVz9t0m for ; Wed, 7 Feb 2018 01:27:11 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=6vJ0uZ+TBqPVYlwi3fNaiMI4A2cDOPPJdai1zNnZGgQ=; b=DqV c87lWAkqj82fKhp5futvdQiqN+fNGJ7zDjyrhNi0Yf35zhzLIULUDpSLtwG29nLkiVizuKsr0p+jn 3MjAi4YEORJdHiAdPL613GxLbBjkjspCdinS3uuyECv1zFg84uRGY3ObIzm6K7Y1fyHdDbkB5mvn2 HsgG7nk2ljNyJO0eHB4tIx9uCkgDUtGG95BINMzmqQNXUoprPmUP4wqJfOkxVhq+tNDo1zD8DzacG O/RXJiTfShFhT3Ms1UdvytMEVIRzyVy1pl5nFGljeYb8skMa//WhJbjH/TmcrYT5yllSi6RUa6T2O zuqHOVPZmFKz2acgNjjvdYNagRbBA7g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1ej4DD-0005R6-U5; Tue, 06 Feb 2018 14:27:07 +0000 Received: from bhuna.collabora.co.uk ([46.235.227.227]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1ej4Cv-0005Cv-Nt for linux-arm-kernel@lists.infradead.org; Tue, 06 Feb 2018 14:26:52 +0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: sre) with ESMTPSA id F0EB82730F8 From: Sebastian Reichel To: Shawn Guo , Sascha Hauer , Fabio Estevam , Will Deacon , Mark Rutland Subject: [PATCHv2 0/3] Improved perf support for imx53/ppd Date: Tue, 6 Feb 2018 15:26:26 +0100 Message-Id: <20180206142629.534-1-sebastian.reichel@collabora.co.uk> X-Mailer: git-send-email 2.15.1 X-Spam-Note: CRM114 invocation failed X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [46.235.227.227 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.0 UNPARSEABLE_RELAY Informational: message has unparseable relay lines X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Russell King , linux-kernel@vger.kernel.org, Ian Ray , Rob Herring , Nandor Han , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org List-Id: linux-imx-kernel.lists.patchwork.ozlabs.org Hi, This improves perf on imx53 by adding support for enabling the Secure Debug Enable Register (SDER) SUNIDEN bit. This unlocks new functionality: ppd before patchset# perf stat -e cycles,instructions sleep 1 2>&1 | grep instructions 0 instructions # 0.00 insn per cycle ppd after patchset# perf stat -e cycles,instructions sleep 1 2>&1 | grep instructions 177864 instructions # 0.05 insn per cycle Changes since PATCHv1: * Update DTS patch to reference imx53.dtsi's pmu node * Remove a superfluous newline in first patch -- Sebastian Peter Senna Tschudin (2): ARM: imx53: add SoC specific PMU setup ARM: dts: imx53: PPD: Enable secure-reg-access Sebastian Reichel (1): drivers/perf: arm_pmu: Add platform hardware setup hooks. arch/arm/boot/dts/imx53-ppd.dts | 4 +++ arch/arm/boot/dts/imx53.dtsi | 2 +- arch/arm/mach-imx/mach-imx53.c | 68 +++++++++++++++++++++++++++++++++++++++++ drivers/perf/arm_pmu.c | 12 ++++++++ include/linux/perf/arm_pmu.h | 5 +++ 5 files changed, 90 insertions(+), 1 deletion(-)