Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp984387imu; Thu, 13 Dec 2018 07:37:13 -0800 (PST) X-Google-Smtp-Source: AFSGD/Vsd31e637PqTVjNoNdab3zwWyo5JP2s3l6dydLgZla+lVKQNtw4xAolncFxjJ7q4PvUUDR X-Received: by 2002:a17:902:3064:: with SMTP id u91mr23605951plb.325.1544715433757; Thu, 13 Dec 2018 07:37:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544715433; cv=none; d=google.com; s=arc-20160816; b=cc/8KhDou8IRzlVTTguf+midndguMhXbp6JQlVvGoqiM88RNOjZX5Pi7UM6XYsSbQx X4IjtyhccssSZAYNtWJZB5huQJxoCi3xeDAhO/zT+00Hak+11TOKK5ZyVmN2LWYRAr/g p5AKELxIxZ+lDD8MjwvHLkPzYWQ3rKsulS0N/xCrl3Ym3TP6Ejzwb3ufo0jlxo0dG0hE pcfMUS6yNgjq5i4hJudQ8c2QlJkXk1fyyTXLGHL7vv7vbxYOSDrnEsre3EhPhKFnGM27 PP49yItpafRsQralubA6KLAQdMswnUx9uvBHXyLij4mxwZl5siI42sMh9lN9+yy4RS+8 zNSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=7v+eyqie2cB1+vf39GL9pAK9Ipawgsoh7U/TPnLRuMk=; b=xP4Mftp2bv8MjCK0bdTXSOyod3jZjkiMl0+ODhj3SOGftKZjVa2qbjQDSrhaTJvN7k iHA5aE8q28xXTYKZy4mgkUeitaJJDH+UCnLwAZDYjRlBKu/aOFDez1PJQv/0q7xMsWbs kfUl9oyPZOptdM2slIKHZf9mBMyVoq0x4tk1AAhf5pYTEJ5+QCIa4h9wx1gDUq3aN+X6 +Zv14zm7If2ZfeUvFsRKespEDHnSRxo2gmnxo8uWUiUFhyxDbfonOvVEtwiFFianLYwJ gLUuO2bUSBHuBgq+tslGQH3yHI/eZGHaRriZj2GUKG/K6JFaxUO2AQ7jbRDcx66s7JvG gOew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NZPHVZFa; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n187si1847651pfn.83.2018.12.13.07.36.45; Thu, 13 Dec 2018 07:37:13 -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; dkim=pass header.i=@linaro.org header.s=google header.b=NZPHVZFa; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729073AbeLMM34 (ORCPT + 99 others); Thu, 13 Dec 2018 07:29:56 -0500 Received: from mail-lj1-f193.google.com ([209.85.208.193]:43449 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728517AbeLMM3z (ORCPT ); Thu, 13 Dec 2018 07:29:55 -0500 Received: by mail-lj1-f193.google.com with SMTP id 83-v6so1591211ljf.10 for ; Thu, 13 Dec 2018 04:29:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=7v+eyqie2cB1+vf39GL9pAK9Ipawgsoh7U/TPnLRuMk=; b=NZPHVZFat3PN86WLABijEXcEmnku+kVZgAqWvZz2xTLqo8GcFjpAdu56s3fu49PUGo kZMkh41Wb25B5gWhtZAVJ9pi88GG+jJriOgvsydeeLCQtanhIh19PCeGmlczE1Y+viQb LL2+HWUW8TBGl4A5IpUIu3T3o8rQRKb417/CE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=7v+eyqie2cB1+vf39GL9pAK9Ipawgsoh7U/TPnLRuMk=; b=T3j2BTLeYSxY+LegQhu83f6fvO4YhhwUI9++Tzfj5jFyz6TJXE5qS/nuQNg7GdG7wL voc9vdvK3KmNrf7owNEb83V0SXN2blaAjrTQFdHu8tmsDHHiWprJIgNlahI+qVu/X1Dm gsSQUljGosKyxZkqCS5wOP+jic60QcLSmR3VL9i2p1h2DtqI5KMJ3eYEnRyFa4nPdK8k OJLeU49SGU6mBqKmwx4WV88cGGSt3WS7X7ETumKk8gtGH4qo4VQiBeKn6LQtGXNqipJM LmBrUJ/7o91uQ8zDUEvT+F2Qa4euRH5FBfurly5rO0O4CyOeC6o1ff6v9kifQwGKfq91 I+xA== X-Gm-Message-State: AA+aEWYadUtdGGeD+rWPwWaRl5qKIQ985rHY0A3kI6eVJYxi48MX4ib1 SDUae9022rezSUcW51C2Kz2L38UulLxEcw== X-Received: by 2002:a2e:2d4:: with SMTP id y81-v6mr14743517lje.62.1544704192110; Thu, 13 Dec 2018 04:29:52 -0800 (PST) Received: from localhost (c-573670d5.07-21-73746f28.bbcust.telenor.se. [213.112.54.87]) by smtp.gmail.com with ESMTPSA id o17sm312349lff.77.2018.12.13.04.29.51 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 13 Dec 2018 04:29:51 -0800 (PST) From: Anders Roxell To: linux-kernel@vger.kernel.org Cc: catalin.marinas@arm.com, will.deacon@arm.com, arnd@arndb.de, mingo@redhat.com, rostedt@goodmis.org, akpm@linux-foundation.org, broonie@kernel.org, Anders Roxell Subject: [RFC PATCH 3/3] arm64: add a new config option KTEST_RUNNABLE Date: Thu, 13 Dec 2018 13:29:10 +0100 Message-Id: <20181213122910.24193-4-anders.roxell@linaro.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181213122910.24193-1-anders.roxell@linaro.org> References: <20181213122910.24193-1-anders.roxell@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 + source "arch/arm64/Kconfig.platforms" menu "Kernel Features" @@ -773,6 +779,7 @@ config ARM64_PA_BITS config CPU_BIG_ENDIAN bool "Build big-endian kernel" + depends on !KTEST_RUNNABLE help Say Y if you plan on running a kernel in big-endian mode. @@ -1381,6 +1388,7 @@ config CMDLINE config CMDLINE_FORCE bool "Always use the default kernel command string" + depends on !KTEST_RUNNABLE help Always use the default kernel command string, even if the boot loader passes other arguments to the kernel. 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 diff --git a/init/Kconfig b/init/Kconfig index b633716e48f5..3ea5297b7305 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -1844,6 +1844,7 @@ config CMDLINE_PREPEND config CMDLINE_OVERRIDE bool "Built-in command line overrides boot loader arguments" depends on CMDLINE_BOOL + depends on !KTEST_RUNNABLE help Set this option to 'Y' to have the kernel ignore the boot loader command line, and use ONLY the built-in command line. In this case -- 2.19.2