Received: by 10.223.185.116 with SMTP id b49csp3797373wrg; Mon, 19 Feb 2018 06:13:20 -0800 (PST) X-Google-Smtp-Source: AH8x224kVXzNq3vyb5vX0Q2OjpV2BOzOPop53fHzdsdMsCrMPp70MKM1tdyE7briYK5PAyGBP7vw X-Received: by 2002:a17:902:5682:: with SMTP id j2-v6mr14287135pli.441.1519049600507; Mon, 19 Feb 2018 06:13:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519049600; cv=none; d=google.com; s=arc-20160816; b=V6k314Spbsd1KmvgaItDjeKxMz7fsvlu8YbuWfptuPSRP/QsmVImMaIBGuZZwzUwJC rxGS0NOzfvCw4GDwA/BC0kW8DEoLVeBEkFKKa4rkU/1ryGxrO+54QLFeiHgM/GQAst1T 1M0R9OVkVxyHQbXoEiD7cWAluofqxDmEEXdF1dLseomUxidzJfT92fWFaums91gX2WWX 0tQyMuk2mIyYaWQCVvpvLbLOLKCNC7WeRvwP0DwDOhRxXf14/XKQTP6dyGpzpFyGMsIz 85mbb98s5Ay1jUrJlt4uCL5qnpVhBQ8NXJJf8/SnHJAds2wXMevS6OexNsGC6N90mlP5 Uaig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date:from :references:cc:to:subject:arc-authentication-results; bh=MufJb2GtPzpGoMNS4/9VuEc31cClfgDNSPTKeKYorjw=; b=qq6b43pONXZKVGXlPqCdQIia3uIg6Po9bIcz8Io0oMMp7GKhgA/xw8i66+jG9VYDPd kDM1aqnTOy8BojBTBc/wBMqloe5WXy/8TWxBm7N7bR1ipIejPn0vUkMx/qwtp+0WBDU1 qr0t19Gmhbpst9bMnICDRdHAQnqqkOO8HddfHQ1N525dDn+171a5rSSZ9Yqg8tHBOTLV ckA34iKzwUcgaoqEx94+K68iagF/yDk8nvZQbA12k3Z2XSznEHnvsx3vuUmSAJe8Ioo0 Yh2nt3QMRQUcvmlKW4sy3Od94JSTdk2PjctZs3egbf+N3et+5FCB0rG11rDwRovCMqsP JARA== 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 u6si861488pfd.236.2018.02.19.06.13.04; Mon, 19 Feb 2018 06:13:20 -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 S1752774AbeBSOBd (ORCPT + 99 others); Mon, 19 Feb 2018 09:01:33 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:41304 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752686AbeBSOBa (ORCPT ); Mon, 19 Feb 2018 09:01:30 -0500 Received: from pps.filterd (m0098416.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w1JE055j174250 for ; Mon, 19 Feb 2018 09:01:30 -0500 Received: from e32.co.us.ibm.com (e32.co.us.ibm.com [32.97.110.150]) by mx0b-001b2d01.pphosted.com with ESMTP id 2g7vhh8w54-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Mon, 19 Feb 2018 09:01:28 -0500 Received: from localhost by e32.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 19 Feb 2018 07:01:26 -0700 Received: from b03cxnp07029.gho.boulder.ibm.com (9.17.130.16) by e32.co.us.ibm.com (192.168.1.132) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 19 Feb 2018 07:01:22 -0700 Received: from b03ledav003.gho.boulder.ibm.com (b03ledav003.gho.boulder.ibm.com [9.17.130.234]) by b03cxnp07029.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w1JE1Kbb9896278; Mon, 19 Feb 2018 07:01:20 -0700 Received: from b03ledav003.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C48636A047; Mon, 19 Feb 2018 07:01:20 -0700 (MST) Received: from [9.56.58.71] (unknown [9.56.58.71]) by b03ledav003.gho.boulder.ibm.com (Postfix) with ESMTP id 80E776A042; Mon, 19 Feb 2018 07:01:19 -0700 (MST) Subject: Re: [PATCH] s390/console: enable dummy console for vt To: Christian Borntraeger , Thomas Huth , Geert Uytterhoeven Cc: Bartlomiej Zolnierkiewicz , 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> <4116f119-b96e-a8c1-359a-dde488d61212@de.ibm.com> From: Farhan Ali Date: Mon, 19 Feb 2018 09:01:19 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 x-cbid: 18021914-0004-0000-0000-000013AFE779 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.00992017; UDB=6.00503942; IPR=6.00771362; MB=3.00019635; MTD=3.00000008; XFM=3.00000015; UTC=2018-02-19 14:01:25 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18021914-0005-0000-0000-0000862684A2 Message-Id: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-02-19_06:,, 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=1011 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1802190175 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/19/2018 08:37 AM, Christian Borntraeger wrote: > > > On 02/19/2018 02:35 PM, Farhan Ali wrote: >> >> >> On 02/15/2018 07:02 AM, Christian Borntraeger wrote: >>> >>> >>> On 02/15/2018 12:57 PM, Thomas Huth wrote: >>>> 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. >>> >>> The question is, what is the proper fix? >>> >> >> How about we only fence off sub menu items such as DRM or GPU or Fbdev, which actually uses io memory, in drivers/video/Kconfig? Similar to what Thomas suggested for moving the CONFIG_IOMEM dependency for fbdevs? > > Can you spin a patch? > Yes, I will post it as V3.