* Re: [PATCH v2 1/3] Kconfig : Remove HAS_IOMEM dependency for Graphics support
2018-02-08 13:11 ` [PATCH v2 1/3] Kconfig : Remove HAS_IOMEM dependency for Graphics support Bartlomiej Zolnierkiewicz
@ 2018-02-08 15:28 ` Farhan Ali
2018-02-08 15:30 ` Christian Borntraeger
` (2 subsequent siblings)
3 siblings, 0 replies; 14+ messages in thread
From: Farhan Ali @ 2018-02-08 15:28 UTC (permalink / raw)
To: Bartlomiej Zolnierkiewicz, Christian Borntraeger
Cc: linux-kernel, linux-s390, linux-fbdev, geert, stefan.kristiansson,
tomi.valkeinen, schwidefsky, dri-devel, Chen Liqin, Lennox Wu,
Jeff Dike, Richard Weinberger, user-mode-linux-devel
On 02/08/2018 08:11 AM, 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?
>
Yes, DRM compiled fine. And we (s390) would need the DRM subsystem for
Virtio GPU as well.
> 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?
>
>>> Signed-off-by: Farhan Ali <alifm@linux.vnet.ibm.com>
>>> Tested-by: Dong Jia Shi <bjsdjshi@linux.vnet.ibm.com>
>>
>> This also enables several PCI based graphic device driver on s390.
>> This makes no sense but they all compile fine so I guess this is ok.
>>
>> I think patch 2 and 3 are clearly for the s390 tree, patch 1 seems trivial
>> Also ccing Bart. Can we maybe get an ack to carry this patch also via the s390
>> tree?
>>
>>
>>> ---
>>> drivers/video/Kconfig | 1 -
>>> drivers/video/fbdev/Kconfig | 2 +-
>>> 2 files changed, 1 insertion(+), 2 deletions(-)
>>>
>>> diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig
>>> index 3c20af9..41e7ba9 100644
>>> --- a/drivers/video/Kconfig
>>> +++ b/drivers/video/Kconfig
>>> @@ -3,7 +3,6 @@
>>> #
>>>
>>> menu "Graphics support"
>>> - depends on HAS_IOMEM
>>>
>>> config HAVE_FB_ATMEL
>>> bool
>>> diff --git a/drivers/video/fbdev/Kconfig b/drivers/video/fbdev/Kconfig
>>> index 2f615b7..ec9c9ce 100644
>>> --- a/drivers/video/fbdev/Kconfig
>>> +++ b/drivers/video/fbdev/Kconfig
>>> @@ -966,7 +966,7 @@ config FB_PVR2
>>>
>>> config FB_OPENCORES
>>> tristate "OpenCores VGA/LCD core 2.0 framebuffer support"
>>> - depends on FB && HAS_DMA
>>> + depends on FB && HAS_DMA && HAS_IOMEM
>>> select FB_CFB_FILLRECT
>>> select FB_CFB_COPYAREA
>>> select FB_CFB_IMAGEBLIT
>
> Best regards,
> --
> Bartlomiej Zolnierkiewicz
> Samsung R&D Institute Poland
> Samsung Electronics
>
^ permalink raw reply [flat|nested] 14+ messages in thread* Re: [PATCH v2 1/3] Kconfig : Remove HAS_IOMEM dependency for Graphics support
2018-02-08 13:11 ` [PATCH v2 1/3] Kconfig : Remove HAS_IOMEM dependency for Graphics support 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
3 siblings, 0 replies; 14+ messages in thread
From: Christian Borntraeger @ 2018-02-08 15:30 UTC (permalink / raw)
To: Bartlomiej Zolnierkiewicz
Cc: Farhan Ali, linux-kernel, linux-s390, linux-fbdev, geert,
stefan.kristiansson, tomi.valkeinen, schwidefsky, dri-devel,
Chen Liqin, Lennox Wu, Jeff Dike, Richard Weinberger,
user-mode-linux-devel
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?
I can add this patch to my next tree (after merge window) and check for
any errors from all the build bots.
^ permalink raw reply [flat|nested] 14+ messages in thread* Re: [PATCH v2 1/3] Kconfig : Remove HAS_IOMEM dependency for Graphics support
2018-02-08 13:11 ` [PATCH v2 1/3] Kconfig : Remove HAS_IOMEM dependency for Graphics support 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
3 siblings, 0 replies; 14+ messages in thread
From: Christian Borntraeger @ 2018-02-14 8:12 UTC (permalink / raw)
To: Bartlomiej Zolnierkiewicz
Cc: Farhan Ali, linux-kernel, linux-s390, linux-fbdev, geert,
stefan.kristiansson, tomi.valkeinen, schwidefsky, dri-devel,
Chen Liqin, Lennox Wu, Jeff Dike, Richard Weinberger,
user-mode-linux-devel
I added all three patches to my next tree
https://git.kernel.org/pub/scm/linux/kernel/git/kvms390/linux.git/log/?h=next
This will hoepfully reveal any fallout.
Would be good to have an ACK from the score, tile and um maintainers in case
they verified that this change did not break anything.
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?
>
>>> Signed-off-by: Farhan Ali <alifm@linux.vnet.ibm.com>
>>> Tested-by: Dong Jia Shi <bjsdjshi@linux.vnet.ibm.com>
>>
>> This also enables several PCI based graphic device driver on s390.
>> This makes no sense but they all compile fine so I guess this is ok.
>>
>> I think patch 2 and 3 are clearly for the s390 tree, patch 1 seems trivial
>> Also ccing Bart. Can we maybe get an ack to carry this patch also via the s390
>> tree?
>>
>>
>>> ---
>>> drivers/video/Kconfig | 1 -
>>> drivers/video/fbdev/Kconfig | 2 +-
>>> 2 files changed, 1 insertion(+), 2 deletions(-)
>>>
>>> diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig
>>> index 3c20af9..41e7ba9 100644
>>> --- a/drivers/video/Kconfig
>>> +++ b/drivers/video/Kconfig
>>> @@ -3,7 +3,6 @@
>>> #
>>>
>>> menu "Graphics support"
>>> - depends on HAS_IOMEM
>>>
>>> config HAVE_FB_ATMEL
>>> bool
>>> diff --git a/drivers/video/fbdev/Kconfig b/drivers/video/fbdev/Kconfig
>>> index 2f615b7..ec9c9ce 100644
>>> --- a/drivers/video/fbdev/Kconfig
>>> +++ b/drivers/video/fbdev/Kconfig
>>> @@ -966,7 +966,7 @@ config FB_PVR2
>>>
>>> config FB_OPENCORES
>>> tristate "OpenCores VGA/LCD core 2.0 framebuffer support"
>>> - depends on FB && HAS_DMA
>>> + depends on FB && HAS_DMA && HAS_IOMEM
>>> select FB_CFB_FILLRECT
>>> select FB_CFB_COPYAREA
>>> select FB_CFB_IMAGEBLIT
>
> Best regards,
> --
> Bartlomiej Zolnierkiewicz
> Samsung R&D Institute Poland
> Samsung Electronics
>
^ permalink raw reply [flat|nested] 14+ messages in thread* Re: [PATCH v2 1/3] Kconfig : Remove HAS_IOMEM dependency for Graphics support
2018-02-08 13:11 ` [PATCH v2 1/3] Kconfig : Remove HAS_IOMEM dependency for Graphics support Bartlomiej Zolnierkiewicz
` (2 preceding siblings ...)
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
3 siblings, 2 replies; 14+ messages in thread
From: Christian Borntraeger @ 2018-02-15 9:40 UTC (permalink / raw)
To: Bartlomiej Zolnierkiewicz
Cc: Farhan Ali, linux-kernel, linux-s390, linux-fbdev, geert,
stefan.kristiansson, tomi.valkeinen, schwidefsky, dri-devel,
Chen Liqin, Lennox Wu, Jeff Dike, Richard Weinberger,
user-mode-linux-devel
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
^ permalink raw reply related [flat|nested] 14+ messages in thread* Re: [PATCH v2 1/3] Kconfig : Remove HAS_IOMEM dependency for Graphics support
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
1 sibling, 0 replies; 14+ messages in thread
From: Christian Borntraeger @ 2018-02-15 11:02 UTC (permalink / raw)
To: Bartlomiej Zolnierkiewicz
Cc: Farhan Ali, linux-kernel, linux-s390, linux-fbdev, geert,
stefan.kristiansson, tomi.valkeinen, schwidefsky, dri-devel,
Chen Liqin, Lennox Wu, Jeff Dike, Richard Weinberger,
user-mode-linux-devel
An even simpler approach would be:
diff --git a/arch/s390/Kconfig b/arch/s390/Kconfig
index cbe1d978693a..35b7aba4b6a0 100644
--- a/arch/s390/Kconfig
+++ b/arch/s390/Kconfig
@@ -952,6 +952,10 @@ config S390_HYPFS_FS
source "arch/s390/kvm/Kconfig"
+config DUMMY_CONSOLE
+ bool
+ default y
+
config S390_GUEST
def_bool y
prompt "s390 support for virtio devices"
^ permalink raw reply related [flat|nested] 14+ messages in thread* [PATCH] s390/console: enable dummy console for vt
2018-02-15 9:40 ` Christian Borntraeger
2018-02-15 11:02 ` Christian Borntraeger
@ 2018-02-15 11:14 ` Christian Borntraeger
2018-02-15 11:26 ` Geert Uytterhoeven
1 sibling, 1 reply; 14+ messages in thread
From: Christian Borntraeger @ 2018-02-15 11:14 UTC (permalink / raw)
To: Bartlomiej Zolnierkiewicz
Cc: Farhan Ali, linux-kernel, linux-fbdev, linux-s390, geert,
stefan.kristiansson, tomi.valkeinen, schwidefsky, dri-devel,
Chen Liqin, Lennox Wu, Jeff Dike, Richard Weinberger,
user-mode-linux-devel, Thomas Huth, Christian Borntraeger
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"
--
2.14.3
^ permalink raw reply related [flat|nested] 14+ messages in thread
* Re: [PATCH] s390/console: enable dummy console for vt
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
0 siblings, 2 replies; 14+ messages in thread
From: Geert Uytterhoeven @ 2018-02-15 11:26 UTC (permalink / raw)
To: 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, Thomas Huth
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.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 14+ messages in thread* Re: [PATCH] s390/console: enable dummy console for vt
2018-02-15 11:26 ` Geert Uytterhoeven
@ 2018-02-15 11:56 ` Christian Borntraeger
2018-02-15 11:57 ` Thomas Huth
1 sibling, 0 replies; 14+ messages in thread
From: Christian Borntraeger @ 2018-02-15 11:56 UTC (permalink / raw)
To: Geert Uytterhoeven
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, Thomas Huth
On 02/15/2018 12:26 PM, 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 am open for better suggestions. One idea that I had was to reverse
the logic in s390 (and use the common code HAS_IOMEM)
like
diff --git a/arch/s390/Kconfig b/arch/s390/Kconfig
index cbe1d978693a..123dd593ea20 100644
--- a/arch/s390/Kconfig
+++ b/arch/s390/Kconfig
@@ -715,8 +715,8 @@ endif # PCI
config PCI_DOMAINS
def_bool PCI
-config HAS_IOMEM
- def_bool PCI
+config NO_IOMEM
+ def_bool y if !PCI
config IOMMU_HELPER
def_bool PCI
This would enable CONFIG_VT and also CONFIG_DUMMY_CONSOLE as long as
PCI is enabled. If DUMMY_CONSOLE is not enabled (e.g. due to missing PCI),
we get a crash in the VT layer as conswitchp is then null.
Somewhat tricky.
^ permalink raw reply related [flat|nested] 14+ messages in thread* Re: [PATCH] s390/console: enable dummy console for vt
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
1 sibling, 1 reply; 14+ messages in thread
From: Thomas Huth @ 2018-02-15 11:57 UTC (permalink / raw)
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
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.
Thomas
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH] s390/console: enable dummy console for vt
2018-02-15 11:57 ` Thomas Huth
@ 2018-02-15 12:02 ` Christian Borntraeger
2018-02-19 13:35 ` Farhan Ali
0 siblings, 1 reply; 14+ messages in thread
From: Christian Borntraeger @ 2018-02-15 12:02 UTC (permalink / raw)
To: Thomas Huth, Geert Uytterhoeven
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
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?
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH] s390/console: enable dummy console for vt
2018-02-15 12:02 ` Christian Borntraeger
@ 2018-02-19 13:35 ` Farhan Ali
2018-02-19 13:37 ` Christian Borntraeger
0 siblings, 1 reply; 14+ messages in thread
From: Farhan Ali @ 2018-02-19 13:35 UTC (permalink / raw)
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
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?
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH] s390/console: enable dummy console for vt
2018-02-19 13:35 ` Farhan Ali
@ 2018-02-19 13:37 ` Christian Borntraeger
2018-02-19 14:01 ` Farhan Ali
0 siblings, 1 reply; 14+ messages in thread
From: Christian Borntraeger @ 2018-02-19 13:37 UTC (permalink / raw)
To: Farhan Ali, 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
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?
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH] s390/console: enable dummy console for vt
2018-02-19 13:37 ` Christian Borntraeger
@ 2018-02-19 14:01 ` Farhan Ali
0 siblings, 0 replies; 14+ messages in thread
From: Farhan Ali @ 2018-02-19 14:01 UTC (permalink / raw)
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
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.
^ permalink raw reply [flat|nested] 14+ messages in thread