From patchwork Fri Feb 10 15:10:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Leach X-Patchwork-Id: 13135919 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 20AD0C05027 for ; Fri, 10 Feb 2023 15:11:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date:Subject:Cc:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=cOoSGs9TirhOXB+MfsGjROPrSgQm7+B5/U2L7Jsxq9I=; b=PB+RmtIXGNQe2a 8QruGNHFHpdJ9mFkAJefKcv5XoWBBlPZF0BoPGrtPxBqsRe20tihAdCWQJ+92IHpOQ8ee/anN74LA eAtTa0nL+P/6LUb3WTdoK+cbGU+iUWvC5lfBUCeWdpCaobIOWeEpH3JdwuqYss5t36A7pFKIfzFHT T/x/5uf2T2uW9tFwf1zzOyLbaMkfeAmbmpRY5DMUsFDGLMaoiFJ8Y7s4euGzXESwLcoZL2g+w8z4C R1df4fHpCyjueAMaZImveCrqTzjkRAZ0EwtVsO49hfs6K6jpli7PBruxSbd9rMYmPjcZtxrGD4xFm qRy/4RXLY5GX/XCcb1og==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pQV2c-006EOD-9e; Fri, 10 Feb 2023 15:10:22 +0000 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pQV2W-006EL6-61 for linux-arm-kernel@lists.infradead.org; Fri, 10 Feb 2023 15:10:17 +0000 Received: by mail-wm1-x32a.google.com with SMTP id c4-20020a1c3504000000b003d9e2f72093so6514486wma.1 for ; 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=txEs5FqVlCQrO8XhdUoEhpMYT5MvaHiLMmESusoAcrFjmbRbOAnP6xzn27CvHhKdK0 W9BEZBg9ddxP17MSSeiwmcUJa/+Qn/gec4ztzo0FAiApfXI0Xz6v0XUnwOZlZeMxMxGx 3WR54bHgKMiczNxLKnUYRABmQdfWGiz+94I7Z9Swh/+CDUsWK6/TlDGtw4R8foqMnh7d kJdLyBVIJ0PRqcUiMh9Bi3U1fWagzaChezt3p0WMRSKjwkJcX4daTW9KY02rfwV4akc5 N8xLGe7hNDnEkn2ybxQ5Od6CfyqOYHvvNehWyRg8Ayn0jgDn31X67RSoGV2q96JzRCoY azwg== X-Gm-Message-State: AO0yUKXv9xvTHRAL7sgfGAgNAmQpIm+djTLxuAVIK2lsuhtUkVCoUWxG pketUxWkrZboTLU6MqF8o5LPCGdpbIV9wTiZ X-Google-Smtp-Source: AK7set/Omj6SN3dIwSc611qbn7fyr0axOSapaX9ybMqIdUUUPBxKqCXD8lIzj9ZaioiFn/mej4zFXg== 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 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 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230210_071016_254861_00A5B22A X-CRM114-Status: UNSURE ( 8.56 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 (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(-) Reviewed-by: James Clark