Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DF48DC27C76 for ; Wed, 25 Jan 2023 10:21:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235146AbjAYKVV (ORCPT ); Wed, 25 Jan 2023 05:21:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235493AbjAYKVP (ORCPT ); Wed, 25 Jan 2023 05:21:15 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 67A5837F0A for ; Wed, 25 Jan 2023 02:21:13 -0800 (PST) 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 E6A7D4B3; Wed, 25 Jan 2023 02:21:54 -0800 (PST) Received: from [10.57.48.123] (unknown [10.57.48.123]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 712463F71E; Wed, 25 Jan 2023 02:21:11 -0800 (PST) Message-ID: <8200e62a-0038-ae83-4c94-5059110d448e@arm.com> Date: Wed, 25 Jan 2023 10:21:09 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH] coresight: tmc-etr: Don't enable ETR when it's not ready Content-Language: en-US To: Yabin Cui , Suzuki K Poulose Cc: Mike Leach , coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Mathieu Poirier , Leo Yan References: <20230109234312.2870846-1-yabinc@google.com> <3eae7596-2ad8-1574-22d1-696184a3fa30@arm.com> From: James Clark In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 24/01/2023 20:09, Yabin Cui wrote: > Ping for review. And I still can't reproduce it, even if I reduced the > timeout to 2us and tried different workloads. Any suggestions for how > to reproduce it? > Hi Yabin, I just found this in my kernel log files from a few days ago. Jan 19 15:03:35 n1-sdp kernel: [865337.521413] coresight tmc_etr0: timeout while waiting for completion of Manual Flush Jan 19 15:03:35 n1-sdp kernel: [865337.529351] coresight tmc_etr0: timeout while waiting for TMC to be Ready This is on N1SDP, and I've only been running "normal" perf commands like: perf record -e cs_etm//k -- taskset -c 2 sleep 1 perf record -e cs_etm// -- stress -c 2 -t 1 I also haven't been able to reproduce it since James