Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp452016lqp; Thu, 21 Mar 2024 06:25:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVT5KRCC6O7lPgndj3VBVabGhgZi68aViGSttcrqU/9aEd0prh6egPLuFoPnxUibX8OT+LYkVCGoWKn441Mq6J72Mox1Emg6m9LbYxzTQ== X-Google-Smtp-Source: AGHT+IHb4ZARkwKc83fHskH0v9dmQcbt2lZlABqhnb77egFWf1ZYcnVPSLmCD5kazxmBqNKoB37d X-Received: by 2002:a05:6a20:6a26:b0:1a3:703c:c7d2 with SMTP id p38-20020a056a206a2600b001a3703cc7d2mr10572374pzk.38.1711027532494; Thu, 21 Mar 2024 06:25:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711027532; cv=pass; d=google.com; s=arc-20160816; b=ExHgoef59lVx47D3i7PY6ykdlz5ENWiU2a2/p9Ix2hXalYJWk6axTIzAb2hSTESaZw 2R1ob8wTzbo9xjTXtgp1w2nWpFBprrlH5E9etGOvPcx1rlkU2pExew7KI95AceWrWjxo QMx6PPm7vJncPdirzJOJ5CAxIpMxukmwwR2Hk40CgkfhY4MzGSJ4lNtMwFJbpTlFAKfy hkrUA8ZO67JqAkLvXH4NFC75FAvLLr2tGU6kECr7jUfTueTbBVly6oLd06SJYnLuWdW6 dDyrN8vEM2AYQDegIYlBXIVwj70S7/TuccqPSZuhtJP6NEEimgqsLSfFgyQR5KKXb5SJ nlUg== 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=FM/ekE5Io3Dn3mqf5BFQ86JSx+WgTpNVAU55ps3Oaaw=; fh=7tCR2OY+o2tzhFP0PdsbGzYyG96Vzu3n/lYSO2E5INs=; b=Ij7EDlU9usvq137gI/V7yWQhZM4QSAr/8RA44X/u9acOPSNHiypidCnonCf9XwRaC6 ScTjUjL2NsxWzlBWteLpHizBZRKmFyHIR0mKwACtY6Ks2Gn3dhZjdzsU7s1cUDbQjZjy rwzOkOXPKG4AZc8CpjmgsOm+6FzPOWRpzo8pCvplQcrfbsdiNqFqA/Yeex5Muo+7e+68 CA0USoWzGRq9LLKDRgolZqlwdaUpi0Sig7rZAtOZAFUF9ueBIqBYvWG5+aWj8FkFkGiR 4BWrHWh4zpQgNrDN677nJkmnkZ9l15rO9RzAo5O3X+qyd6v30ev32XeNAq7zNbMIcRWu XNlQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sakamocchi.jp header.s=fm2 header.b=AJ1LL4Wk; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=wBT6STPA; 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-110091-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110091-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sakamocchi.jp Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id e189-20020a6369c6000000b005dc493c948bsi14223971pgc.843.2024.03.21.06.25.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 06:25:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-110091-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=@sakamocchi.jp header.s=fm2 header.b=AJ1LL4Wk; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=wBT6STPA; 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-110091-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110091-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 2DACF286024 for ; Thu, 21 Mar 2024 13:25:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C58E784A41; Thu, 21 Mar 2024 13:25:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sakamocchi.jp header.i=@sakamocchi.jp header.b="AJ1LL4Wk"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="wBT6STPA" Received: from fout8-smtp.messagingengine.com (fout8-smtp.messagingengine.com [103.168.172.151]) (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 D70F783CD8 for ; Thu, 21 Mar 2024 13:25:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.151 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711027525; cv=none; b=EF8kX8d11v4YBYBYeQzjCEx1bBi/UNcpZK56BcuU81Jx2thDUqGs7tCZUTZpf7PXvMd7Qs4tnSVnK29sWR18/7bhQAbmUPJfzlu4NpazU7qeS4wv0MJ5xRxxn6HC6bFdUtLcCLFsXszR4RLwtLNEpHweKaH9/ZoiBHrNFc1e9dI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711027525; c=relaxed/simple; bh=h8ZifEKnaXUc0zdI/qG1xC3K4ax198OvtVaNLxqSPnE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=NiHjzCFf3CVl8Jt7nIrg1Tz/P4ZbUmmoyP/zxLBLmRSUEPnVLs9tgnVdzjUqnsBGIan7fA7ExprBudD6vYd6otzlJKx1z3oFObGVAp5GPprz8ECRgtTFZ3BWmxNVejz1vAPCXcPicjlN4A7dNuQc9j4f+zFykk0OPrm160qIufY= 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=AJ1LL4Wk; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=wBT6STPA; arc=none smtp.client-ip=103.168.172.151 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 compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailfout.nyi.internal (Postfix) with ESMTP id AEA3D1380145; Thu, 21 Mar 2024 09:25:22 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Thu, 21 Mar 2024 09:25:22 -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=fm2; t=1711027522; x= 1711113922; bh=FM/ekE5Io3Dn3mqf5BFQ86JSx+WgTpNVAU55ps3Oaaw=; b=A J1LL4WkrTHGGRRuuF1b19nf0CmG1HZ6LoQHlAIazSOyySlaC9YTzVBAIDeC3+CLH jkY+57QV7JfyoFDZzB9mqGxcz6cpfwRa3EnBi4w5p4y4b/oYusJxPovdGobPUgL8 LNb65Lwlelenkr67uqqYXL8ZVDE8c4RUlpP/anIoat+H0/O1oXhIFGq9fhT5fkqB /oxcbkyk2yrnCm3xJPSk2xC5UNYJiMw25Evnw+agtiUlk9p3PvEsiEr3Ozsg4w2A Hv02HN6wCqZlnTd/Sz8Jge2stAGSWaNvW79LZm7Z15gfVSr/T1AE2P/EVZkbgZw3 dWowOphxEvvDIzIJTES/Q== 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= fm2; t=1711027522; x=1711113922; bh=FM/ekE5Io3Dn3mqf5BFQ86JSx+Wg TpNVAU55ps3Oaaw=; b=wBT6STPA6NUULLuiubLxlYogt1j0trDR5RA/e/Pq3y8F 5db8Kf0RPC4OUHU9jXiK6lN41kF7JrR7dApdaGUQ8LWScliPTGHC2fm1Fgpc/fht GSojYrctzRTWSD5do/Bm4GHHV0zTgLiYiTB1H2U+wkXix6S0/zHjKXMrjOfM6E8n N1m5jVXD8qsvOjmq1Q9oNlNvnFmwQs8SowGXaRpCId9f9A3xwqxlmDnU8SbctFEl 5IyOWwCrlLPrIfZW56ypRJPKNqgGftN253/3Ul3LeQMPRVy6c9O30tb1JcRx+NB3 GmLVRXtNFFzcdMYZyylzgEeR+x1tVnQ8qPgR0OgUQA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrleeigdehvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvvefukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpefvrghkrghs hhhiucfurghkrghmohhtohcuoehoqdhtrghkrghshhhisehsrghkrghmohgttghhihdrjh hpqeenucggtffrrghtthgvrhhnpeevieelhfdukeffheekffduudevvdefudelleefgeei leejheejuedvgefhteevvdenucffohhmrghinhepkhgvrhhnvghlrdhorhhgnecuvehluh hsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepohdqthgrkhgrshhh ihesshgrkhgrmhhotggthhhirdhjph X-ME-Proxy: Feedback-ID: ie8e14432:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 21 Mar 2024 09:25:20 -0400 (EDT) Date: Thu, 21 Mar 2024 22:25:18 +0900 From: Takashi Sakamoto To: Adam Goldman Cc: linux1394-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org Subject: Re: [PATCH] firewire: core: use long bus reset on gap count error Message-ID: <20240321132518.GA755964@workstation.local> Mail-Followup-To: Adam Goldman , linux1394-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org References: <20240228004144.GA72391@workstation.local> 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: Hi Adam, Thanks for the patches to improve the subsystem. Inconveniently to you , we are now just at the merge window for v6.9 kernel, thus I would not put any changes except for the changes to Linus. I'd like you to wait until the next week, sorry. However, in the topic of logging PHY register, I have an idea to utilize the Linux kernel tracepoints framework[1]. It is tangled to program with the provided macros, and it is available just with the relevant tools[2], but it would be helpful in the case, I think. [1] https://docs.kernel.org/trace/tracepoints.html [2] https://docs.kernel.org/trace/tracepoint-analysis.html On Wed, Mar 20, 2024 at 02:38:05AM -0700, Adam Goldman wrote: > Hi Takashi, > > On Wed, Feb 28, 2024 at 09:41:44AM +0900, Takashi Sakamoto wrote: > > Additionally, for your investigation, you added the debug print to get the > > timing of bus reset scheduling. I think it useful for this kind of issue. > > Would I ask you to write another patch to add it? In my opinion, the case > > of mixed versions of 1394 PHYs in the same bus has more quirks and the > > debug print is helpful to investigate it further. > > I'm sorry for my delay in preparing a patch. > > I've submitted a patch to linux1394-devel to log when we schedule or > initiate a bus reset. This is enabled with a new parameter to the > firewire-core module. It provides logging similar to the debug print I > used to investigate the reset loop. > > Also, there is already logging for bus reset interrupts in > firewire-ohci. This logs all bus resets and does not indicate whether we > initiated the reset or some other node on the bus initiated it. However, > the logging in firewire-ohci always froze my computer when I enabled it. > I've submitted a separate patch to fix the firewire-ohci logging. > > I believe both forms of logging can be useful. firewire-ohci logs all > bus resets, but it doesn't tell where the resets came from. firewire-core > only logs bus resets we initiate. > > I also considered adding an option to firewire-ohci to log PHY register > access. This would include writes to IBR and ISBR, so it would log when > we initiate resets. However, this logging would be more complicated to > add, so I didn't do it. > > -- Adam Thanks Takashi Sakamoto