Skip to contentSkip to conversation

video: vgacon: Don't build on arm64

PATCH In review Mark Brown 4 participants 6 messages Dec 17, 2013 – Jan 8, 2014

Subsystems (2)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 video: vgacon: Don't build on arm64

From: Mark Brown <[email protected]>

arm64 is unlikely to have a VGA console and does not export screen_info causing build failures if the driver is build, for example in all*config. Add a dependency on !ARM64 to prevent this.

This list is getting quite long, it may be easier to depend on a symbol which architectures that do support the driver can select.

---
 drivers/video/console/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/video/console/Kconfig +2 -1
index 846caab75a46..c39d6c42c3ef 100644
@@ -8,7 +8,8 @@ config VGA_CONSOLE
 	bool "VGA text console" if EXPERT || !X86
 	depends on !4xx && !8xx && !SPARC && !M68K && !PARISC && !FRV && \
 		!SUPERH && !BLACKFIN && !AVR32 && !MN10300 && !CRIS && \
-		(!ARM || ARCH_FOOTBRIDGE || ARCH_INTEGRATOR || ARCH_NETWINDER)
+		(!ARM || ARCH_FOOTBRIDGE || ARCH_INTEGRATOR || ARCH_NETWINDER) \
+		&& !ARM64
 	default y
 	help
 	  Saying Y here will allow you to use Linux in text mode through a
Signature · 1 line
1.8.5.1
#1 lore raw
Quoted 8 lines · Mark Brown

From: Mark Brown <[email protected]>

arm64 is unlikely to have a VGA console and does not export screen_info causing build failures if the driver is build, for example in all*config. Add a dependency on !ARM64 to prevent this.

This list is getting quite long, it may be easier to depend on a symbol which architectures that do support the driver can select.

I agree, that depends on looks horrible =).

Quoted 10 lines
---
 drivers/video/console/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/video/console/Kconfig +0 -0
index 846caab75a46..c39d6c42c3ef 100644

drivers/video/console/Kconfig config VGA_CONSOLE · line 15

Quoted 9 lines
drivers/video/console/Kconfig +2 -1
@@ -8,7 +8,8 @@ config VGA_CONSOLE
 	bool "VGA text console" if EXPERT || !X86
 	depends on !4xx && !8xx && !SPARC && !M68K && !PARISC && !FRV && \
 		!SUPERH && !BLACKFIN && !AVR32 && !MN10300 && !CRIS && \
-		(!ARM || ARCH_FOOTBRIDGE || ARCH_INTEGRATOR || ARCH_NETWINDER)
+		(!ARM || ARCH_FOOTBRIDGE || ARCH_INTEGRATOR || ARCH_NETWINDER) \
+		&& !ARM64
 	default y
 	help
 	  Saying Y here will allow you to use Linux in text mode through a

I moved the && to the previous line as is the custom. Queued for 3.14.

Tomi

#2 lore raw
In reply to Mark Brown
Quoted 11 lines · On Wednesday 08 January 2014 15:43:20 Tomi Valkeinen wrote:
Quoted 8 lines · Mark Brown

From: Mark Brown <[email protected]>

arm64 is unlikely to have a VGA console and does not export screen_info causing build failures if the driver is build, for example in all*config. Add a dependency on !ARM64 to prevent this.

This list is getting quite long, it may be easier to depend on a symbol which architectures that do support the driver can select.

I agree, that depends on looks horrible =).

I've suggested creating a "CONFIG_PC_IO" symbol before that could used to simplify this one and a couple of other similar Kconfig statements. It is unfortunately a bit tricky because out of the dozen drivers that are similar to this one, each one has a slightly different list of architectures, and it's not clear which of the differences are intentional rather than mistakes.

Arnd

#3 lore raw
In reply to Mark Brown
Quoted 11 lines · Arnd Bergmann
Quoted 10 lines · On Wednesday 08 January 2014 15:43:20 Tomi Valkeinen wrote:
Quoted 8 lines · Mark Brown

From: Mark Brown <[email protected]>

arm64 is unlikely to have a VGA console and does not export screen_info causing build failures if the driver is build, for example in all*config. Add a dependency on !ARM64 to prevent this.

This list is getting quite long, it may be easier to depend on a symbol which architectures that do support the driver can select.

Quoted 8 lines
Quoted 1 line

I agree, that depends on looks horrible =).

I've suggested creating a "CONFIG_PC_IO" symbol before that could used to simplify this one and a couple of other similar Kconfig statements. It is unfortunately a bit tricky because out of the dozen drivers that are similar to this one, each one has a slightly different list of architectures, and it's not clear which of the differences are intentional rather than mistakes.

VGA is special, in that it uses "ISA memory space". This is not a subset of "PCI memory space", but something different. Some PCI host bridges (IIRC, e.g. on Mac) do not allow access to this space.
Most other "PC I/O" use ISA I/O space, which is a subset of PCI I/O space.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

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

#4 lore raw
In reply to Mark Brown
Quoted 4 lines · Geert Uytterhoeven

VGA is special, in that it uses "ISA memory space". This is not a subset of "PCI memory space", but something different. Some PCI host bridges (IIRC, e.g. on Mac) do not allow access to this space.
Most other "PC I/O" use ISA I/O space, which is a subset of PCI I/O space.

Right, but they often go together, and I think vgacon actually requires both, doesn't it? I'm not aware of anything else requiring access to the 0xa0000-0xfffff or the 0xf00000-0xffffff ISA memory windows except VGA, but I could be missing some less common devices. These are often not available on non-x86 systems, which prevents VGA from working even if low I/O space addresses are routed to PCI.

The CONFIG_PC_IO symbol would mostly be used for stuff like PC-style floppy, dma, rtc, pic, parport, uart, etc. I think it does make sense to include VGA in that list, but we may want to add a few machines that explicitly support VGA on PCI without supporting other PC-style components.

Arnd

#5 lore raw
In reply to Mark Brown
Quoted 8 lines · Arnd Bergmann
Quoted 4 lines · Geert Uytterhoeven

VGA is special, in that it uses "ISA memory space". This is not a subset of "PCI memory space", but something different. Some PCI host bridges (IIRC, e.g. on Mac) do not allow access to this space.
Most other "PC I/O" use ISA I/O space, which is a subset of PCI I/O space.

Right, but they often go together, and I think vgacon actually requires both, doesn't it? I'm not aware of anything else requiring access to the

Yes, VGA uses both.

Quoted 4 lines

0xa0000-0xfffff or the 0xf00000-0xffffff ISA memory windows except VGA, but I could be missing some less common devices. These are often not available on non-x86 systems, which prevents VGA from working even if low I/O space addresses are routed to PCI.

And MDA, for mdacon.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

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