Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2051610ybi; Thu, 18 Jul 2019 02:38:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqxm8WyYOQD/ApALMjp9HmCYShOpxHbKqDQPHmMmHFS2D4+vwKwlKVq8GAILdbHUIRJWr+zp X-Received: by 2002:a17:902:ac85:: with SMTP id h5mr49555802plr.198.1563442693470; Thu, 18 Jul 2019 02:38:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563442693; cv=none; d=google.com; s=arc-20160816; b=v+3fFiDNng7utERsk1l9n1QPcV+p02Z7GLP4zEFs9wexlkl6z/xwniP8QcwVMBPgeK aYvTMawyoEo2dE7/8rxlvjVqBcUuXAQCLuOmfsFZOkuVp90unV7a2Audo74sNYAMyMAl ah5FpoICi4FPSoGYVltx7gcHHUygAoPSrVuAZH3jyIgnf7d75yhNGVinsKyac71VP1Oy cFQxwYYVcJUnEAeuo6NDnU5/9AVok0e6NOUQVpw404ZX89w6E6sRuL3Bb75t8eoOJj/F GgPs1wRGAbrXPY16zbC6Bq1VdpKUE1HFtJ9Lr8JK2z9cND3hYZ48SJESCHIIUUmPjHix ylUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=MHDBzB4cGQGMncZpJ5CkRi9sJ3VRxaAr9jCZ6+q3Img=; b=u4+G5/fIz4uFAt3gPtY1aVUCPXCDczrGOJXKgZ57ReDVLVZ+2+lbkI+tcWlZ7TndsL i55GZCursb/1I7kKzf4SFbzWf/1jx5AzIbzZ+FDxk50eNakPwd9LpN4Sj+T2rXyNp1/w a3aBYRGxhSjuciRXiprcuaNVrrjbjDP2VvAh8s/oQRogW1QHSrr4W9jH5D4XlBLtdiuZ jUkHkFpYXbBJ5ewGRxCgiKXqqdsWbtkCKMG7+94cWoO3MbE0TvYnT8dfhhQV5s3mTlFC t5S/FFW6zqM28eddH3E9J4B5buTc6DyiF974QbNGkLnLKwujAC98ksA5bzq40CFSQzX2 SJFQ== 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 f12si113586plr.211.2019.07.18.02.37.57; Thu, 18 Jul 2019 02:38:13 -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 S2389707AbfGRJhX (ORCPT + 99 others); Thu, 18 Jul 2019 05:37:23 -0400 Received: from foss.arm.com ([217.140.110.172]:56222 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726665AbfGRJhX (ORCPT ); Thu, 18 Jul 2019 05:37:23 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A992D28; Thu, 18 Jul 2019 02:37:22 -0700 (PDT) Received: from dawn-kernel.cambridge.arm.com (unknown [10.1.197.116]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 89B973F71A; Thu, 18 Jul 2019 02:37:20 -0700 (PDT) Subject: Re: [PATCHv8 2/5] arm64: dts: qcom: msm8998: Add Coresight support To: saiprakash.ranjan@codeaurora.org, gregkh@linuxfoundation.org, mathieu.poirier@linaro.org, leo.yan@linaro.org, alexander.shishkin@linux.intel.com, mike.leach@linaro.org, robh+dt@kernel.org, bjorn.andersson@linaro.org, devicetree@vger.kernel.org, david.brown@linaro.org, mark.rutland@arm.com Cc: rnayak@codeaurora.org, vivek.gautam@codeaurora.org, sibis@codeaurora.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, marc.w.gonzalez@free.fr References: <3b192063-f31f-b861-d913-61d737cecc57@arm.com> <4854b0f7-6a81-bc87-3e63-d2b7c68a44f6@codeaurora.org> From: Suzuki K Poulose Message-ID: <281e3548-af53-f9a7-b9e4-813b448ab078@arm.com> Date: Thu, 18 Jul 2019 10:37:19 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <4854b0f7-6a81-bc87-3e63-d2b7c68a44f6@codeaurora.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 18/07/2019 10:14, Sai Prakash Ranjan wrote: > Hi Suzuki, > > On 7/18/2019 1:58 PM, Suzuki K Poulose wrote: >> Hi Sai, >> >> >>         etr@6048000 { >>> +            compatible = "arm,coresight-tmc", "arm,primecell"; >>> +            reg = <0x06048000 0x1000>; >>> + >>> +            clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc >>> RPM_SMD_QDSS_A_CLK>; >>> +            clock-names = "apb_pclk", "atclk"; >>> +            arm,scatter-gather; >> >> Please could you confirm that you have tested the scatter-gather mode >> with ETR ? Either via perf/sysfs. Please could you share your results ? >> Unless verified >> this is going to be fatal for the system. >> >> Similarly for other platforms. >> > > Yes I have tested with scatter-gather mode with ETR on all platforms > which I have posted via sysfs(not perf) before on previous versions of > this patch series and no issues were found. And I suppose this was > discussed in v2 of this patch series [1]. Using the sysfs doesn't guarantee that the ETR actually uses SG mode, unless the buffer size selected is > 1M, which is why I am more interested in the perf usage. Alternatively you may configure a larger buffer size (say, 8MB) via: echo 0x800000 > /sys/bus/coresight/.../tmc_etr0/buffer_size > > As said in one of the series initially [1], QCOM msm downstream kernels > have been using scatter gather mode and we haven't seen any fatal issues. > > [1] https://patchwork.kernel.org/patch/10769535/ I haven't seen any test results there either. Cheers Suzuki