From patchwork Fri Nov 13 18:45:01 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 56532 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp1213585lbb; Fri, 13 Nov 2015 10:47:02 -0800 (PST) X-Received: by 10.66.160.70 with SMTP id xi6mr25719905pab.54.1447440416651; Fri, 13 Nov 2015 10:46:56 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id hd5si28931795pbb.257.2015.11.13.10.46.56; Fri, 13 Nov 2015 10:46:56 -0800 (PST) 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; dkim=neutral (body hash did not verify) header.i=@linaro_org.20150623.gappssmtp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754938AbbKMSql (ORCPT + 28 others); Fri, 13 Nov 2015 13:46:41 -0500 Received: from mail-pa0-f49.google.com ([209.85.220.49]:34358 "EHLO mail-pa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754830AbbKMSqc (ORCPT ); Fri, 13 Nov 2015 13:46:32 -0500 Received: by padhx2 with SMTP id hx2so107751875pad.1 for ; Fri, 13 Nov 2015 10:46:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro_org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=QRun96Th+wpbBo2QVKALWQ3KMOJZAJTf1o7wQrCCrAg=; b=Hcx8suXOD56Frp04Sxx0Yb6bHbO1nY19GalaYfpDTXHDng4bgUp4jbEd6pjpe6pFuJ Wy7IfYEaLRjvEg41HuqEHUrYCLbgbLPbAAR6bOjjB+ksn3OvRpUjT4eSSIMWOYms0J9a IygsQeDAnDqif4lZ6zLPm9qugAIXlZvHGUepbP9iTUuuWi80B4b6ZTSqOwbSOMFMzJNu NpkT6AnGjxVL5u4RFMmpemEetknx9A7TvdnCXxUgZ4xu76nQoxBbuEKM15+STxReSoAR /VvIAF7pGcht+GD7J6yHtkTj3IjympX6RXXmbo2LRQm11da3jnFsnsbBFcURcMg9+kfA 3kTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=QRun96Th+wpbBo2QVKALWQ3KMOJZAJTf1o7wQrCCrAg=; b=So1YXJcTEyr+pO3Htpik20Lf46Qq4FvfQc6blX9Hm6YpNsoqGovBJE97JCyFwkDzpc RlYc0gyNBgmPbCWPCEuLx/xiHSuW4QST0q5/fgz5Rl6sg0jpbdBU/+H4WDw4Bv6jlWdU gkuJ9vq67pX/jVg42mxZOYdRxiHnxe22ltL6GZInkWAQZF+Jj6HdGIT24flFAX2q3H/G bKyl1dbnvGEZUbYYs7c5FHSj/l82MZSQIIad0MO+imUIBfcA1/cK5DP+6mW8DsPQSsRH p2bKqoxHTiZOONjlnWSfsbBDVF+MSLrJTbndwV848XfErY1XEEncmLDKmwl3pLTkNGr3 agQQ== X-Gm-Message-State: ALoCoQms5RfveLKCFSLRic5Q5idaN1vROzHwXE/TMswmxfDKtgR5FbJb9gG84LGm5sGZZ6FvbVTl X-Received: by 10.68.103.227 with SMTP id fz3mr34431689pbb.159.1447440391645; Fri, 13 Nov 2015 10:46:31 -0800 (PST) Received: from t430.cg.shawcable.net (S0106002369de4dac.cg.shawcable.net. [184.64.168.246]) by smtp.gmail.com with ESMTPSA id xi7sm21737967pbc.56.2015.11.13.10.46.29 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 13 Nov 2015 10:46:31 -0800 (PST) From: Mathieu Poirier To: gregkh@linuxfoundation.org, a.p.zijlstra@chello.nl, alexander.shishkin@linux.intel.com, acme@kernel.org, mingo@redhat.com, corbet@lwn.net, nicolas.pitre@linaro.org Cc: adrian.hunter@intel.com, zhang.chunyan@linaro.org, mike.leach@arm.com, tor@ti.com, al.grant@arm.com, pawel.moll@arm.com, fainelli@broadcom.com, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, mathieu.poirier@linaro.org Subject: [PATCH V4 10/26] coresight: etm3x: set progbit to stop trace collection Date: Fri, 13 Nov 2015 11:45:01 -0700 Message-Id: <1447440317-1977-11-git-send-email-mathieu.poirier@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1447440317-1977-1-git-send-email-mathieu.poirier@linaro.org> References: <1447440317-1977-1-git-send-email-mathieu.poirier@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is no need to use the event enable's "always false" event to stop trace collection. For that purpose setting the programming bit (ETMCR:10) is enough. Signed-off-by: Mathieu Poirier --- drivers/hwtracing/coresight/coresight-etm3x.c | 3 --- 1 file changed, 3 deletions(-) -- 1.9.1 -- 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/ diff --git a/drivers/hwtracing/coresight/coresight-etm3x.c b/drivers/hwtracing/coresight/coresight-etm3x.c index 5a2be0590754..d1235711b576 100644 --- a/drivers/hwtracing/coresight/coresight-etm3x.c +++ b/drivers/hwtracing/coresight/coresight-etm3x.c @@ -422,9 +422,6 @@ static void etm_disable_hw(void *info) CS_UNLOCK(drvdata->base); etm_set_prog(drvdata); - /* Program trace enable to low by using always false event */ - etm_writel(drvdata, ETM_HARD_WIRE_RES_A | ETM_EVENT_NOT_A, ETMTEEVR); - /* Read back sequencer and counters for post trace analysis */ config->seq_curr_state = (etm_readl(drvdata, ETMSQR) & ETM_SQR_MASK);