Received: by 2002:ab2:7a09:0:b0:1f8:46dc:890e with SMTP id k9csp225363lqo; Wed, 15 May 2024 12:26:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWDhthY20T6vBxKxrwzEgd/fixXxaPzdKRE0DUcANhQ89kAVPov6ptd1bn2zfVXnUIc6Mw3flpYLcQFur7+Kho72h7iMFFaJjHiyEQ9Wg== X-Google-Smtp-Source: AGHT+IH359P5fK77aF2MXBdiJMvQdPcReyeNyVc3njBSQZhKoupbOF6/kK4A0hbF+Bsrwd7hLVnv X-Received: by 2002:a05:6a00:2e8f:b0:6f4:bbba:1155 with SMTP id d2e1a72fcca58-6f4e029a21emr27335993b3a.3.1715801185082; Wed, 15 May 2024 12:26:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715801185; cv=pass; d=google.com; s=arc-20160816; b=P0hVCsc8R/lA2xEr7EUaHnqs41gzfZoo9I2ZQk3OJPt97bd4i/vmiIoJ76t3pgnQtD 8iSdyjYB4gyCRO3v+XoofGo1apM/9LrzZSwWN0EnwcvNd/JDUOJthmXsslAJVzEKA6MK fFfnpFuiDVOvFFAHYikvU07nduuzYOaOr7i/SVjUYcnw1/MOXmQO5DfhMf1gFFdMVcVP K7GSG95tjRT8PcEDaCFt4tBTH0T/FSIAeChCGvdD2+J+7KqD2WiZZeoHnIKL15zb0oFX YIZuJwtprFqKU0ag3pv7axhtJa53tx9MG9YlktEDZSujqyZAVXxAGX42ED84SVLyQT3Z FZvQ== 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=lkdIObZTrZaCN5zzcr1XkAPaqOIG90Xnm522XoaQ8us=; fh=dORJ3i+k1mizzZt52HsiPMMPwERhNAmKrb4SoFwf5BM=; b=JjlIpOqWE55dMWNWGqDHq6D06UMBAJPFdTd+RSL6EnMDGizDmQRaGKVbubHvGmc6M7 RtjDs7c/geX/l/DQuhRyfg84uzvT/wZT766a4fMF1EKCzTjeEHznY0BvQ7mYbP1AOyMf bvFmTBEOtWfbG5bk3YVFDcZJPrg1Lq5do32gDRTAcWyoExAcl9u1/RLMLTWRePb3mCER oxu0XsYTFlPkZ5F5E37L8HmXwDGODf7jE/slzBjoeoBRvcYUMcji6BN0w/gPgduH7uzW Zi8w5DqD6IbjkUjGwEdatq4ZxukFzow05SBHxzudOrkoBL27gIKIS361iK7b1rr9ylGz pyZA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rd0OOavE; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-180315-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180315-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 d2e1a72fcca58-6f4d2b1706esi1173764b3a.265.2024.05.15.12.26.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 12:26:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-180315-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=@kernel.org header.s=k20201202 header.b=rd0OOavE; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-180315-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180315-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id ABC46284840 for ; Wed, 15 May 2024 19:26:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A7EE015AAD5; Wed, 15 May 2024 19:26:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="rd0OOavE" 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 CDF573219F; Wed, 15 May 2024 19:26:16 +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=1715801176; cv=none; b=sml3s/Q7vBq0CZPVYO0gWo8y7BYgk6/4STtPFhLIQnth0W0uRQJxVmfM6Zd/crF7OdZfdMJrnANJqmb0wPni8Bhl0+6Mkga31QVz60pK6hTKvJ8lt4bbtNOndxUcolhKb00zS79kPIOABN/vxvGGdpVCv59KkV2GrMJV6DQ5YYA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715801176; c=relaxed/simple; bh=/uESMWzJ0qlSKrj7tTV6bA6iZEGcMmGLFrgFJNV8pRc=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; b=tyYOnY0mMOgH/K6D4dAD/0N9BfpqJ4T/SzBwVKl2IFwqTDJSUYuTwiWDku+Uh+X7o08x0XhB70b1PjjFsjsNel9BXBJ1KxDC09D6INTLO2PX89xf/0M8Bb1fTJmSHKVUfko4VpHgZxGe0ZDJRbeZuYDdQxWRHuqgn8a0ljJtU6A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=rd0OOavE; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 178B8C116B1; Wed, 15 May 2024 19:26:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715801176; bh=/uESMWzJ0qlSKrj7tTV6bA6iZEGcMmGLFrgFJNV8pRc=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=rd0OOavEspsrXZCLoWfQd9F0nwYmVhee07cuGCr3AuSmzbAjut0BwGJXJ1bEGG5X/ PEhN/sIZxqYTUlj+2aeX5cHT5EKuoIeIS4ktf/z75viJF7glR0Jfor0zdMT1vV9uYT mxQlAZbM02ILp/HEf3/Kb4DF7xVZ6nxuC04hOGs6Z3PYv4UICDFlR5oxIAbeU77wDu 1tl8P3gxgmi8BCm/ZAqs14E6/LS0jPq+aAuoPFA/iBPx3IpnsWZR/vA+8m+8aN40dm tP1ThsT073Z2eVI4bYkZa7jb2JT7ENOZUXctkERnL2xXV+XvNDeb4pfCNF3aV61oqw rKpaCCodJ91Iw== Date: Wed, 15 May 2024 14:26:14 -0500 From: Bjorn Helgaas To: Siddharth Vadapalli Cc: lpieralisi@kernel.org, kw@linux.com, robh@kernel.org, bhelgaas@google.com, manivannan.sadhasivam@linaro.org, fancer.lancer@gmail.com, u.kleine-koenig@pengutronix.de, cassel@kernel.org, dlemoal@kernel.org, yoshihiro.shimoda.uh@renesas.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, srk@ti.com Subject: Re: [PATCH v7 2/2] PCI: keystone: Fix pci_ops for AM654x SoC Message-ID: <20240515192614.GA2133406@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: <20240514211452.GA2082543@bhelgaas> On Tue, May 14, 2024 at 04:14:54PM -0500, Bjorn Helgaas wrote: > On Tue, May 14, 2024 at 05:41:48PM +0530, Siddharth Vadapalli wrote: > > On Mon, May 13, 2024 at 04:53:50PM -0500, Bjorn Helgaas wrote: > ... > > > I'm not quite clear on the mechanism, but it would be helpful to at > > > least know what's wrong and on what platform. E.g., currently v4.90 > > > suffers Completion Timeouts and 45 second boot delays? And this patch > > > fixes that? > > > > Yes, the Completion Timeouts cause the 45 second boot delays and this > > patch fixes that. > > And this problem happens on AM654x/v4.90a, right? I really want the > commit log to say what platform is affected! > > Maybe something like this? > > PCI: keystone: Enable BAR 0 only for v3.65a > > The BAR 0 initialization done by ks_pcie_v3_65_add_bus() should > happen for v3.65a devices only. On other devices, BAR 0 should be > left disabled, as it is by dw_pcie_setup_rc(). > > After 6ab15b5e7057 ("PCI: dwc: keystone: Convert .scan_bus() > callback to use add_bus"), ks_pcie_v3_65_add_bus() enabled BAR 0 for > both v3.65a and v4.90a devices. On the AM654x SoC, which uses > v4.90a, enabling BAR 0 causes Completion Timeouts when setting up > MSI-X. These timeouts delay boot of the AM654x by about 45 seconds. > > Move the BAR 0 initialization to ks_pcie_msi_host_init(), which is > only used for v3.65a devices, and remove ks_pcie_v3_65_add_bus(). I haven't heard anything so I amended it to the above. But please correct me if it's wrong. Bjorn