Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp866440lqh; Thu, 28 Mar 2024 21:41:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVbwWceJu9mg2VQZHMo93lsurKmk7Z9KzpSIvXwR9OJB3H67TtXy8QnQtDjlNkgQdz2i1gsAP+yNMpVZO2YY2lJGlHUCsz/2dxSg28Uow== X-Google-Smtp-Source: AGHT+IHHiEzsaYHKnpCOuowzDdWs7WBrcSG7HuUXTWecr7sjsC6ZXxkUCSqU1J4KY520uGfeoodb X-Received: by 2002:a05:6a00:1c93:b0:6e6:1f10:9ead with SMTP id y19-20020a056a001c9300b006e61f109eadmr1316925pfw.27.1711687295924; Thu, 28 Mar 2024 21:41:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711687295; cv=pass; d=google.com; s=arc-20160816; b=CXc3av8PL/OuKS1hA7ovZdl5GUthFjW2jnQy2K2rYhxMLFQyssaB6HYQEviMvh8/yV Lt7ML02alB+Tns2oQKp3nSfVxhTSHAsfA3V8QgB/0AYwiEcbcDjbEkGQIJxPJx6nBL8D dA99qBEPzw6f6VQ/xZclw2BCJrOLrlR2nyEcI0ngO9+U1/PHF22Q70ut72Fa1VK/Omu7 xgZDvE5cKVX26obvJwpW8JEpKhDVXC3e8eyHmgo03z5+QAhNeiVbL1uZw4uvdP3vrsKu pEVSlc0jSeNxiXL5o10Ur+HMVrUuzonPSngSCs1HjIRTxnbe9FFFziQV0OIvBrId3DPJ ok3A== 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:message-id:subject:cc :to:from:date; bh=8qq2/y3ri/l5OHANGVrULoZwNFmem+O3BajSxNtaxLU=; fh=2FDWp61DqXawTARcMyXq9nepBkp8wgibsW2m7t9lKd4=; b=0ICb1iKhNkLpkS3mk3mIcmjxr9F7bS6TGEhFRYhCu8TAuO4O9OTKSRSDqkYWBoeLi/ mSH8uen7DcF/sqXjZeIblHPVU7bcLktSj4Bpc6bx1WJ5IWQCtn98Ivvs2OYrPkDCib1U vDIKe0T+zLDx3d8YBPnrJh27FmVdbLUPPmCnxm4PjCqMr/mVcFauAlX23KbFPJr9aXv4 7/3h4RhBwUr3Fcfibb+XxvB3m4bjaquAfVY0Ou4I2CHvSVheCnESKxtkDDNVQ81gqXTh ayafa/g62pRj+SGsgPgbRXHJfknYzEkTNL/r4rpG3FbV5dMsZrEjlS99piK1FELSn/N5 9xig==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-124114-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124114-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id n18-20020a62e512000000b006e71cdb86desi2769033pff.237.2024.03.28.21.41.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 21:41:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-124114-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; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-124114-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124114-linux.lists.archive=gmail.com@vger.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 998E5289A80 for ; Fri, 29 Mar 2024 04:41:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E043D39AC1; Fri, 29 Mar 2024 04:41:28 +0000 (UTC) Received: from bmailout2.hostsharing.net (bmailout2.hostsharing.net [83.223.78.240]) (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 145782C9A; Fri, 29 Mar 2024 04:41:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=83.223.78.240 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711687288; cv=none; b=tGcCBVYqXEbvQjrI6h38Ic+E0Ce/bZVPxn53foKH8v/344fRtUmtS4xNwjgmaUMXXDGbs/hL3S7zRg6e+75yJeuBwv77TFl9/7iPgVLO6jQ+sOpL3GuaODXWsXAw2KRW62xKzNIVVzgHiHB5Ub8eoZyQ8dLSS0L2YECV1d95038= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711687288; c=relaxed/simple; bh=xFBtzDrwQogRYJw90bkQgmgiOw9iHxCR+ytb2sDGFUQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=gkFMhDZeM3lY/3bVWDfooylvtYYjHFBxYqN7zgSlbQ96Ez+A9SPsiQbopyZtwqdN9Glf48fNMILyO7eBz9hzuso6vyX3nKvHYiKP6aODS+ii7fB4JRGdP8TjRaqhs0EMYdud8E0GGNEykhXQETGBYV2HYVFOixz2IHHMORZbr7Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wunner.de; spf=none smtp.mailfrom=h08.hostsharing.net; arc=none smtp.client-ip=83.223.78.240 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wunner.de Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=h08.hostsharing.net Received: from h08.hostsharing.net (h08.hostsharing.net [83.223.95.28]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "*.hostsharing.net", Issuer "RapidSSL TLS RSA CA G1" (verified OK)) by bmailout2.hostsharing.net (Postfix) with ESMTPS id C5A742800BB3F; Fri, 29 Mar 2024 05:41:16 +0100 (CET) Received: by h08.hostsharing.net (Postfix, from userid 100393) id B152412BC84; Fri, 29 Mar 2024 05:41:16 +0100 (CET) Date: Fri, 29 Mar 2024 05:41:16 +0100 From: Lukas Wunner To: Alex Williamson Cc: Bjorn Helgaas , 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: 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: <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: > 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