Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2537246ybc; Sun, 24 Nov 2019 23:43:07 -0800 (PST) X-Google-Smtp-Source: APXvYqwUpSdG5dyClfRvX6KQ2/Risczu/aWZiUGYeotno+HACqK69QrGl8/1l/EpYdbaYSwDbPjz X-Received: by 2002:a17:906:1d59:: with SMTP id o25mr35198011ejh.17.1574667787475; Sun, 24 Nov 2019 23:43:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574667787; cv=none; d=google.com; s=arc-20160816; b=JMzhjBWN89SdabePKxpmyUxpr/yyub+wDDwaZzGCVFGee+pWsMxlkXNMB5sdPQN3Xa p29Xw+F69s6Jg2wPUZCcPRyCzr44UdoBufBblxjnf0js4Ft1FdUaMygF1WaJ6xIp0487 6/tluOOtYi8oKZeIt9Z+AUF6PA0szgK6jEWHuCTnuFK95peuXA2GRgewjJYXsaGfDM2A A2snJhHtlCOfXJCTTJm+7MOX5NX2AAV0DDSmDyoNJ7y6QH59krfXoslKOE0zyySN/wFF XHBHOaiDrSyDhJ/vaJX4aJBNn8/kYyXTimFO19QI2EJmgDxWiaXYgnXUr0ReI1WI/1RE s/8g== 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=OuZ6MiFRAJbNIY5PN65umGNOp+RzgTbmCYelKfkPv9A=; b=AeKuSrDJBDyxlbQJG9svepKlFMy4rUzaospUBPPrBjythQ1q0rQh+n6v7EuNDyrUZP NJAJecvy5Y7rNq7F8Y9IMIcIsA/qhNGoSYUrAJkQOCe1FD6Qqub2/QQwC4t1bdhtovvc VTti1ubJhdiGgeRqI2x8yIOE3zGvWzxWRtl32iQ7nO22EuPi0iQe2J9hi1YcuzCS3/gh r4O66EDupPYm+n+tcLLzGym/ULwsuC60tKU7IAe04jDWeFW0RgP0f8R5e9m43h27kICs 8HnzAq/36okydj7X3Q4ByTmOeDi4sceTC4YP7oU/twtwVWEWr8xGh4WpowhBXLmmpSrN GkxA== 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 o28si4792063edc.353.2019.11.24.23.42.44; Sun, 24 Nov 2019 23:43:07 -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 S1726118AbfKYHjb (ORCPT + 99 others); Mon, 25 Nov 2019 02:39:31 -0500 Received: from verein.lst.de ([213.95.11.211]:34632 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725763AbfKYHjb (ORCPT ); Mon, 25 Nov 2019 02:39:31 -0500 Received: by verein.lst.de (Postfix, from userid 2407) id 0B29A68C65; Mon, 25 Nov 2019 08:39:24 +0100 (CET) Date: Mon, 25 Nov 2019 08:39:23 +0100 From: Christoph Hellwig To: Christian Zigotzky Cc: 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, Mike Rapoport Subject: Re: Bug 205201 - Booting halts if Dawicontrol DC-2976 UW SCSI board installed, unless RAM size limited to 3500M Message-ID: <20191125073923.GA30168@lst.de> References: <20191121072943.GA24024@lst.de> <6eec5c42-019c-a988-fc2a-cb804194683d@xenosoft.de> <20191121180226.GA3852@lst.de> <2fde79cf-875f-94e6-4a1b-f73ebb2e2c32@xenosoft.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2fde79cf-875f-94e6-4a1b-f73ebb2e2c32@xenosoft.de> 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 Sat, Nov 23, 2019 at 12:42:27PM +0100, Christian Zigotzky wrote: > Hello Christoph, > > Please find attached the dmesg of your Git kernel. Thanks. It looks like on your platform the swiotlb buffer isn't actually addressable based on the bus dma mask limit, which is rather interesting. swiotlb_init uses memblock_alloc_low to allocate the buffer, and I'll need some help from Mike and the powerpc maintainers to figure out how that select where to allocate the buffer from, and how we can move it to a lower address. My gut feeling would be to try to do what arm64 does and define a new ARCH_LOW_ADDRESS_LIMIT, preferably without needing too much arch specific magic. As a quick hack can you try this patch on top of the tree from Friday? diff --git a/include/linux/memblock.h b/include/linux/memblock.h index f491690d54c6..e3f95c362922 100644 --- a/include/linux/memblock.h +++ b/include/linux/memblock.h @@ -344,7 +344,7 @@ static inline int memblock_get_region_node(const struct memblock_region *r) #define MEMBLOCK_LOW_LIMIT 0 #ifndef ARCH_LOW_ADDRESS_LIMIT -#define ARCH_LOW_ADDRESS_LIMIT 0xffffffffUL +#define ARCH_LOW_ADDRESS_LIMIT 0x0fffffffUL #endif phys_addr_t memblock_phys_alloc_range(phys_addr_t size, phys_addr_t align,