From patchwork Thu Feb 18 00:51:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 62145 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp308730lbl; Wed, 17 Feb 2016 16:54:36 -0800 (PST) X-Received: by 10.66.192.195 with SMTP id hi3mr6303911pac.149.1455756876222; Wed, 17 Feb 2016 16:54:36 -0800 (PST) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id q62si5350293pfi.239.2016.02.17.16.54.35 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Feb 2016 16:54:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for 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: best guess record for 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 1aWCqZ-00051C-Nc; Thu, 18 Feb 2016 00:53:31 +0000 Received: from mail-ob0-x22a.google.com ([2607:f8b0:4003:c01::22a]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aWCpd-0004cX-Pi for linux-arm-kernel@lists.infradead.org; Thu, 18 Feb 2016 00:52:35 +0000 Received: by mail-ob0-x22a.google.com with SMTP id jq7so42640206obb.0 for ; Wed, 17 Feb 2016 16:52:18 -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=8wSK/3m9x4K0CAECC9G96RyXdJY3+GaHAtwY/Uc0TBg=; b=H4c4mfcQZPWXE8TrSn2RZ0GyaI6jKgfvPSRc6tpwMZmnyTXc65uDOXZPF/dh+DJ5tV rDqaQR/1wJ+Ei9gwfqrR6rjeBENtLd3Jj5p2aX2+t/O3sb8S5m69BYXChsDg1eEQVF9Q myMfR4PZMqAyrIpALOVvn9idknj0ZsQy02oYc= 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=8wSK/3m9x4K0CAECC9G96RyXdJY3+GaHAtwY/Uc0TBg=; b=IlZYnbgo030oxlYKGvgL0G0//YfZBKs3Pxr+5AcMSx4QOhEcEye6RAlE9Gc9YO5UoZ FGGoWToeEqfBwL1ma62norYx6fSx3g/wLAKODbcLLIDO1UEwVyW9NShU6rLdgBW89zPu ncANMBRuNvgj4RjkqiXYTQzlvOAl7jD7BBLFS39Ol5C5Ne0TQX+dygWEhbrGzNu2qSwA 26zzVoMNAPu+Sr88/ql5jNFS0pJHiHQhaUptJVHpXw19cWyQlbc4iHq9bDoSIRpK8nzD 4QfihdRPATsTP/1eZuaJ+rUTZPn3QNYy8SPmUKNBpYrrAZDW+6mPgAGPs/bCfkDNHzsB QQEA== X-Gm-Message-State: AG10YOQPnV9w6ttBBNW3aXnzOw9eZs6DHlHGnz4GblInI6wuf1Yab2zcxgnMVIumODjEir2e X-Received: by 10.202.195.209 with SMTP id t200mr3721553oif.26.1455756737981; Wed, 17 Feb 2016 16:52:17 -0800 (PST) Received: from t430.globalsuite.net (h58.159.185.173.static.ip.windstream.net. [173.185.159.58]) by smtp.gmail.com with ESMTPSA id gi5sm2357650obb.6.2016.02.17.16.52.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 17 Feb 2016 16:52:17 -0800 (PST) From: Mathieu Poirier To: gregkh@linuxfoundation.org Subject: [PATCH 11/21] coresight: etm3x: set progbit to stop trace collection Date: Wed, 17 Feb 2016 17:51:53 -0700 Message-Id: <1455756723-8456-12-git-send-email-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1455756723-8456-1-git-send-email-mathieu.poirier@linaro.org> References: <1455756723-8456-1-git-send-email-mathieu.poirier@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160217_165233_995932_804C77FF X-CRM114-Status: GOOD ( 11.23 ) 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:4003:c01:0:0:0:22a 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: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org 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 e16501b41ed8..447459969cb5 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);