Received: by 10.223.185.116 with SMTP id b49csp3900152wrg; Mon, 19 Feb 2018 07:50:03 -0800 (PST) X-Google-Smtp-Source: AH8x226ejzGzsdKNf7x7xfodQmQYwEeQcJM1CyNCGU2WzSHe3Jqlj4WLjH0KziVSOsylZxXSpIlH X-Received: by 2002:a17:902:4a0c:: with SMTP id w12-v6mr14579432pld.17.1519055402923; Mon, 19 Feb 2018 07:50:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519055402; cv=none; d=google.com; s=arc-20160816; b=IRNoqqJ0UdE62s9yGII8+uZ3mp//A6PKoXvzWhXb1PtNsReW2KL++iZhUceGWFl7mX fXIAF37UM/ZqPgzN7g3QIm/RT4tgSSVaLlm6qhVplXxru8KVUDQEHl60+OVD8CXylQG5 NJqZQm4Cmd3ZCNsshElpLDB6ZXT1oeA1Wyr5zDSLCV62i2YaVxgAeQhQUscKQ7DmTKyq +yD5nitYieCnOnCjbmcotLzsqxgMWv1FgYxxaYVHFkYeK+v0esZziQXDUPW32py8ycnC y3FKpTIqjN/5hwtniZl78GPq7gglUiw34fAwgWoH/OSC5zdS67SHRfmYHNaV/xa8T2og mNGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:references:in-reply-to :references:in-reply-to:date:subject:cc:to:from :arc-authentication-results; bh=YziHQ6K4zeXB32J97zt2n/ngM4VzJqRh83mYMXUtYCk=; b=d3N3kC9f0s6IsnZr28WW7/3MQelOdUfJvQ3JmHEyRntKVUXLErN1KArhPS49QnfKQs P/Qf8Spt/87eLecYV9Ix/ny0nCDmgmXGzOVCLIphWicCZEQGVaWLE34W+F/qy2xaR4jT XMKS3DzCqgk5n2KrJl3xQeoMvAglQdx9OmiUEWJeNIZpgHo+V0k38oSg+mLyXpdZpq1M JBl+kHESw1wijK1nwcAtj1P6DfIkosSKY14ZHGLp7ooJKPXxsPNoknzPSUsyeaJJOHkU 6I53rYwqlswhLMQN8WB/n3DTnomfeCT6dnXemN/9P7O70OLr52WiKRIQCHxovfyINsGO 0SkQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g2-v6si1622264pll.556.2018.02.19.07.49.48; Mon, 19 Feb 2018 07:50:02 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753348AbeBSPrp (ORCPT + 99 others); Mon, 19 Feb 2018 10:47:45 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:40356 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753336AbeBSPrl (ORCPT ); Mon, 19 Feb 2018 10:47:41 -0500 Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w1JFksF0061367 for ; Mon, 19 Feb 2018 10:47:41 -0500 Received: from e33.co.us.ibm.com (e33.co.us.ibm.com [32.97.110.151]) by mx0a-001b2d01.pphosted.com with ESMTP id 2g80r1ajct-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Mon, 19 Feb 2018 10:47:40 -0500 Received: from localhost by e33.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 19 Feb 2018 08:47:39 -0700 Received: from b03cxnp08027.gho.boulder.ibm.com (9.17.130.19) by e33.co.us.ibm.com (192.168.1.133) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 19 Feb 2018 08:47:35 -0700 Received: from b03ledav006.gho.boulder.ibm.com (b03ledav006.gho.boulder.ibm.com [9.17.130.237]) by b03cxnp08027.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w1JFlXSY8913346; Mon, 19 Feb 2018 08:47:35 -0700 Received: from b03ledav006.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id EAA55C6042; Mon, 19 Feb 2018 08:47:34 -0700 (MST) Received: from alifm-ThinkPad-T470p.pok.ibm.com (unknown [9.56.58.71]) by b03ledav006.gho.boulder.ibm.com (Postfix) with ESMTPS id 28CEFC6043; Mon, 19 Feb 2018 08:47:34 -0700 (MST) From: Farhan Ali To: linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, linux-fbdev@vger.kernel.org Cc: geert@linux-m68k.org, borntraeger@de.ibm.com, tomi.valkeinen@ti.com, thuth@redhat.com, b.zolnierkie@samsung.com, alifm@linux.vnet.ibm.com Subject: [PATCH v3 3/3] s390/setup : enable display support for KVM guest Date: Mon, 19 Feb 2018 10:47:27 -0500 X-Mailer: git-send-email 2.7.4 In-Reply-To: References: In-Reply-To: References: X-TM-AS-GCONF: 00 x-cbid: 18021915-0008-0000-0000-00000958B0AF X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00008560; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000254; SDB=6.00992052; UDB=6.00503963; IPR=6.00771398; MB=3.00019637; MTD=3.00000008; XFM=3.00000015; UTC=2018-02-19 15:47:37 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18021915-0009-0000-0000-000046161822 Message-Id: <8a6103fcc2b05f4426dcf6573a2175ffe6211403.1519053920.git.alifm@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-02-19_08:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1802190195 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The S390 architecture does not support any graphics hardware, but with the latest support for Virtio GPU in Linux and Virtio GPU emulation in QEMU, it's possible to enable graphics for S390 using the Virtio GPU device. To enable display we need to enable the Linux Virtual Terminal (VT) layer for S390. But the VT subsystem initializes quite early at boot so we need a dummy console driver till the Virtio GPU driver is initialized and we can run the framebuffer console. The framebuffer console over a Virtio GPU device can be run in combination with the serial SCLP console (default on S390). The SCLP console can still be accessed by management applications (eg: via Libvirt's virsh console). Signed-off-by: Farhan Ali Acked-by: Christian Borntraeger --- arch/s390/kernel/setup.c | 2 ++ drivers/tty/Kconfig | 2 +- drivers/video/console/Kconfig | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/s390/kernel/setup.c b/arch/s390/kernel/setup.c index a6a91f0..f98a0f3 100644 --- a/arch/s390/kernel/setup.c +++ b/arch/s390/kernel/setup.c @@ -221,6 +221,8 @@ static void __init conmode_default(void) SET_CONSOLE_SCLP; #endif } + if (IS_ENABLED(CONFIG_VT) && IS_ENABLED(CONFIG_DUMMY_CONSOLE)) + conswitchp = &dummy_con; } #ifdef CONFIG_CRASH_DUMP diff --git a/drivers/tty/Kconfig b/drivers/tty/Kconfig index b811442..5ca53fa 100644 --- a/drivers/tty/Kconfig +++ b/drivers/tty/Kconfig @@ -11,7 +11,7 @@ if TTY config VT bool "Virtual terminal" if EXPERT - depends on !S390 && !UML + depends on !UML select INPUT default y ---help--- diff --git a/drivers/video/console/Kconfig b/drivers/video/console/Kconfig index 0023b16..7aa721e 100644 --- a/drivers/video/console/Kconfig +++ b/drivers/video/console/Kconfig @@ -9,7 +9,7 @@ config VGA_CONSOLE depends on !4xx && !PPC_8xx && !SPARC && !M68K && !PARISC && !FRV && \ !SUPERH && !BLACKFIN && !AVR32 && !MN10300 && !CRIS && \ (!ARM || ARCH_FOOTBRIDGE || ARCH_INTEGRATOR || ARCH_NETWINDER) && \ - !ARM64 && !ARC && !MICROBLAZE && !OPENRISC + !ARM64 && !ARC && !MICROBLAZE && !OPENRISC && !S390 default y help Saying Y here will allow you to use Linux in text mode through a -- 2.7.4