Received: by 10.213.65.68 with SMTP id h4csp457214imn; Fri, 16 Mar 2018 08:20:09 -0700 (PDT) X-Google-Smtp-Source: AG47ELsnMXN3jQCQg6nsHPZvuz9zr7uWXrkLxh+bpHCsKdP5Gbx50ppenWM5lyFKPDpbrtx5saRV X-Received: by 10.99.185.7 with SMTP id z7mr1802783pge.123.1521213609741; Fri, 16 Mar 2018 08:20:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521213609; cv=none; d=google.com; s=arc-20160816; b=GOq4ehbCjY8pBcNVnaX1TfBq6J2G0tPZQgCblmMXRs2Mvtws/QdktrAeZh0BTRvRxV 9Own9jYfd8Pg+YYry9NHEhfpPj/uWjGFeqJtZKg4/K9Q1JA3ctH1M+x+WLGC4HwUWDZ8 LLYO6uLIB2/H2wrO6KSspygCBK1/0KTQ042BsZsVjrkmkHAPUwPQU90M4pJGQdaDn9bv ZahgeXbcHQuuT2bL36fK+/l4CNjaaxVM6JUqdAMTe7AINRxoqiOrXlqSB0OiN1rpR1ql gyFSgmVj1xze7xqrn57UKt6CMYnq+zZnYDkqhGG/ySLSFxihCa54PV5y6eKoCvFdFR76 kF1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dmarc-filter :arc-authentication-results; bh=a7nCs5IW3NfhsbrDRZCnrhBxV2wei2rnNh+5PnFXx+8=; b=u03+/IHilHK7RCKVbY4goV5CP8RBqt5K8gnRGHo4X4RAgW23AfmSpdT9xJoRUsNZ90 uZdbtxIWdzZaBBGGx9GfYNK5JjZCafvzaH7MCC46mtifQ6/zmiZfKz2tDgnlWKma8Tm1 W70VZCqzwkF7O92YF8R8TXFmbJFT+QHipfQWz90JQllNmAiPNNtnbRLLlKxo01rhkLgg +VgukQtu2b3HMEgOvgPgKkD8EOhC7ks1loJrNk/XY8bDyvolFYGN0wNkTC48ECzMxoxl WquzKMCJthQ0g7UX6EOhgttKxsnoC0IgGk/+TH4nkPUtId3MU2/4n8LURRkqQvnb1ub3 V6Hw== 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 ba10-v6si6344202plb.5.2018.03.16.08.19.55; Fri, 16 Mar 2018 08:20:09 -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; 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 S1753279AbeCPPSz (ORCPT + 99 others); Fri, 16 Mar 2018 11:18:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:54024 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751665AbeCPPSx (ORCPT ); Fri, 16 Mar 2018 11:18:53 -0400 Received: from mail-qt0-f169.google.com (mail-qt0-f169.google.com [209.85.216.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A318F217D6 for ; Fri, 16 Mar 2018 15:18:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A318F217D6 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=robh@kernel.org Received: by mail-qt0-f169.google.com with SMTP id n12so11224163qtl.5 for ; Fri, 16 Mar 2018 08:18:52 -0700 (PDT) X-Gm-Message-State: AElRT7HobuOPjYdqTSQsTOI8oLcYUvTXud/xAXqoUT3vxreUl/G8ZSqB vfWV3mC0nggWlQqkwiPKaptbquv8W6Jsqet5Sg== X-Received: by 10.237.38.135 with SMTP id q7mr3317828qtd.205.1521213531536; Fri, 16 Mar 2018 08:18:51 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.178.131 with HTTP; Fri, 16 Mar 2018 08:18:31 -0700 (PDT) In-Reply-To: <4d5dc903-0e88-e1b9-9761-43a84865c45b@monstr.eu> 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: Rob Herring Date: Fri, 16 Mar 2018 10:18:31 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Bug: Microblaze stopped booting after 0fa1c579349fdd90173381712ad78aa99c09d38b To: Michal Simek Cc: "Alvaro G. M." , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 0fa1c579349fdd90173381712ad78aa99c09d38b >>>>> makes microblaze unbootable. >>>>> >>>>> I'm sorry I can't provide any console output, as nothing appears at all, >>>>> even when setting earlyprintk (or at least I wasn't able to get anything >>>>> 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 this >>>> 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 fixing >> 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 have > sent that patches with updated commit message to lkml. Thanks for writing my commit msg. :) I got distracted looking at whether other arches got broken too and didn't get this sent out. BTW, there is a more simple fix of just moving setup_memory() call to before unflattening if you prefer for 4.16. Rob