Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp4223868ybc; Tue, 26 Nov 2019 05:54:19 -0800 (PST) X-Google-Smtp-Source: APXvYqxu7Mz+QWosVRdZlC5foD2+vOMcWA4oZOzSs5+adohpR10UapAZ28Hmx0qeO1RDeOorPnC7 X-Received: by 2002:aa7:d1c9:: with SMTP id g9mr24829871edp.162.1574776459102; Tue, 26 Nov 2019 05:54:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574776459; cv=none; d=google.com; s=arc-20160816; b=J+5Z1g1rauSNtcEHlcaBOalZO6zeHMmz9wlZAof1Za/L812w/vcyjgdv4LVZD+rhE3 kXRGSt3V5yON+jXi8MuJGq5ak+I2jhkl1OQWHGqYSoLfftyoOCH7ssK3Hr5I0aGnj1ZU RkXHKrdvj45QLJu7m0xNXiBZxghCz1SG9R4G5YzKZEYzWF8JOoW6+RT1qLaUBDG7Poc1 YH7hGd6b8H4HFJG7ftb1SAR51cDO521ccpRstsObJacTAdkNXJ/r0uaXxacdhhO4IFOg IHh9LcMscYcXz26+QtR1BJG5YQoEDEqHOqgZRrYW0/R/j5ERMsPrUgX94mB7b+fFevit pftQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=XMLW3ZOSKguCOTt53NHCRHDrLj4NFW5PozSyNNqJ0vs=; b=wguWK2v3vXA7CjpTNL99LrtK1Lpyt1DM/xg71AscWa3Vlhsq/0NPghnJBVTnCui5dK kOJzqeL4uVHsXaH1CbqUA6y/b7awewGaBKUJCk3a2kbIbEPT1Z5nzZ0K5F7eVMZhAtox yqJykUAqihisoQAm35KVhlR9jkDPzIJpD19D9y5NamGCneEvpQAEH/atcunFp3lv2yjb gqUZfhbE3GpkzpXIfyEaOOs5KGC7pZLfu0XXzya3rMymUk1h12MCb2LNrA7JaCZyS6+g g6l2SqSCVHomhiI2KxE8dndHRpqAqqfkwNPM8fd03huedS3MVVHxz2RAvfDNFobpaaPF xN8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@xenosoft.de header.s=strato-dkim-0002 header.b=bYH485Jb; 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 x70si7875227ede.257.2019.11.26.05.53.54; Tue, 26 Nov 2019 05:54:19 -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; dkim=fail header.i=@xenosoft.de header.s=strato-dkim-0002 header.b=bYH485Jb; 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 S1728115AbfKZL0v (ORCPT + 99 others); Tue, 26 Nov 2019 06:26:51 -0500 Received: from mo4-p01-ob.smtp.rzone.de ([85.215.255.50]:19691 "EHLO mo4-p01-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727218AbfKZL0u (ORCPT ); Tue, 26 Nov 2019 06:26:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1574767608; s=strato-dkim-0002; d=xenosoft.de; h=In-Reply-To:Date:Message-ID:From:References:Cc:To:Subject: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=XMLW3ZOSKguCOTt53NHCRHDrLj4NFW5PozSyNNqJ0vs=; b=bYH485JbLwz1bszGtiXeBrDFh4fHScz447YzQX6J4grHvueCpKZk5y05E5RApxxzdD JU2yBBjNeFGeMtvbNexzBk/XKlHiIavBzH9oV8TNFyWutpRofgSriFosoGJ3dUesKbfX jiXn1R2tAVyDMpNT4167+ykVo1C2Dm1+7LTc5Ni7OahCD4+xqkrVlgvqmrIaAdIiFnk2 FSV/S0qS+xwuE8dJgkJV1Xgv8Pphtc+iP93KSa4sZi+/vsF+fE77R+fHHZm9ThybAzVQ eFPdWDR0wUQaK3BiuaqaNLZ6q2wAYGsrmjDQwFDL2GDw63OwftUXcfqW6bK2QrIzn9ZN eUUw== X-RZG-AUTH: ":L2QefEenb+UdBJSdRCXu93KJ1bmSGnhMdmOod1DhGM4l4Hio94KKxRySfLxnHfJ+Dkjp5DdBJSrwuuqxvPhSIh0PhkEvMsMre1rbZ/xz+jsR" X-RZG-CLASS-ID: mo00 Received: from [IPv6:2a02:8109:89c0:ebfc:14bb:b5af:17db:dc1] by smtp.strato.de (RZmta 45.0.2 AUTH) with ESMTPSA id x0678cvAQBQc8Vv (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Tue, 26 Nov 2019 12:26:38 +0100 (CET) Subject: Re: Bug 205201 - Booting halts if Dawicontrol DC-2976 UW SCSI board installed, unless RAM size limited to 3500M To: Christoph Hellwig 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 References: <20191121072943.GA24024@lst.de> <6eec5c42-019c-a988-fc2a-cb804194683d@xenosoft.de> <20191121180226.GA3852@lst.de> <2fde79cf-875f-94e6-4a1b-f73ebb2e2c32@xenosoft.de> <20191125073923.GA30168@lst.de> From: Christian Zigotzky Message-ID: <4681f5fe-c095-15f5-9221-4b55e940bafc@xenosoft.de> Date: Tue, 26 Nov 2019 12:26:38 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 MIME-Version: 1.0 In-Reply-To: <20191125073923.GA30168@lst.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: de-DE Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 25 November 2019 at 08:39 am, Christoph Hellwig wrote: > 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, > 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. Thank you! Cheers, Christian