Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp2617413pxb; Sat, 19 Feb 2022 17:40:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJyGq3LchRLRTkBo6SjtEbLceXZrThWrmzpNYmhuO9ZZokCTatkcspbQ1rkDrPnKErMHAu7n X-Received: by 2002:a17:902:d708:b0:14d:cf6a:a9a3 with SMTP id w8-20020a170902d70800b0014dcf6aa9a3mr13751679ply.118.1645321207710; Sat, 19 Feb 2022 17:40:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645321207; cv=none; d=google.com; s=arc-20160816; b=B9vQ+6qL0oPGxQJjxQo1JUKOXnRIa/yXmULX4yc8K3XUfYMvfz01dJJXUOcEaw94fW Zpgp4sqZx1R1RhZg15EhTK6uJCCRuHFsuIx7V7QH+ynzfbS2ZRJtYOCjzNIQaGMYeyI2 XDmVOvSq/xnMUaSEnl0JDc+TUrcsF3zK9b/sBvRtZSiU1kk4daJ+x5mxOCdo/lIR91vB I1/ORAro3iqpEnjm5qNpgpStrtBQXahlumKBmEm2JBFpGFOSgTDoJ2iSfRco4rM+Hf2o EIbfxeECJojvqH3OgjYaivwXSYgRbJAhSiugWoIs/Wbp8dZwjm4BEmTkOXpCpEuPwDzf bTNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=OKlx/FClzpOEQUKVzcalOiKnCJi/40i0qewDv8BgHPk=; b=XPrR2gUTv1k1MjXulsq+igVt4C3jl+c0dBarbvtayU71KZY69js6uq7x9YlubcmaDJ ffwB3lXuuzdVPO8CI0nek5MhClmZgro5pfTnzhHhBfCcOEivq5Md8kLJYu034n1y3ZFc 8wLqwFU/F3VZEzp0Jc/3N4xakhpuCi0MkKOoS79t34DKCoJ4IDscdJD0D9+KaOx+c6JL 0AsP3Q1z6BccMxzKXJLtSPHjlnsiyKprl4iVCeNjUuH09bZ9a+7vtVj7//pD1dbzIu2B aMMsBKfcIcAD06VvJvstWNN5wTb6Cn7gar/NWsma+B9Kj/9bF/QoVpIx4UdWA+PzsKT4 VTCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iZZfI8YV; 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 u64si6272907pgc.486.2022.02.19.17.39.50; Sat, 19 Feb 2022 17:40:06 -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=iZZfI8YV; 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 S240168AbiBSLfL (ORCPT + 99 others); Sat, 19 Feb 2022 06:35:11 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:45742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239587AbiBSLfK (ORCPT ); Sat, 19 Feb 2022 06:35:10 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6B641B127C for ; Sat, 19 Feb 2022 03:34:51 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 58E2C61151 for ; Sat, 19 Feb 2022 11:34:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7D50FC004E1; Sat, 19 Feb 2022 11:34:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1645270490; bh=OKlx/FClzpOEQUKVzcalOiKnCJi/40i0qewDv8BgHPk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=iZZfI8YVIrxGEKJgw6YE1friXXRNqMKmn+EZ2pOmjl6e7iv1dR4smYUJ0TIql5N4h 55GAF2aF8BVJCtcItJP9eLMLN92paTVJq12ToiaTP+cI7k1uiRZZVPYJufrJt/N106 Uk5l4hpylO7PLV0ffa6IJzlcxTnldY2nfIytL6aCeiuUKw2mUhYrYPRDTuV1JbZDa7 4K3nFTdepXCh8rKgIoeOIuZr78nZMe7Ub9VsIOHJlqZbVt4MRo5QeCPZOhIlTWmpQW GROHThbBgFeZIzalITvuUY7SVyCQstk9RlbHBltyI0OWixRVFUaf8TPJmiV8zTgdWV MCPml7EByuZ2A== Date: Sat, 19 Feb 2022 12:34:45 +0100 From: Marek =?UTF-8?B?QmVow7pu?= To: Pali =?UTF-8?B?Um9ow6Fy?= Cc: Andrew Lunn , Gregory Clement , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] arm64: dts: marvell: armada-37xx: Remap IO space to bus address 0x0 Message-ID: <20220219123445.14940a12@thinkpad> In-Reply-To: <20220218212526.16021-1-pali@kernel.org> References: <20220218212526.16021-1-pali@kernel.org> X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-7.2 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,T_SCC_BODY_TEXT_LINE 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 Fri, 18 Feb 2022 22:25:26 +0100 Pali Roh=C3=A1r wrote: > Remap PCI I/O space to the bus address 0x0 in the Armada 37xx > device-tree in order to support legacy I/O port based cards which have > hardcoded I/O ports in low address space. >=20 > Some legacy PCI I/O based cards do not support 32-bit I/O addressing. >=20 > Since commit 64f160e19e92 ("PCI: aardvark: Configure PCIe resources from > 'ranges' DT property") this driver can work with I/O windows which have > a different address for CPU than for PCI bus (unless there is some > conflict with other A37xx mapping), without needing additional support > for this in the firmware. >=20 > Note that DDR on A37xx is mapped to bus address 0x0 and that mapping of > I/O space can be set to address 0x0 too because MEM space and I/O space > are separate and so they do not conflict. >=20 > Signed-off-by: Pali Roh=C3=A1r > Reported-by: Arnd Bergmann Reviewed-by: Marek Beh=C3=BAn