Received: by 10.192.165.148 with SMTP id m20csp4916883imm; Tue, 1 May 2018 06:13:37 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqICNX9YDnWkmoKvVGz1BL8EDH66A8bHjdR4yAUz6H94xV9wDJdq0GIy5nFmSM/xKsGPido X-Received: by 10.98.13.151 with SMTP id 23mr15752184pfn.231.1525180417920; Tue, 01 May 2018 06:13:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525180417; cv=none; d=google.com; s=arc-20160816; b=oXscLCXh1nk9b3SIKifRoykE1aXomj/Ma5U5iu1N+nOu2V95Mkxxrir6VrCM4ttrBK PChUUYPp56rXf4sI4OJ5/hCnLLvGit7mw0x2xGt9dQN4cKtz9nZOqR3vk9sF+PB1buNl NqJBQhKLHhU1nSFDuURMv3VvAhuWj+37DyB+zuAtR8FRUH3wLafHJSTTkvEjoKos33Ox P45lv+GoRjYQVt7ayrSQdWaJvhZTz9ULp/+WtUNvnOdlYrwoVcMVWa1WGsV2VJ/bKtV5 XwbIu6Wm0owLm11CUmuKuETKwlFi+RakdRtUM/BtWZAUnV0aA6amrH7+/DP72+XVuM/O HcYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=PYhad3LlDA/CTp7OfQnTQnAJpi4HqvqZh+34rgqhMmE=; b=hT2X5iVLDXyjHNig7i6hylZ5mgU5E11ajmF1REm2dQiEYE++LDU9GMudx6EUR+eypS jbswjXqtceBvrt8IXR5iy8pOxT1Ha1BI1fdFOinqM18sd4llJ3X+PdELiAoN1Y8agJ+E MH+LXKJUK4qea2qKuK8oXfO4UnqVYH/Q+IAhskZYENLrZe1fP3TuJ0XhGV/FjvjO0mEp NZe3orA+uL+iz3/VRuG4NPoJ6fz7vNUK68JHFR8u1LvX0PT9dhg1EzCVtJUQuA3nklXn utr6VtuPk1VTbHj5cMiiWkyS+DzQgDU3tAIjNtq53TtR/ekTp2jx98Pi9DmwX8z//UX5 OxNQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h34-v6si3510142pld.108.2018.05.01.06.13.23; Tue, 01 May 2018 06:13:37 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755096AbeEANNE (ORCPT + 99 others); Tue, 1 May 2018 09:13:04 -0400 Received: from mail-oi0-f65.google.com ([209.85.218.65]:33809 "EHLO mail-oi0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752009AbeEANNC (ORCPT ); Tue, 1 May 2018 09:13:02 -0400 Received: by mail-oi0-f65.google.com with SMTP id l1-v6so10033962oii.1; Tue, 01 May 2018 06:13:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=PYhad3LlDA/CTp7OfQnTQnAJpi4HqvqZh+34rgqhMmE=; b=j4uWXisf2kZcCqIuTzVEAF8XLiubG5NLFpo687lAJ2ZJrR1INIB4FY6AucZEIMIJ+7 OWUaWRRRRKBo5mPWIcVyKqiJhlU2hNlt04iGoTTNn0n+i7HgBH6bXBVX3icWXytvjUmv FlSL33P/EI88uSDqaCA/xRTqDN5K5qZvfbAfDTpaKk3iwfBJd2NAEwd96ajmp1E40fuB v4KB175K9RJpydmUGIObLe6/Nc94851FoxCCsLhTawo/hIIWfGE6qfd5Rxa/DQuUKlAX QykL1Fymlw+NQO3Xb6Dy1H/EGYXTJHtqhOYLZ4NdLkrTin/0np1LejzDaBpYlZ7qK1pi cjjQ== X-Gm-Message-State: ALQs6tB2KN/oRGaOFHLoBzeVDVGf5Jc7ADV2ZkMe0VThzUpjaUhINUU0 d1iERBbYwu5jkmX30rZ6LQ== X-Received: by 2002:aca:e446:: with SMTP id b67-v6mr9976818oih.247.1525180381449; Tue, 01 May 2018 06:13:01 -0700 (PDT) Received: from localhost (216-188-254-6.dyn.grandenetworks.net. [216.188.254.6]) by smtp.gmail.com with ESMTPSA id d68-v6sm1785395oic.34.2018.05.01.06.13.00 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 01 May 2018 06:13:00 -0700 (PDT) Date: Tue, 1 May 2018 08:13:00 -0500 From: Rob Herring To: Suzuki K Poulose Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, mathieu.poirier@linaro.org, mike.leach@linaro.org, robert.walker@arm.com, mark.rutland@arm.com, will.deacon@arm.com, robin.murphy@arm.com, sudeep.holla@arm.com, frowand.list@gmail.com, john.horley@arm.com, Mathieu Poirier , devicetree@vger.kernel.org Subject: Re: [PATCH v2 10/27] dts: bindings: Restrict coresight tmc-etr scatter-gather mode Message-ID: <20180501131300.GA31425@rob-hp-laptop> References: <1525165857-11096-1-git-send-email-suzuki.poulose@arm.com> <1525165857-11096-11-git-send-email-suzuki.poulose@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1525165857-11096-11-git-send-email-suzuki.poulose@arm.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 01, 2018 at 10:10:40AM +0100, Suzuki K Poulose wrote: > We are about to add the support for ETR builtin scatter-gather mode > for dealing with large amount of trace buffers. However, on some of > the platforms, using the ETR SG mode can lock up the system due to > the way the ETR is connected to the memory subsystem. > > In SG mode, the ETR performs READ from the scatter-gather table to > fetch the next page and regular WRITE of trace data. If the READ > operation doesn't complete(due to the memory subsystem issues, > which we have seen on a couple of platforms) the trace WRITE > cannot proceed leading to issues. So, we by default do not > use the SG mode, unless it is known to be safe on the platform. > We define a DT property for the TMC node to specify whether we > have a proper SG mode. > > Cc: Mathieu Poirier > Cc: Mike Leach > Cc: Mark Rutland > Cc: John Horley > Cc: Robert Walker > Cc: devicetree@vger.kernel.org > Cc: frowand.list@gmail.com > Cc: Rob Herring > Signed-off-by: Suzuki K Poulose > --- > Documentation/devicetree/bindings/arm/coresight.txt | 3 +++ > drivers/hwtracing/coresight/coresight-tmc.c | 8 +++++++- > 2 files changed, 10 insertions(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/arm/coresight.txt b/Documentation/devicetree/bindings/arm/coresight.txt > index cdd84d0..7c0c8f0 100644 > --- a/Documentation/devicetree/bindings/arm/coresight.txt > +++ b/Documentation/devicetree/bindings/arm/coresight.txt > @@ -88,6 +88,9 @@ its hardware characteristcs. > * arm,buffer-size: size of contiguous buffer space for TMC ETR > (embedded trace router) > > + * scatter-gather: boolean. Indicates that the TMC-ETR can safely > + use the SG mode on this system. > + Needs a vendor prefix. > * Optional property for CATU : > * interrupts : Exactly one SPI may be listed for reporting the address > error