Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp1520179pxb; Fri, 18 Feb 2022 09:24:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJzmiaf0/+uUil8SImyiuSCwP7v3vwFmHDLrJKLNnk6hhsR7gLKWYsHE+t/rLaolhrV6RsX7 X-Received: by 2002:aa7:9735:0:b0:4bd:b258:e872 with SMTP id k21-20020aa79735000000b004bdb258e872mr8777649pfg.46.1645205059395; Fri, 18 Feb 2022 09:24:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645205059; cv=none; d=google.com; s=arc-20160816; b=tLiDqZdOuU0mrT0JCMjc6bpGN5wXY88DlaKhQnPdXTf0DO21KaUK4mioqbCAzR2tZL 5o+o8OE597/7XA0DfYAuFjpwQF+a4x8SReZGgfzMob0ztnUMPuqfnbr8zfRbcQG+b5L6 sVnKiVtLwCRS3GrJhsKYYvYzew+AcnuTbKqMOfpJx6Ia2UAUDrbG20cOrmKQPvEWN64i c7If+bvLXXkVwg0ZBlpgvZKBz2lOZjZXZ6tj1EeepJJwv21rb3q+uIpyTZeiE8+u04cp r5EVGLzkcMn33tgUNpkidpcco9tHCaLZLG9Kz7/5v9pig6AJncn/fwdSuS1nSS2UFshc A2qA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=l1dR1u8oN6tzKJ2cnu+oKEisPieOTtp6a2nTmI7HGGE=; b=UR1pl7Eaq+uoFkb9/QpsiirGat5EbQyiQCbukeA9rlYrJ3zY/Tn4kQkpNhy+Y/rjzt N8esWVSESpsRKfh/yttcu81ujkannNU/YuqDWVv3R3uxyJzOlAgy0ggOC2SNEPI1MLRG F5MJd0r0ihGu5Ij1hypYjiL8zl9dzBIQ3bCV6qV686t6ACwvKKkCGj81R7U8T90IIsfF Rs8hXV/11mtrCpA35+JMafLy7bUwaxzuT+Hrp1KXjV4gxAmUi1/3doYZOMJdMETxiBiW MI4Q46pr2UqxRvXor3zF10h2RY2HrxgcUMWJAhfDOrCCu4PvKN5zyKt6SioL6J5U3vQ8 Ey1A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z192si2804370pfc.363.2022.02.18.09.24.03; Fri, 18 Feb 2022 09:24:19 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238054AbiBRQnl convert rfc822-to-8bit (ORCPT + 99 others); Fri, 18 Feb 2022 11:43:41 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:37932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234214AbiBRQnk (ORCPT ); Fri, 18 Feb 2022 11:43:40 -0500 Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9672523191E; Fri, 18 Feb 2022 08:43:23 -0800 (PST) Received: from mail-wr1-f46.google.com ([209.85.221.46]) by mrelayeu.kundenserver.de (mreue009 [213.165.67.97]) with ESMTPSA (Nemesis) id 1MEVBa-1nVb073iJ8-00G0Xa; Fri, 18 Feb 2022 17:43:21 +0100 Received: by mail-wr1-f46.google.com with SMTP id i14so15505233wrc.10; Fri, 18 Feb 2022 08:43:21 -0800 (PST) X-Gm-Message-State: AOAM533KCBp9cfGSfaeNhC/xkomehwEVEK/RVeRToK64sowAqKKKJ5sd EyPuZH0FFbIuBMi0gDipcKGEW3HWGysJe2FpqV8= X-Received: by 2002:adf:c406:0:b0:1e4:a5ae:34a3 with SMTP id v6-20020adfc406000000b001e4a5ae34a3mr6918358wrf.407.1645202601511; Fri, 18 Feb 2022 08:43:21 -0800 (PST) MIME-Version: 1.0 References: <20220113170755.11856-1-pali@kernel.org> In-Reply-To: <20220113170755.11856-1-pali@kernel.org> From: Arnd Bergmann Date: Fri, 18 Feb 2022 17:43:04 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] arm64: dts: marvell: armada-37xx: Increase PCIe IO size from 64 KiB to 1 MiB To: =?UTF-8?Q?Pali_Roh=C3=A1r?= Cc: Gregory Clement , Andrew Lunn , Sebastian Hesselbarth , Rob Herring , =?UTF-8?B?TWFyZWsgQmVow7pu?= , Linux ARM , DTML , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Provags-ID: V03:K1:4M5UZfLM60QlGjKrHZAErX2tEmSvIBbWz5fsxkzKo1WtRaOEwll 4x/PeYB4D5BNUoJBVIjgYznYIf43JeH2M1T1P12hmC+9akv3Ei8oSDHQ1X/tBJJ4Oorzip8 coJInlkwrg8mrXxYz1TMofoX0bIdg2fwqPO5SoVUq/intsgmzBC4jR8Umf7J0BeC7Df8hEv AdFAD/XNQUEhwmzSavAxw== X-UI-Out-Filterresults: notjunk:1;V03:K0:clAO1iAF50Q=:ghn77pxIagHZbjCyBKMTHe wSfXnErKGCGokZrbipsHRxA9IDwHlW1VM+EIXokHnD84W+kJQpfacF37W5Uptbqq4XQprKgQY Q0J6d2uUa6pYZD0XAdARTLp0vKLqBl63uiXRtCY1ztMAK7/vmBKibb0l21VxADUQM/YFXli/S ZGLlVSyh8HJnPj7GJom9p8Xrda1whD6ruekewloeAUCXFJleDOVK2xoEgfOjFKSJACsPFZEJx JwGr3gOU0oR5CuZKgF07Z5Od2naYLfYWF4TXHqFq4dFNmoV2bVm04fLz/W7v9IZNFZc6EphpQ KjwyLlp4YW01m+BdNUpt9UtLjTydNGTJkthswDO5hJqKlsHq2MJu6Sc8XNuNCz04ioN9onNHn 5SHWVKu4KdMjElLEEp+94KovNio1+JVz/EqXJiK/2usoc84wQYEucDASkUYDgln7M7SMj9Caq zGfdSFBtXF1w22TmyDBV9zRjt1bSaEk/4F7BACGv1ITeGv4yfiDgv+D5oktF6OCLrPyN7qcdX /86NNVOjk+dYIL2hZ36XRTQVOuMNfcQy7CvQUQexm+yj/IpPFUXCIrHLcvulvPMusgs3aeuY/ AA4RQyI2Oa1svvsRoajLY576O7eZYH0wX/k7hQegUSx4jJ0eLf2Z9Yy9kXwv+AOC2K+qpgu9J arzReH47kKjT/09xwsoNDq0lVJQf9vhl+ofQnVv7zf44epu/fZXjhZ8TiNSsbI/bVvhKGqOyJ USaQxr90OlgAFUfoXfsHMd42bHz/GnnEXbiERsnx8WCO2RumOQqdn5pCrEkWQxJgm158NRXNU H8V5GZHHlDsIMy6yhFmBsLLUWAnfOkAbZw+3JjFWEHOpC7XkJY= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, 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 Thu, Jan 13, 2022 at 6:07 PM Pali Rohár wrote: > > Commit 514ef1e62d65 ("arm64: dts: marvell: armada-37xx: Extend PCIe MEM > space") increased size of PCIe MEM to 127 MiB, which is the maximal > possible size for allocated 128 MiB PCIe window. PCIe IO size in that > commit was unchanged. > > Armada 3720 PCIe controller supports 32-bit IO space mapping so it is > possible to assign more than 64 KiB if address space for IO. > > Currently controller has assigned 127 MiB + 64 KiB memory and therefore > there is 960 KiB of unused memory. So assign it to IO space by increasing > IO window from 64 KiB to 1 MiB. > > DTS file armada-3720-turris-mox.dts already uses whole 128 MiB space, so > only update comment about 32-bit IO space mapping. > > Signed-off-by: Pali Rohár > Fixes: 514ef1e62d65 ("arm64: dts: marvell: armada-37xx: Extend PCIe MEM space") I just saw this is the fixes pull request, and it seems very odd. Does this fix an actual bug? Note that Linux normally doesn't map more than 64KB of I/O space per PCI domain, so it should not make a difference to us. Also, note that having a high bus address for the I/O space (0xefff0000, as as the CPU physical address here) means that a lot of the older devices that actually require I/O space won't work, because they need a low bus address in the first few KB. Is this mapping a requirement from a broken bootloader, or can you change the mapping of the I/O port window in the physical space to the usual bus address 0? Arnd