Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp5645218ybc; Wed, 27 Nov 2019 07:17:23 -0800 (PST) X-Google-Smtp-Source: APXvYqzJFRS0R+mI8VI2sFCn/94Tu40tQ04QhaM9ekYbUQItt2Dhxp5ZlPguxsHWma051M4iIIiP X-Received: by 2002:a17:906:2e41:: with SMTP id r1mr26125815eji.127.1574867842944; Wed, 27 Nov 2019 07:17:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574867842; cv=none; d=google.com; s=arc-20160816; b=viiOSQVorI9RUSJUe3LhuKFfQZpMAdYMfhioWuzx00ObGIpSxFCeWT0euVX6CPSdyG 0dypzkoI7opMa/xnEE7Ex+VdJqHWVnn6U0bI3OsNPiouJJdTOlI+fUGaLTONik49kBo+ wM3Sb/nqL2OGNYS2KdBisdZOW+lzmnmX/R9zyjDFi6UJNYK//8Q4omKZvo2FM1Im1Hwu p3KCiOccoY8b7lcnyG82KswpA9rkIfZaW4NktkVoyNWC2luFQ0fsO5LrbmsrRhalvHcT V9UxG+XXa480g+H1nPJ2iSSDA8reIJqN+RqPAu0KPwBotV2v6SXXguou/KbHcQZbCdCN md2g== 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=rU6EJZnQMWHiAAMrDnvCSg5GJl/7kaL3qM/q2ihcwWc=; b=mfzHDFa8ynBZBAHdPQw80baH9c+AEGpLFuUWgP4F1/YLbgzeiQwEwFyq8L2sIgDdpv YBjN+YjGIBCxx7MkH32E9Dv6uymUJ/L1BTJiodPDDXBEH5CqlH8i9Ty3VGicSuyfOXv+ 7llkap4odB+fg/GiI3nMYQKlcEaG+38Tg3SSNfpzzJqjVNr9ikVabndBKk/ow0+0tMJL HHGvP8r+YBPRomWuboeYw3IHP+8xjzx3ExScJRWZ/2oj2IbJ97qCoWqWFs4V0fP3XlpW +qd10AvQYUhJ5+oEcX67zHQMBJLDVPTS7KD0Zjt0mj/o2UVZQj+GGMeXl0iJLdmdK8ay jj6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@xenosoft.de header.s=strato-dkim-0002 header.b=nDHcEC8K; 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 a15si10572592edb.293.2019.11.27.07.16.59; Wed, 27 Nov 2019 07:17: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; dkim=fail header.i=@xenosoft.de header.s=strato-dkim-0002 header.b=nDHcEC8K; 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 S1727432AbfK0PPD (ORCPT + 99 others); Wed, 27 Nov 2019 10:15:03 -0500 Received: from mo4-p01-ob.smtp.rzone.de ([85.215.255.51]:34527 "EHLO mo4-p01-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726655AbfK0PPC (ORCPT ); Wed, 27 Nov 2019 10:15:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1574867700; 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=rU6EJZnQMWHiAAMrDnvCSg5GJl/7kaL3qM/q2ihcwWc=; b=nDHcEC8KNSx0uEmDXuznTw1hr4gLIQbctk3/ymPqjCzLAfUx+SZkmWNSZl/ZQEGPm/ XGY50eWL5q+2LtfJ8B9fRHhw4+aHH2etWCP4VKOTSoxI9pCcyUT10aWQimSKxFxpG5SU EFDtFS2tTxbzWyW+0oIIZsCNBEDkFOLoBSgADKWYlz9yyep2KCJrOdq2q8nzW5cEAA21 4l02tfxdtNE87dPPHde1vuiYiQj454YDM/8QTqFubnUzIXJpqJATqnB64AbDWr5sEdbD qQGXJqYTniJ7sd+YWIVeI6KPm+rlrfAlbZjuDTKZ4iPfhnQOziIkNNHoE2T9WuhsiJu3 H33Q== X-RZG-AUTH: ":L2QefEenb+UdBJSdRCXu93KJ1bmSGnhMdmOod1DhGM4l4Hio94KKxRySfLxnHfJ+Dkjp5DdBJSrwuuqxvPhUIxnPrrzntHiDgpTRUbNSOXek" X-RZG-CLASS-ID: mo00 Received: from [IPv6:2a02:8109:89c0:ebfc:7591:d54e:863:4581] by smtp.strato.de (RZmta 46.0.0 AUTH) with ESMTPSA id n05ae1vARFEh10O (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256 bits)) (Client did not present a certificate); Wed, 27 Nov 2019 16:14:43 +0100 (CET) Subject: Re: Bug 205201 - Booting halts if Dawicontrol DC-2976 UW SCSI board installed, unless RAM size limited to 3500M To: Mike Rapoport , 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 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> <4681f5fe-c095-15f5-9221-4b55e940bafc@xenosoft.de> <20191126164026.GA8026@lst.de> <20191127065624.GB16913@linux.ibm.com> From: Christian Zigotzky Message-ID: <6a4289cf-d2b5-2357-f1ad-eeab44ab3b1e@xenosoft.de> Date: Wed, 27 Nov 2019 16:14:43 +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: <20191127065624.GB16913@linux.ibm.com> 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 27 November 2019 at 07:56 am, Mike Rapoport wrote: > > Maybe we'll simply force bottom up allocation before calling > swiotlb_init()? Anyway, it's the last memblock allocation. > > > diff --git a/arch/powerpc/mm/mem.c b/arch/powerpc/mm/mem.c > index 62f74b1b33bd..771e6cf7e2b9 100644 > --- a/arch/powerpc/mm/mem.c > +++ b/arch/powerpc/mm/mem.c > @@ -286,14 +286,15 @@ void __init mem_init(void) > /* > * book3s is limited to 16 page sizes due to encoding this in > * a 4-bit field for slices. > */ > BUILD_BUG_ON(MMU_PAGE_COUNT > 16); > > #ifdef CONFIG_SWIOTLB > + memblock_set_bottom_up(true); > swiotlb_init(0); > #endif > > high_memory = (void *) __va(max_low_pfn * PAGE_SIZE); > set_max_mapnr(max_pfn); > memblock_free_all(); > > Hello Mike, I tested the latest Git kernel with your new patch today. My PCI TV card works without any problems. Thanks, Christian