Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3386219lqp; Tue, 26 Mar 2024 07:55:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCULx75nlFwGhnmxDdfGFU5ui4sTJ4JVdtXRLgGlCHOgGT8EHPVMNiccU472kh6ypQjX2vwGCjAyFc+yzY7qdrmDr7OgjDxAuMh0trsLuw== X-Google-Smtp-Source: AGHT+IFDlH03UHkDrPx181LMNbocOPFk0nJgJ57wbR67zOa5Q3VmA7YnfNilU29H2OQt+1x0ymz4 X-Received: by 2002:a17:90a:ff11:b0:29d:d7a5:91f9 with SMTP id ce17-20020a17090aff1100b0029dd7a591f9mr7841069pjb.48.1711464916577; Tue, 26 Mar 2024 07:55:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711464916; cv=pass; d=google.com; s=arc-20160816; b=DUTw1QHPnYiIr/UBrWrDXDsZTk1+cZt88nILc6l4n4GjdtvsAYinZBmsoEN7XmDk4Y EtmlAtQ6Cvd1omGMywg40uYSg7f0v/HZXnoL+RyISk7tM2d5Fq5qrRib/c4RuE+FgyqF YAsi9Hpg927XdyLcHERqRJCjyJwwtcw2kxaR+o59Udrcvg4ThBs518R+jGWCQIHRgGUS Jj0AYT0PGUR1DYer+oPLJ4Lq8+gsYrgeS3w1EelpN+34kXK7SEmdmy8idDGapPu9FfRQ uQWX3ytb2H1qwBCd0+uQl+QX4GTNb2uiqrBn9jSajCALL4pWGpQgMrCG0yqIyfz+eExv u6BQ== 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:dkim-signature; bh=r5kO6gHMdss7KBmKCinOi5uDLA/3tf7mzyqUper/ros=; fh=mHDKLm8L89Ka90r1KkrIBNHFEYuGjOxgoSpO6TLdV0M=; b=JzCxNr3f0EWXhPKqigc5anZ0tUm8mVSDIa2BRko6JnNybtc+RW3B0J8EDrT9ZXzR+q RikAAo6ga7hheznqIMThPUBnlP9xorgZzkamTy7UiJLjU2beapRB7JBI51+FMpEJs0Bc 3PgZqZZycVUwmXDBF8kM9XpfvGJIowOlUoc3DUn4TSFyrdPurg6RgIk+PxWh5JD7sOIy 7xb3ElAv7L8EeuEjqfPkS7xzzJbKtzBU9h3AQaM+TVKabPkr+E9cm5FO2e4sayhdeS59 X+0Vzz58hmFUCAZ0ZgpABjIhfuIc9T58wEPB1JTJgAakrboczMsbMwQCR1qAQk/l/wes 3taw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=aX8o8gh7; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-119209-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-119209-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id ds11-20020a17090b08cb00b002a001f3f12bsi9938957pjb.36.2024.03.26.07.55.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 07:55:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-119209-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=@ti.com header.s=ti-com-17Q1 header.b=aX8o8gh7; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-119209-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-119209-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com 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 E934BB2599A for ; Tue, 26 Mar 2024 14:48:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 15F1613C683; Tue, 26 Mar 2024 14:48:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="aX8o8gh7" Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) (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 45C8E13C3F1; Tue, 26 Mar 2024 14:48:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.19.141 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711464503; cv=none; b=Nf44+P3s27+uJ7nOeEdfct0TWvPrYu+UVZoQtq1zXq3im74TFvDzjTOzyP/fnrPGKDzJad4KsgioWwV/Y2YNNoqxuisas4EQTbsfvo4Fr+tNd9siugZ/GdFYffKgLWpvYKxcmrqF3KuCcGrco2Z95SoEccm9KKDk3V1ytT6PVDw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711464503; c=relaxed/simple; bh=WSB5F1WSZax7rQrE9wzTv65xq0IhCJ8+VtjWj4me3m8=; h=Date:From:To:CC:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=aUUV+0DwNrmeEfe38L8aTF5X13i6NvGxV5RqOzAVA1T3iK5uE8Nsc+HdlcnunvC3WRq9uL6tL1q7mFXoadB7Vrx8Cva7T+5Y+0ALtmmx9c4zgzvFJbwcpzoX7AMd2AnbIdzy8381xgqDlhQmmT0FZSekPhE3xRx2/NoA4tQl6PI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=aX8o8gh7; arc=none smtp.client-ip=198.47.19.141 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 42QEm1EK121149; Tue, 26 Mar 2024 09:48:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1711464481; bh=r5kO6gHMdss7KBmKCinOi5uDLA/3tf7mzyqUper/ros=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=aX8o8gh7KKSVG4M7zvZf6QdRV0MxzOhc7xOYlTaQ09TlWUVrmBPwsevCzu0CVAtlS AC+bAqo8Px8MIFR6Mn8IrXfNVy+BndDAQ//MSqChtLf8djsMse1NL205ti9ThBmGco uxQ+49u6vtwOcpq66Fo7x5M4wrs0FM1snZK1xZm4= Received: from DFLE108.ent.ti.com (dfle108.ent.ti.com [10.64.6.29]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 42QEm1qk022383 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 26 Mar 2024 09:48:01 -0500 Received: from DFLE111.ent.ti.com (10.64.6.32) by DFLE108.ent.ti.com (10.64.6.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 26 Mar 2024 09:48:01 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DFLE111.ent.ti.com (10.64.6.32) 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; Tue, 26 Mar 2024 09:48:01 -0500 Received: from localhost (uda0492258.dhcp.ti.com [172.24.227.9]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 42QEm0PX024629; Tue, 26 Mar 2024 09:48:00 -0500 Date: Tue, 26 Mar 2024 20:17:59 +0530 From: Siddharth Vadapalli To: Niklas Cassel CC: Siddharth Vadapalli , , , , , , , , , , , , , Subject: Re: [PATCH v5] PCI: keystone: Fix pci_ops for AM654x SoC Message-ID: References: <20240326111905.2369778-1-s-vadapalli@ti.com> <2e40b30d-b063-48ac-a566-f66eb2788003@ti.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: <2e40b30d-b063-48ac-a566-f66eb2788003@ti.com> X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 On Tue, Mar 26, 2024 at 08:00:04PM +0530, Siddharth Vadapalli wrote: > On Tue, Mar 26, 2024 at 02:56:26PM +0100, Niklas Cassel wrote: > > On Tue, Mar 26, 2024 at 04:49:05PM +0530, Siddharth Vadapalli wrote: > > > In the process of converting .scan_bus() callbacks to .add_bus(), the > > > ks_pcie_v3_65_scan_bus() function was changed to ks_pcie_v3_65_add_bus(). > > > The .scan_bus() method belonged to ks_pcie_host_ops which was specific > > > to controller version 3.65a, while the .add_bus() method had been added > > > to ks_pcie_ops which is shared between the controller versions 3.65a and > > > 4.90a. Neither the older ks_pcie_v3_65_scan_bus() method, nor the newer > > > ks_pcie_v3_65_add_bus() method are applicable to the controller version > > > 4.90a which is present in AM654x SoCs. > > > > > ... > > > > + } while (val & DBI_CS2); > > > +} > > > + > > > static int ks_pcie_msi_host_init(struct dw_pcie_rp *pp) > > > { > > > + struct dw_pcie *pci = to_dw_pcie_from_pp(pp); > > > + struct keystone_pcie *ks_pcie = to_keystone_pcie(pci); > > > + > > > + /* Configure and set up BAR0 */ > > > + ks_pcie_set_dbi_mode(ks_pcie); > > > + > > > + /* Enable BAR0 */ > > > + dw_pcie_writel_dbi(pci, PCI_BASE_ADDRESS_0, 1); > > > + dw_pcie_writel_dbi(pci, PCI_BASE_ADDRESS_0, SZ_4K - 1); > > > + > > > + ks_pcie_clear_dbi_mode(ks_pcie); > > > + > > > + /* > > > + * For BAR0, just setting bus address for inbound writes (MSI) should > > > + * be sufficient. Use physical address to avoid any conflicts. > > > + */ > > > > This comment seems to have wrong indentation. > > With that fixed: > > > > Reviewed-by: Niklas Cassel > > I will fix it and post the v6 patch. I have posted the v6 patch at: https://lore.kernel.org/r/20240326144258.2404433-1-s-vadapalli@ti.com/ Regards, Siddharth.