Received: by 2002:ab2:784b:0:b0:1fd:adc2:8405 with SMTP id m11csp289058lqp; Mon, 10 Jun 2024 04:27:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVGo21bncKPekJmW4uCl5NaE2EMw/CGJTPpbbGFvQd4pnsQ1AbcA/vTJCqMsU77RSCFyVD+r7sFX14uQXqQm+UbwZOQRclVfmQUO62bNA== X-Google-Smtp-Source: AGHT+IGQgdlWLJQ45Ue5t8ngTuJsxGYX5iT9B14SywMsvYw0KUh6cG4QWf7nU16wq3AXt12x4Oz9 X-Received: by 2002:a05:6a21:998a:b0:1b5:3f0:87ac with SMTP id adf61e73a8af0-1b503f08dcemr8226083637.28.1718018878940; Mon, 10 Jun 2024 04:27:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718018878; cv=pass; d=google.com; s=arc-20160816; b=in9n3ha/YSQlkOpg8my0nvqz+5Zrlnit07YfDVLPaxM3e+fFCatkwV9hdjO1G0KHtB MK9Xo6jWy+2d1Wy62DsgS4MGos89pVlDtFlqwKFdsIz4q0nvH/0k6LUNfHk+O5g5+DGK OjVuVX1HZLQV+Z1WUyqsESfoX9B5h+/BYH2DuHxld9hrBTH4CdBq78/8IvtJWuXdrEld lztC4Rv1Yve+2h3xB3qMAaEA497AwVxELzh6KbEKh1mhwviH+Na2agRuSVbhD5TKNtAT smXBN5MOqEwmdXdZoisjZoBctmAzihuCLgKOCCmp+jRGOjU4HMPcCnRNeXo7ml+ZyLyU dbiQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=65Hs/UBIIEGh/KjtF098khzUPg6uB3YzgN/ax7OfSBM=; fh=8XYekj0guTETdiMVd3kw+kQWeLvBoE6PmUgK63X/j9s=; b=GJk4fUmbPjthb8zoEj9TzL4WM07ZQzmPHnRx8UH0+l/BTUnaFFch9fP4B+rLHLwD7l kMmox8XZm17kBABztTz37Z33PtLpQX77NJZiNqw05tcFF0LdMjUif2SBiQL9s61mbYom 9vCEO6gR31MkqGUgzZsM5Joe2VBFHIBqQ16tMd9OT73o7rx7gu6Nr49/WG2r6suFiM4H NDwFasrnkgSkhiAaXWaryWr824t4zbLs2uZb3yg7xJq2tTv4PYsFKIqyNryuYtu1i66r 49sbkF/MVu8NXxeUpb0DKng1YyCRCaYA30HVL9CCh9szK+ppMo14iIj7DbXyHzDtXWJs ihbg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=livBFA0e; arc=pass (i=1 spf=pass spfdomain=sang-engineering.com dkim=pass dkdomain=sang-engineering.com); spf=pass (google.com: domain of linux-kernel+bounces-208078-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208078-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-70433f4ec82si2685752b3a.210.2024.06.10.04.27.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 04:27:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-208078-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=livBFA0e; arc=pass (i=1 spf=pass spfdomain=sang-engineering.com dkim=pass dkdomain=sang-engineering.com); spf=pass (google.com: domain of linux-kernel+bounces-208078-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208078-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 305E928334F for ; Mon, 10 Jun 2024 11:27:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6295D7F492; Mon, 10 Jun 2024 11:27:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b="livBFA0e" Received: from mail.zeus03.de (www.zeus03.de [194.117.254.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5712F74414 for ; Mon, 10 Jun 2024 11:27:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=194.117.254.33 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718018828; cv=none; b=pTfxckGlMwIpq+it9ousoPN1vPI/X95V+rE8PzwNUavzKBDAuu2xWERlR5XIRzUPIPdOQ74N0u8TZ97dfT/v69y39TTtWtFyoWjQQobEvQCQQBkuG/JjD3iJ7WWHk7ACqVQO9Wb5SzgYK7pLJ+GtIKuaz/LoCAXU3UQQ6xFANJs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718018828; c=relaxed/simple; bh=HQ5K2V7ImuQzgY0Z25LLWCsNKSjf75rCGsKc2Gobefw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=MZfkBDZOvW8MLDWBwTyCLvap1TwWpJ26XFf4rSKAUpORyxY/XNxfA2sYhd0V6obkBhkukpI/d3RTx6dv3NpGLACMNf3Gf3ZT8ynJKTa2SrT5ijk4ekga7KwYCxmhScrRqO3VTeqNMXzPrX72xf/rDHkYj+XC2DeDNooh3N8sTHU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com; spf=pass smtp.mailfrom=sang-engineering.com; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b=livBFA0e; arc=none smtp.client-ip=194.117.254.33 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sang-engineering.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= sang-engineering.com; h=from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; s=k1; bh=65Hs/UBIIEGh/K jtF098khzUPg6uB3YzgN/ax7OfSBM=; b=livBFA0eYkDxlKayfRaD61UktqpDXR pjujtn2ULSGBrP4rJVymie95LzRWDsN7AbrfhARj1ErAriTVqKGBiFW4zHuW/9UP pwaC7ObVVchJdRrEUqGltkD3DEXWeOM49GSj31QaLrKL4AxJh4+7cFjA3qrOgad1 33nTwRTWT9o73FJncRWV72BE+4Yb/ic4God3IQZK2b2r2oVEa6lrM7XRWbWzNfD5 Agnd9PSqSl2ONNnvLLq0K/g+DTjtUUWZWTZdgJmAxSuZ3y4Nqe5vms1GINHUAfSN dvaAjpM66z1hR4RP1KfAIU9NAYEl0KzW2VUH9jQ0+W7yE3XpywVbAA1Q== Received: (qmail 56150 invoked from network); 10 Jun 2024 13:27:01 +0200 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 10 Jun 2024 13:27:01 +0200 X-UD-Smtp-Session: l3s3148p1@LFySbYcaWuQgAwDPXymAAHMyzy0c7Kdl From: Wolfram Sang To: linux-renesas-soc@vger.kernel.org Cc: Wolfram Sang , Bartosz Golaszewski , Jonathan Corbet , Linus Walleij , linux-doc@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v9 0/1] gpio: add simple logic analyzer using polling Date: Mon, 10 Jun 2024 13:26:58 +0200 Message-ID: <20240610112700.80819-1-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Here is the next version of the sloppy GPIO logic analyzer. Changes since v8 are mentioned in the patch itself. For those new to this sloppy GPIO logic analyzer, here is a small excerpt from a previous cover-letter with the links updated: === Here is the next update of the in-kernel logic analyzer based on GPIO polling with local irqs disabled. It has been tested locally and remotely. It provided satisfactory results. Besides the driver, there is also a script which isolates a CPU to achieve the best possible result. I am aware of the latency limitations. However, the intention is for debugging only, not mass production. Especially for remote debugging and to get a first impression, this has already been useful. Documentation is within the patch, to get a better idea what this is all about. A branch is here: git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git renesas/gpio-logic-analyzer-v9 And an eLinux-wiki page with a picture of a result is here: https://elinux.org/Kernel_GPIO_Logic_analyzer I've used the analyzer in a few more scenarios and on multiple SoCs (Renesas R-Car H3 and M3-W) and was happy with the outcome. Looking forward to other tests and comments. From my side this is good to go. === Thanks and happy hacking, Wolfram Wolfram Sang (1): gpio: add sloppy logic analyzer using polling .../dev-tools/gpio-sloppy-logic-analyzer.rst | 93 +++++ Documentation/dev-tools/index.rst | 1 + drivers/gpio/Kconfig | 17 + drivers/gpio/Makefile | 1 + drivers/gpio/gpio-sloppy-logic-analyzer.c | 340 ++++++++++++++++++ tools/gpio/gpio-sloppy-logic-analyzer.sh | 246 +++++++++++++ 6 files changed, 698 insertions(+) create mode 100644 Documentation/dev-tools/gpio-sloppy-logic-analyzer.rst create mode 100644 drivers/gpio/gpio-sloppy-logic-analyzer.c create mode 100755 tools/gpio/gpio-sloppy-logic-analyzer.sh -- 2.43.0