From patchwork Tue Oct 28 13:31:35 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xia Kaixu X-Patchwork-Id: 39664 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id DA19524026 for ; Tue, 28 Oct 2014 13:32:53 +0000 (UTC) Received: by mail-lb0-f198.google.com with SMTP id l4sf454007lbv.5 for ; Tue, 28 Oct 2014 06:32:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=oqq1xic+DKbMY1JFIG4lCOBbboErg9ysJIAYOEBsEBs=; b=U2Uk3ypg/52NcR3ko58a0ajX7H4gCQrfUPkGpOFeuF0+CCJ7J653ZQTamu9kyjG8pi Z5jVlt0AQEYoW3K+N7HQvVGTqf7yha8H3zmFOpnTJdxMABCLYSPLDBcAX+uFitpbaRr0 aWxK3XO2odnH5IlxXNOcw/pwKn82IRJ37MDyxUPlgtUL6tbQNO/5TCqJYF0dQdhweToX Ft2Etay9piA8ZBi0Fri3qlfRTpXVgNB9XbMiFEaAGgcGm5gt0QHCiCw4IolI0s5zCx6H Q39SWiKUveXvayzCHCscuLhqjvr59SWJF4Io6m9c5RHHn4gr3+/OQ3AaZQZX6Hf2etA5 htFg== X-Gm-Message-State: ALoCoQl+MLGXOBHRe52kKkzp/zxomshyBs2M/ITjKb7pmHTgRSaJp7zP+h1giUTX5sqD4w1+DuiY X-Received: by 10.180.182.164 with SMTP id ef4mr761936wic.0.1414503172650; Tue, 28 Oct 2014 06:32:52 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.28.4 with SMTP id x4ls62461lag.42.gmail; Tue, 28 Oct 2014 06:32:52 -0700 (PDT) X-Received: by 10.152.2.100 with SMTP id 4mr4142024lat.6.1414503172457; Tue, 28 Oct 2014 06:32:52 -0700 (PDT) Received: from mail-la0-f45.google.com (mail-la0-f45.google.com. [209.85.215.45]) by mx.google.com with ESMTPS id 6si1486313laj.120.2014.10.28.06.32.52 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 28 Oct 2014 06:32:52 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.45 as permitted sender) client-ip=209.85.215.45; Received: by mail-la0-f45.google.com with SMTP id gm9so616705lab.4 for ; Tue, 28 Oct 2014 06:32:52 -0700 (PDT) X-Received: by 10.153.8.164 with SMTP id dl4mr4067340lad.29.1414503172114; Tue, 28 Oct 2014 06:32:52 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.84.229 with SMTP id c5csp480769lbz; Tue, 28 Oct 2014 06:32:51 -0700 (PDT) X-Received: by 10.70.130.143 with SMTP id oe15mr3451068pdb.81.1414503169184; Tue, 28 Oct 2014 06:32:49 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ba2si1264518pdb.239.2014.10.28.06.32.48 for ; Tue, 28 Oct 2014 06:32:49 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754007AbaJ1Ncc (ORCPT + 26 others); Tue, 28 Oct 2014 09:32:32 -0400 Received: from mail-pd0-f179.google.com ([209.85.192.179]:36685 "EHLO mail-pd0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753878AbaJ1Nca (ORCPT ); Tue, 28 Oct 2014 09:32:30 -0400 Received: by mail-pd0-f179.google.com with SMTP id g10so698996pdj.24 for ; Tue, 28 Oct 2014 06:32:29 -0700 (PDT) X-Received: by 10.70.64.231 with SMTP id r7mr3703160pds.42.1414503149411; Tue, 28 Oct 2014 06:32:29 -0700 (PDT) Received: from localhost.localdomain ([218.17.215.175]) by mx.google.com with ESMTPSA id nq2sm1712627pdb.74.2014.10.28.06.32.26 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 28 Oct 2014 06:32:28 -0700 (PDT) From: Xia Kaixu To: rmk+kernel@arm.linux.org.uk, arm@kernel.org Cc: kaixu.xia@linaro.org, arnd@arndb.de, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 5/5] ARM: use early console instead of early debug in allmodconfig kernels Date: Tue, 28 Oct 2014 21:31:35 +0800 Message-Id: <1414503095-25986-6-git-send-email-kaixu.xia@linaro.org> X-Mailer: git-send-email 2.1.1 In-Reply-To: <1414503095-25986-1-git-send-email-kaixu.xia@linaro.org> References: <1414503095-25986-1-git-send-email-kaixu.xia@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: kaixu.xia@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.45 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The early debug could break something when booting 'allmodconfig' kernels. So we use early console instead of early debug. The early console didn't work yet on OMAP4460 because of missing earlycon support and I am working on that. Signed-off-by: Xia Kaixu --- arch/arm/Kconfig.debug | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug index 03dc4c1..897e4ab 100644 --- a/arch/arm/Kconfig.debug +++ b/arch/arm/Kconfig.debug @@ -78,7 +78,7 @@ config DEBUG_USER # These options are only for real kernel hackers who want to get their hands dirty. config DEBUG_LL bool "Kernel low-level debugging functions (read help!)" - depends on DEBUG_KERNEL + depends on DEBUG_KERNEL && !ARCH_MULTIPLATFORM_STRICT help Say Y here to include definitions of printascii, printch, printhex in the kernel. This is helpful if you are debugging code that @@ -1297,6 +1297,29 @@ config EARLY_PRINTK kernel low-level debugging functions. Add earlyprintk to your kernel parameters to enable this console. +config FORCE_EARLY_CONSOLE + bool "Enable all early console drivers" + depends on DEBUG_KERNEL && ARCH_MULTIPLATFORM_STRICT + select TTY + select SERIAL_8250 + select SERIAL_8250_CONSOLE + select SERIAL_AMBA_PL011 + select SERIAL_AMBA_PL011_CONSOLE + select SERIAL_EARLYCON_ARM_SEMIHOST + select SERIAL_MSM + select SERIAL_MSM_CONSOLE + select SERIAL_XILINX_PS_UART + select SERIAL_XILINX_PS_UART_CONSOLE + help + On strict multiplatform configurations, the early debug code + is not available, so the early console code should be used + for debugging the startup code. + This option ensures that all of the earlycon drivers are enabled, + which is mainly useful for booting 'allmodconfig' kernels. + + It is always safe to say 'N' here for a smaller kernel and to + select the required options individually. + config OC_ETM bool "On-chip ETM and ETB" depends on ARM_AMBA