Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7495144imu; Mon, 3 Dec 2018 13:58:40 -0800 (PST) X-Google-Smtp-Source: AFSGD/UN0mocy5qJ2M53pwit1Gx94F7VbbCkGMT8yc3LA1BplTGL77kk68Visn5njgITgbgzOXW1 X-Received: by 2002:a62:2b8b:: with SMTP id r133mr6157219pfr.246.1543874320659; Mon, 03 Dec 2018 13:58:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543874320; cv=none; d=google.com; s=arc-20160816; b=tBSMkEdYnzvLLzmJfeCtOM3PUhjoBrBti8EbJAHX42psqcbIwdcXeS8QKYT+w7Nm78 +vukZlVYPfNS9OMXF60F5HxFphEjPHZYBM8PNvmXRiM5wVTPmFXHGSYPGbwt33sxoyXG XddzI9R12ddphBAvaSy643zkhmWYmiQ3tKX5Edbtk2YDhblAnU3YLNYUrP9YEIiVp/a6 +ejajYSF+qefxnpIqphWWbiJLCH5mdx85NXbfsLLcs+fIYJrx08aURWkJfmGqIM8GWMt Iqc6g/H8VyiP70lwZY2EA87hFQBPxmYsuSf/GZ7PLgtGen/KBWJLBK7XTM+siknFlVgL zD5A== 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=DKpXPXG4KmtUd1WuBwkf7sKvqMR8x4WfuHfMhWJb+uE=; b=xAgZ0sOQLWWVnKFex+VjJF03HcJF6tEo9MMEvZbb/OUHfVhrTaheZb9xUvElPv+5XK SEzQsXo2j9+k4y37ifnoM31DWLZsMbvoaUpW3LELWG8zPNkh9EJvoDq6RhUkPmWUtG6C Y5sR9VHUOCo8Mie2jPELeNxDRtolowFLS9QgeTiVntekvy+jabZ5KWBOs7kJqS6ycQK1 P+X/hmZx/leN4FyADigPYZii1X690Y0JS2aDZRW0r4v1CUZE4NuV+YqvmjAxmPkdnBY+ 3klnzj0w9gEZyqJsd1yuRv6tB9gCefndE+xn4pm40anpKhh69xVC57NQqNCTYPCaYfLG CFkg== 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 l30si4525718plg.113.2018.12.03.13.58.25; Mon, 03 Dec 2018 13:58:40 -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 S1726007AbeLCV4n (ORCPT + 99 others); Mon, 3 Dec 2018 16:56:43 -0500 Received: from mout.gmx.net ([212.227.15.18]:53847 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725938AbeLCV4n (ORCPT ); Mon, 3 Dec 2018 16:56:43 -0500 Received: from longitude ([87.79.84.57]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MWTfu-1h1XjS0u6c-00XbNn; Mon, 03 Dec 2018 22:56:05 +0100 Date: Mon, 3 Dec 2018 22:55:58 +0100 From: Jonathan =?utf-8?Q?Neusch=C3=A4fer?= To: Christophe Leroy Cc: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , j.neuschaefer@gmx.net, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH v1 03/13] powerpc/mm/32s: rework mmu_mapin_ram() Message-ID: <20181203215558.GK15324@latitude> References: <8835330baa77d88e0267b0b1215b78c991e6d17a.1543517818.git.christophe.leroy@c-s.fr> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="3607uds81ZQvwCD0" Content-Disposition: inline In-Reply-To: <8835330baa77d88e0267b0b1215b78c991e6d17a.1543517818.git.christophe.leroy@c-s.fr> User-Agent: Mutt/1.10.1 (2018-07-13) X-Provags-ID: V03:K1:LOSPz25wnZaZbdRbnDyYPrZwko0HsusJN9bRjOtQ4TquWHlxyE9 zj2+7XDUDg7H1pW3lj28PVAx7gMsZS5IPjeN0ew0nizKDQSHcVOgPk1gdZVt7nR7tPeYYe8 agoXoEbpnLVVOriyvU5CrQxvsvzgJnC14dYhslqWoMlPQ/fgmiIg20mWvnhVWuFNvM5Urdr 1nkyvOnSN9brwMZzHcMiA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:0P2tvbo0mg8=:IDsYNlPJJNIDas6qG7PHSi YkY9G4xNRp5eXyksLho0IYRkTbTLnl7Cc1ai0+XLQJqbcOZl9BdYrse+hMO8szZ0Wog6AwL4q VzObVQfN4C1zNSSjxDvxs+ErE+GfwoxnlAPEwQrqcKl2fe8z0G8zSZbqsQBaqXf/oD5qX0qaU ffEiiayrYDt1JHuR8PAaqYkCS0mS/BRmyK3G+oPOwkX49yca2u5iXa7gvXKNxOorgxlBFpCTG KLvK7QqHjGhfHMeeStDSN6IEd9vna4Bdo/FW6FV7eCMQLV5LIvmfgKK3I0KK5Eu6/OFX1SrqG 0SFiM6NwgrMiJ9bsgHsWJtRE4V8Af6KautwhuDHvJHi5nJKZNs6UIX132Vvv5EWqSZgdyb/UN Fjge8o3BI4/f0v09fu96QJRc0ANCU3xQTsAmiz1B2nKvpIFhyZZZ04SYi8fdt2D0dzuK2o8ID wm5kWgWKW5ZdiNbDqRKWy/ECX7y98erueRY9pI2CIsM7XMU5cvIH9R6Q8ivbczWLgHETGLOLq ud2GSGMta3HgB/OxlLabmJ/wtFOQ1Ueo1nmZDGomakCHsML5XxCkLiCrk+JUr/OMvAd0W+2a7 jHkQxUuV0503fDSHk9SZ+vFvDW16FoJJkeLDXc2QATqZ2ytVh8GE5YY+OF5DwEAUA/3recLqj DfIrFFKK+eZaYlHeEDLUYkN25Uc0qjd8Ab3V8sDw9h3MxL057EA5LJynsgvy3Aq5TgDgnk/vs zM9lQs/mDEGh/LZcxoUS/SPROH1gp/Nl+tE/7DhwA9xlIZeypNBvWe1/hJW8Fw1q9hvgy/ZOV g/ElB1d6GWp8mvt98MlmHZ8ruiPNHCyOIVfUKhK0E4YvULyizbGTSk9Qng935hEe8vkAWr4o8 YQkQninPGZoFVxnjxLyFaWakBB0gcZA7ft4Qz8Qyz8ISPHOC6d7oAQJyn+qoA9 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --3607uds81ZQvwCD0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. >=20 > It scans DBATs array to find free ones instead of forcing the use of > BAT2 and BAT3. >=20 > 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 =3D 319MB; using 1024kB for hash table (at (ptr= val)) Before this patch it looks like this and boots to userspace: [ 0.000000] printk: bootconsole [udbg0] enabled [ 0.000000] Total memory =3D 319MB; using 1024kB for hash table (at (ptr= val)) [ 0.000000] Linux version 4.20.0-rc5-wii-00022-gfbb911b84755 (jn@longitu= de) (gcc version 8.2.0 (Debian 8.2.0-9)) #1337 PREEMPT Mon Dec 3 21:49:02 C= ET 2018 ug_udbg_init: early -> final usbgecko_udbg: ready [ 0.000000] Using wii machine description =2E.. 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=C3=A4fer --3607uds81ZQvwCD0 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEvHAHGBBjQPVy+qvDCDBEmo7zX9sFAlwFpmUACgkQCDBEmo7z X9tjQhAAtgGfhvYKAZs5YH93HGyareHmVqRSSg59aSnlMwaTZhLNHTix+xkwCgRQ i8mr6oA83S5B79HehInblEfrDh0FGluPBrUfhK/bTQOmJ4Cqk8ur4MHIEmBGiy3X 2Py2zXCeuK4K7YOPCqfJmmuPTo+qviQe8ya2i1TPyZ1IqwqnLJ5jstLBs8Yyfm4o y8azYiRZ43cJyhZ7bI1I6L4Y8oFYG06TLSe8yRaRHWO6iOhbEcv1ANUZ0Lz/Azn2 n0xWB4GhcS+cCJNzzYHjZqXQWWtWElDbuuXYh5kgUQAHZWgFNzCMjm5pd1WysiJk rxUyaaHTShibBgBz8KRMfXpJBUg6Ux4t86t2JdopbZCJ5fnXY8QFHEMCVpcak7v9 YDlX8ABaxC0s2ykxE9HFF6nrlkYQUk0pmbeqqEZN/vUV1lAQr2tlVap9s2ZwJdIP HUhhA12LBkOJx5q31wNip2k0cuvM6IjdHSrImjTNb37yHqsGaXCu+TWaWSmzXA/B f3/7TLY+chXqxUCawpPgeYz53fy4Y9opNjD3hzDzzFD9PcRFzyixl7fM9wlgE37w D7UNNZ18ky7LKMuL+5RpbH41dGILkku3tPHflc+h0v+RCJacL3h+uDr3+w7Y8br7 D0zb7tVOQZwK8rbIoRzLPgsuU/aE2+3oC6fdLM2utgF7WwG/jlo= =J3qj -----END PGP SIGNATURE----- --3607uds81ZQvwCD0--