Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp689113lqt; Thu, 6 Jun 2024 15:56:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUNQ18MiwUgIbcGSrv/zlok1vY0C/kNGpXkrqhwalcSUEI1bX7jtfVAIds2Dbc8A9JXLQYcJg7/tkIJrWr1X0fZ573Ags4GtmZZC/I9SQ== X-Google-Smtp-Source: AGHT+IGs1Dhdre6mz7/MyQVQBdTPOF1gI68JJIXxg8Meuc6WCp1knUQF6DH4hHHNOVXbMW8273XR X-Received: by 2002:a17:902:d2d2:b0:1f4:808e:9f6e with SMTP id d9443c01a7336-1f6d019f1dbmr13103135ad.21.1717714586235; Thu, 06 Jun 2024 15:56:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717714586; cv=pass; d=google.com; s=arc-20160816; b=Nuso0Q0WN2I6i2vhSLRza3EXnUSzHpLCVS496o8rpPjGCer+hI2ivIQGYofwCaNWlb AgAxst786JmzSmLx9atJz+udx5Lfdr9RFtg2JNFGe8wiDEMqfdZSx7RZOBgASZAOg0WJ fuvwhyjBxpYyZWTuF3MZRinQXlHx4zGHgY/gOhWF/OnSNHPzHD4RO3WaOIVjZwzzsCRA StTU3LrX29RLIAYOJvH1qVeYa9QK6ck+s4GXzfAxCvwLL36p0KmDsehRSX77C1TojW5o lQihVIK9cjfan6EHU3Dsd+XIrSqNJ9mq2UtiAjG4+bVUA3EimuJ9bOmq1H/WmhFxDoE3 S+WQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:mail-followup-to :message-id:subject:cc:to:from:date:feedback-id:dkim-signature :dkim-signature; bh=uWKKo+Z8UTJJDqqZjBiSEu6T/aRvEGy74QcpJ0XTx8U=; fh=5EQyDiYgg+kua2A2AF9eJME8jasrrRA/Pgg86y+lzvY=; b=fkEBb05j+dF5B+2TPkODEd+A7b8yVhJ4hVoXkt+cDni3E0cZ3PR9uT3kFtye3PT/CZ v2sSfeS/GHDHo7qG2KHcfAO6XpGmoJlSkZaFLHdSzs8R3FVIo7l0HS4HZQ59XkNjKVw+ 11o1naEpiNO/muvnjAFJ99ajzkX1TedkSWTAaGttKV62XYJycfZmbCC38v2eydk4Af9s 5yFXODcgqGM4F2UTpC7+Joea863094ynfnkM5bVjBf/KsbE8yzlSeekt14C+9W4+Fvug XktIB6mMB9k8aSXJJzWnSPOFHML7Bao8gxiC/Ohp4r77ZoKUFKzYw1U+gjCxaIfI7l8E aO8w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sakamocchi.jp header.s=fm1 header.b=QOsGYsop; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=ZIxlo2X5; arc=pass (i=1 spf=pass spfdomain=sakamocchi.jp dkim=pass dkdomain=sakamocchi.jp dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=sakamocchi.jp); spf=pass (google.com: domain of linux-kernel+bounces-205133-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205133-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sakamocchi.jp Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f6bd833a45si18623525ad.650.2024.06.06.15.56.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 15:56:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-205133-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@sakamocchi.jp header.s=fm1 header.b=QOsGYsop; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=ZIxlo2X5; arc=pass (i=1 spf=pass spfdomain=sakamocchi.jp dkim=pass dkdomain=sakamocchi.jp dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=sakamocchi.jp); spf=pass (google.com: domain of linux-kernel+bounces-205133-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205133-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sakamocchi.jp 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 7B42AB22B9E for ; Thu, 6 Jun 2024 22:56:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 62AED13DDC5; Thu, 6 Jun 2024 22:56:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sakamocchi.jp header.i=@sakamocchi.jp header.b="QOsGYsop"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="ZIxlo2X5" Received: from wfout1-smtp.messagingengine.com (wfout1-smtp.messagingengine.com [64.147.123.144]) (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 5959B535C8 for ; Thu, 6 Jun 2024 22:56:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=64.147.123.144 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717714570; cv=none; b=Q1m4hvrRbEyt7dIl7E92umnjWYtHIOOXUTV6Y2sMUhXGF97CebESrr7H66rm46nOfDAA0qzO6tQMHPxwiaZs4TBAeMvNsh469y8M9hELSQ6rZ9IsLH246cRCrVwMKSfpruUAeou1y5S9j1/ffIUBz6/EIAJ6i2xCntBsoFQEbsQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717714570; c=relaxed/simple; bh=4ZBdmYhhrkmCKJiHWE8eFIB+J5DTLwXslt2DQRWJaF0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=MA+p0qKeNTVxX6cscZDR5RU2R8xDijKuMCjM/o9tNOvzHkuVh5Nivf4F/IugcwGvXjV0Q+5ZS9c2prihRD8nyTu7BtvoFPgNQqBpIJ4u9uczMsG8VHDA25HSvtYJQ/axJTyKS8gzsu5BazVMiQZNP8rLPnwAaIn+t3jrlsrBrtI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sakamocchi.jp; spf=pass smtp.mailfrom=sakamocchi.jp; dkim=pass (2048-bit key) header.d=sakamocchi.jp header.i=@sakamocchi.jp header.b=QOsGYsop; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=ZIxlo2X5; arc=none smtp.client-ip=64.147.123.144 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sakamocchi.jp Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sakamocchi.jp Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfout.west.internal (Postfix) with ESMTP id 7431B1C0010F; Thu, 6 Jun 2024 18:56:03 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Thu, 06 Jun 2024 18:56:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sakamocchi.jp; h=cc:cc:content-type:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm1; t=1717714563; x= 1717800963; bh=uWKKo+Z8UTJJDqqZjBiSEu6T/aRvEGy74QcpJ0XTx8U=; b=Q OsGYsoppG7dFB8jiHpKxVcxe6gRsKERnijgQ/xZOBha5oXB5+6tdWgFpdkA5GBWx hn6RxEreTSG8UwdCTPaVn31gTeWOUyd8GwJJDq0wSIpwUeKgSm66WrQj3DDt9bKX 7QU/20XPiUfWl0qN40udqn0L1BQsYnb6OU0Oq4E5V8/UVU1ziCuMRQKUPhkUbnmq gKIKExyS3p7/A3qsPz1mX67CgNJ7yhKMSqEnLoMNblIQ34NyZ+EDlSpdmfmrkW3Q R5o9z4w8cNgCCSOKuiS4BUw507eFl0jtmfNznSL7wtk/su/yvScdon7ApjrmzkMX mbVySl0qBJsb86hcr/D+w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1717714563; x=1717800963; bh=uWKKo+Z8UTJJDqqZjBiSEu6T/aRv EGy74QcpJ0XTx8U=; b=ZIxlo2X5hw0KFX5P+wnncHigxcha3u+cD7Npo+sGSwtI Nm+aYT7rH6YQFsLF6v95o+dwLHI3UV957XsT4HYwnuyJMZLdiprZgSB8uoTjep0v XtSaIYTOhy403jGw1YDw23macw6RseGVemYZAqq8ZUUYXD94bFGRD7mMDDJjuyVF 2zlY37mrBIUNW27cPXceb42s09odVHrefPthbA7pJ1d46gF4ULfGgJr5EN0M/kZW 3cnZy/w8hQFTXT1J0OiiXVbdsEKd9tUIM2G27FxoWEo5oMdPyNg2OmWWV1KjfLYD coYQtd87ASFVo5x7y6v4wTs/gFypQn/nXj1ZjNWCig== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdelledgudeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvvefukfhfgggtuggjsehttd ertddttddvnecuhfhrohhmpefvrghkrghshhhiucfurghkrghmohhtohcuoehoqdhtrghk rghshhhisehsrghkrghmohgttghhihdrjhhpqeenucggtffrrghtthgvrhhnpeehhffhte etgfekvdeiueffveevueeftdelhfejieeitedvleeftdfgfeeuudekueenucevlhhushht vghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehoqdhtrghkrghshhhise hsrghkrghmohgttghhihdrjhhp X-ME-Proxy: Feedback-ID: ie8e14432:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 6 Jun 2024 18:56:01 -0400 (EDT) Date: Fri, 7 Jun 2024 07:55:59 +0900 From: Takashi Sakamoto To: linux1394-devel@lists.sourceforge.net Cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH 00/11] firewire: add tracepoints events for self ID sequence Message-ID: <20240606225559.GA179534@workstation.local> Mail-Followup-To: linux1394-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org References: <20240605235155.116468-1-o-takashi@sakamocchi.jp> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240605235155.116468-1-o-takashi@sakamocchi.jp> On Thu, Jun 06, 2024 at 08:51:44AM +0900, Takashi Sakamoto wrote: > Hi, > > In core function, the enumeration of self ID sequences is the first step > to build bus topology for the current generation. Currently, 1394 OHCI > driver has a module option to dump the content of self ID sequence, while > it is implemented by printk. My recent work is going to replace such > logging with tracepoints events, and this series of changes is for the > self ID sequence. > > The content of self ID sequence is delivered by a kind of phy packet, > and its serialization and deserialization codes exist in both core function > and 1394 OHCI driver. They include some redundancies, and the series of > changes includes some inline helper functions to replace them. > > In the series of changes, some KUnit tests are added to check behaviour > of the enumeration and the helper functions. > > Takashi Sakamoto (11): > firewire: core: add enumerator of self ID sequences and its KUnit test > firewire: core: add helper function to handle port status from self ID > sequence and its KUnit test > firewire: core: minor code refactoring for topology builder > firewire: ohci: minor code refactoring for self ID logging > firewire: core: use helper functions for self ID sequence > firewire: ohci: use helper functions for self ID sequence > firewire: core: add common inline functions to serialize/deserialize > self ID packet > firewire: core: use helper inline functions to deserialize self ID > packet > firewire: ohci: use helper inline functions to serialize/deserialize > self ID packet > firewire: core: arrangement header inclusion for tracepoints events > firewire: core: add tracepoints event for self_id_sequence > > drivers/firewire/.kunitconfig | 1 + > drivers/firewire/Kconfig | 15 ++ > drivers/firewire/Makefile | 1 + > drivers/firewire/core-topology.c | 219 ++++++--------- > drivers/firewire/core-trace.c | 18 ++ > drivers/firewire/core-transaction.c | 2 +- > drivers/firewire/ohci.c | 148 ++++++---- > drivers/firewire/packet-header-definitions.h | 2 + > drivers/firewire/packet-serdes-test.c | 255 ++++++++++++++++++ > drivers/firewire/phy-packet-definitions.h | 247 +++++++++++++++++ > .../firewire/self-id-sequence-helper-test.c | 152 +++++++++++ > include/trace/events/firewire.h | 61 ++++- > 12 files changed, 935 insertions(+), 186 deletions(-) > create mode 100644 drivers/firewire/phy-packet-definitions.h > create mode 100644 drivers/firewire/self-id-sequence-helper-test.c Applied to for-next branch. Regards Takashi Sakamoto