Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2472030rda; Wed, 25 Oct 2023 03:59:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHJdoMR5PzPS8t7AxMBvtAkT1hC/7Murq6/0VtLfeohQ+AExxevMef6v5IEIgg69obbTqy5 X-Received: by 2002:aca:1a1a:0:b0:3b2:ef91:3094 with SMTP id a26-20020aca1a1a000000b003b2ef913094mr13514858oia.8.1698231549593; Wed, 25 Oct 2023 03:59:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698231549; cv=none; d=google.com; s=arc-20160816; b=IsnY5kUgOF0OWxNPLL8ply+eZ/pIXJzli68JFbCaELQOdsW+NRkkMKneICfo/6oENo lZwolmMyOnuMOBn6QW078/G6YoZxgX1YDtofZRq+C1nILBtyNawL+53GZ/uHqlFWDPRd Zsw7tNIrDYCuyroapuQMCjDwO2+F+OdYICB9rLKpmFq1/ef+WsK6DJBS3ZefHi6V85SC sYG5DtNPxEuRVucBl7dr7+byzITA+x6hb5DIwmVlmaBArgxsOF2WBk4Gw4iO74r0rVfm M23YYo5dXXuHNbI384daj40DPHgGf8V3YpTlMFX0ZsT7rsR5bBDhf7ujG13ojAEAQfOJ Hrfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:cc:user-agent:mime-version :date:message-id:dkim-signature; bh=1TPsUdXjm7Vpn4Ig1Vrcn9B/Y380Qufn7tJcHsIyp4I=; fh=2XcGCP2ZA3b8A/a1g1X/Js5YpuxjcKfVYwpL9rwz49w=; b=MJqJoYVD5ln3nGRmL0K07AuTkVTKKhSFnNcVW3aMeEBxEl0XXjgQy6n4z9SoFJU8De uy6YOhdBqRouwNaMKgqVyN0wBhqYSJISpYD0MwDJGaiKG7F/q0k+dcQo9ZDWOmFpprSr 9bamfs1/0sYHOW7mufp34fL1QvCFSYdtsZdZBvSBNlPbZmQmclf8N4SbjJzkMwtDuvSL njGtU0IVrouvCPZNtbYZZISTeAVV4xX4Rm2UPdea1sWPT0F/JbQPp5DwiH9uwEUWMGIf Ej24YIQDzhLYi+litc+q9vVPXF/CDcgjfK3dPD+sZFu0/vg2M4pOSLmJBsKQMhoD/R1s WZAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=oGFhvcwj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id f76-20020a25cf4f000000b00da05933c623si3078442ybg.135.2023.10.25.03.59.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 03:59:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=oGFhvcwj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id C064F8028FAA; Wed, 25 Oct 2023 03:59:06 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234295AbjJYK6x (ORCPT + 99 others); Wed, 25 Oct 2023 06:58:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbjJYK6w (ORCPT ); Wed, 25 Oct 2023 06:58:52 -0400 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E329DA6; Wed, 25 Oct 2023 03:58:49 -0700 (PDT) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 39PAwT3K062646; Wed, 25 Oct 2023 05:58:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1698231509; bh=1TPsUdXjm7Vpn4Ig1Vrcn9B/Y380Qufn7tJcHsIyp4I=; h=Date:CC:Subject:To:References:From:In-Reply-To; b=oGFhvcwjQQwe5uHZEZTOjXNgg5cc0c2fTSQlOXVcJuxTg3ExgRiGITAgNI6fm7kmj 77J2aOqBD2a9CZX7AqYqRf+LE7EmMk8HmppDUhYughb9618nJKPP9UnEm29yAxXpmj QPi4ugf5pO93LEYNujIOeYziWeMpkywV0cRSEksk= Received: from DFLE109.ent.ti.com (dfle109.ent.ti.com [10.64.6.30]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 39PAwTUw062342 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 25 Oct 2023 05:58:29 -0500 Received: from DFLE107.ent.ti.com (10.64.6.28) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Wed, 25 Oct 2023 05:58:29 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE107.ent.ti.com (10.64.6.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Wed, 25 Oct 2023 05:58:29 -0500 Received: from [172.24.227.9] (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 39PAwOBV018686; Wed, 25 Oct 2023 05:58:25 -0500 Message-ID: <6e40c4ee-e549-4b41-8a12-65b474b8ef24@ti.com> Date: Wed, 25 Oct 2023 16:28:23 +0530 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird CC: Bjorn Helgaas , Manivannan Sadhasivam , , , , , , , , , , Subject: Re: [PATCH v3] PCI: keystone: Fix pci_ops for AM654x SoC Content-Language: en-US To: Serge Semin References: <20231023212628.GA1627567@bhelgaas> <3szgydgz7ege5h75mwdket5lniwy4oe52dq2uqehf74il5hc5j@oaqcbmfuf6de> From: Siddharth Vadapalli In-Reply-To: <3szgydgz7ege5h75mwdket5lniwy4oe52dq2uqehf74il5hc5j@oaqcbmfuf6de> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 25 Oct 2023 03:59:06 -0700 (PDT) Serge, On 25/10/23 15:58, Serge Semin wrote: > Hi Siddharth, Bjorn > > On Wed, Oct 25, 2023 at 10:32:50AM +0530, Siddharth Vadapalli wrote: ... >> > >> ks_pcie_probe() >> dw_pcie_host_init() >> pci_host_probe() >> ks_pcie_v3_65_add_bus() > > I guess what Bjorn implied was to add the ks_pcie_v3_65_add_bus() > invocation to the host_init() callback, i.e. in ks_pcie_host_init(). I misunderstood the term "host_init()", and interpret it as "dw_pcie_host_init()", due to which I thought I will add it after dw_pcie_host_init() invocation in ks_pcie_probe. Thank you for clarifying. > Moreover initializing the BARs/MSI after all the PCIe hierarchy has > been probed will eventually cause problems since MSI's won't work > until the ks_pcie_v3_65_add_bus() is called. > >> >> Since the .add_bus() method will be removed following this change, I suppose >> that the patch I post for it can be applied instead of this v3 patch which fixes >> pci_ops. >> > >> The patch I plan to post as a replacement for the current patch which shall also >> remove the ks_pcie_v3_65_add_bus() and the .add_bus() method is: > > Just a note. Seeing the Bjorn's suggestion may cause a regression on > the Keystone PCIe Host v3.65 I would suggest to merge in the original > fix as is and post an additional cleanup patch, like below with proper > modifications, on top of it. Thus we'll minimize a risk to break > things at least on the stable kernels. I will post it as a separate cleanup patch in that case and this v3 patch can be merged independently as you suggested. -- Regards, Siddharth.