From patchwork Wed Feb 3 18:39:07 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 61128 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp14691lbl; Wed, 3 Feb 2016 10:42:51 -0800 (PST) X-Received: by 10.66.122.8 with SMTP id lo8mr4641356pab.35.1454524970801; Wed, 03 Feb 2016 10:42:50 -0800 (PST) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id sm4si10696860pac.245.2016.02.03.10.42.49 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Feb 2016 10:42:50 -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 1aR2N1-00026z-CZ; Wed, 03 Feb 2016 18:41:39 +0000 Received: from mail-pf0-x22d.google.com ([2607:f8b0:400e:c00::22d]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aR2Lc-0007zE-17 for linux-arm-kernel@lists.infradead.org; Wed, 03 Feb 2016 18:40:27 +0000 Received: by mail-pf0-x22d.google.com with SMTP id w123so18164312pfb.0 for ; Wed, 03 Feb 2016 10:39:51 -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=A44IMqVhB5fzvegS9oK/e5BFrmfOCHdenPSm4mMFVQhlQOCHymDoYasYFCpIiaMV6e bnvN4YpIJYSxH0wdI7HCliB+4IYhLVZOgPHCQU9FUa/9fWTxANnlXUHoTiyRX/PXq5g3 hjdGKbxV+wRs5uvpPxuwWEqnkOFPgazNp2KKE= 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=K2C9im65jLazqvzDEOwdN8xR2+glwifRP11cSqlDYOj2GMzU56Nnm7gZ/lU3QfZkbL eqlgKTEA8i056vHjClgXFPZiN90LfabrpEqMdofYhRE/I8s94crte1QAKdOMzVVmE1XX iNqAqor4/yw3kzJpN/z0myd6tPPr5gJPgiMYYWjr3mnMh700rhs1QLEI/hklNdbYYa3J EoegF1ulVOmfSSytqqsnU6vhqTqc7rRI0kaZ/PQxU7HZXKrxgm3NCDl1iqyJnpxDDk9B HpRel93sOGTMzRjQlmX+YDP256CJmPRvtHrdnsZ0MghfslpB37rCNcBsJcRTxenLCKiK Arag== X-Gm-Message-State: AG10YOTMugEnD8fKyVz3IaOoBmkv5AInRTmaM8QAltbnqgwtcJI9v6NhpYsZIuHAkok0nWWX X-Received: by 10.98.12.221 with SMTP id 90mr4541891pfm.95.1454524791139; Wed, 03 Feb 2016 10:39:51 -0800 (PST) Received: from t430.cg.shawcable.net ([184.64.168.246]) by smtp.gmail.com with ESMTPSA id xa9sm11369704pab.44.2016.02.03.10.39.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 03 Feb 2016 10:39:50 -0800 (PST) From: Mathieu Poirier To: linux-arm-kernel@lists.infradead.org Subject: [PATCH V9 09/18] coresight: etm3x: set progbit to stop trace collection Date: Wed, 3 Feb 2016 11:39:07 -0700 Message-Id: <1454524756-10628-10-git-send-email-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1454524756-10628-1-git-send-email-mathieu.poirier@linaro.org> References: <1454524756-10628-1-git-send-email-mathieu.poirier@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160203_104012_406125_11C88FE7 X-CRM114-Status: GOOD ( 10.45 ) 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:22d 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 Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 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: alexander.shishkin@linux.intel.com, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, tor@ti.com, mike.leach@arm.com, zhang.chunyan@linaro.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);