Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp198134ybl; Wed, 4 Dec 2019 00:57:22 -0800 (PST) X-Google-Smtp-Source: APXvYqz4jXqbTsdm6A9OV9eypkM2/0DkCef7A1mZ7Wd+DoVnLZiZk5ZLEZqyRPkcWcEopzF9XWE7 X-Received: by 2002:a9d:73d2:: with SMTP id m18mr1583001otk.150.1575449842810; Wed, 04 Dec 2019 00:57:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575449842; cv=none; d=google.com; s=arc-20160816; b=wXDq3RBIMOLq6s38qj8FBGKXjCJ0CL1G7mCoIpmDgZ2pQc/mJCVanR4eS44HoTBvXf SVX5zVXbK5JuqfOe7JW0avQPLkyj4j1GOHC2qDi0eHnoZSV2QkfmvFaowedv4IW1snXQ +nqDolZBwQxgQeVxPTtdyiAQBhstVfLyo8INXbGQDQ2Z1NC8OkEHGKKmkOgpC9+MZoTm zXMklWaiPfsn04f8G8sdg1LQ1B22p88BPSeOzAfvDcDEF/orzLws/5Q0PX6S5NRuIDaH Xx3gHREzISeOyrHnFkRj5m2sQ82B2iG/2VGIUqkOjL2O58PKlo0UhkPmNlRT5pAe18pU X+gw== 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=lCCh04lvePiJPnKtjKcFQYoObsbcCg1xFXon+q15TBw=; b=LVKp0lTyPHazfVcAi2l/83O4Gvsli/jJsM7p8E+EJ4H+76iYpX7LBJ1ghhZg5aiRmn n/bqwme96w7JDkIaZOOnzM7eJehiPY5BZ/5/XagWntDtvHkFfEjEm4iiVFVYZ45B1GVW Eo+wcyp6bYshcLG/+05pUMPfvbjdRAjjLY+GVq9yQzcY4Jkuf93GBsSqORYFa634JBuZ yjieCpkYZNrHMSJtr8srGBS1gS/MnymBFx1gXwQfPx0mGY9VmQVfbz0MlJ3SwW5wPuk0 8Nafsxs4RZmlAi+yt3WzEd55VjJXIVNi+BqPdNPwPaoZuN7lNq047JGXxF9U18PMvlC0 qA4g== 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 z23si2906505otm.284.2019.12.04.00.57.09; Wed, 04 Dec 2019 00:57:22 -0800 (PST) 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 S1726923AbfLDI4i (ORCPT + 99 others); Wed, 4 Dec 2019 03:56:38 -0500 Received: from verein.lst.de ([213.95.11.211]:47963 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725839AbfLDI4i (ORCPT ); Wed, 4 Dec 2019 03:56:38 -0500 Received: by verein.lst.de (Postfix, from userid 2407) id A08A768BFE; Wed, 4 Dec 2019 09:56:34 +0100 (CET) Date: Wed, 4 Dec 2019 09:56:34 +0100 From: Christoph Hellwig To: Mike Rapoport Cc: Christoph Hellwig , Christian Zigotzky , Robin Murphy , linux-arch@vger.kernel.org, darren@stevens-zone.net, mad skateman , Benjamin Herrenschmidt , linux-kernel@vger.kernel.org, linux-mm@kvack.org, iommu@lists.linux-foundation.org, Rob Herring , paulus@samba.org, rtd2@xtra.co.nz, "contact@a-eon.com" , linuxppc-dev , nsaenzjulienne@suse.de Subject: Re: Bug 205201 - Booting halts if Dawicontrol DC-2976 UW SCSI board installed, unless RAM size limited to 3500M Message-ID: <20191204085634.GA25929@lst.de> References: <6eec5c42-019c-a988-fc2a-cb804194683d@xenosoft.de> <20191121180226.GA3852@lst.de> <2fde79cf-875f-94e6-4a1b-f73ebb2e2c32@xenosoft.de> <20191125073923.GA30168@lst.de> <4681f5fe-c095-15f5-9221-4b55e940bafc@xenosoft.de> <20191126164026.GA8026@lst.de> <20191127065624.GB16913@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191127065624.GB16913@linux.ibm.com> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 27, 2019 at 08:56:25AM +0200, Mike Rapoport wrote: > On Tue, Nov 26, 2019 at 05:40:26PM +0100, Christoph Hellwig wrote: > > On Tue, Nov 26, 2019 at 12:26:38PM +0100, Christian Zigotzky wrote: > > > Hello Christoph, > > > > > > The PCI TV card works with your patch! I was able to patch your Git kernel > > > with the patch above. > > > > > > I haven't found any error messages in the dmesg yet. > > > > Thanks. Unfortunately this is a bit of a hack as we need to set > > the mask based on runtime information like the magic FSL PCIe window. > > Let me try to draft something better up, and thanks already for testing > > this one! > > Maybe we'll simply force bottom up allocation before calling > swiotlb_init()? Anyway, it's the last memblock allocation. So I think we should go with this fix (plus a source code comment) for now. Revamping the whole memory initialization is going to take a while, and this fix also is easily backportable.