Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2594417lqp; Mon, 25 Mar 2024 03:59:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX+RKz0eJpnn+5sOELdpe5+guqH+XWh9et1JgTYytMvrJPl0drnqa6BWDz6ZCv/wT7sIOmB8JigQHPf/GMtO3n25zWGf5AIkeEos60/Fg== X-Google-Smtp-Source: AGHT+IEEkMLa+UpcB7PvdaaHWIXOXMzyZ6LTGkOAmvFgP62m6jF6GV9MXCH/vK00MNGm+BkyEHI3 X-Received: by 2002:a05:6e02:10d4:b0:368:9975:42eb with SMTP id s20-20020a056e0210d400b00368997542ebmr314604ilj.22.1711364393127; Mon, 25 Mar 2024 03:59:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711364393; cv=pass; d=google.com; s=arc-20160816; b=GnhL0482XZyxFyb0tzzErUrgjfevHz12RBnLj0Ctn7o5Zu01XYTLurxJGm/PwlJFZC KulMqfvrwZ7aaUsnTWHs043fOPcWxko46CHhXWUMKI2pDPz/F/wVClYx6+7bxy72qclI vyjB9D/NVIRsjFIaaWPil2nDOP07BPWu/4s2PcqoGwlXvAlu1IkaO4/PtlSmO/q5IFW3 cVJcWnlGSNIgEBMSQPLT50pCmwtry3oK8MhBLzYEd8+ULQH13enHiB7A273aFkNQmQ1c 53mPbfpv+DildLAS3wuSfL277v57Zo2svlsBfuEIDDT5WxVPEt59uM7xk+IyYb1LBax/ rOgw== 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:references:in-reply-to:message-id :date:subject:cc:to:from:feedback-id:dkim-signature:dkim-signature; bh=O/03a8VUsvCu5Ho2lWofHPeYJCGruXQzjVj9uGmC/bY=; fh=7F/rH5d5DL4JkOcai1GyDPUgYZOlfOWmHTMo+rzf+fU=; b=n1ZQSZ+hfiRKDA7qgK8Splbt8kIHKPrSHdDNwdFNuxq8IhW7caPz6Wbtj53Twn5+7y ZYN1CknEuBUwOhFCx+6bxVj9fel8LaVnzuooIAI3tVurGuCEYMkG7258ZSTqUintHleF r8c0+grqjVoSWD+zbMSt+/mrZBUkeYP7XoA/3rCjt5D+drvLdZ05EBfiK4yPXR3eCjfi SQ2V6QF5AGvnFO7qa2YCfHGQMs8WrswgWiFnX4Nc3uMaIj8fsZOWqjXxpMrO7pmDnVsk 5lOwpUfGA9+/qLrayjR3HGtkM+WI3nK6rQspV0Eu4jV+EbaHy59yWe+S6wsHoIi2etrp fZlw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sakamocchi.jp header.s=fm2 header.b="y/OJEo3R"; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=EZf8j4k4; 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-116368-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116368-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 d71-20020a63364a000000b005f02d3b1260si7322422pga.221.2024.03.25.03.59.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 03:59:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-116368-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=fm2 header.b="y/OJEo3R"; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=EZf8j4k4; 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-116368-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116368-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 15C3CB32BFC for ; Mon, 25 Mar 2024 09:48:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1197486636; Mon, 25 Mar 2024 05:09:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sakamocchi.jp header.i=@sakamocchi.jp header.b="y/OJEo3R"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="EZf8j4k4" Received: from fout4-smtp.messagingengine.com (fout4-smtp.messagingengine.com [103.168.172.147]) (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 464E8143878; Mon, 25 Mar 2024 01:21:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.147 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711329704; cv=none; b=MPWTke8MkndcSyX7gf6QRcgdtcTe1WdapLE4uwLFtHNGa77HoEuYE0uVJXdu5oP+bZPH7+IDByP8NlHGgWig7sAAhMf3f2osX+Xodx3k1R93lBw1JafgHt/1EHk8zly9FsWCa+EM8iTAGAJZBUWNSUuiukRwRb3gO+IhRUlgLQE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711329704; c=relaxed/simple; bh=3DyUC4KeQmUIkxMmdA3c4sX5XUh4DpFW6As1PmRc2Vs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Zl89go6U98RDdjSoRpfA0FxGf/y8FoXvd87LWCrBOWrxjgcWgnpzoIdORLqD6rz48YbIbW5Gk1qv3kiqzdwqcQWvvy0fewE3JazYFtPQhS8829JGHFZhDbrmd3u+QrD9Imvh328KKO2ZCck7nmqdFwzEkxJ64OK0k9jbvEAtSHI= 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=y/OJEo3R; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=EZf8j4k4; arc=none smtp.client-ip=103.168.172.147 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.nyi.internal (Postfix) with ESMTP id 4651E13800CA; Sun, 24 Mar 2024 21:21:41 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Sun, 24 Mar 2024 21:21:41 -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:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm2; t=1711329701; x= 1711416101; bh=O/03a8VUsvCu5Ho2lWofHPeYJCGruXQzjVj9uGmC/bY=; b=y /OJEo3ROdrpCl7D1hrNXl7DSKLX9FD1WJkyUa+0KSMIzJ0YEh+PKbx+EYAUp9WgX i1xk+2Pwnb7xfvvrOVJlkAcx63RnI6Zqgty+gpDsWRs8a6QUrDV1fOIb8+1nmTJ2 eP/YE/nbFP30xxkxt/ROpUHyti2F4wrODIV7pvPC/eCFCK0n0S86LSb3VbQHGYl9 gJZTSJBQqkSbRIBejT0U3prYVxW6U+4oVdu4vHEY+uLKWnhNwGZXXlWX/S66qW7c jce75nhEvXhuBaUB2y35X8He8yTZOVKP85XIC8v6lGp7G/XZKIFQOEnQ8r7S7wzf o3fjAHSnxosjuDk46SHdQ== 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: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=1711329701; x= 1711416101; bh=O/03a8VUsvCu5Ho2lWofHPeYJCGruXQzjVj9uGmC/bY=; b=E Zf8j4k4eUdifg3IS1Yaqfm187P578wbwEV++ixbC9d5YbPUEgweuNPWKk3uGW3zF H9u/7uWDIDEHWsnNFA9TOLWbnXnZIhyD0H5SLcpivFFU9PEUbTPfyuOOzP6wnm2G weRHeI3crgu4TgvS+PJESpNLavxI7pvIuvkmyk+8nT/UqRHHd4UEQjfzd8NoyV6C 2moG2xBCq2NJHWblarhelQVjtSpPmCPlT4nIVOQ1mNiK7F3CmP1BntAHbWjQXcPC aPPEeqbhVJ8ssvGzwQVZynvPii+n6+JDY1YbnAuxjtOq7yPs0Cf5LmR9GOda5P0Y eGV2KsLKWukIBOLIC3usA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledruddtkedgfeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvfevufffkffojghfggfgsedtke ertdertddtnecuhfhrohhmpefvrghkrghshhhiucfurghkrghmohhtohcuoehoqdhtrghk rghshhhisehsrghkrghmohgttghhihdrjhhpqeenucggtffrrghtthgvrhhnpedvjefgje euvdfguddukeelveetgfdtvefhtdfffeeigfevueetffeivdffkedvtdenucevlhhushht vghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehoqdhtrghkrghshhhise hsrghkrghmohgttghhihdrjhhp X-ME-Proxy: Feedback-ID: ie8e14432:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 24 Mar 2024 21:21:39 -0400 (EDT) From: Takashi Sakamoto To: helgaas@kernel.org Cc: linux1394-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, edmund.raile@proton.me Subject: Re: [PATCH v2] PCI: Mark LSI FW643 to avoid bus reset Date: Mon, 25 Mar 2024 10:21:35 +0900 Message-ID: <20240325012135.36861-1-o-takashi@sakamocchi.jp> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240229230013.GA369538@bhelgaas> References: <20240229230013.GA369538@bhelgaas> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi Bjorn Helgaas, (C.C.ed to linux1394-devel@lists.sourceforge.net) I have an objection to applying the change. I've been using the issued 1394 OHCI hardware in my development for recent years, while I have never faced the reported trouble. I think there are any misunderstanding or misjudge somwhow in the review process to apply it. Would I ask your precise advice to regenerate the reported issue in my local? This is my 1394 OHCI hardware. ``` $ sudo lspci -vvvnns 06:00.0 06:00.0 FireWire (IEEE 1394) [0c00]: LSI Corporation FW643 [TrueFire] PCIe 1394b Controller [11c1:5901] (rev 06) (prog-if 10 [OHCI]) Subsystem: LSI Corporation FW643 [TrueFire] PCIe 1394b Controller [11c1:5900] Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR- Using LSI / Agere FW643 with vfio-pci will exhaust all > pci_reset_fn_methods, the bus reset at the end causes a broken link > only recoverable by removing power > (power-off / suspend + rescan). > Prevent this bus reset. > With this change, the device can be assigned to VMs with VFIO. > Note that it will not be reset, resulting in leaking state between VMs > and host. > > Signed-off-by: Edmund Raile > > I sincerely thank you for your patience and explaining > the background of pci resets which I lacked. > The commit message and comment now describe it correctly. > The comment on leaking states was added. > > Usefulness: > > The LSI FW643 PCIe->FireWire 800 interface may be EOL but it is > the only one that does not use a PCIe->PCI bridge. > It is reliable and enables FireWire audio interfaces to be used > on modern machines. > > Virtualization allows for flexible access to professional audio > software. > > It has been used in at least the following Apple machines: > MacBookPro10,1 > MacBookPro9,2 > MacBookPro6,2 > MacBookPro5,1 > Macmini6,1 > Macmini3,1 > iMac12,2 > iMac9,1 > iMac8,1 > > Implementation: > > PCI_VENDOR_ID_ATT was reused as they are identical. > > drivers/pci/quirks.c | 13 +++++++++++++ > 1 file changed, 13 insertions(+) > > diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c > index d797df6e5f3e..e0e4ad9e6d50 100644 > --- a/drivers/pci/quirks.c > +++ b/drivers/pci/quirks.c > @@ -3765,6 +3765,19 @@ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_ATHEROS, 0x003e, quirk_no_bus_reset); > */ > DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_CAVIUM, 0xa100, quirk_no_bus_reset); > > +/* > + * Using LSI / Agere FW643 with vfio-pci will exhaust all > + * pci_reset_fn_methods, the bus reset at the end causes a broken link > + * only recoverable by removing power > + * (power-off / suspend + rescan). > + * Prevent this bus reset. > + * With this change, the device can be assigned to VMs with VFIO. > + * Note that it will not be reset, resulting in leaking state between VMs > + * and host. > + */ > +DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_ATT, 0x5900, quirk_no_bus_reset); > +DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_ATT, 0x5901, quirk_no_bus_reset); > + > /* > * Some TI KeyStone C667X devices do not support bus/hot reset. The PCIESS > * automatically disables LTSSM when Secondary Bus Reset is received and Regards Takashi Sakamoto