Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp5255512ybc; Wed, 27 Nov 2019 00:56:01 -0800 (PST) X-Google-Smtp-Source: APXvYqzVsfRZzfVoAuA7izTdRZEgyt6g861enqEfCT5aTkLBK1297g/4K50WsFa3T/a8rGtxwFn2 X-Received: by 2002:a50:91d0:: with SMTP id h16mr30351717eda.203.1574844961370; Wed, 27 Nov 2019 00:56:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574844961; cv=none; d=google.com; s=arc-20160816; b=dzTW2BLTIcEE8DXeyt5GoMKPCrRJXGooNVfEh73afntxfPt/FpeQPsBIcyrCTLB6p0 Bd2fe6+tr7tT6b8yTFI8V/eha68ZRxGwGnqokO6/uA/2wwBslsFGDkZ+1Icq9OnGNNHT /ULGo3TZeZz0jY4+6KlVq6rcQoeyQ09aTKBOb5Dp5iQX8AvgThlbFNk5Uz4RpuLqxggx OxdN4FGjrFUkfgH/1G3o6hKU/Z0KOBQkPc1ACKwuTMDecoV5D6ipT9PXLvnjbeQPGzYi 2S5drobeGlN4q9qzkXjugPpMMpfvsFzucg13+vRsMMwqMWAOj58/Q5qIqlAmGLT8TDnB sS4g== 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=Nh2dxRx63vcWkSlb8huMhXlhUaVYf5ZhZRKcUNrFHqM=; b=dIG4d4O8oVVUcOD6ceBzFhKJSX3YREXe1Pichs7CUgRVgpLWR4w04iTSfCwUnx9pXe LAGi+6lS89sU9a0beUgImwDmLC1F1w8meuc0/+TSdmP9hYZOzVrzitKpnsvUv0Jk8b+k FQHVFFLdRfguuQtnCpfsPhRSPF0C5MV7BIH4SLVzEme9NSIndaXIXl2GBlJnYBnv1vtc NHfh2ozdjsSeKWAvLUsyGHzdeQAs5vFZyg5ZDZjnO5ygnasyO+WMNTuRH0iwbM0c+hqI MlW4PqBYeCE2UL/XW8+0rpkyY8Pe28/XUVL7ECbGLt0tF68ohWL/m5YH7lP5Y2jJEfdP y+cA== 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 z16si10265556edd.314.2019.11.27.00.55.37; Wed, 27 Nov 2019 00:56:01 -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 S1726296AbfK0Ix5 (ORCPT + 99 others); Wed, 27 Nov 2019 03:53:57 -0500 Received: from verein.lst.de ([213.95.11.211]:44993 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726092AbfK0Ix4 (ORCPT ); Wed, 27 Nov 2019 03:53:56 -0500 Received: by verein.lst.de (Postfix, from userid 2407) id E4D1568AFE; Wed, 27 Nov 2019 09:53:51 +0100 (CET) Date: Wed, 27 Nov 2019 09:53:51 +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: <20191127085351.GA24676@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: > Maybe we'll simply force bottom up allocation before calling > swiotlb_init()? Anyway, it's the last memblock allocation. That should work, but I don't think it is the proper fix. The underlying issue here is that ZONE_DMA/DMA32 sizing is something that needs to be propagated to memblock and dma-direct as is based around addressing limitations. But our zone initialization is such a mess that we can't just reuse a variable. Nicolas has started to clean some of this up, but we need to clean that whole zone initialization mess up a lot more.