From patchwork Thu Jan 14 21:46:03 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 59791 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp154378lbb; Thu, 14 Jan 2016 13:51:02 -0800 (PST) X-Received: by 10.98.10.203 with SMTP id 72mr9706040pfk.87.1452808262075; Thu, 14 Jan 2016 13:51:02 -0800 (PST) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id u73si11625956pfi.160.2016.01.14.13.51.01 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Jan 2016 13:51:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) client-ip=2001:1868:205::9; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) smtp.mailfrom=linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aJpmL-0006NM-4a; Thu, 14 Jan 2016 21:50:01 +0000 Received: from mail-pf0-x236.google.com ([2607:f8b0:400e:c00::236]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aJpjz-0004LY-Ui for linux-arm-kernel@lists.infradead.org; Thu, 14 Jan 2016 21:47:38 +0000 Received: by mail-pf0-x236.google.com with SMTP id 65so106065086pff.2 for ; Thu, 14 Jan 2016 13:47:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Dsn8SzK0OCb77i52yAHbLZ+LjTO7f2Q/tr115O78yxQ=; b=TnotdFv//jp/SDo4ZKWIfpjNPHjqoU75KfXrME6K150Fx1wSnE9PHVYIbyAtv07ngh vtqa9sLrXDVw6gBJ9A0XlLj6rtWy8XXB2x8p6VUqIPrUUjNewsweq93gxlkM5jsUTCGD /DzmW5Ibwu8GSAI2HO2hx3lKk+Oaxx505ofZ4= 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=Dsn8SzK0OCb77i52yAHbLZ+LjTO7f2Q/tr115O78yxQ=; b=IRjuHOSK1lgadY9lyluF72LUhztKeFa2e6UugHYX1cHryjYrFeeQ2v3BAimJl8bdaq H3vKT7I47KVxIw7G3kRlDCi2jA3oNcz5IV6fd3eG9VinypBFkxRTuxIZ9BJKbjrMsli+ R9vs8Olev5HnrsGzEz1UHgkVht7mR793xg2Xrq/VzQL6zAcy8sqUSzxJ8Z3X4FW5Gb8k y75N1DzmlRl96+GN63kDYpckJI2WG5MM7pVcASzk1eRUvqXWIMEto7+l+g9ZRtJ655yy M2w4EMWH8xcv85UCoD0/akKrBT2GUyoPC8GdTHuoVI9hzqVp7z/VfxD+sk8sF/vOiIQQ eMhg== X-Gm-Message-State: ALoCoQmh6APe6Epne/f9honTPaQNjQu6wkH0f8fnXAErqtNsCexMyw0e1+FqlV0rljU4QC74UyfioXvj+q2bR032ZMywlprqDA== X-Received: by 10.98.80.135 with SMTP id g7mr9706269pfj.132.1452808035294; Thu, 14 Jan 2016 13:47:15 -0800 (PST) Received: from t430.cg.shawcable.net ([184.64.168.246]) by smtp.gmail.com with ESMTPSA id c87sm11383309pfj.41.2016.01.14.13.47.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 14 Jan 2016 13:47:14 -0800 (PST) From: Mathieu Poirier To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH V8 09/23] coresight: etm3x: set progbit to stop trace collection Date: Thu, 14 Jan 2016 14:46:03 -0700 Message-Id: <1452807977-8069-10-git-send-email-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1452807977-8069-1-git-send-email-mathieu.poirier@linaro.org> References: <1452807977-8069-1-git-send-email-mathieu.poirier@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160114_134736_266034_EF7AABEB X-CRM114-Status: GOOD ( 10.11 ) X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2607:f8b0:400e:c00:0:0:0:236 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: al.grant@arm.com, Mathieu Poirier , linux-doc@vger.kernel.org, zhang.chunyan@linaro.org, rabin@rab.in, mike.leach@arm.com, tor@ti.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.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(-) -- 2.1.4 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel diff --git a/drivers/hwtracing/coresight/coresight-etm3x.c b/drivers/hwtracing/coresight/coresight-etm3x.c index 4db5147680f6..82d1557f4ecf 100644 --- a/drivers/hwtracing/coresight/coresight-etm3x.c +++ b/drivers/hwtracing/coresight/coresight-etm3x.c @@ -398,9 +398,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);