Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3627041imu; Mon, 7 Jan 2019 06:46:23 -0800 (PST) X-Google-Smtp-Source: ALg8bN4Wc2BqmEi1witKPBugb4S0S5LJ5+JshEr57LFC9uV3NwzjT2mnGetNKbvHuEv1Xl9u+aJX X-Received: by 2002:a17:902:f01:: with SMTP id 1mr59893865ply.143.1546872383753; Mon, 07 Jan 2019 06:46:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546872383; cv=none; d=google.com; s=arc-20160816; b=tgwmUOp5qRD9HbMuqObt+/3LE2/wXjP3NDFJH3N+VDLpOFA0zHFAGis9vpgCnXzYGj OHo9pse881uKA4juECG8z9eBGN2aea9A4zt15gKqTQX+HNB+1TxXVRsOZJT3w/+GpfNb AaymkSW71gEaDBr+jDMfHp+UgzrMiV6n5pIUGtBE0IP8kaSe+dszfdMI1lrkiVvB22E1 U1kJsU26R85l2BhKXIGMlOl9ydZsd/UTt5c7nPySeAUZmkcWCzvFDAAbKeSxjV9BtrPc U6HiPAHuoEs+9JmzmFC+QVGF+pOXDWT946UcRKoeBiG8xJsLqv6798DOvnohkwoJmxUw vZYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=/hovVKIrGNy5b32Ht5vq1B+8XoZtDxMHAw7PCqBKoqY=; b=lzdkO6CgJEb6r3SzaoQS/m8ghggVYO8EtdHE109Gye7gqpxq064/qOP/AGKk7UeeZO WRYvFhs9o28E/4xU4XZ4hv71JiB8VTeCGUGiM9prxJb8iLCrajJ3phbxxZ99fm5hwqcI xuFwIbY7R+ikTImYN218ii5IKGMlkfQb69C+Wo85shr+b5TQFT0djgFkGI4sqFXpT/7w oyhxzWGpPpSuVCWSSLmX1uMWO8uLyqoEcxtWAu6d/zT0fH2GfNLp1BC/RW22rA4snfg5 Z8eavJSZHiTVblUIjvgbTsX8GmCjJEGDGDR+FqG9TcJoiwI+IVakbUAnIlWVtFA5YGJ0 3cKA== 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 j17si7402794pfd.113.2019.01.07.06.46.08; Mon, 07 Jan 2019 06:46:23 -0800 (PST) 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 S1729008AbfAGOoC (ORCPT + 99 others); Mon, 7 Jan 2019 09:44:02 -0500 Received: from foss.arm.com ([217.140.101.70]:60790 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727366AbfAGOoB (ORCPT ); Mon, 7 Jan 2019 09:44:01 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 30DB780D; Mon, 7 Jan 2019 06:44:01 -0800 (PST) Received: from lakrids.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 84FC23F5AF; Mon, 7 Jan 2019 06:43:59 -0800 (PST) Date: Mon, 7 Jan 2019 14:43:57 +0000 From: Mark Rutland To: Anders Roxell Cc: linux-kernel@vger.kernel.org, catalin.marinas@arm.com, will.deacon@arm.com, arnd@arndb.de, mingo@redhat.com, rostedt@goodmis.org, akpm@linux-foundation.org, broonie@kernel.org Subject: Re: [RFC PATCH 3/3] arm64: add a new config option KTEST_RUNNABLE Message-ID: <20190107144356.GB46743@lakrids.cambridge.arm.com> References: <20181213122910.24193-1-anders.roxell@linaro.org> <20181213122910.24193-4-anders.roxell@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181213122910.24193-4-anders.roxell@linaro.org> User-Agent: Mutt/1.11.1+11 (2f07cb52) (2018-12-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, As a general thing, please Cc LAKML on patches for arm64. On Thu, Dec 13, 2018 at 01:29:10PM +0100, Anders Roxell wrote: > With this new config option, we can boot a allmodconfig kernel in qemu. > Config options SERIAL_AMBA_PL011, SERIAL_AMBA_PL011_CONSOLE, UNIX needs > to be enabled in order to get a console. Options like CPU_BIG_ENDIAN, > CMDLINE_FORCE, CMDLINE_OVERRIDE and HVC_DCC needs to be disabled. > > Co-developed-by: Arnd Bergmann > Signed-off-by: Arnd Bergmann > Signed-off-by: Anders Roxell > --- > arch/arm64/Kconfig | 8 ++++++++ > drivers/tty/hvc/Kconfig | 1 + > init/Kconfig | 1 + > 3 files changed, 10 insertions(+) > > diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig > index 1f52362f8d99..bb17ccb7bab2 100644 > --- a/arch/arm64/Kconfig > +++ b/arch/arm64/Kconfig > @@ -292,6 +292,12 @@ config ARCH_SUPPORTS_UPROBES > config ARCH_PROC_KCORE_TEXT > def_bool y > > +config KTEST_RUNNABLE > + bool "Test build kernels that run in qemu for ktest" > + select SERIAL_AMBA_PL011 > + select SERIAL_AMBA_PL011_CONSOLE > + select UNIX > + As Mark Brown points out, the PL011 bits are platform-specific, and don't directly relate to ktest. The UNIX part is simply because that can be built as a module. Is it possible to use an allyesconfig rather than an allmodconfig? That would leave all relevant options built-in. > diff --git a/drivers/tty/hvc/Kconfig b/drivers/tty/hvc/Kconfig > index 4293c172e120..44e23c2388bd 100644 > --- a/drivers/tty/hvc/Kconfig > +++ b/drivers/tty/hvc/Kconfig > @@ -82,6 +82,7 @@ config HVC_UDBG > config HVC_DCC > bool "ARM JTAG DCC console" > depends on ARM || ARM64 > + depends on !KTEST_RUNNABLE > select HVC_DRIVER > help > This console uses the JTAG DCC on ARM to create a console under the HVC ... this is just a hack around the DCC driver being dodgy. We should fix that to only probe if explicitly requested at run-time via a command line argument. Thanks, Mark.