Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp929911lqh; Fri, 29 Mar 2024 01:12:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVcOTMZRTMYj6SpYrDi2rsAM6LzA4XTbWhXZ65PZ+/fyMghuV8dfp8u2CPtt5B+Uo6Dv4/OHBZ1TCI/8EpL+zy9/vC2B8pCfhAcFLacYQ== X-Google-Smtp-Source: AGHT+IFnO0e/ML/D3AGUlPbrkkd8cNP6A6C7vprzwtZpun7sY/i05HfoNKpueSProYCGfwBkXpLN X-Received: by 2002:a05:6358:9486:b0:17f:7807:3204 with SMTP id i6-20020a056358948600b0017f78073204mr2010611rwb.25.1711699955528; Fri, 29 Mar 2024 01:12:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711699955; cv=pass; d=google.com; s=arc-20160816; b=jKmft8AYtCbAC8sNTgSug4LWnxZfifJqkBIdbpm68WEY1gtbtRETxd8e8OVKZKxKub zI8SvlD4Mz/Zzb3kBbRrfiitugwyNun8eqrkHx87/XSdkxL0eXNaiZiGQxJn2thNiVIp v9RibIOlkca+COpwvRM3VZRo7Bnd9ZZdSyWiO/uJ+W20/F7E3CCxYvg74CTqWOoK22Ew /D23uvY2SmfmwmZAgyUs+AIHkhelf0vZcxwQlll6Mb/cumWXYBqXP1LnlLK5o9iCS4b9 ETrkjeLlr8fa9OeeqEuontZeqldB/5xJzx95n9IAKpxNpZQancjFzwgBtv1mhE7OcBL1 V49g== 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=mGbMxmuqKfJn9+1lZlv1xn4BUNJLFRwqYHpGktJGTm8=; fh=sJsphcoEM8Pjl6m/OBDKP0w2qzk0iw3z96BODokg+xM=; b=ppJCKaQyEJddhAz3qV2vEGpIEGiccNNCmdIqKtIofXyyZA1dmnJkATn/R4cfXdgjoQ TBTNAAaY2U1P3TazQp/2Q99k83BEUL7+sosyPVR8WXMNPT5fteLtupk+KjvPH+ckZNP2 c5o/K5tdTuhFWmklPnPpm3wJojtNnEoEw6uTAaKA8QQILYs4q9ot4ZkhkytOfwyNUIwr icRWDJBs9U19TwZkrZ+iH19CHZYW0D1N8CnIKz5v6x/47lQQ3pil1rHebhHiJd82bdY6 P62xO5Wo/3EZUCyBnVMj5YICWxfJAOJ6Aj8p72Cxxopw9IM+LZ4e/WsOIuJwLUT0COcm CiiA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sakamocchi.jp header.s=fm2 header.b="EVPV/Z53"; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=OGtfgx4v; 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-124285-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124285-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. [139.178.88.99]) by mx.google.com with ESMTPS id u14-20020a63140e000000b005e4723dce6csi3120303pgl.291.2024.03.29.01.12.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Mar 2024 01:12:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-124285-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@sakamocchi.jp header.s=fm2 header.b="EVPV/Z53"; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=OGtfgx4v; 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-124285-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124285-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 1DAE0286363 for ; Fri, 29 Mar 2024 08:12:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4085B481BE; Fri, 29 Mar 2024 08:12:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sakamocchi.jp header.i=@sakamocchi.jp header.b="EVPV/Z53"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="OGtfgx4v" Received: from wfout4-smtp.messagingengine.com (wfout4-smtp.messagingengine.com [64.147.123.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 80AD43C48E; Fri, 29 Mar 2024 08:12:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=64.147.123.147 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711699947; cv=none; b=bFvmC0xpQsziG16TKU5tXDYe/QO5f4cKXGShXmWTIPNQAwEPxvrTEGdMEDGiIx4H5hR4k8t5NVE4XX2CnuVePGxiOn9GOw3FM+bQDIsRIRBE539vhWn25kAJFEEPqN6WhDyYSumgj3FGaPZfhEGIjHsnvDeVI8DL1cQ0SvBfPiQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711699947; c=relaxed/simple; bh=AEr6bvfD1unwFN0oTJYOowoZ4RMyeLvP/2PldxJO5qs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=MWWho8NlfgwBJN1CO6REuc9TVLvmMXlSQ/gAZD0mx7SDrtr1uS2I00OHLAikbbg2P+5zsxgG6smQv1+VqR3sd/JHsJ1HWta2g151tC/HFwC1aCitlgESsEIWQFZEjrOLzcSw7pzDI146CZDFZrkhYDCdIoBqw4RmunfVtS82chA= 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=EVPV/Z53; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=OGtfgx4v; arc=none smtp.client-ip=64.147.123.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 compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailfout.west.internal (Postfix) with ESMTP id 04C0D1C00096; Fri, 29 Mar 2024 04:12:23 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Fri, 29 Mar 2024 04:12:24 -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=1711699943; x= 1711786343; bh=mGbMxmuqKfJn9+1lZlv1xn4BUNJLFRwqYHpGktJGTm8=; b=E VPV/Z536MxDpTAti5+98oth5eMCqlrinUYmoD0OdGzeCIqXTY/6GuYTPedMGQ/5R CBYi/MLCBMQG8EdPogPTv24EWVhaS4W5Y9sje9GI6pedd+kSPop3jU8pzM4yHTh+ yBce4R6oycxD9VKOsg0/f8OKKyCsygt2qd6u/bMSBR8qqQ1EzvsRvPru03isvKbX 7GtUHIFZuMCqEsRfBfP6jRVLorOFoq4DxKTBVfJIXRWHXu0xwO3V2JoUK/n+MswI d0xpwSs/UtvIMLtd6ai8Z2H4Hsc6FHRCFjIEbBThw7xe03JCvDiHzLuErFcGr+pc dRBO3+jNgYZSzp1ShBlBw== 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=1711699943; x=1711786343; bh=mGbMxmuqKfJn9+1lZlv1xn4BUNJL FRwqYHpGktJGTm8=; b=OGtfgx4vnb3U/h0pe89Dd8vyXHLUhdEj9iRfF4Xa2CNi 8rmK8ecLmWZjLZr7kn+r23oR6Yysu3w0vIp9ytL/Vyz2luA0mj8B5HQg1XpFVK0J sXqHi4Bcodnz577N41DNJPZHq6rq/tUrwMgcc1tiNs1fth+qHhFJFZ5pTU/3Q0eo QH8E7LRfXeGhTKbkZsgLcsWRJEPa+DZMlJ7lCcYkIjOXjelhaJsWp2tLN0zUq5SU l1aC+TbE1NZ60t+Ws/rC9NKPdrRVQAQPEAE9IVhYs+CSjnpNpLkKIlcvYY8t6iyI Tvv5iYykbF9yXdoR/zHgYe3rOJDvGmIWOQ+W0P0d1A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledruddvtddgieefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesthdtredttddtvdenucfhrhhomhepvfgrkhgr shhhihcuufgrkhgrmhhothhouceoohdqthgrkhgrshhhihesshgrkhgrmhhotggthhhird hjpheqnecuggftrfgrthhtvghrnhephefhhfettefgkedvieeuffevveeufedtlefhjeei ieetvdelfedtgfefuedukeeunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomhepohdqthgrkhgrshhhihesshgrkhgrmhhotggthhhirdhjph X-ME-Proxy: Feedback-ID: ie8e14432:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 29 Mar 2024 04:12:21 -0400 (EDT) Date: Fri, 29 Mar 2024 17:12:19 +0900 From: Takashi Sakamoto To: Lukas Wunner Cc: Alex Williamson , Bjorn Helgaas , 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 Message-ID: <20240329081219.GC231329@workstation.local> Mail-Followup-To: Lukas Wunner , Alex Williamson , Bjorn Helgaas , linux1394-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, edmund.raile@proton.me References: <20240326131858.GA140624@workstation.local> <20240327150119.GA1502858@bhelgaas> <20240328144201.510f6d5e.alex.williamson@redhat.com> 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 Lukas, On Fri, Mar 29, 2024 at 05:41:16AM +0100, Lukas Wunner wrote: > 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: > > 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. > > I'm still using one of those "old Mac systems" as my daily driver. > > Just checked the ACPI tables and there's an FPEN method below the > FRWR device which toggles GPIO 48 on the PCH. Checked the schematics > as well and GPIO 48 is marked FW_PWR_EN. The GPIO controls load > switches which cut power to the FW643 chip when nothing is connected. > > Also, FW_PWR_EN feeds into an SLG4AP016V chip where it seems to > internally gate FW_CLKREQ_L. > > I'm guessing the driver may need to call the FPEN ACPI method after > issuing a SBR to force the chip on (or perhaps first off, then on) > and thereby re-enable Clock Request. > > It's a pity the ohci.c driver doesn't seem to support runtime PM. > That would allow cutting power to the chip when nothing is connected > and thus increase battery life. The ACPI tables indicate that the > platform sends a notification when something is plugged in, so all > the necessary ingredients are there but we're not taking advantage > of them. > > Thanks, > > Lukas Yup. In both PCI drivers and unit drivers belonging to Linux FireWire subsystem, any type of runtime PM is not supported. If I integrate 1394 OHCI driver, I should implement all of the above in any callback of runtime PM, or the part of the above is already supported by any driver in parent PCI layer? Thanks Takashi Sakamoto