Message ID | 1498844519-8845-6-git-send-email-mathieu.poirier@linaro.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 53EAB60224 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 30 Jun 2017 17:43:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3DEEA28606 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 30 Jun 2017 17:43:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 32D36286C7; Fri, 30 Jun 2017 17:43:28 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id BEBD228606 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 30 Jun 2017 17:43:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=xff3gF4kv69Rcsy4LaZLKDGux3c7j5bdoRBll8IlPaA=; b=gb4+bIszJagKFaa/gjNEPB9gF1 DQbqFlmZZfqiWVU0xC1rG2DeDoxIUnsFZl6cNNjLbLD3THoZq5D0CfLOL5kUm3T6sO1I8tVe/VuFI grm8VZrDifSeMPkwZEHo3bAzL/D0d3SswGNQ/C6UteWIl/JOcwBdolTOIeyFpNDLIOAPRVDWVegcx Y+lTkCu84IQbB+gE9tITm5NgkAMAc9fx6OqnyX/ZAPpN/claOTaXBcUE4ySk6nCQTLU4iF82Lp3bA +LHznvOJEzubVfYHrG5fwwzc+7+qNYmvZ9XayNT9X9nibzO/1hQ4jKuF+PaKBJhGApyKwqVCfPA67 aZZGwrew==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dQzwz-0001N8-F9; Fri, 30 Jun 2017 17:43:25 +0000 Received: from mail-it0-x22c.google.com ([2607:f8b0:4001:c0b::22c]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dQzw4-0000BT-9D for linux-arm-kernel@lists.infradead.org; Fri, 30 Jun 2017 17:42:30 +0000 Received: by mail-it0-x22c.google.com with SMTP id m68so64653263ith.1 for <linux-arm-kernel@lists.infradead.org>; Fri, 30 Jun 2017 10:42:07 -0700 (PDT) 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=t8v32PRpXEL79rkfJvJc7h31HjN97kPc9P8wf+sZeHY=; b=YGWEcnTYK4V1MkbvBaAujUWg8A90/4uS16xJxWFQ53Dj488XZSJUZ+wKCW3IJUJUCP QWzH48YCqr+WfQSWXGJmxDwFxXf0sR3gTkNxgLLjgZczgbo8LIhlZ379C4aR8LyTvpZK SpdWUoKkB4Y+YLKQBtnZFWzfMQ/W8jYUCePRE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=t8v32PRpXEL79rkfJvJc7h31HjN97kPc9P8wf+sZeHY=; b=W0WuMkq6w+19aBA8mY/oD0nHSWEgkU2yF5rzXYFlnoetuep4fHpWQnRx9UKT+PZWsW 7wWTDDo1/RISKV1/uIa8RB5uAi5vTu2798Ks/DKsLOPeFYUjBEXYOZvKyYZlm4cFF55C LDkeG50Mg0byfBQ3FdfrE4e5A5vCS3MkgwUuTJb1pb+ADrLOQozoA4s+o0br2nB9AJ/o 84Pj/liAiFoAxEEHOrcIuEZ0uKKJkz3AFYXTKel+7dZSlXOPaYO7OaDYw0JMox6qFDgw HCdFOJ0Zhz55F3nFlIO/rSQlI/ftHUttuV7JsrfqakmiEpg/C9O5+nl+AJy7YVSIHgOk +SLw== X-Gm-Message-State: AKS2vOz4haUjFmXq3SKSKE2Qf3YdLBPFOpniNpT3d/4t7ghubY2WBoxf Z4dozU14RvxYk/47Um+aKw== X-Received: by 10.36.124.67 with SMTP id a64mr8770736itd.25.1498844527212; Fri, 30 Jun 2017 10:42:07 -0700 (PDT) Received: from xps15.cg.shawcable.net (S0106002369de4dac.cg.shawcable.net. [68.147.8.254]) by smtp.gmail.com with ESMTPSA id d23sm4381451ioj.22.2017.06.30.10.42.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 30 Jun 2017 10:42:06 -0700 (PDT) From: Mathieu Poirier <mathieu.poirier@linaro.org> To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 5/5] coresight: etm3x: Set synchronisation frequencty to TRM default Date: Fri, 30 Jun 2017 11:41:59 -0600 Message-Id: <1498844519-8845-6-git-send-email-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1498844519-8845-1-git-send-email-mathieu.poirier@linaro.org> References: <1498844519-8845-1-git-send-email-mathieu.poirier@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170630_104228_395200_A41770E0 X-CRM114-Status: UNSURE ( 9.62 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: linux-kernel@vger.kernel.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/hwtracing/coresight/coresight-etm3x.c b/drivers/hwtracing/coresight/coresight-etm3x.c index a51b6b64ecdf..b67122acea7a 100644 --- a/drivers/hwtracing/coresight/coresight-etm3x.c +++ b/drivers/hwtracing/coresight/coresight-etm3x.c @@ -243,6 +243,8 @@ void etm_set_default(struct etm_config *config) } config->ctxid_mask = 0x0; + /* Setting default to 1024 as per TRM recommendation */ + config->sync_freq = 0x400; } void etm_config_trace_mode(struct etm_config *config)
Register ETMSYNCFR holds the number of by that need to be generated before periodic synchronisation packets are inserted in the trace stream. By zeroing out the config structure, the current code effectively disable periodic synchronization. This patch simply initialise the recommended value for this register as specified in the technical reference manual. Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org> --- drivers/hwtracing/coresight/coresight-etm3x.c | 2 ++ 1 file changed, 2 insertions(+)