Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp883754rwb; Sun, 6 Nov 2022 15:38:41 -0800 (PST) X-Google-Smtp-Source: AMsMyM5TOUz1GIywOoqdjGJQaOEUTVxlUH9tixGuQi+0x8tb9qy6zLyrvDl/967xCt+PKwc3m/J4 X-Received: by 2002:a17:906:9bd5:b0:7ad:939d:79a9 with SMTP id de21-20020a1709069bd500b007ad939d79a9mr44572760ejc.479.1667777921516; Sun, 06 Nov 2022 15:38:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667777921; cv=none; d=google.com; s=arc-20160816; b=lxeAukwfxm2uUZgxorxvszUeJMd19TdgDt+x4wx4mWH5UTKnbj4VqJIerXm9xN09c7 3oj9h7b7O9xoQ2jxcC2vrKsYpBJlNR9kx2aDAcClL4kdSSdVJUbgN/btTL2aJU77HVO/ 5ru4OJlgb55PXExYPgu9T2pWwySpOi3jL0o1ykgMNHHSlZz3rINY2zlC+t5EXurL3mN3 cSWxhKBRwXndJ3kPkPJrWVROmWXx+Jzg3F41W/inj5YNV6gv3azD3gaxkMReoPNMHCy4 aFN9IXJZGZeBRBz5MdG4mYd1aP7UPAdiwQfDPXBdJAoFiyPsiSldZ9QLgWek/cPTwijP P19Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Aakkveyx6znEUtoAMDwsjR3lIJpAqhJb9DrWcDHTNNU=; b=CUPOPicZiNcmwo1kr44Ce87RmTktGHYkvQuhWcy3othzlDmEqq5rjkCGtvjf5QVoal er2g/3M3Nsk9uXhiOHq753Q/Dlk5IW+TMfWPgStjgwOf8ha9Zj189y06qb9OM/TeZNy+ 1PvOBHlU5NqZdRFxa9K3cNAidSQF12Lli5Z4T/xw4k9w9ZG3dyRVTwxOOoGI2HMdgwyb F/ktZY6RMzlUz4spbXBVDmq2+nSr3FoFUYBg1Mm1P185rTz1IiEiwU4jLaa3kcl6i5hz RWXezMgvJ1FeHUy/Q3RpEQIXs9CIEKP+tENYmbmzG6BZQBeDuB5tW4N7jF98tdL6O0xI KBPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aFJU8jeY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n26-20020aa7c45a000000b00443088b40b7si6713347edr.123.2022.11.06.15.38.16; Sun, 06 Nov 2022 15:38:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aFJU8jeY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230160AbiKFX2e (ORCPT + 96 others); Sun, 6 Nov 2022 18:28:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230024AbiKFX2c (ORCPT ); Sun, 6 Nov 2022 18:28:32 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62D19635B; Sun, 6 Nov 2022 15:28:30 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 18E94B80D69; Sun, 6 Nov 2022 23:28:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5E12FC433D6; Sun, 6 Nov 2022 23:28:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1667777307; bh=3Cd2pgUygkB4hpu5zj8Mcl7NTGFw2u8uR5Ty1Bp3ClQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=aFJU8jeYmL8IiEbZgaZyhNW9UdTViNEfDOvsC0oWDH9BVeKXZPcNbJFFf0fgreBJ+ UBd+dlQsh5BiyuBFTgHZCDWRc9igRo36Hyc08+4kXVSs6raLKXFVIY493qY20RZfxd 9FLc4rTF5lds3P4wWqSiLBB/4wuooo0rEMH6R8htn/Y6pu0sgubNg2QqcuTsaVQLAR 90KDqvKIX1Z8ZHkT56T+ZLXJIVZGAzELNPH7o/Fzp5sGz+RazF48gukFGXNpNfiTtN Mx8MZZEvOSXD+jsehkLmNPtMsM+itr+nDHYhEB4J2M/cozviqiNQYvQDXoBxDj+e5W 0G8RK88EHdYRQ== Received: by pali.im (Postfix) id 9A5F8858; Mon, 7 Nov 2022 00:28:24 +0100 (CET) Date: Mon, 7 Nov 2022 00:28:24 +0100 From: Pali =?utf-8?B?Um9ow6Fy?= To: Lorenzo Pieralisi Cc: Bjorn Helgaas , Rob Herring , Krzysztof Kozlowski , Andrew Lunn , Sebastian Hesselbarth , Gregory Clement , Russell King , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Thomas Petazzoni , Mauri Sandberg , linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v3 0/7] PCI: mvebu: add support for orion soc Message-ID: <20221106232824.du4uou6pf77rqu45@pali> References: <20220718202843.6766-1-maukka@ext.kapsi.fi> <20220905192310.22786-1-pali@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20180716 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thursday 27 October 2022 16:10:48 Lorenzo Pieralisi wrote: > On Mon, Sep 05, 2022 at 09:23:03PM +0200, Pali Rohár wrote: > > Hello! This patch series add support for Orion PCIe controller into > > pci-mvebu.c driver. V3 version has completely rewritten pci-mvebu.c code > > to parse all physical addresses from device tree files according to > > mvebu-pci.txt documentation, allow access to all extended PCIe config > > space registers and use modern kernel API pci_remap_cfgspace() and > > mvebu_mbus_add_window_by_id() fir mapping PCIe config space. > > > > Most of Marvell device tree code in pci-mvebu.c is giant magic, but it was > > there because this change and it is de-facto API between dts files and > > kernel used for a long time. Note that it is misused according to PCI > > device tree bindings, but we have to follow this Marvell bindings to do > > not introduce backward incompatibility issues for other non-Orion > > platforms. > > > > Mauri tested these changes on DNS323 board with both DT and non-DT builds. > > PCIe AER is working too (one of the feature which proved that access to > > extended PCIe config registers is working fine). > > > > After this patch is accepted we are planning to look at existing Orion > > arch specific code and covert it to use this new DT based pci-mvebu.c > > code. Later this would allow to kill arch specific Orion PCIe code, > > which is in arch/arm/plat-orion/pcie.c and parts also in file > > arch/arm/mach-orion5x/pci.c (shared with old-PCI bus code). > > > > This patch series depends on another patches: > > https://lore.kernel.org/linux-pci/20220524122817.7199-1-pali@kernel.org/ > > https://lore.kernel.org/linux-pci/20220817230036.817-3-pali@kernel.org/ > > Can this series be rebased please on top of v6.1-rc1 so that we can merge it ? IIRC above two dependent patches still applies on master branch and this patch series applies on above two dependent patches. > Thanks, > Lorenzo > > > Mauri Sandberg (2): > > bus: mvebu-mbus: add configuration space aperture > > dt-bindings: PCI: mvebu: Add orion5x compatible > > > > Pali Rohár (5): > > ARM: orion: Move PCIe mbus window mapping from orion5x_setup_wins() to > > pcie_setup() > > PCI: mvebu: Remove unused busn member > > PCI: mvebu: Cleanup error handling in mvebu_pcie_probe() > > PCI: mvebu: Add support for Orion PCIe controller > > ARM: dts: orion5x: Add PCIe node > > > > .../devicetree/bindings/pci/mvebu-pci.txt | 4 +- > > arch/arm/boot/dts/orion5x.dtsi | 51 +++++ > > arch/arm/mach-orion5x/common.c | 13 -- > > arch/arm/mach-orion5x/pci.c | 14 ++ > > drivers/bus/mvebu-mbus.c | 26 ++- > > drivers/pci/controller/Kconfig | 4 +- > > drivers/pci/controller/pci-mvebu.c | 202 ++++++++++++++---- > > include/linux/mbus.h | 1 + > > 8 files changed, 256 insertions(+), 59 deletions(-) > > > > -- > > 2.20.1 > > > > > > _______________________________________________ > > linux-arm-kernel mailing list > > linux-arm-kernel@lists.infradead.org > > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel