linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Farhan Ali <alifm@linux.vnet.ibm.com>
To: Christian Borntraeger <borntraeger@de.ibm.com>,
	Thomas Huth <thuth@redhat.com>,
	Geert Uytterhoeven <geert@linux-m68k.org>
Cc: linux-s390 <linux-s390@vger.kernel.org>,
	Linux Fbdev development list <linux-fbdev@vger.kernel.org>,
	uml-devel <user-mode-linux-devel@lists.sourceforge.net>,
	Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>,
	Richard Weinberger <richard@nod.at>,
	Jeff Dike <jdike@addtoit.com>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	DRI Development <dri-devel@lists.freedesktop.org>,
	Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>,
	Tomi Valkeinen <tomi.valkeinen@ti.com>,
	Martin Schwidefsky <schwidefsky@de.ibm.com>,
	Chen Liqin <liqin.linux@gmail.com>,
	Lennox Wu <lennox.wu@gmail.com>
Subject: Re: [PATCH] s390/console: enable dummy console for vt
Date: Mon, 19 Feb 2018 14:01:19 +0000	[thread overview]
Message-ID: <b8948d24-3351-2a8c-de2a-1c1c94685778@linux.vnet.ibm.com> (raw)
In-Reply-To: <ef45a7d8-206b-3583-404e-f9078b7023b2@de.ibm.com>



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
>>>>> <borntraeger@de.ibm.com> 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 <borntraeger@de.ibm.com>
>>>>>> ---
>>>>>> 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.


  reply	other threads:[~2018-02-19 14:01 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-01 18:41 [PATCH v2 0/3]Enable CONFIG_VT support for S390 Farhan Ali
2018-02-01 18:41 ` [PATCH v2 1/3] Kconfig : Remove HAS_IOMEM dependency for Graphics support Farhan Ali
2018-02-02  7:59   ` Christian Borntraeger
2018-02-08 13:11     ` Bartlomiej Zolnierkiewicz
2018-02-08 15:28       ` Farhan Ali
2018-02-08 15:30       ` Christian Borntraeger
2018-02-14  8:12       ` Christian Borntraeger
2018-02-15  9:40       ` Christian Borntraeger
2018-02-15 11:02         ` Christian Borntraeger
2018-02-15 11:14         ` [PATCH] s390/console: enable dummy console for vt Christian Borntraeger
2018-02-15 11:26           ` Geert Uytterhoeven
2018-02-15 11:56             ` Christian Borntraeger
2018-02-15 11:57             ` Thomas Huth
2018-02-15 12:02               ` Christian Borntraeger
2018-02-19 13:35                 ` Farhan Ali
2018-02-19 13:37                   ` Christian Borntraeger
2018-02-19 14:01                     ` Farhan Ali [this message]
2018-02-06 12:36   ` [PATCH v2 1/3] Kconfig : Remove HAS_IOMEM dependency for Graphics support Thomas Huth
2018-02-01 18:41 ` [PATCH v2 2/3] s390/char : Rename EBCDIC keymap variables Farhan Ali
2018-02-01 18:41 ` [PATCH v2 3/3] s390/setup : enable display support for KVM guest Farhan Ali

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b8948d24-3351-2a8c-de2a-1c1c94685778@linux.vnet.ibm.com \
    --to=alifm@linux.vnet.ibm.com \
    --cc=b.zolnierkie@samsung.com \
    --cc=borntraeger@de.ibm.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=geert@linux-m68k.org \
    --cc=jdike@addtoit.com \
    --cc=lennox.wu@gmail.com \
    --cc=linux-fbdev@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-s390@vger.kernel.org \
    --cc=liqin.linux@gmail.com \
    --cc=richard@nod.at \
    --cc=schwidefsky@de.ibm.com \
    --cc=stefan.kristiansson@saunalahti.fi \
    --cc=thuth@redhat.com \
    --cc=tomi.valkeinen@ti.com \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).