Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2516664imm; Mon, 24 Sep 2018 05:47:47 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZ7Yj1ED1QOkNOsEjhwMWWI5Jw1u1N2iPY7msVfdj/ZO1iNShvEFp5artfJevhh8rp2LevX X-Received: by 2002:a62:d44a:: with SMTP id u10-v6mr10201812pfl.144.1537793267865; Mon, 24 Sep 2018 05:47:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537793267; cv=none; d=google.com; s=arc-20160816; b=K6vPkiT81yYz+ialxBO54fG1k3lnpnoBufHsom5PiO88QEspLP4/7u4a0KwuLUze3j sByN2fQcUFPMsRIzqeS8Sgs4JPAb1lJfQhLEV01rGIi4lnUedorlWuTPuiISklWwo8js PU9jUcS29OyQ01hQFot7hb6XtfaizD2uo5KNzHnekRtdHwHCW12Y8ZTjNNIEmaI0cyM7 UCAn7B1kxBRrwBJMYjCe2kE1fc/VM8E/HVvzRinjaHrqeFVNXwqRe/qDI1q6uFjYQ4l+ TXZorfA3nd/DnwW6qUcJGxog1GFKI/c2Iy/3wqGliBGduZ+toCS6e/IL6iZ7ihmEXWhB hmOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=qkjXR0yAezInFA5PmLPc1U6hssHu6bLFngPR7btVNHo=; b=gfCgK3WQDiVWjjCPl9DhPL4Z4BQKB9DHLAy5dI0BvoHuzkrJVdcEhLkmVZzAI2VLFC dfFves90SNAxQECv2w9G+P9GQU9CEssuDTqKCZ2nB1WKVtKJITZOPfbOGrntE+cQVEgT AeYYvYYdox2HarWvBsuvepQVTrWYkTt8BlupzrXmfSxURFV5bOxJxIUwH9/1O4WMWFau omCyEPheHX+6j+9dQ0Ns/LkWScuLjxLwDY60pH7cOt0iFZTT5aL6HoFNCIPN7DB81RIV RmCFwLGxzltrPzaSVFcad4HbCHcAQNupvPZRvw7Vbnu17GCSxSRp9TiqdcCcIbSg1XNn Yl0Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b190-v6si36044035pfg.94.2018.09.24.05.47.32; Mon, 24 Sep 2018 05:47:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730534AbeIXSsk (ORCPT + 99 others); Mon, 24 Sep 2018 14:48:40 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:34610 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728387AbeIXSsj (ORCPT ); Mon, 24 Sep 2018 14:48:39 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 61F5E18A; Mon, 24 Sep 2018 05:46:40 -0700 (PDT) Received: from e107981-ln.cambridge.arm.com (e107981-ln.Emea.Arm.com [10.4.13.117]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BA2243F5BD; Mon, 24 Sep 2018 05:46:38 -0700 (PDT) Date: Mon, 24 Sep 2018 13:46:29 +0100 From: Lorenzo Pieralisi To: Thomas Petazzoni Cc: Russell King - ARM Linux , Jan Kundr??t , Baruch Siach , Jason Cooper , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Bjorn Helgaas , linux-arm-kernel@lists.infradead.org Subject: Re: [BISECTED] Regression: Solidrun Clearfog Base won't boot since "PCI: mvebu: Only remap I/O space if configured" Message-ID: <20180924124620.GA10322@e107981-ln.cambridge.arm.com> References: <61fdfd69-2bb6-478c-b0d5-69d8744adae3@cesnet.cz> <87zhwm4kl6.fsf@tkos.co.il> <20180912231050.GX30658@n2100.armlinux.org.uk> <20180913094515.351967bb@windsurf> <5ad46fec-a71a-477a-b23f-d20aacfb481d@cesnet.cz> <20180913104241.65db8243@windsurf> <20180924101213.GO30658@n2100.armlinux.org.uk> <20180924122614.70738b5c@windsurf> <20180924111341.GP30658@n2100.armlinux.org.uk> <20180924141203.3df9707a@windsurf> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180924141203.3df9707a@windsurf> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 24, 2018 at 02:12:03PM +0200, Thomas Petazzoni wrote: [...] > > Trying to address a regression with further development means that > > _that_ development needs thought and review, which is a slower > > process. > > > > I do understand the desire to keep moving forward and never take a > > step backwards, but sometimes backwards steps are the best way to > > resolve a regression. But I also do appreciate that a simple revert > > in this case is not possible. > > Well, I can revert: > > 42342073e38b50113354944cd51dcfed28d857a1 PCI: mvebu: Convert to use > pci_host_bridge directly ee1604381a371b3ea6aec7d5e43b6e3f5e153854 PCI: > mvebu: Only remap I/O space if configured > > so it's not a big deal either. I can revert those, and then resubmit a > more complete series later on that moves pci-mvebu to use > pci_remap_iospace(). > > > I'll accept your patch on the condition that the ARM private > > pci_ioremap_io() will go away in the very near future (please _try_ > > to get agreement on that before this patch is merged.) > > Bjorn, Lorenzo, what do you prefer ? > > If we want to get rid of pci_ioremap_io(), then we need a way to tell > pci_remap_iospace() the memory attributes that should be used for the > mapping, because on Armada 38x, we need to map the I/O space mapped > MT_UNCACHED instead of MT_DEVICE. I'm not sure how to achieve this yet. > Should pgprot_device() be changed to return MT_UNCACHED on a > platform-specific basis ? Any other idea ? I think we should address Russell's concern, he has more insights into code that predates the PCI host developments. What I think you can do short term, given that AFAICS MVEBU is not removable, instead of using pci_host_probe() you move part of its code into the driver and make sure that you remap IO as last operation before probe completion (ie after scanning the host bridge) so that you do not need to unmap it on failure; write a commit log summarising/linking this thread please and when v4.20 lands we will give this a more thorough look as Russell requested. How does that sound ? Thanks, Lorenzo