Received: by 10.192.165.148 with SMTP id m20csp3629351imm; Mon, 23 Apr 2018 09:36:55 -0700 (PDT) X-Google-Smtp-Source: AIpwx48nY+h3MRmG+CRilbB0zK/uQGm9UjsT+9740a7rQMnLtlqTlLcxuhvl9gfLnlPIptITor/3 X-Received: by 2002:a17:902:591e:: with SMTP id o30-v6mr21215998pli.309.1524501415785; Mon, 23 Apr 2018 09:36:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524501415; cv=none; d=google.com; s=arc-20160816; b=ibmZ7Hub9+DOWKL7y8fIcWGOO1nXX2DlZiG2Agco27drNxVuuwnAhfV+xC9Z7z/cK+ eig9qBQ+yz+gMBvoezp6TDdKM77fwwyOR9V6DPHnJ9i7T1df1vj1JpcfutyHHxk7Fi3D 1eTIGjkxjpTs/lCxqsj1/ZGa7NIOr2k0gKonbXHJhT3DsKM2DyKwD34QVAhZogpdh/k1 Rd5T57Is5lOi8h82QCJWUt9VogQNBFChpPESiZjqiXrmin/6IlJBMc6F+3R2jtY3Gcho l9I4fS+DykpaWj7wJFN5AAAq7VcvpkRRazOmPhmkZF1yLyUdZEzWboA4UVR0ky604xU6 OB7g== 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=xyetOZgDs/5KFm+zsYwkFuJmUEwvI1iwdRxRBp/d5fY=; b=0yXMgVUQdoO2V8ZkIaV9JFb/wpQca3ufl0lObAEg321/7hVLcbpT1cLpOh7+bg0o24 Ppy8r1aEiaO9jLGUREE9QByyNcCPWUit7jmMS1G94YOKTS7PGRM8J1RQW/55sKrZDnBd HpvbNyvVJD/nP04+WJfOf8uHV1DFsy3hf7FwuIVBahlTU9WP2+jtaBSgHaexcXfz0lRC Yt1MMmYEkTNlUuOlJ5KpnNlBEJgA+gwtEEpPO85+zydaXAiS8ZX25cAci1wQvdbZ4iOS ob2TOEaVkfO0SG8/v63KCQA/MvVObNUsxWeHD0VerJ//LYYorhKV4Snfjle7VDWQtHPn jLKg== 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 d37-v6si10978236plb.125.2018.04.23.09.36.40; Mon, 23 Apr 2018 09:36:55 -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 S1755486AbeDWQey (ORCPT + 99 others); Mon, 23 Apr 2018 12:34:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:37552 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755192AbeDWQev (ORCPT ); Mon, 23 Apr 2018 12:34:51 -0400 Received: from mail-qt0-f182.google.com (mail-qt0-f182.google.com [209.85.216.182]) (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 B5A94217A6 for ; Mon, 23 Apr 2018 16:34:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B5A94217A6 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-f182.google.com with SMTP id h2-v6so6335715qtp.7 for ; Mon, 23 Apr 2018 09:34:50 -0700 (PDT) X-Gm-Message-State: ALQs6tBZD89tyTYixP4NfrL+TlPRu2xNgT1JpkXkmwOKjwTlblMkxrN7 NOy6kei//wsVM4E+FCBFugtMjnzT21ShyCgm6A== X-Received: by 2002:aed:26c3:: with SMTP id q61-v6mr25127724qtd.60.1524501289893; Mon, 23 Apr 2018 09:34:49 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.163.228 with HTTP; Mon, 23 Apr 2018 09:34:29 -0700 (PDT) In-Reply-To: <71dfbcd9-501c-631f-76a3-53d7265d9321@monstr.eu> References: <20180328020700.17050-1-robh@kernel.org> <20180328020700.17050-3-robh@kernel.org> <584d5be2-6961-5f65-d0d7-bc4661aa21f0@xilinx.com> <71dfbcd9-501c-631f-76a3-53d7265d9321@monstr.eu> From: Rob Herring Date: Mon, 23 Apr 2018 11:34:29 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 2/3] microblaze: remove redundant early_printk support To: Michal Simek Cc: Michal Simek , "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 Mon, Apr 23, 2018 at 5:50 AM, Michal Simek wrote: > On 13.4.2018 16:11, Rob Herring wrote: >> On Tue, Apr 10, 2018 at 8:44 AM, Michal Simek wrote: >>> Hi Rob, >>> >>> On 28.3.2018 04:06, Rob Herring wrote: >>>> With earlycon support now enabled, the arch specific early_printk support >>>> can be removed. >>> >>> earlycon is not the full replacement of early_printk support as is >>> designed right now. >>> Definitely current early_printk is pretty old and contains code >>> duplication but it starts much earlier then earlycon. >> >> Yes, essentially it's after MMU enabling rather than before. But it is >> still before any h/w specific setup (dependent on the DT) which is >> where one would typically fail to boot. Generally, I've found before >> DT unflattening to be early enough. What can go wrong at this early >> stage? Memory is flaky or you've passed in bad memory ranges or image >> locations. An earlier console may or may not help there and those >> problems are easier to debug in the bootloader. >> >> So it is a question of what you want to maintain. >> >>>> Signed-off-by: Rob Herring >>>> Cc: Michal Simek >>>> --- >>>> v2: >>>> - Fix booting. The setup_memory call needed to be before the >>>> parse_early_param call. >>> >>> What's the reason for calling setup_memory before parse_early_param? >>> Is there any dependency? >> >> Yes, either fixmap or ioremap (in your case) has to be functional when >> earlycon is setup which happens via parse_early_param. > > Ok. Let's add it and see if there is any issue. Do you have any code > which depends on this series? No, I don't. Rob