From patchwork Thu Feb 13 08:26:15 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jon Medhurst \(Tixy\)" X-Patchwork-Id: 24580 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f71.google.com (mail-pa0-f71.google.com [209.85.220.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 119E4202B2 for ; Thu, 13 Feb 2014 09:27:40 +0000 (UTC) Received: by mail-pa0-f71.google.com with SMTP id kp14sf23585512pab.2 for ; Thu, 13 Feb 2014 01:27:40 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:message-id:subject:from:to:date :mime-version:cc:precedence:list-id:list-unsubscribe:list-archive :list-post:list-help:list-subscribe:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list :content-type:content-transfer-encoding; bh=89BRleBYONXefxfPh2wN9AnZOJZR1XvxoxYDDLY/W9o=; b=SAE2dcVHGsC+Rg/+FoLm36cIBP6jM5nMTgh4TXpXpBmUI1dGZcs97xIdJ9j83U0J2m OxtDjKRWCmcyxZ0P7hSmL8AJVNOHeW0dh/SJZOxQlYaPdLGHfhNbOmRGehfGp6EpuqLr 4k7xASY563jnXiih9NxmnnyoRAr41Aqc3I+QnNI9ZrBiSAs7dZeyVUBh0MrXa6KH0wq5 DKFzfVb2r6wrAN8vBEVAkVf99p2VTOfZ+ljxDHTQMUbR/GvX+tq9T3CqqN0YNoadR2Wu t/JBfFacTCEOdr+Y9evI52/M+UyHKrohxNgMA/LolPhfjHXd8sxP72ReESO1AMUE/u8B HYlg== X-Gm-Message-State: ALoCoQnxP/Bz2ynt8Kfwagg6wP8GsgWVq5F19cTk/rcXT4WOrRDusEvnB6DRZ6KAPmqtHV/IEuWH X-Received: by 10.66.240.4 with SMTP id vw4mr169709pac.10.1392283660308; Thu, 13 Feb 2014 01:27:40 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.84.103 with SMTP id k94ls2341250qgd.39.gmail; Thu, 13 Feb 2014 01:27:40 -0800 (PST) X-Received: by 10.58.94.195 with SMTP id de3mr165107veb.39.1392283660020; Thu, 13 Feb 2014 01:27:40 -0800 (PST) Received: from mail-vc0-f169.google.com (mail-vc0-f169.google.com [209.85.220.169]) by mx.google.com with ESMTPS id od9si443670vcb.140.2014.02.13.01.27.40 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 13 Feb 2014 01:27:40 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.169 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.169; Received: by mail-vc0-f169.google.com with SMTP id hq11so8213737vcb.28 for ; Thu, 13 Feb 2014 01:27:39 -0800 (PST) X-Received: by 10.220.147.16 with SMTP id j16mr213433vcv.28.1392283659926; Thu, 13 Feb 2014 01:27:39 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.174.196 with SMTP id u4csp11604vcz; Thu, 13 Feb 2014 01:27:39 -0800 (PST) X-Received: by 10.194.57.239 with SMTP id l15mr417105wjq.40.1392283658763; Thu, 13 Feb 2014 01:27:38 -0800 (PST) Received: from casper.infradead.org (casper.infradead.org. [2001:770:15f::2]) by mx.google.com with ESMTPS id yw3si634294wjc.158.2014.02.13.01.27.38 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Feb 2014 01:27:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:770:15f::2 as permitted sender) client-ip=2001:770:15f::2; Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WDrdq-0005aZ-3E; Thu, 13 Feb 2014 08:27:30 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WDrd7-0006L4-0o; Thu, 13 Feb 2014 08:26:45 +0000 Received: from smarthost01c.mail.zen.net.uk ([212.23.1.5]) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WDrd2-0006Jz-CX for linux-arm-kernel@lists.infradead.org; Thu, 13 Feb 2014 08:26:42 +0000 Received: from [82.69.122.217] (helo=[192.168.2.110]) by smarthost01c.mail.zen.net.uk with esmtpsa (TLS1.0:DHE_RSA_CAMELLIA_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1WDrce-0001tV-1C; Thu, 13 Feb 2014 08:26:16 +0000 Message-ID: <1392279975.3469.4.camel@linaro1.home> Subject: [PATCH RESEND] ARM: mcpm: Make all mcpm functions notrace From: "Jon Medhurst (Tixy)" To: Russell King , Pawel Moll Date: Thu, 13 Feb 2014 08:26:15 +0000 X-Mailer: Evolution 3.4.4-3 Mime-Version: 1.0 X-Originating-smarthost01c-IP: [82.69.122.217] X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140213_032640_513419_526B695F X-CRM114-Status: GOOD ( 10.50 ) X-Spam-Score: -1.2 (-) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-1.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [212.23.1.5 listed in list.dnswl.org] 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Nicolas Pitre , Dave Martin , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: tixy@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.169 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 From: Dave Martin The functions in mcpm_entry.c are mostly intended for use during scary cache and coherency disabling sequences, or do other things which confuse trace ... like powering a CPU down and not returning. Similarly for the backend code. For simplicity, this patch just makes whole files notrace. There should be more than enough traceable points on the paths to these functions, but we can be more fine-grained later if there is a need for it. Signed-off-by: Dave Martin Also added spc.o to the list of files as it contains functions used by MCPM code which have comments comments like: "might be used in code paths where normal cacheable locks are not working" Signed-off-by: Jon Medhurst Acked-by: Nicolas Pitre --- arch/arm/common/Makefile | 1 + arch/arm/mach-vexpress/Makefile | 3 +++ 2 files changed, 4 insertions(+) diff --git a/arch/arm/common/Makefile b/arch/arm/common/Makefile index 4bdc416..70b1eff 100644 --- a/arch/arm/common/Makefile +++ b/arch/arm/common/Makefile @@ -13,6 +13,7 @@ obj-$(CONFIG_SHARP_SCOOP) += scoop.o obj-$(CONFIG_PCI_HOST_ITE8152) += it8152.o obj-$(CONFIG_ARM_TIMER_SP804) += timer-sp.o obj-$(CONFIG_MCPM) += mcpm_head.o mcpm_entry.o mcpm_platsmp.o vlock.o +CFLAGS_REMOVE_mcpm_entry.o = -pg AFLAGS_mcpm_head.o := -march=armv7-a AFLAGS_vlock.o := -march=armv7-a obj-$(CONFIG_TI_PRIV_EDMA) += edma.o diff --git a/arch/arm/mach-vexpress/Makefile b/arch/arm/mach-vexpress/Makefile index 0997e0b..fc649bc 100644 --- a/arch/arm/mach-vexpress/Makefile +++ b/arch/arm/mach-vexpress/Makefile @@ -8,8 +8,11 @@ obj-y := v2m.o obj-$(CONFIG_ARCH_VEXPRESS_CA9X4) += ct-ca9x4.o obj-$(CONFIG_ARCH_VEXPRESS_DCSCB) += dcscb.o dcscb_setup.o CFLAGS_dcscb.o += -march=armv7-a +CFLAGS_REMOVE_dcscb.o = -pg obj-$(CONFIG_ARCH_VEXPRESS_SPC) += spc.o +CFLAGS_REMOVE_spc.o = -pg obj-$(CONFIG_ARCH_VEXPRESS_TC2_PM) += tc2_pm.o CFLAGS_tc2_pm.o += -march=armv7-a +CFLAGS_REMOVE_tc2_pm.o = -pg obj-$(CONFIG_SMP) += platsmp.o obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o