From patchwork Mon Nov 23 18:33:02 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 57188 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp1603901lbb; Mon, 23 Nov 2015 10:37:34 -0800 (PST) X-Received: by 10.68.135.132 with SMTP id ps4mr37677973pbb.111.1448303854173; Mon, 23 Nov 2015 10:37:34 -0800 (PST) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id z11si21034086pas.70.2015.11.23.10.37.33 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Nov 2015 10:37:34 -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.20150623.gappssmtp.com 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 1a0vyA-0002Dr-1V; Mon, 23 Nov 2015 18:36:06 +0000 Received: from mail-pa0-x235.google.com ([2607:f8b0:400e:c03::235]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1a0vwc-0000Bh-1o for linux-arm-kernel@lists.infradead.org; Mon, 23 Nov 2015 18:34:34 +0000 Received: by pabfh17 with SMTP id fh17so204844449pab.0 for ; Mon, 23 Nov 2015 10:34:14 -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=Wx+LZ7uREHqANCVkIMygs0u7V1dAe+kg5lDYPzqJHosXJotUZaoeJbiOKiYz6RZTq8 iQrUUb+ztQPutOyJnbVW953K4wcGWsU0hGMik1YvE4JBEuzcsMWUwHrQvuV6L111bEQW AELAxp+1ERKcqXau2qQpcsAo7D96Y7p8uE0ZCuXJzCASHDOeSqdyEndOM1nWODPio/+1 T4q2UGMO+21d6cavJwJ6a+Eenl01FT8W2jKPHyhQWJQDVU61cjFT/H5uMUKVDqQRB/EJ ntl9rZaIZkJHNTa16tJ6/KHGbMMn5Yxmd6plTkxP41X6v3etiRnpZSJ90Kr6pZNIa14g aPjA== 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=KrZq8JFGnQXViIioXBC3NYxTSd9PxK2+Aw23i6R31efrItbX1BuAmrgbiFbiP3n2Fm WiTC3hN34nTmhiRbVqWUBswEMszZANLIHj3o9iF4WtdO/XyhQtI6yGRjfnYVubQR/s0b ap2sQgjW5ynzwpSeFjs2v1BV2UY17gkGJXSIkBxq7qywQjtusPMGM8vqeZnFODZSXaW/ DHso4OrRf4SyS0Q73J77adpRKQb5ihHQC6RBFLTUI6w9JvqJO7KflsAmWOhuZQYaQQkX Il5dQDA6AgMfvlMWgCrQCkrBoQJrBcbYtJcWLFDSiWbbsIeRl3holfMC3NCFSKabiUYb hiVw== X-Gm-Message-State: ALoCoQl6ILNWc83NHohBGoXNiMA2x467jWth7cL3D65bUhE/fSw7civovOvSALvjHzTsfSo83euc X-Received: by 10.68.69.73 with SMTP id c9mr31224241pbu.165.1448303654252; Mon, 23 Nov 2015 10:34:14 -0800 (PST) Received: from t430.cg.shawcable.net ([184.64.168.246]) by smtp.gmail.com with ESMTPSA id r20sm10865186pfa.93.2015.11.23.10.34.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 23 Nov 2015 10:34:13 -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 Subject: [RESEND PATCH V4 10/26] coresight: etm3x: set progbit to stop trace collection Date: Mon, 23 Nov 2015 11:33:02 -0700 Message-Id: <1448303598-11249-11-git-send-email-mathieu.poirier@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1448303598-11249-1-git-send-email-mathieu.poirier@linaro.org> References: <1448303598-11249-1-git-send-email-mathieu.poirier@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151123_103430_428277_4BF1F4BD X-CRM114-Status: GOOD ( 10.82 ) X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2607:f8b0:400e:c03:0:0:0:235 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_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, pawel.moll@arm.com, linux-doc@vger.kernel.org, fainelli@broadcom.com, linux-kernel@vger.kernel.org, tor@ti.com, mike.leach@arm.com, zhang.chunyan@linaro.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(-) -- 1.9.1 _______________________________________________ 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 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);