Received: by 10.192.165.156 with SMTP id m28csp749848imm; Fri, 13 Apr 2018 07:13:25 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+jSMGHJlwL0b2EjpH2z/V/D9qNH9MUnU6huHb1PUAACZcpCPI3ML3Z5PArRHOzd+0lV0Yl X-Received: by 10.101.99.149 with SMTP id h21mr4347665pgv.345.1523628805340; Fri, 13 Apr 2018 07:13:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523628805; cv=none; d=google.com; s=arc-20160816; b=Jps4Sb7EMDLTzB9gtM4HGmvikDA5Ckx4Igr8msqGs76EfbF0h8R7xi1m4jA3ssr91D /qnYYYNHhuRUD/a1NA9UoupXoZ078wlJpXYtKapLKayB8Z6ujZ7u846BHh/R7krqOvgP mzoYO6n2dskzqgJynNb3T0Vp29Bo5H9doEQ/UMuw7msDErXSeG4cS44m7hEAGc4RKwcQ sGzcl9CXRMUv3/TU174/0lKlQF//5Smk29Eb2D3zAEMAixQVlaHJ1/MFo1s/4AYnFnwl 83n/28q/UYACpxN/lQ6NHwWuIbuHsbeZ9Cr5kPyHsPfdAfo4jk0/ba5eEpbcU7HunZxI 6BZg== 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=c3nwldbbMruqwbiVYCJ4lDnyLXoW60OZhlM3Kfvc0oI=; b=MWM4FJ0CoSy2tfF3fqsXtV8lOq1xVpyUfppsankdu59AqE8Bc04newcfP6zpntGSD/ oHquvZdso8n8JOISPKJZ1uO80uGiszq+k2fKIPGiHutv/Td0zEQZo+NL5u2sL5hNa3pc gCQEN4LPSk44QxVvoFUqXAur1cpjFEhU6O1DIJhjeCFWS+dpG0yPNAcAGLcMz+ThX7C6 JLEYu+LpwJ9RGdDknv7V5HPGTHW75Z30Bp/j8AN16nZmS9fRHKYUhd5Dvpt5211/eg56 rdCCPOaxvAmmYPVwXMeVC6rLiXHNWhdvlnUVvpTMOKleRk5QCMsLIoj5l2/CeMILRGCN g8sQ== 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 a86si4770265pfc.207.2018.04.13.07.13.11; Fri, 13 Apr 2018 07:13:25 -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 S1754904AbeDMOLz (ORCPT + 99 others); Fri, 13 Apr 2018 10:11:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:56348 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753254AbeDMOLx (ORCPT ); Fri, 13 Apr 2018 10:11:53 -0400 Received: from mail-qk0-f178.google.com (mail-qk0-f178.google.com [209.85.220.178]) (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 4AA2621781 for ; Fri, 13 Apr 2018 14:11:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4AA2621781 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-qk0-f178.google.com with SMTP id n139so9223230qke.11 for ; Fri, 13 Apr 2018 07:11:53 -0700 (PDT) X-Gm-Message-State: ALQs6tCAqyo0Tn23UVDTsZ2KgA6tZehHrrFTefWalichKgCW8JqiQaCZ aRrrX5p+EIzAc+c9HHlLofTsHlAghXjiPEo0uA== X-Received: by 10.233.235.139 with SMTP id b133mr4785859qkg.348.1523628712460; Fri, 13 Apr 2018 07:11:52 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.213.166 with HTTP; Fri, 13 Apr 2018 07:11:32 -0700 (PDT) In-Reply-To: <584d5be2-6961-5f65-d0d7-bc4661aa21f0@xilinx.com> References: <20180328020700.17050-1-robh@kernel.org> <20180328020700.17050-3-robh@kernel.org> <584d5be2-6961-5f65-d0d7-bc4661aa21f0@xilinx.com> From: Rob Herring Date: Fri, 13 Apr 2018 09:11:32 -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 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. Rob