Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757231Ab3DSQPA (ORCPT ); Fri, 19 Apr 2013 12:15:00 -0400 Received: from mail-lb0-f177.google.com ([209.85.217.177]:57329 "EHLO mail-lb0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756909Ab3DSQO7 (ORCPT ); Fri, 19 Apr 2013 12:14:59 -0400 MIME-Version: 1.0 In-Reply-To: <20130419161201.GA5383@localhost.cambridge.arm.com> References: <20130419090558.GA13283@mudshark.cambridge.arm.com> <20130419092752.GB13283@mudshark.cambridge.arm.com> <20130419093953.GD13283@mudshark.cambridge.arm.com> <20130419161201.GA5383@localhost.cambridge.arm.com> From: Peter Maydell Date: Fri, 19 Apr 2013 17:14:36 +0100 Message-ID: Subject: Re: [RFC] arm64: Early printk support for virtio-mmio console devices. To: Catalin Marinas Cc: Will Deacon , "linaro-kernel@lists.linaro.org" , Patch Tracking , Marc Zyngier , "linux-kernel@vger.kernel.org" , "kvmarm@lists.cs.columbia.edu" , "linux-arm-kernel@lists.infradead.org" , Pranavkumar Sawargaonkar Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1150 Lines: 25 On 19 April 2013 17:12, Catalin Marinas wrote: > On Fri, Apr 19, 2013 at 11:05:47AM +0100, Peter Maydell wrote: >> Please make the kernel pick the device out of the device tree >> blob. The whole point of device tree is that it's how to tell >> the kernel where things live -- making kvmtool/QEMU and/or the >> user also have to mess with the kernel command line is awkward >> and annoying. > > For a normal console device, it indeed needs to get it from the DT. For > early console, you want it earlier than DT parsing so we pass it on the > kernel command line via the earlyprintk= parameter. You should fix your DT handling code so you can get at the info when you need it rather than pushing the problem into bootloaders and QEMU, please. DT is your data structure so feel free to (re)design it so relevant information can be accessed early if that's useful. thanks -- PMM -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/