Message ID | 20230210151008.4587-1-mike.leach@linaro.org |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1013144wrn; Fri, 10 Feb 2023 07:21:43 -0800 (PST) X-Google-Smtp-Source: AK7set/yRbfEVrWoVMyuAvn1kZ81hvGADrtII3Zw9o/eLyL/uRNq3uPICcEMIHDT+Ejav4cabQXY X-Received: by 2002:a17:907:7657:b0:88a:7037:855e with SMTP id kj23-20020a170907765700b0088a7037855emr16980643ejc.9.1676042503067; Fri, 10 Feb 2023 07:21:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676042503; cv=none; d=google.com; s=arc-20160816; b=SstOSxxJV2W/ntSVHaVaVYdlO1nobgtghdkDyjO2IK0prQbk/A9EhKRud5U8mtQciE QD8q/cdtFqePkjPnQqNWjZSmYrJT/L5T/eV6okJL5mzYytbkxIOVgQShpslDYNZUdSYi OFIxnw3/7kOlBZbZLkvOZ+Yqu5zHs5rsoVFYQYIrhsgcRl+gtG8y35vx5HFABQBAHnNk VRWZurNElAL+UW/tosEsqe+5Et+9Z4aGn3toYe6z+UEEz/IqU3+u4G4N2Dbaf+sWSVbO jphFHuxc2fjS0gmbIqQlyffUwuwbOrO1babU+E4sufvuAkLEUXCzLecA8fjvGbjQUjSR 3YAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=pkxmAdiK02tzELJnUVQ6bUxT3BIOcz4ARiJnWJw6KzI=; b=IXKc6t4t6WXKFZp4LLuEmaURMtKhdM7aNtTGxzvFx9Ovy7j0V/1PwwlejYG7VcIcNs 9ILd+ow9+OWXPi5RBRjtWm9RrvIAPvu29m7SdL4+uxNUMFlbv2QzpbPwzqtePSsR4PL4 K0cfDKswi0RTAKxRUd1EWNtY9TDtsyEJmonqwuaaVtDdhKaioejYWdps+AbuQu8LojDs Pk2KqPc3GwxrNclmlkzolMlAhY2dn3xGnEwfDkZj2QjnONUvtkDPXl+G9PU11/wqlmJL koi8zWo6bdzjZcfRR9996r45amT9eh+GGpAo6kdY8dKaK8PAEz5SFRaPgK4e86ABvN7Q +QMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oFVNpSPb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 8-20020a170906024800b00887dee61402si6951555ejl.707.2023.02.10.07.21.19; Fri, 10 Feb 2023 07:21:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oFVNpSPb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S232400AbjBJPKY (ORCPT <rfc822;ybw1215001957@gmail.com> + 99 others); Fri, 10 Feb 2023 10:10:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231838AbjBJPKX (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 10 Feb 2023 10:10:23 -0500 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7F4B39BAE for <linux-kernel@vger.kernel.org>; Fri, 10 Feb 2023 07:10:13 -0800 (PST) Received: by mail-wm1-x330.google.com with SMTP id f47-20020a05600c492f00b003dc584a7b7eso6495111wmp.3 for <linux-kernel@vger.kernel.org>; Fri, 10 Feb 2023 07:10:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=pkxmAdiK02tzELJnUVQ6bUxT3BIOcz4ARiJnWJw6KzI=; b=oFVNpSPbjEdkphkX77kgV87QLdC4gRA94xD82rLGzjgpsMpJmTCVAJtepe3CF5Cf7N 8SqbO+wHhzxpVNgXE7XwpnUEH/B1Vq/etBjY5P3XtzA3v0y5y0ZWjPlp3R5pGh9vnGoH Xn6GlvitcFlZNH9REWI6uwRfRnKpgD6zhIcioJK/kmSbejGy4JSxMPARo2hMg+dMExr4 zJCTB25poF2eWNWAUvGYNqjEZSTxdArd39w2qVSNq13PKlA4S6Gv/avIXWuV8VB5Pbcl pU3n+p6L3wattcdRlD++nNkTiCa8FgnKWPMKuuMaE+UwV7oTsIK7aTYkcbdxspUZva8K Y3rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pkxmAdiK02tzELJnUVQ6bUxT3BIOcz4ARiJnWJw6KzI=; b=ffzpuA1OAygHx9DAWBUKw+4FyZ408Qe8Yrddm1JIH+lX19FMd13UZx6bC7gcaUnTB+ wR+L8+BksdfprTZ5FgKVAs15Y/L2BVydFD//1fQdJJfN7SoZN0ZDQZDkSfRJCc4e91n4 oi9ohIzBWdGjNNG3E1o7pnu+NBGieHDNCEx9yVptMMMwkAZMiOPMusXX+Y5h7skH5mwQ koN9wq+IWNYn9liYdhsSGxB2mzlW92qcTgCZ+XYMskDD9L41Kuz3TMz8qtQH6vC8mv2Z 89kOrIddj8XfaRuRI+51VhMZQo7m8pvvs3i3/VL7kGHk4t9lPcsNV47ZiB6eF6mxZ5wi jQ0w== X-Gm-Message-State: AO0yUKU00v7dI6xFAvKb0ykF5RuDJcbiQDGka0cnLHaRv7BBJ1pDm/5E //At4o8E00j08RbPvj/oyuOhDg== X-Received: by 2002:a05:600c:43d3:b0:3da:1357:4ca2 with SMTP id f19-20020a05600c43d300b003da13574ca2mr14504177wmn.11.1676041812406; Fri, 10 Feb 2023 07:10:12 -0800 (PST) Received: from linaro.org ([2a00:23c5:680a:d01:61c3:70d8:6500:e102]) by smtp.gmail.com with ESMTPSA id a1-20020a05600c348100b003db0ee277b2sm8587771wmq.5.2023.02.10.07.10.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Feb 2023 07:10:11 -0800 (PST) From: Mike Leach <mike.leach@linaro.org> To: linux-arm-kernel@lists.infradead.org, coresight@lists.linaro.org, linux-kernel@vger.kernel.org Cc: mathieu.poirier@linaro.org, suzuki.poulose@arm.com, leo.yan@linaro.org, yabinc@google.com, Mike Leach <mike.leach@linaro.org> Subject: [PATCH 0/3] Extend logging on TMC start / stop errors Date: Fri, 10 Feb 2023 15:10:05 +0000 Message-Id: <20230210151008.4587-1-mike.leach@linaro.org> X-Mailer: git-send-email 2.17.1 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757457943338908563?= X-GMAIL-MSGID: =?utf-8?q?1757457943338908563?= |
Series | Extend logging on TMC start / stop errors | |
Message
Mike Leach
Feb. 10, 2023, 3:10 p.m. UTC
Recent issues with trying to debug TMC timeouts and flush issues shows
a general lack of logging and context around the possible errors
Patchset addresses that.
Signed-off-by: Mike Leach <mike.leach@linaro.org>
Mike Leach (3):
coresight: Update timeout functions to allow return of test register
value
coresight: tmc: Update error logging in tmc common functions
coresight: etf: etr: Update logging around flush_and_stop() errors
drivers/hwtracing/coresight/coresight-core.c | 50 +++++++++++++++----
.../hwtracing/coresight/coresight-tmc-core.c | 37 +++++++++++---
.../hwtracing/coresight/coresight-tmc-etf.c | 12 +++--
.../hwtracing/coresight/coresight-tmc-etr.c | 8 ++-
drivers/hwtracing/coresight/coresight-tmc.h | 2 +-
include/linux/coresight.h | 10 +++-
6 files changed, 93 insertions(+), 26 deletions(-)
Comments
On 10/02/2023 15:10, Mike Leach wrote: > Recent issues with trying to debug TMC timeouts and flush issues shows > a general lack of logging and context around the possible errors > > Patchset addresses that. > > Signed-off-by: Mike Leach <mike.leach@linaro.org> > > Mike Leach (3): > coresight: Update timeout functions to allow return of test register > value > coresight: tmc: Update error logging in tmc common functions > coresight: etf: etr: Update logging around flush_and_stop() errors > > drivers/hwtracing/coresight/coresight-core.c | 50 +++++++++++++++---- > .../hwtracing/coresight/coresight-tmc-core.c | 37 +++++++++++--- > .../hwtracing/coresight/coresight-tmc-etf.c | 12 +++-- > .../hwtracing/coresight/coresight-tmc-etr.c | 8 ++- > drivers/hwtracing/coresight/coresight-tmc.h | 2 +- > include/linux/coresight.h | 10 +++- > 6 files changed, 93 insertions(+), 26 deletions(-) > Looks good to me. Reviewed-by: James Clark <james.clark@arm.com> At some point I might go and add some TRACE_EVENT(coresight_...)s around things like enabling and disabling devices. It might help to see what led up to an error rather than just the error itself.