Received: by 10.192.165.148 with SMTP id m20csp2277708imm; Thu, 3 May 2018 13:34:27 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrDj2v8oVJ7fzh1rOD17gZl61zke4b9siloGcYZ2mXOLiXYc6MtTdp3MWvtLJBGHd+oWCFx X-Received: by 2002:a17:902:868b:: with SMTP id g11-v6mr24584830plo.305.1525379667099; Thu, 03 May 2018 13:34:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525379667; cv=none; d=google.com; s=arc-20160816; b=FoxUs8hremol0QSoYuSpKdXFNVT3iqyCoMNhirPTtKZTIkTL3KxkbngI1o8yxo7dIW SNw4XOP92vXJAHTL24EvDjPb0iHpupjp4Kiy6tYbMmC1qclgu05k037XprXqFzc9+YLH 6mVsl4u1/KLTVH9aEag6nh7zuHWWo4tBKlFWyOOHIitViZ40i5l3iqCM9+/NcwN0SFL1 TjP6ajjiF7JzPSFzOr/XiHrKC7+xdQ2rdXi2CKLAr2FnEAOHuAIgqYKdh4mmUy1irAyl TaBIW6Cz2+/nK881hppaoZmGpD0qo4fJ+0n2Ae8YxfUdQXjFCCDWaY6bguEEJIZbOmRL y8RA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=CWQFnmC72QjiLeQHUgdKFURPCxFhQ9ihucTZkCiyqb0=; b=IkVIVTNogFyvm9sK0K9GfcG63RNE3+6ibhewhQ9xKF0AhItLsbJkmYOuZF4lL4ukUG h5XKvvZQLCLOutkO6wIN5DSALFgauYUBHx9q+BjGI808yJJaciWc2Dg8wlpC3iPak9Fz 2vYgXDqXBqtq+7XXg+1fQdEQZ8Ir9aQIOJHik6Yy3BX8M0z19I0w6yQLZxkz0AGnl2Yo RBoZle/uUSkGYJf3X+eWnoGh1ar5mfBnmK0nL0dkE6mCeHA67o608PzN9EGwqmfRIpeY Qo/F0WQ8n9XRJBzvAYC84eHp5zaMWklhKiKu7fpFTc4Tk57YQVvkT3KzI5puPGYm/cbk xFKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EZILOJrp; 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 e71si14951810pfj.250.2018.05.03.13.34.11; Thu, 03 May 2018 13:34:27 -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.s=google header.b=EZILOJrp; 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 S1751278AbeECUco (ORCPT + 99 others); Thu, 3 May 2018 16:32:44 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:35533 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751108AbeECUcm (ORCPT ); Thu, 3 May 2018 16:32:42 -0400 Received: by mail-wm0-f67.google.com with SMTP id o78-v6so1136813wmg.0 for ; Thu, 03 May 2018 13:32:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=CWQFnmC72QjiLeQHUgdKFURPCxFhQ9ihucTZkCiyqb0=; b=EZILOJrpdfOUO4jR1Ef064vYT+IKqdQNfUO2ri64EVPFvrH4tGUI8gOlk/cThyZNec ZTpEbAmplkLJWolhkf631wS6/AF1ThraGMOtPZKuDHsL2ALV9k+/OWpBoz0vaqtiUBZW UUfnmRIfAnXOMMb/7DI34+1pvqKm/piJMBu24= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=CWQFnmC72QjiLeQHUgdKFURPCxFhQ9ihucTZkCiyqb0=; b=j03k3XNSknzkQ7+Fb2ffSZYmVaw1PV+zN0G9zbMjegiDapz9GLnZHsSMLYCvc01p9m 2nrlUipXvpkIi2Rj/0tqd2q40aHObPodBrwssC3B3Kqf+5JzihTq4WQyHGcjXn1wL7za AyKS3oJMfZUHTryLrO4LzD11rRbA/61odEkWH1FgGEAWzDHrEsgHc2sd+rXxHvcRDGCq XVLh4VDC5b7dctKgesyjdZwME8IBVrTP6c1FqvD1jsohc/LH/440ZaWvU3N1PtEpmzDq fOUAwLwDafrLRM/ZwUKHt7u/XDUSxGlnlIms5zkhbMfe+8aU39T60TtYaqkA3M8WtXEe WImg== X-Gm-Message-State: ALQs6tAv/Qvv2ItNYhRJjynDTB+42fw04iW+paGbJPw+0P5P0HQyhUTe mpNyT6TK/rOL/McNVJor7EoxgFsOkp9oK3DaXj9vRQ== X-Received: by 2002:a50:a245:: with SMTP id 63-v6mr33799023edl.295.1525379561197; Thu, 03 May 2018 13:32:41 -0700 (PDT) MIME-Version: 1.0 Received: by 10.80.164.161 with HTTP; Thu, 3 May 2018 13:32:40 -0700 (PDT) In-Reply-To: <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> <20180501131300.GA31425@rob-hp-laptop> From: Mathieu Poirier Date: Thu, 3 May 2018 14:32:40 -0600 Message-ID: Subject: Re: [PATCH v2 10/27] dts: bindings: Restrict coresight tmc-etr scatter-gather mode To: Rob Herring Cc: Suzuki K Poulose , linux-arm-kernel , linux-kernel@vger.kernel.org, Mike Leach , Robert Walker , Mark Rutland , Will Deacon , Robin Murphy , Sudeep Holla , Frank Rowand , John Horley , Mathieu Poirier , devicetree@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1 May 2018 at 07:13, Rob Herring wrote: > 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. > Thinking further on this, do we need to make it device specific as well - something like "arm,etr-scatter-gather"? That way we don't have to redefine "scatter-gather" for other ARM devices if they happen to need the same property but for different reasons. >> * Optional property for CATU : >> * interrupts : Exactly one SPI may be listed for reporting the address >> error