From patchwork Fri Jun 30 17:41:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 106761 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp2613686qge; Fri, 30 Jun 2017 10:42:43 -0700 (PDT) X-Received: by 10.99.184.25 with SMTP id p25mr22248481pge.22.1498844562797; Fri, 30 Jun 2017 10:42:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498844562; cv=none; d=google.com; s=arc-20160816; b=S8f9XCMYrnGXntTVwA9/2a08qKD4aPo0uXZ3H1BetvhRYhVETBeA5fkaLEli5aLnP5 YZopQ69mMDEnSXO/46xVS9rq2taNi+eNjPkJ+ZLm4AyPSeUxP3JPtU2kmUF8xiNDQ2hG zSwFXJlKnp1+M0dIgE2jkd8QLVxdzLeMubNQFh8rSgAncsayRApwSqSzmst8hP8fUfmC ddqz2f28/+gzoMMIK1ItGfqKb2YC0fAJphCKBgP8bxvMg3WnbWdrc85/h/T1ibHKXp5/ 2Y3I3NV1POG1evxtHC7N/qMPnxIjvATrfBIQXN1NTjMvQTpxNsWIBItjKv38QNeFBEvJ 6P1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=t8v32PRpXEL79rkfJvJc7h31HjN97kPc9P8wf+sZeHY=; b=cG/zgnTY/Z2Dh0D+mFd6ObDzgwwd7WePb3KYk1EWsZHijmIix9/r1JRbYtBm8ht1zD p2gqUxrZjgxFg/d0cC2jeRff7Duuq+FD6WXxnTxFWHTeCBD5P7Mp7ASwZzhNBdePnR2F Xie9bGs9ygb/vujcIlXdkLvD3R3u+ZiM646YPh4675l+SXU1dlfMo49247k5wkJXNoZ/ nvdiMTOv/0nIk3k2rspjKpS5R03/K461X3lZaJ+XmyqYu2Ud33Y3PgtvlLMPK+b5003Z 5TpNktEgpek0fhfIT7Uocu7A9JBJltQ4u1eRVVGvj/UksNAaq+mmfV5BuiLxRwlfGp3n qbpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.b=YGWEcnTY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u23si6608381plk.164.2017.06.30.10.42.42; Fri, 30 Jun 2017 10:42:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.b=YGWEcnTY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752523AbdF3RmP (ORCPT + 25 others); Fri, 30 Jun 2017 13:42:15 -0400 Received: from mail-it0-f43.google.com ([209.85.214.43]:37510 "EHLO mail-it0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752487AbdF3RmN (ORCPT ); Fri, 30 Jun 2017 13:42:13 -0400 Received: by mail-it0-f43.google.com with SMTP id m84so28529140ita.0 for ; 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=eYGp/c1WZPzWa+63NYQemvvn9oiHXv1Mu019/NZtsH92H1p5p0Ipgu189ds+STHqrn +3+yuqyEUx7QScGi6lV32G05qrE5J5tUbxZYsq1LOdGeUDLniewNjjzMK6h5Tnv5j5LS FheFFZK5T+pRbgyvAKSwvKWhvGJ3lEmNT8cbUXMnek++7zIme3zU8qT8upiEYCkbZ9ey ia2fNzy3MZ+tIArm2vW15+4cxhf1LH+wIcYz9RoqSTycsLxQvAt+0YWe8gqmhJFj8dCv fzfWT73uNlWd+Are9MDDdR75TVsD0+57mF2etgQqgdPLDvt3jaQiqQfEsmyuJKiRO63U Bm/g== X-Gm-Message-State: AKS2vOw4peAPaZUnWWTiUF7un46W07m48cYTHUO1WlPM+IRTJagvU4RY edhs83zeQNLo264rsDiicQ== 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 To: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.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> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/hwtracing/coresight/coresight-etm3x.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.7.4 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)