Received: by 10.223.185.116 with SMTP id b49csp1803366wrg; Thu, 15 Feb 2018 01:41:35 -0800 (PST) X-Google-Smtp-Source: AH8x225zjT+FwIv3Wi89J4adBrpwgrnPZpPzKzelpJqR6wdc90ILXTLAhfq0kyxakNNOFdjhvIE7 X-Received: by 2002:a17:902:27:: with SMTP id 36-v6mr2001341pla.128.1518687695232; Thu, 15 Feb 2018 01:41:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518687695; cv=none; d=google.com; s=arc-20160816; b=W2nLM96nYOvuArURygAvCUbr03UNtiUpt3Zfqk59XP6RRpD+byMk2FD8vqVqLmos6W t5kGRNbnxPtfjitr/d5GIOrrrwcgmr9gIIFVgcn1aERuCA2ZBn4dj2god2LQlZ2JX7M5 L5W12JYrB9ybnTBfd0MKmu613G0V3w8NqUTbb4xVbaTGJJdJiM5qnUHcB4zM48JpERQ1 bJS7QETbEu7VHtJMzCbiS2d1vGMH+Gao6Zs8JPI0iROPCIxtETPSALo0QluXj1mwXLYB D/PyuKa8ogGNIXV6+l7i/Hv51nBSuirPyuWVCQ7qAgnHQU8eh7siLUilNofesB4jgoVr Dyog== 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=MYm3jm9PKt/zmJiTfB5XEdz14snd2X5mHjGV+uxidP8=; b=k+8I+X6dm19ENJrHFFXqA8X916Um5kUkoimAvB109k/NsmYbeotWRliqsR4h9xkXqk iJnTXyp/B7NVjSjYKCbMMnV+3Eszgg1V7G0d43Zdfe9YGsHVVIXrtr2NkMSgD9fSezv3 elFLjMwt1dmwRpkHNJO1m1+iQitkCNgRQg/nDeRE/Ear2Z8VrV0ThCYn2GN/Xte8PCzQ M/dbl++iOm2IDeDV86c/A+9f3xPj+50ZMY6Ez7qXzSsoREH1TxAx7tutgIduiCBNmU38 k+Xpfvhyc8b2ZRPAzVaepN57tR27uMp3pbZ9kwDtQnVtL1kww/ZUgQ960ijVVzo9/0Pw /F9A== 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 l6si1066020pgs.367.2018.02.15.01.41.20; Thu, 15 Feb 2018 01:41:35 -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 S1755256AbeBOJk3 (ORCPT + 99 others); Thu, 15 Feb 2018 04:40:29 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:34444 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755159AbeBOJk1 (ORCPT ); Thu, 15 Feb 2018 04:40:27 -0500 Received: from pps.filterd (m0098417.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w1F9d0FY132930 for ; Thu, 15 Feb 2018 04:40:27 -0500 Received: from e06smtp12.uk.ibm.com (e06smtp12.uk.ibm.com [195.75.94.108]) by mx0a-001b2d01.pphosted.com with ESMTP id 2g53j68x33-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Thu, 15 Feb 2018 04:40:26 -0500 Received: from localhost by e06smtp12.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 15 Feb 2018 09:40:09 -0000 Received: from b06cxnps3074.portsmouth.uk.ibm.com (9.149.109.194) by e06smtp12.uk.ibm.com (192.168.101.142) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 15 Feb 2018 09:40:05 -0000 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w1F9e5vn524694; Thu, 15 Feb 2018 09:40:05 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B64BF11C05C; Thu, 15 Feb 2018 09:33:16 +0000 (GMT) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4CE2211C04C; Thu, 15 Feb 2018 09:33:16 +0000 (GMT) Received: from oc7330422307.ibm.com (unknown [9.152.224.153]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTP; Thu, 15 Feb 2018 09:33:16 +0000 (GMT) Subject: Re: [PATCH v2 1/3] Kconfig : Remove HAS_IOMEM dependency for Graphics support To: Bartlomiej Zolnierkiewicz Cc: Farhan Ali , linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, linux-fbdev@vger.kernel.org, geert@linux-m68k.org, stefan.kristiansson@saunalahti.fi, tomi.valkeinen@ti.com, schwidefsky@de.ibm.com, dri-devel@lists.freedesktop.org, Chen Liqin , Lennox Wu , Jeff Dike , Richard Weinberger , user-mode-linux-devel@lists.sourceforge.net References: <246f92c9-15dc-223f-59d9-b2f0756cdf5e@de.ibm.com> <1610039.4trOurtpys@amdc3058> From: Christian Borntraeger Date: Thu, 15 Feb 2018 10:40:04 +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: <1610039.4trOurtpys@amdc3058> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 x-cbid: 18021509-0008-0000-0000-000004CD0015 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18021509-0009-0000-0000-00001E60C811 Message-Id: <2324e2cc-ff55-4d57-2807-c7f72f9ea0ca@de.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-02-15_04:,, 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-1802150121 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/08/2018 02:11 PM, Bartlomiej Zolnierkiewicz wrote: > > Hi, > > [ dri-devel ML & arch/[score,um] Maintainers added to Cc: ] > > On Friday, February 02, 2018 08:59:57 AM Christian Borntraeger wrote: >> On 02/01/2018 07:41 PM, Farhan Ali wrote: >>> The 'commit e25df1205f37 ("[S390] Kconfig: menus with depends on HAS_IOMEM.")' >>> added the HAS_IOMEM dependecy for "Graphics support". This disabled the >>> "Graphics support" menu for S390. But if we enable VT layer for S390, >>> we would also need to enable the dummy console. So let's remove the >>> HAS_IOMEM dependency. >>> >>> Move this dependency to Opencores framebuffer driver which would fail to build >>> with CONFIG_HAS_IOMEM disabled: >>> >>> ERROR: "devm_ioremap_resource" [drivers/video/fbdev/ocfb.ko] undefined! > > "Graphics support" menu covers other things (i.e. DRM), I assume that > they were also checked to not break due to this change? > > Moreover it seems that after this change "Graphics support" menu will > be also enabled (besides s390) for score, tile and um architectures, > I assume that this is okay? Turns out that patch fails to build with. So what about the following approach instead: diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig index 3c20af999893..5ae512fe52ed 100644 --- a/drivers/video/Kconfig +++ b/drivers/video/Kconfig @@ -47,3 +47,28 @@ endif endmenu + +config DUMMY_CONSOLE + bool + depends on VGA_CONSOLE!=y || SGI_NEWPORT_CONSOLE!=y + default y + +config DUMMY_CONSOLE_COLUMNS + int "Initial number of console screen columns" + depends on DUMMY_CONSOLE && !ARM + default 160 if PARISC + default 80 + help + On PA-RISC, the default value is 160, which should fit a 1280x1024 + monitor. + Select 80 if you use a 640x480 resolution by default. + +config DUMMY_CONSOLE_ROWS + int "Initial number of console screen rows" + depends on DUMMY_CONSOLE && !ARM + default 64 if PARISC + default 25 + help + On PA-RISC, the default value is 64, which should fit a 1280x1024 + monitor. + Select 25 if you use a 640x480 resolution by default. diff --git a/drivers/video/console/Kconfig b/drivers/video/console/Kconfig index 7f1f1fbcef9e..97ae3c349666 100644 --- a/drivers/video/console/Kconfig +++ b/drivers/video/console/Kconfig @@ -91,31 +91,6 @@ config SGI_NEWPORT_CONSOLE Say Y here if you want the console on the Newport aka XL graphics card of your Indy. Most people say Y here. -config DUMMY_CONSOLE - bool - depends on VGA_CONSOLE!=y || SGI_NEWPORT_CONSOLE!=y - default y - -config DUMMY_CONSOLE_COLUMNS - int "Initial number of console screen columns" - depends on DUMMY_CONSOLE && !ARM - default 160 if PARISC - default 80 - help - On PA-RISC, the default value is 160, which should fit a 1280x1024 - monitor. - Select 80 if you use a 640x480 resolution by default. - -config DUMMY_CONSOLE_ROWS - int "Initial number of console screen rows" - depends on DUMMY_CONSOLE && !ARM - default 64 if PARISC - default 25 - help - On PA-RISC, the default value is 64, which should fit a 1280x1024 - monitor. - Select 25 if you use a 640x480 resolution by default. - config FRAMEBUFFER_CONSOLE bool "Framebuffer Console support" depends on FB && !UML