Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3011103rwd; Mon, 29 May 2023 04:37:10 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ58aMYAd9k8LgFZlLLLvL9NRAyhGAXdxy2AiA0bIUFuhwVcOjBnUu89ly1mKRoHnDs2U1wi X-Received: by 2002:a17:903:11c5:b0:1ae:48b2:3c2b with SMTP id q5-20020a17090311c500b001ae48b23c2bmr12515295plh.30.1685360230481; Mon, 29 May 2023 04:37:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685360230; cv=none; d=google.com; s=arc-20160816; b=Wf4KPUBglLR9hsBlHe1o7dbGkvdub0/tLuy9Ref2gq/mAW1jR480Vabzqzf+5EDHjD fjj9lyogVRCX+B+jhh4z1s2zDVvONORPPQyPLZYAeij7mfKkE+Wrfsp2ej9zakfLYvhn KYvH0aakL00RYEhTAUKSX3V2DVZxned7M53PMnLlaybtpMomhLgHDUPaYZR8g0OpFOGI OVYiia2wMC7lt/na4H+KXVAHD8XWrgNA1foR2J6EAadnBh7QITFPqwpcX+so4tYKH8G0 Z285KSZvadUhIAu4iijKpO4sh0We24t8sp1lONtLCWSDmntq3DhaSDRR1rPvWQQx3XBh 9m6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:feedback-id:dkim-signature :dkim-signature; bh=1fuN5P032DVe47O4bTEIAt4bBcXabCWszDOBsC3t9E4=; b=gMMObQ3wKmfLoaKgWBfMo2AGumMcMdVtuN8DTeR6fVr94JioRbH/6i4yz7ZkpkSaIm /7Garssq/qJs+yrWPJGt6JrS6K7ynw/LkB9vz+eERT021Nlqu3SJNW5NKMv66fTP9LQN 2vfRXdiKEUJu+gAo+yyWyG6DUDIXnOxsuYMV5f/A1y8Es2O2XKaxcSxzsSVi7mYY9xqR uCMHDb5gUHBmb31/tFJtNTF52/5rhSMvyF88VROcdxFEZVwzZmCp8UzOuZoQY1Pidaj0 PJFwQb1xeum0XQYO1WvqNo3ruV2PzcJgpyscb4/h6Q1l+XVQJcvAMsbq+33MaK1mc+lG FI9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sakamocchi.jp header.s=fm1 header.b=suWnMOA3; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=lL21VbLA; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q18-20020a170902b11200b001b025d26f35si4848309plr.491.2023.05.29.04.36.39; Mon, 29 May 2023 04:37:10 -0700 (PDT) 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=@sakamocchi.jp header.s=fm1 header.b=suWnMOA3; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=lL21VbLA; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229610AbjE2LeU (ORCPT + 99 others); Mon, 29 May 2023 07:34:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231493AbjE2LeR (ORCPT ); Mon, 29 May 2023 07:34:17 -0400 Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B9002CF for ; Mon, 29 May 2023 04:34:15 -0700 (PDT) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 4B5F832004CE; Mon, 29 May 2023 07:34:12 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Mon, 29 May 2023 07:34:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sakamocchi.jp; h=cc:cc:content-transfer-encoding:content-type:date:date:from :from:in-reply-to:message-id:mime-version:reply-to:sender :subject:subject:to:to; s=fm1; t=1685360051; x=1685446451; bh=1f uN5P032DVe47O4bTEIAt4bBcXabCWszDOBsC3t9E4=; b=suWnMOA3yiBeHJaQqg 4YCtGlE0yS+VOjxrJh/ZIsAJ2HBWGvM31zaJJ7vUbRMysuswLJt4e/Ld/87Ol3a3 Q4qYehyQGwkaozOBsZ8IXCfU/I4Q0zDPNO7y4qworuUSpqYe01AYMemSfPUFYeCI +YZT254kbuZQq6K69DMekb0OisWAWr1SJVengn+VkdNMvve7XyXvNebp7XkuHxlQ G8oQzDu8BS53/cH5DKj6trb75gAa8qAx9x7aTKCorh71d2gLLaDp66Vt0gcbRAWr D/9XlOJn93DYZgV0h688rgN2gOuTgi3rbJEt+Evz2k7ivYauCiTK/C7ww3o/yIdE OUSw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1685360051; x=1685446451; bh=1fuN5P032DVe4 7O4bTEIAt4bBcXabCWszDOBsC3t9E4=; b=lL21VbLAfTchY2EgGoCH679I/DICm yvNJpttIAFPZsamZOtMMXY6qNqur1FFYuTSV4AH21h5aGW39j+HShlhZFEWt/X21 RRtv+jDb7hpR16ursFBevK5qaHoc6NElOCHDbGJrDq/UWNght+s66knBKWsGaIr6 MuukoFZinDTRi36HGwrQCJAQRzq1V8k3YiBJDkF+3kSQBc5h63mgcgLD1rHoer7N Ax3uG/H2am5N300NjMLznh7/5b2Is9SMAKpNcbKMWrWXiRapMXCF3xIcQA3XUpOr j0tJAe+U3e/hp6uhrQlR+55qY4sGxjHKUOLHJ3X7saqNmL/aihGnubDNw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeekhedggedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvfevufffkffoggfgsedtkeertd ertddtnecuhfhrohhmpefvrghkrghshhhiucfurghkrghmohhtohcuoehoqdhtrghkrghs hhhisehsrghkrghmohgttghhihdrjhhpqeenucggtffrrghtthgvrhhnpeeggfehleehje eileehveefkefhtdeffedtfeeghfekffetudevjeegkeevhfdvueenucffohhmrghinhep khgvrhhnvghlrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomhepohdqthgrkhgrshhhihesshgrkhgrmhhotggthhhirdhjph X-ME-Proxy: Feedback-ID: ie8e14432:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 29 May 2023 07:34:10 -0400 (EDT) From: Takashi Sakamoto To: linux1394-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org Cc: kunit-dev@googlegroups.com Subject: [PATCH v3 00/12] firewire: deliver hardware time stamp for asynchronous transaction Date: Mon, 29 May 2023 20:33:54 +0900 Message-Id: <20230529113406.986289-1-o-takashi@sakamocchi.jp> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE 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: X-Mailing-List: linux-kernel@vger.kernel.org Cc: kunit-dev@googlegroups.com Hi, This patchset is revised version of the previous one[1], I realized that it included wrong version number of Linux kernel. The new series includes changes just for it. Copied from the initial cover letter: 1394 OHCI hardware supports hardware time stamp for asynchronous communication at 8,000 Hz resolution (= isochronous cycle), while current implementation of FireWire subsystem does not deliver the time stamp to both unit driver and user space application when operating the asynchronous communication. It is inconvenient to a kind of application which attempts to synchronize data from multiple sources by the (coarse) time stamp. This patchset changes the subsystem so that the unit driver and the user space application to receive the time stamp, therefore it affects kernel service for asynchronous transaction, kernel API for unit driver, and UAPI for user space application. [1] https://lore.kernel.org/lkml/20230525101625.888906-1-o-takashi@sakamocchi.jp/ Takashi Sakamoto (12): firewire: add KUnit test to check layout of UAPI structures firewire: cdev: add new version of ABI to notify time stamp at request/response subaction of transaction firewire: cdev: add new event to notify request subaction with time stamp firewire: cdev: implement new event to notify request subaction with time stamp firewire: core: use union for callback of transaction completion firewire: core: implement variations to send request and wait for response with time stamp firewire: cdev: code refactoring to operate event of response firewire: cdev: add new event to notify response subaction with time stamp firewire: cdev: implement new event to notify response subaction with time stamp firewire: cdev: code refactoring to dispatch event for phy packet firewire: cdev: add new event to notify phy packet with time stamp firewire: cdev: implement new event relevant to phy packet with time stamp drivers/firewire/.kunitconfig | 4 + drivers/firewire/Kconfig | 16 ++ drivers/firewire/Makefile | 3 + drivers/firewire/core-cdev.c | 252 +++++++++++++++++++++------- drivers/firewire/core-transaction.c | 93 +++++++--- drivers/firewire/core.h | 7 + drivers/firewire/ohci.c | 17 +- drivers/firewire/uapi-test.c | 87 ++++++++++ include/linux/firewire.h | 82 ++++++++- include/uapi/linux/firewire-cdev.h | 180 +++++++++++++++++--- 10 files changed, 625 insertions(+), 116 deletions(-) create mode 100644 drivers/firewire/.kunitconfig create mode 100644 drivers/firewire/uapi-test.c -- 2.39.2