Received: by 10.223.185.116 with SMTP id b49csp1926413wrg; Thu, 15 Feb 2018 03:59:14 -0800 (PST) X-Google-Smtp-Source: AH8x227FrP+47WCyB5ctDHtTrRaVnRGftkqyEXorlPbnlwSAwNEAdQJXJe01APXix4ghHSTxRz9N X-Received: by 10.98.90.132 with SMTP id o126mr2373592pfb.239.1518695954101; Thu, 15 Feb 2018 03:59:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518695954; cv=none; d=google.com; s=arc-20160816; b=LLwQErLrq2PTfBe/Dv9/x3PEml7pwx+F77htQF/RtOG9VQ5v+6dkDnKbLnV3rLEXSA DP1P82vMl5NJsyLusziQs3dyTOvanVbo4jO3F5BR8t3pLEGopjLA4H2D5sUVyBmE0ids Rw4q3OFCkYuPxWLpnsoWL/sPt9fco5iGxnHsZkRUjj2+DRb7GPV4RC02f7NKMTowgUKD 3Bheu805YPpM6Jpjaezjf+ed/wsuQtkyH0lQOYXEnOdsxqbg+tVu2F/7DGZfHmTAB0u/ Q35SE8HitVyozUscyUw2KdTPl8ocHyYbpgAK/n9AmRrNSUXkwZt3XNSu2pLRIPcPUmRm dbSg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=O6o+q9RSwnako4A1SpOCzSwDJljKJ48eMTHxAaey9qI=; b=YsOUaaIaJKz2eU7Q/YSiMry/LUIaHrFznb6SUxCYQbUyvhTT9twaUnBB2P3axDMRHu ASH7hEAdhDJQjMqUvHb0uHhlHuBWlAeth8srOjmCMblyLkP/dlL6GqKGB00p8TahIPdj JkMYEbMl0qEIsErgJavTayC/kKkpnC5oioHBeDcx2HdZnBIxBAvZFcLY+OeuYuSdW9eS x2yHA+m/LgGf7nZRcpscguiPvj5KT78i2TNwTbOCJHleT5WdZVIFBYl6XHSwA7Q9ad5H 2qDR/DEssVESB3wQuSUsUTYzEc5QqehmawLmEy72dlhHBXTzpd8ke3t01UhbmFl/agxG zI6A== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r5si1360231pgt.92.2018.02.15.03.58.59; Thu, 15 Feb 2018 03:59:14 -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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967973AbeBOL5p (ORCPT + 99 others); Thu, 15 Feb 2018 06:57:45 -0500 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:38458 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S967843AbeBOL5n (ORCPT ); Thu, 15 Feb 2018 06:57:43 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id EEFE98182D2F; Thu, 15 Feb 2018 11:57:42 +0000 (UTC) Received: from [10.36.116.121] (ovpn-116-121.ams2.redhat.com [10.36.116.121]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 01CE6215671B; Thu, 15 Feb 2018 11:57:38 +0000 (UTC) Subject: Re: [PATCH] s390/console: enable dummy console for vt To: Geert Uytterhoeven , Christian Borntraeger Cc: Bartlomiej Zolnierkiewicz , Farhan Ali , Linux Kernel Mailing List , Linux Fbdev development list , linux-s390 , Stefan Kristiansson , Tomi Valkeinen , Martin Schwidefsky , DRI Development , Chen Liqin , Lennox Wu , Jeff Dike , Richard Weinberger , uml-devel References: <2324e2cc-ff55-4d57-2807-c7f72f9ea0ca@de.ibm.com> <20180215111423.96598-1-borntraeger@de.ibm.com> From: Thomas Huth Message-ID: Date: Thu, 15 Feb 2018 12:57:37 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Thu, 15 Feb 2018 11:57:43 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Thu, 15 Feb 2018 11:57:43 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'thuth@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 15.02.2018 12:26, Geert Uytterhoeven wrote: > Hi Christian, > > On Thu, Feb 15, 2018 at 12:14 PM, Christian Borntraeger > wrote: >> To enable the virtual terminal layer with virtio-gpu, we need to >> provide the dummy console. This console is hidden behind CONFIG_IOMEM >> via the graphics support. Instead of fully enabling the graphic >> drivers lets just provide a Kconfig option for the dummy console. >> >> Signed-off-by: Christian Borntraeger >> --- >> New version: instead of moving around the graphic and console stuff, >> let's just keep an s390 specific variant of CONFIG_DUMMY_CONSOLE >> arch/s390/Kconfig | 5 +++++ >> 1 file changed, 5 insertions(+) >> >> diff --git a/arch/s390/Kconfig b/arch/s390/Kconfig >> index cbe1d978693a..a69690f616f3 100644 >> --- a/arch/s390/Kconfig >> +++ b/arch/s390/Kconfig >> @@ -952,6 +952,11 @@ config S390_HYPFS_FS >> >> source "arch/s390/kvm/Kconfig" >> >> +config DUMMY_CONSOLE >> + bool >> + depends on VT >> + default y >> + >> config S390_GUEST >> def_bool y >> prompt "s390 support for virtio devices" > > Really? > > You already have your own copy of HAS_IOMEM, which makes it hard for > people to track which one applies where. I think I agree with Geert - let's better fix this in a proper way instead of doing hacks like this. I guess there will be other architectures in the future that might want to use the dummy console without CONFIG_IOMEM, so fixing this in drivers/video/ instead sounds better to me. Thomas