Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp254997pxm; Wed, 2 Mar 2022 14:42:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJyTFBTrhsdg2nhMNEx2X6S6q1KejZnZcHCRzR314G656otbtaamue61oCeuUIFqdA9wrsXt X-Received: by 2002:a17:90a:fb4e:b0:1bc:8227:edd9 with SMTP id iq14-20020a17090afb4e00b001bc8227edd9mr2093809pjb.56.1646260933459; Wed, 02 Mar 2022 14:42:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646260933; cv=none; d=google.com; s=arc-20160816; b=wXnn3Xayis17BbqQQ0ipbaylkqw77v3Xzd8IP5h8/YjvZZ6zg9ccXReMlkJwiDC+4r P/5bqWSlGv1lyA+dV6qZiIe6tcpCvVcH3gXM5a9/gBaO3JpfFtwsJbvYlC71AL54eqhQ tMoLy0reDmJOL3wY6R+DC8SLpXR11YiFuccEmufI0/yFxXTgFvTbWCzsz8pekxMDfJuD XtjioL1UCMhZrMrJF2L91gb9yF4raMJCxZ2VD+T8D7MJEQS88LXIahbKoUlLAY9qxHAJ bVMxXts7F7zKyMYZiymC/03qdMku9C6ScCPeeLS/y6KlPLgY/3Wjy65mkP6EkUYWuuqW eh4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=HAXyBFQgUVdxAmj2m4irVlIbi28ci3NyzG6w9FJrnpo=; b=CYvunRPy3kP9PajwFvcLu61HqWbiqu7gQSJR2NDvrdns0hsudOTinkYJg28nVhITEd giGZqauj134klOlNeNRr4rKEUVFSZ+doNESv+UaRJXJe8t+m5KcQCTz95ERrcJgw+o1D 8b5WBb8oIG/xXMHBlpctUzvPm+6CibaEw0GoS7OEt0WcTjL+ovGcj1NePqH50tiw38Ju vHhkrdYxjsgEWYgpRHWw+asKW4/hvcc3nZbeTan8+GtqRE+UxhjtEcAWlw+u6VBp29jt BBRsxJLhJXwqDWNgg4kvO/H/GVvP87m8ADb8oAucn0yETwp3Tg4mZ+WHvJj2vnMM6Co0 VDWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=ix3QAKfO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id q15-20020a170902eb8f00b00151559fadd9si284215plg.265.2022.03.02.14.42.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Mar 2022 14:42:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=ix3QAKfO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CCB0B654BC; Wed, 2 Mar 2022 14:37:20 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233171AbiCBNGx (ORCPT + 99 others); Wed, 2 Mar 2022 08:06:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229663AbiCBNGw (ORCPT ); Wed, 2 Mar 2022 08:06:52 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05D85C2483 for ; Wed, 2 Mar 2022 05:06:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Transfer-Encoding:Content-Disposition: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:From: Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Content-Disposition: In-Reply-To:References; bh=HAXyBFQgUVdxAmj2m4irVlIbi28ci3NyzG6w9FJrnpo=; b=ix 3QAKfOb8taZ760/sB/w2raFHrsngAJA8L5gR74OL/nRn6OUBvjrWuYS32V+6EHZ0RKy1gA24JcdIL aTztDAnnTRSYOD0Knn8/3nqZ6LtPrUrfp0eILKXNhbjfDkcmA4gSM5qjvP08Tbkp+CDUL4MRQ/Y6m 24+fWWWL/ZjBdPk=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1nPOg5-008ux4-Vz; Wed, 02 Mar 2022 14:06:01 +0100 Date: Wed, 2 Mar 2022 14:06:01 +0100 From: Andrew Lunn To: Pali =?iso-8859-1?Q?Roh=E1r?= Cc: Gregory CLEMENT , Marek =?iso-8859-1?Q?Beh=FAn?= , 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: References: <20220218212526.16021-1-pali@kernel.org> <87o82r0zjh.fsf@BL-laptop> <875yoz0wpw.fsf@BL-laptop> <20220301092539.lru7hsaqxrjqz32r@pali> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220301092539.lru7hsaqxrjqz32r@pali> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Tue, Mar 01, 2022 at 10:25:39AM +0100, Pali Roh?r wrote: > On Monday 28 February 2022 17:42:03 Gregory CLEMENT wrote: > > > Hello Pali, > > > > > >> 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. > > >> > > >> Some legacy PCI I/O based cards do not support 32-bit I/O addressing. > > >> > > >> Since commit 64f160e19e92 ("PCI: aardvark: Configure PCIe resources from > > >> 'ranges' DT property") this driver can work with I/O windows which > > >> have > > > > > > Should we add a "Fixes: 64f160e19e92 ("PCI: aardvark: Configure PCIe > > > resources from 'ranges' DT property")" tag ? > > > > Waiting for your confirmation I tried to applied it but it failed. > > > > Did you base this patch on v5.17-rc1 ? > > > > Gregory > > Hello! This change is breaking booting of Turris Mox kernel with older > bootloader due to bugs in bootloader. Do you know what actually goes wrong? I've not been involved in the discussion, but looking at the comments above, not changing the space can result in non-working cards. So it does sound like something which in general we want to do. Does the current code assume the bootloader has initialized some registers with specific values? Can that be moved into the driver so it also works with older bootloaders? Andrew