Received: by 10.213.65.68 with SMTP id h4csp546676imn; Fri, 16 Mar 2018 11:05:06 -0700 (PDT) X-Google-Smtp-Source: AG47ELs8QDlEZ87CSsiqwiBr/WfLYtH1DX9M4iWaeVH3Z5u/geYhTHGJmh0MHdct31w1VY4yk6fL X-Received: by 10.98.238.2 with SMTP id e2mr2330472pfi.68.1521223506399; Fri, 16 Mar 2018 11:05:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521223506; cv=none; d=google.com; s=arc-20160816; b=XWN+8XoExfOaXmI3T/0uB+ZHwnaa/AGQWuH++Tr6qdpBAAuq6PKBcKSFxG2aScqpEv QkX5542H1VHABM+kGnqBDMlq+yRfcid+XfyoPfpNbWcER5phsL5i7egYQACM5Z/607/X Lqwrr4J8tT7Ed2YB5PGZn1e9ZOOylhHz/puyzaHT+/FFjPm2KBCJtf9EKfubMc0n+KpF pLA76lnibhmbXdpOggZbHXFW+hZOzjwIBdfjsddGKPX0/MuN2YrsP6g7FyB6qsLlgDMO buPzL6sczi3ef5377+ioeFs/nSrCfVeClC0qziQlao84pKa9YG0aXHOg0/9Lg86tWfj7 FIyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:reply-to:dkim-signature :arc-authentication-results; bh=JofKQ1WHVG+ckBANVjkfII79DnkBiWb3osXh/+WYJ0c=; b=adclzJY2WhV3krP8UJ77KyazpKX1S9SufUFDK0zN6q8FqKQpiIj7ExbQa53OqlsUXo YjidntKcF0EwR5ETuT+upbwNni4QwOfNYJK8DhizBd+2Hat6RLJoJeNccFAOVhRKemqV cIXt7hgkphjZl0fbriEF3sxEUCPB6NxsYX2Sd2LGnZ5WDHiPl6/cabxTHRcPOio6f6dL fNUrgxfwejlq00xiMKiMHy4PlFJHjwS61vcODAOxme/Fin2nky1kvbzDsPLW6Jjwg2qn Dc7bSFXW4CwB48y6RVS8PkpDMdh1pOp9dNosyf+HWtrX1X9Wr1yq2+/3tGqav7jCPf5z JZAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@monstr-eu.20150623.gappssmtp.com header.s=20150623 header.b=OV2ua4bs; 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 e8-v6si5514998pli.224.2018.03.16.11.04.50; Fri, 16 Mar 2018 11:05:06 -0700 (PDT) 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=pass header.i=@monstr-eu.20150623.gappssmtp.com header.s=20150623 header.b=OV2ua4bs; 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 S1752714AbeCPSCn (ORCPT + 99 others); Fri, 16 Mar 2018 14:02:43 -0400 Received: from mail-wm0-f52.google.com ([74.125.82.52]:38230 "EHLO mail-wm0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751061AbeCPSCm (ORCPT ); Fri, 16 Mar 2018 14:02:42 -0400 Received: by mail-wm0-f52.google.com with SMTP id z9so4538719wmb.3 for ; Fri, 16 Mar 2018 11:02:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=reply-to:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to; bh=JofKQ1WHVG+ckBANVjkfII79DnkBiWb3osXh/+WYJ0c=; b=OV2ua4bskvozwMeUdMc4tCMfvDxBzJ5dhbn1NXl9q6exO/ypp7597uWqZ0wdZDLTbS 8/slhxbVASD0ff8Hp5qU91u0S0atH2oC+aNDbFt+bH8ig+r5MWqBVkxTgWI5DEBATUy8 ClESOa7sddy9KBYCaqVlvBCndcJ8XW7APyFKVPphhLNbCpUD9HVjG4YiKr0liUzn7u30 r7Iw4sUpR1qeeVp7Uprph8m7wq+TwGsut7FbbqgZdKqIi7LwJ9+pm6rEPpqkWvW2tzrV B9XxfDL5K34YazhUez0LYYCAXiH4RMPozA6DLNzOWQrJvBS3ULbKnWszGjPFFnYDkqDV ls4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:reply-to:subject:to:cc:references:from :message-id:date:user-agent:mime-version:in-reply-to; bh=JofKQ1WHVG+ckBANVjkfII79DnkBiWb3osXh/+WYJ0c=; b=oyXmVBFnBUsEpyyb6bLH1IkwmoXl09ysO4qQuBI5yTHvm6HYTePqjbD3/YyAPRx+Y8 ez+Cv+f6O+Wcrkbsv1xZZvOBB0y66YpXPz+f/CdAmZsr3pfwvx9X8oFYT2h81G8T+2mR xQrrPI3FGi6DOF8DVuLH5Hdtyz/t6e+1PV0M7SnZD0Of6giEPo99/AuprMAd0Ojo97PA W5WDs0TsY2cxmR/BKV9qksCq/F/FnkeGn84WYlPcGNk/v77l3h867RWhQMgVweFHo83/ UCQV7B7aWTdY3mSjIBWZ4Fac6vu1X+uBERdspDquXMk2IrXhf3t8caU7qziyLTR61cGO +8aQ== X-Gm-Message-State: AElRT7Ffnaupg/lw3naVa6En/CxJne40whI5S3N6t5dgAxWLjgiERgAO +g804JMoXFmZKeThEF2WnSoD60F5 X-Received: by 10.28.214.194 with SMTP id n185mr2619287wmg.73.1521223360303; Fri, 16 Mar 2018 11:02:40 -0700 (PDT) Received: from [64.233.166.108] ([149.199.62.254]) by smtp.gmail.com with ESMTPSA id w125sm5134885wmw.20.2018.03.16.11.02.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Mar 2018 11:02:39 -0700 (PDT) Reply-To: monstr@monstr.eu Subject: Re: Bug: Microblaze stopped booting after 0fa1c579349fdd90173381712ad78aa99c09d38b To: Rob Herring Cc: "Alvaro G. M." , "linux-kernel@vger.kernel.org" References: <20180309125106.GA1644@salem.gmr.ssr.upm.es> <20180312075252.GA15895@salem.gmr.ssr.upm.es> <242c2823-258b-d3bb-cd0a-e4eee6b979c6@monstr.eu> <4d5dc903-0e88-e1b9-9761-43a84865c45b@monstr.eu> From: Michal Simek Message-ID: Date: Fri, 16 Mar 2018 19:02:33 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="KiKbsc5sA1WdcQw0KLwjVYMmOZ0otTgKu" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --KiKbsc5sA1WdcQw0KLwjVYMmOZ0otTgKu Content-Type: multipart/mixed; boundary="JEmNhZhh2duBwoAKSOm0HiQhAOuQvPqkn"; protected-headers="v1" From: Michal Simek Reply-To: monstr@monstr.eu To: Rob Herring Cc: "Alvaro G. M." , "linux-kernel@vger.kernel.org" Message-ID: Subject: Re: Bug: Microblaze stopped booting after 0fa1c579349fdd90173381712ad78aa99c09d38b References: <20180309125106.GA1644@salem.gmr.ssr.upm.es> <20180312075252.GA15895@salem.gmr.ssr.upm.es> <242c2823-258b-d3bb-cd0a-e4eee6b979c6@monstr.eu> <4d5dc903-0e88-e1b9-9761-43a84865c45b@monstr.eu> In-Reply-To: --JEmNhZhh2duBwoAKSOm0HiQhAOuQvPqkn Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 16.3.2018 16:18, Rob Herring wrote: > On Wed, Mar 14, 2018 at 10:04 AM, Michal Simek wrote= : >> On 12.3.2018 11:21, Michal Simek wrote: >>> On 12.3.2018 08:52, Alvaro G. M. wrote: >>>> On Fri, Mar 09, 2018 at 01:05:11PM -0600, Rob Herring wrote: >>>>> On Fri, Mar 9, 2018 at 6:51 AM, Alvaro G. M. wrote: >>>>>> Hi, >>>>>> >>>>>> I've found via git bisect that 0fa1c579349fdd90173381712ad78aa99c0= 9d38b >>>>>> makes microblaze unbootable. >>>>>> >>>>>> I'm sorry I can't provide any console output, as nothing appears a= t all, >>>>>> even when setting earlyprintk (or at least I wasn't able to get an= ything >>>>>> back!). >>>>> >>>>> Ah, looks like microblaze doesn't set CONFIG_NO_BOOTMEM and so >>>>> memblock_virt_alloc() doesn't work for CONFIG_HAVE_MEMBLOCK && >>>>> !CONFIG_NO_BOOTMEM. AFAICT, microblaze doesn't really need bootmem = and >>>>> it can be removed, but I'm still investigating. Can you try out thi= s >>>>> branch[1]. >>>>> >>>>> Rob >>>>> >>>>> [1] git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git >>>>> microblaze-fixes >>>> >>>> Hi, Rob! >>>> >>>> This branch does indeed solve the issue. My microblaze system is now= >>>> booting as it did before, and everything seems normal now. Thanks! >>>> >>>> Tested-by: Alvaro Gamez Machado >>>> >>> >>> I have tested it and I can also confirm that your two patches are fix= ing >>> issue with >>> >>> 809d0e2c: 00240034 26000000 746f6f62 206d656d 4.$....&bootmem >>> 809d0e3c: 6f6c6c61 666f2063 33353220 62203830 alloc of 25308 b >>> 809d0e4c: 73657479 69616620 2164656c 00000000 ytes failed!.... >>> 809d0e5c: 00000000 0029003c 06000000 6e72654b ....<.).....Kern >>> 809d0e6c: 70206c65 63696e61 6e202d20 7320746f el panic - not s >>> >>> Can you please update that second commit with reasonable description = and >>> send it out? I will take it via my tree and will send pull request to= Linus. >>> >> >> I couldn't wait to fix current issue till 4.16 is done that's why I ha= ve >> sent that patches with updated commit message to lkml. >=20 > Thanks for writing my commit msg. :) I got distracted looking at > whether other arches got broken too and didn't get this sent out. >=20 > BTW, there is a more simple fix of just moving setup_memory() call to > before unflattening if you prefer for 4.16. I have sent pull request to Linus with your two patches and a lot of architectures is setting this up that's why not a problem. I need to also look at the rest of your patches and how in-kernel dtb is handled because there is a size limit which was fine for years but we have reached the case that it is not enough. Simple extension is easy but not generic solution. Thanks, Michal --=20 Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91 w: www.monstr.eu p: +42-0-721842854 Maintainer of Linux kernel - Xilinx Microblaze Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP SoCs --JEmNhZhh2duBwoAKSOm0HiQhAOuQvPqkn-- --KiKbsc5sA1WdcQw0KLwjVYMmOZ0otTgKu Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iEYEARECAAYFAlqsBroACgkQykllyylKDCHWWACeJzvB8l9G5rRkuH+/eRJE2Wjv dBsAoI+5yULw7/Jaqd83js70Y72PtuWm =XjM6 -----END PGP SIGNATURE----- --KiKbsc5sA1WdcQw0KLwjVYMmOZ0otTgKu--