From patchwork Fri Dec 18 20:59:06 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 7888091 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 2D886BEEE5 for ; Fri, 18 Dec 2015 21:04:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 388552035E for ; Fri, 18 Dec 2015 21:04:41 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6A2B020266 for ; Fri, 18 Dec 2015 21:04:40 +0000 (UTC) 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 1aA2B3-0007PD-CU; Fri, 18 Dec 2015 21:03:01 +0000 Received: from mail-io0-x229.google.com ([2607:f8b0:4001:c06::229]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aA28N-00048n-Bv for linux-arm-kernel@lists.infradead.org; Fri, 18 Dec 2015 21:00:17 +0000 Received: by mail-io0-x229.google.com with SMTP id q126so102237028iof.2 for ; Fri, 18 Dec 2015 12:59:55 -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=ZQNcB2WpE3lLKHesHVWkaECEp/dajQ1nhln19ukODtU=; b=Vup5QvajuWIB2Ldtv2GA4wc7UM2yxVilK6L8o2YRhfOGVlPpGwoj04+1scwzUczSgy omE7a8MEYtkNxgmhkRSNzgMtOrF609TL6ZDt9nS8szR3UoS21TXABfXuEyMnjH7Jnus+ oVeDNbmekwNzL+wEhvG3fhJElY3WhXEvxgOmo= 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=ZQNcB2WpE3lLKHesHVWkaECEp/dajQ1nhln19ukODtU=; b=eRAsJ/ci0SHni0m3AzxwnrT89Qr6ov/IuBT2DhHyhVoeyn/FaPwPcCubCFEv7IMjog Vypke/OnQXuV+zzqKrME6lMvMbfw+X8Ur8TTnSo/aZKylz6PRxwYgLdmAPaE0AHDkmCZ De0uezvJbm7hXJSMgrBLKjMIhU+jJwsMmrPPjhku/JtvzmM6YAtLVG7g9O6kynIIcxBB tP51vbOnRMAGh+ANOmlO5Ol9F3UWMxgF4hHYEb3mauCxFVNs2CvCvmeLn4UsWZIPmgIe 3XD4t658x1IMDJJjpN0CSmniJo8A4XfNAuVAX8mfb1fIsV6KtrzcqDohiDJqNT2nZlUb Sdbg== X-Gm-Message-State: ALoCoQlNjlocMe3GUagTGR1r2FG1G5dfu5aVCVjuaWoKXn7Z4cQDfGnqBAl3gfGtnzwOmeBY5KOWP54aEQRfkuW5re4bbH6syQ== X-Received: by 10.107.155.78 with SMTP id d75mr6724643ioe.94.1450472395231; Fri, 18 Dec 2015 12:59:55 -0800 (PST) Received: from t430.cg.shawcable.net (S0106002369de4dac.cg.shawcable.net. [184.64.168.246]) by smtp.gmail.com with ESMTPSA id l10sm843701igx.18.2015.12.18.12.59.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 18 Dec 2015 12:59:54 -0800 (PST) From: Mathieu Poirier To: gregkh@linuxfoundation.org, alexander.shishkin@linux.intel.com Subject: [PATCH V7 10/24] coresight: etm3x: set progbit to stop trace collection Date: Fri, 18 Dec 2015 13:59:06 -0700 Message-Id: <1450472361-426-11-git-send-email-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1450472361-426-1-git-send-email-mathieu.poirier@linaro.org> References: <1450472361-426-1-git-send-email-mathieu.poirier@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151218_130015_534368_D11130A4 X-CRM114-Status: GOOD ( 10.57 ) X-Spam-Score: -2.7 (--) 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, 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+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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(-) diff --git a/drivers/hwtracing/coresight/coresight-etm3x.c b/drivers/hwtracing/coresight/coresight-etm3x.c index ff9b83d02cb7..221629ff8916 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);