Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp5163615ybc; Tue, 26 Nov 2019 22:58:42 -0800 (PST) X-Google-Smtp-Source: APXvYqyXdJDTSOJkFsV8+UOEi7Yk0Y1mN7N1vhpweKXTcr5TPE+5ZqDo1m9BH9C7cycoBpSJ6jeJ X-Received: by 2002:a17:906:32d0:: with SMTP id k16mr23589364ejk.155.1574837922623; Tue, 26 Nov 2019 22:58:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574837922; cv=none; d=google.com; s=arc-20160816; b=ZKzhsEC+X82RNU0LWNv6CQORxSJcdlZf5sE4UK3XJjm8Y2+kjjqKUONBb3aF1ryFku BurNx4OqfXOZcXvCS5oI1WdED/sCvareWl78xRh447fr9whEOWrrZce4SX5d1OF0LEvo tKWtWX0IKooDJIeknUUVzj7ZMQqCy6FhAwTmJqOhewJStIbgTXfCAYszT+8aE8n2HPsV NNpVy0yQmq2Qm7NBocO8CSyoQC95gMEUVLlq3hUvPIOPuX2LbICFqM14hhRzZyKxE8ou 6JazoO/MZ22kROTGsG0dHweCfE3Od/7wem0G3ylCPZan3m5xtbWd2i+Hvy6DVsKUTjbY KGpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:user-agent:in-reply-to :content-disposition:mime-version:references:subject:cc:to:from:date; bh=yOo6BhA4Vl6Z3e7TEM6yGVYKNR5w3KBCNZL4n4Ps7iU=; b=ZsWD8avd6xpq5kJ0ZSCHduoLTwmPNi5hAlAkMloP5lVj8tCibOsF/AapD+NMxxBKIp stg0DJUEzBSJo1Gl+AnzNHODPJottpKHMiap5F2T56NsBmfFnSBkzRYVh2BTEW2yiwvh WzCJLlIBASl3r+elLJ+dkhYCbiV+vpw0+MRSMf6PCtFTEpHytJKQ9mkOKWz44LHiiBIJ vtAcS4rRwa0GYJWx+T9gYCyKfYS5KR8s72llgRVDoRdEA6SZJJBjdCtMlVcEBdSIC8R4 6uvRtZIX39hv6b0dITJcEL3KMun0xfcvQOt7fJKMgVxcb8BGgOBgdrPrzbtlluWLgr6R OY1A== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ch10si10333612edb.208.2019.11.26.22.58.17; Tue, 26 Nov 2019 22:58:42 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726515AbfK0G4i (ORCPT + 99 others); Wed, 27 Nov 2019 01:56:38 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:42256 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726478AbfK0G4h (ORCPT ); Wed, 27 Nov 2019 01:56:37 -0500 Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id xAR6plrJ138264 for ; Wed, 27 Nov 2019 01:56:36 -0500 Received: from e06smtp03.uk.ibm.com (e06smtp03.uk.ibm.com [195.75.94.99]) by mx0a-001b2d01.pphosted.com with ESMTP id 2whcxq4ecf-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 27 Nov 2019 01:56:36 -0500 Received: from localhost by e06smtp03.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 27 Nov 2019 06:56:34 -0000 Received: from b06cxnps3074.portsmouth.uk.ibm.com (9.149.109.194) by e06smtp03.uk.ibm.com (192.168.101.133) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Wed, 27 Nov 2019 06:56:29 -0000 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id xAR6uSmL44302394 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 27 Nov 2019 06:56:28 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2F16711C054; Wed, 27 Nov 2019 06:56:28 +0000 (GMT) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 07AD911C04A; Wed, 27 Nov 2019 06:56:27 +0000 (GMT) Received: from linux.ibm.com (unknown [9.148.8.105]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Wed, 27 Nov 2019 06:56:26 +0000 (GMT) Date: Wed, 27 Nov 2019 08:56:25 +0200 From: Mike Rapoport To: Christoph Hellwig Cc: 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 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191126164026.GA8026@lst.de> User-Agent: Mutt/1.5.24 (2015-08-30) X-TM-AS-GCONF: 00 x-cbid: 19112706-0012-0000-0000-0000036CCE06 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19112706-0013-0000-0000-000021A875C1 Message-Id: <20191127065624.GB16913@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,18.0.572 definitions=2019-11-27_01:2019-11-26,2019-11-27 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 lowpriorityscore=0 adultscore=0 mlxlogscore=999 clxscore=1015 bulkscore=0 impostorscore=0 phishscore=0 spamscore=0 malwarescore=0 mlxscore=0 suspectscore=2 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1910280000 definitions=main-1911270055 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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(); -- Sincerely yours, Mike.