Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp713078lqh; Thu, 28 Mar 2024 14:06:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWZUnuP40rfaXhT7COxT6tX+46kPpx+2yKxQLO18NaEVGCkkMW2I12Jm7vC06ueQ0eExzOpcnvaENFuodTYTWt7rXNTA/FHaa6fjbWx/w== X-Google-Smtp-Source: AGHT+IFpsOWl1AYBO45I3J5x77/vGsvcRANILoO5emP0DmTiH0RYt4MNs2ZOKyBgLI/m2gA31k7F X-Received: by 2002:a05:6214:246:b0:690:c568:8dc9 with SMTP id k6-20020a056214024600b00690c5688dc9mr353837qvt.36.1711660017394; Thu, 28 Mar 2024 14:06:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711660017; cv=pass; d=google.com; s=arc-20160816; b=pOW4VHk5AqSIbvKoypN3c/wO+nIni4D1RMEyLCTjaQropmx3oBEq+9TxCrqkE+YddL jSOuCPlStsb/8neZuyxworNJOh7THHEKP2UbQNNMxl6uy05vIlYxag0U11QNE9Exv1kI YVd5yiWYpz1cedmK9+ZF3pBCbhporV91dyRDdlbGtK1STnHBCLuO843l/Di33A+QivcU XK07CI7JaL6Fi6as2SrZG4ho0A2qe8Gb4+S/M7B1vdzRhwq6BRuo6Xb7g3I618K2OWWY CVwB4QdoVgBy56F2DFXw1M+/3X4BOZpYziG9eQowjhFwjfatTqV34j7Dyvm+P6SU69R8 l3OA== 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:message-id:subject:cc:to:from :date:dkim-signature; bh=xH39IjHdrH5RXdxT4fzPe854SzScjq77scrI5ANGBkI=; fh=64x4O8JSsY+9jmK4hHz6543hHyBWrHmUWVLRClc1lqs=; b=pwiBcY61S6x88a9bWr/Zy/0ja55FbROAP5kSa0dvI4Wvow3YnPiKYAAnz6x0bGdAqu AweWUK7dSiMqIbrKPSPepOnpzfQ53Rkkg+IN5gx+wghUGwAXyi/7g2yPLuoflpJV90FY 8jaSduEqAdDFiNTjWymzmXjbsNmXfbIyiG2PGo3HNeqnZFZP4C+hSqf+T7FqhLEM6cr3 zC8NJc7KDAy67wm0i8Fc6T09/x45jSpW3PrCvhXJkzJ9jlyNAsm2Lo516MfceSIszE9g YGu2HhOI1l3k1jR1oiqnviW/VANVYSYrT3EtEOcyhv3p9N8yOuKakMpfb87NAfBW34ja hpsA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pbKPKWA8; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-123645-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123645-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id j10-20020a0cae8a000000b00696d63b9313si2304582qvd.388.2024.03.28.14.06.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 14:06:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-123645-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pbKPKWA8; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-123645-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123645-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 210E81C225EB for ; Thu, 28 Mar 2024 21:06:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0017913A89C; Thu, 28 Mar 2024 21:06:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="pbKPKWA8" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 204EA2C6B1; Thu, 28 Mar 2024 21:06:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711660009; cv=none; b=YBrSvtxcTnkHa6p3mokI+0TjUQHX7cDdbvJ2qrXHCTLNFVmwQVtr8keaztyx8/+m7AIN3hCvwcYci4TpCkSTdN4ab06CffFsJS7jsdk+bQgDoykT2osGj2R0r27SsX/KlkFKE3dctA8F7VCG1rsniFLHBdG8K2mRTY8qGeLafxM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711660009; c=relaxed/simple; bh=uEta2BrWAKz194xIrnBwKypqhcaPd50jFm3BWsmHjQI=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; b=CJhLgoZZ0UvzXRYUu1lI3Mgeoh9xp2HdklNhBtW5sc5Yiv0SNJ6My80W+ULZdil+2suvW0c906X3CvUoE/AGHwPalyuRA7/V1gkFxxcP5a6ZuDZiZNWtbyGqbZe6ehj+gZRcwyqLlAIkPIGVD0ty8vnu7J6keDLm4ARyNBvSiJw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=pbKPKWA8; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8B8BAC433F1; Thu, 28 Mar 2024 21:06:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711660008; bh=uEta2BrWAKz194xIrnBwKypqhcaPd50jFm3BWsmHjQI=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=pbKPKWA80fpWni2qqH6zOJXCN+mhBMjc1x7SXcZ3XBlogWvtHnhcwmNKbulZ/n//J hC4b0c5leZrF2UUHApujsE1XI9HTQNtM1bvWDViVvq/K+wIcl8cq7J/q1b8ACzdYjF 75hlUtmiF2LWfQyWrZ4hSqdgkmdpN2QOcjhTlvyz+IfZf2J8XrYfP1VSbzTBFGOqEO nTVl883ZEIawOcTaisRdPPvbu3lr/p5tf7GHbnv1W6FxA417YXnIzhA15QYHtsJie7 8qS0/qZ+mL1G/MayQakQbt6AuAULzAYVIxILr91B3E+P7YUFCh3Zg7cj35b+VsJE8F C+sn6vefotD4A== Date: Thu, 28 Mar 2024 16:06:46 -0500 From: Bjorn Helgaas To: Alex Williamson Cc: linux1394-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, edmund.raile@proton.me, Takashi Sakamoto Subject: Re: [PATCH v2] PCI: Mark LSI FW643 to avoid bus reset Message-ID: <20240328210646.GA1581782@bhelgaas> 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: <20240328144201.510f6d5e.alex.williamson@redhat.com> On Thu, Mar 28, 2024 at 02:42:01PM -0600, Alex Williamson wrote: > On Wed, 27 Mar 2024 10:01:19 -0500 > Bjorn Helgaas wrote: > > > On Tue, Mar 26, 2024 at 10:18:58PM +0900, Takashi Sakamoto wrote: > > > On Mon, Mar 25, 2024 at 09:41:49AM -0500, Bjorn Helgaas wrote: > > > > So even without this patch, you are able to pass the FW643 to a VM > > > > with VFIO, and you don't see any issues caused by VFIO resetting the > > > > device? > > > > > > Absolutely yes, at least in my VM, for recent years to maintain Linux > > > FireWire subsystem and ALSA firewire stack. > > > > So there must be something different between your system and Edmund's. > > Maybe we can refine the quirk so it avoids the SBR on Edmund's system > > but not yours. > > > > Can you both collect the output of "sudo lspci -vvv" so we can try to > > figure out the difference? Also a complete dmesg log would be helpful > > and would contain DMI information that we might need if this is > > firmware dependent. > > The original patch proposed for this gave me the impression that this > was a device used on various old Mac systems, not likely applicable to > a general purpose plug-in card. Given the expanded use case, I'd > suggest reverting the patch. Makes sense, I'll queue up a revert for v6.9 so we can take some time to figure this out. > I think we need significantly more exhaustive testing on the afflicted > system to understand whether this is an issue with the endpoint, the > root port, the BIOS, etc. > > In the meantime, or maybe as a permanent solution, Edmund can make use > of the reset_method interface in pci-syfs to restrict the available > reset methods for the device rather than risk removing a reset > mechanism identified as working by other users. My 2 cents. Thanks, > > Alex >