Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp771904imu; Thu, 13 Dec 2018 04:19:06 -0800 (PST) X-Google-Smtp-Source: AFSGD/WusY2bBE6sfIbzIvWoqgZpmjQInbZrPAw1fFD1M2aCPXWvlo6Sjpn8BSYWVIryAnw9HkOE X-Received: by 2002:a62:b24a:: with SMTP id x71mr24515957pfe.148.1544703546563; Thu, 13 Dec 2018 04:19:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544703546; cv=none; d=google.com; s=arc-20160816; b=W/WTJ1uMzmfik3xCEVX6OclLZUiBNnmm/jFNXhoVTfoX0e5o99+gM8w1Gp3ZUicsck o4gG1WXprkggpZqKyLExOaCqbSApsPVd56NOrX4GlphJ4fJxvEsct+SJtRYpke0XAENx r6DRUHAuQG+TYtoj6GDRO8RL2BxB3Y/8VyPywypO9LvHoNu3nSKXZyWU8acpioT2EzlR PTZuXQA38vzJwyT9pJO3mV1JTGHvwI/GvZNYvVRZdZMjbRW6L17sNTgxn/K5qxXNQ8Zp vqw1kQXw3h49XSpe1eg16DXktgeF+ikWzWcz9MfmwoMM+9qpNg7woE+Xr7PPvS9eQvot wGmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=6rolbbxKLHBb5ody53TJW3QnAsYnVVJDbMOioT1s6A8=; b=UeJFFneS6Olrr05unaYReqxNiQxMX9NQCNQqBNNEb7hyB0cAGSuwpO6XwfKn1gM1+O lbraEZetrgB6jHy6OFrmoGbfr2zjorjGyq0C4+O4gn3GDRw4g4pFqA+DtBUIJ3sn+e0/ 5yBW0fPS36hsRUckTMVzNGuhjPk0THRaoaiPb3ZeLI/mf5YsD390RgJMIZyggCNTwQY3 S4tuMLOQPzqdyONXKdSHTGeAPIGCRj0B1IBiRmA+kz8a3bX0TVk9zR5Thq4uaY/q64W0 8YtAy7BWrd0HJaiV5oTP5PLNv8c/gDgo8afyADVFsVFxOG0BS4XvcRd4VWYgHcm5c2LI VQSA== 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 p3si1455978pgi.0.2018.12.13.04.18.51; Thu, 13 Dec 2018 04:19:06 -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 S1729018AbeLMMRi (ORCPT + 99 others); Thu, 13 Dec 2018 07:17:38 -0500 Received: from pegase1.c-s.fr ([93.17.236.30]:18812 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728865AbeLMMRi (ORCPT ); Thu, 13 Dec 2018 07:17:38 -0500 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 43Ft3h0zlGz9v0cQ; Thu, 13 Dec 2018 13:17:36 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id kgbHqzO4B0lF; Thu, 13 Dec 2018 13:17:36 +0100 (CET) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 43Ft3h0Ny3z9v0ZK; Thu, 13 Dec 2018 13:17:36 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 38FF88B871; Thu, 13 Dec 2018 13:17:37 +0100 (CET) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id DACdrZTjoSEZ; Thu, 13 Dec 2018 13:17:37 +0100 (CET) Received: from po14163vm.idsi0.si.c-s.fr (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id AFDC88B86E; Thu, 13 Dec 2018 13:17:36 +0100 (CET) Subject: Re: [PATCH v1 03/13] powerpc/mm/32s: rework mmu_mapin_ram() To: =?UTF-8?Q?Jonathan_Neusch=c3=a4fer?= Cc: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org References: <8835330baa77d88e0267b0b1215b78c991e6d17a.1543517818.git.christophe.leroy@c-s.fr> <20181203215558.GK15324@latitude> From: Christophe Leroy Message-ID: <84624899-bbda-9f08-2527-151fddbd1b01@c-s.fr> Date: Thu, 13 Dec 2018 12:16:00 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20181203215558.GK15324@latitude> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 12/03/2018 09:55 PM, Jonathan Neuschäfer wrote: > Hi, > > On Thu, Nov 29, 2018 at 07:00:16PM +0000, Christophe Leroy wrote: >> This patch reworks mmu_mapin_ram() to be more generic and map as much >> blocks as possible. It now supports blocks not starting at address 0. >> >> It scans DBATs array to find free ones instead of forcing the use of >> BAT2 and BAT3. >> >> Signed-off-by: Christophe Leroy >> --- > > I've just tested this series on my Wii, and starting from this patch > (03/13), it hangs at the following lines of output: > > [ 0.000000] printk: bootconsole [udbg0] enabled > [ 0.000000] Total memory = 319MB; using 1024kB for hash table (at (ptrval)) > > Before this patch it looks like this and boots to userspace: > > [ 0.000000] printk: bootconsole [udbg0] enabled > [ 0.000000] Total memory = 319MB; using 1024kB for hash table (at (ptrval)) > [ 0.000000] Linux version 4.20.0-rc5-wii-00022-gfbb911b84755 (jn@longitude) (gcc version 8.2.0 (Debian 8.2.0-9)) #1337 PREEMPT Mon Dec 3 21:49:02 CET 2018 > ug_udbg_init: early -> final > usbgecko_udbg: ready > [ 0.000000] Using wii machine description Can you tell/provide the .config and dts used ? You seem to have 319MB RAM wherease arch/powerpc/boot/dts/wii.dts only has 88MB Memory: memory { device_type = "memory"; reg = <0x00000000 0x01800000 /* MEM1 24MB 1T-SRAM */ 0x10000000 0x04000000>; /* MEM2 64MB GDDR3 */ }; Christophe > ... > > I've tested at patch 1, 2, 3, 4, and 13, so I don't know if it works > somewhere in the middle, but probably not. > > (And in case you're wondering about the 22 in the version string: Those > are mostly patches that give me a serial console.) > > I'm not sure what is going on, because I haven't looked closely at the > patches or tried to debug the problem. If you have some debugging tips, > I can try them. > > > Jonathan Neuschäfer >