Re: CONFIG_ACPI totally broken (2.6.9-rc1-mm2)

From: Roman Zippel
Date: Tue Aug 31 2004 - 20:03:52 EST


Hi,

On Tue, 31 Aug 2004, Martin J. Bligh wrote:

> scripts/kconfig/mconf arch/i386/Kconfig
> Warning! Found recursive dependency: ACPI PCI_MMCONFIG ACPI ACPI_AC
> Warning! Found recursive dependency: ACPI PCI_MMCONFIG ACPI ACPI_PROCESSOR X86_POWERNOW_K7_ACPI
> Warning! Found recursive dependency: ACPI PCI_MMCONFIG ACPI ACPI_PROCESSOR X86_POWERNOW_K8_ACPI
> Warning! Found recursive dependency: ACPI PCI_MMCONFIG ACPI ACPI_EC
> Warning! Found recursive dependency: ACPI PCI_MMCONFIG ACPI ACPI_PROCESSOR X86_SPEEDSTEP_CENTRINO_ACPI
> Warning! Found recursive dependency: DRM_I830 DRM_I915 DRM_I830

The patch below fixes these warnings. This usage of select is really bad,
as it made it impossible to just enable PCI_BIOS and PCI_DIRECT without
turning on ACPI.
I seriously consider to add a timeout after such warnings or even turn
them into errors, currently they are too easily ignored. :(

bye, Roman

diff -ur linux-2.6.org/arch/i386/Kconfig linux-2.6/arch/i386/Kconfig
--- linux-2.6.org/arch/i386/Kconfig 2004-08-31 21:26:53.000000000 +0200
+++ linux-2.6/arch/i386/Kconfig 2004-09-01 01:35:31.000000000 +0200
@@ -1120,6 +1120,7 @@

config PCI_GOMMCONFIG
bool "MMConfig"
+ depends on ACPI

config PCI_GODIRECT
bool "Direct"
@@ -1130,20 +1131,14 @@
endchoice

config PCI_BIOS
- bool
- depends on !X86_VISWS && PCI && (PCI_GOBIOS || PCI_GOANY)
- default y
+ def_bool PCI_GOBIOS || PCI_GOANY

config PCI_DIRECT
- bool
- depends on PCI && ((PCI_GODIRECT || PCI_GOANY) || X86_VISWS)
- default y
+ def_bool PCI_GODIRECT || PCI_GOANY || X86_VISWS

config PCI_MMCONFIG
- bool
- depends on PCI && (PCI_GOMMCONFIG || (PCI_GOANY && ACPI))
- select ACPI
- default y
+ def_bool PCI_GOMMCONFIG || PCI_GOANY
+ depends on ACPI

source "drivers/pci/Kconfig"

diff -ur linux-2.6.org/drivers/char/drm/Kconfig linux-2.6/drivers/char/drm/Kconfig
--- linux-2.6.org/drivers/char/drm/Kconfig 2004-08-31 21:27:01.000000000 +0200
+++ linux-2.6/drivers/char/drm/Kconfig 2004-09-01 01:45:13.000000000 +0200
@@ -55,9 +55,13 @@
selected, the module will be called i810. AGP support is required
for this driver to work.

+choice
+ prompt "Intel 830M, 845G, 852GM, 855GM, 865G (915G)"
+ depends on DRM && AGP && AGP_INTEL
+ optional
+
config DRM_I830
- tristate "Intel 830M, 845G, 852GM, 855GM, 865G"
- depends on DRM && AGP && AGP_INTEL && !(DRM_I915=y)
+ tristate "Old driver"
help
Choose this option if you have a system that has Intel 830M, 845G,
852GM, 855GM or 865G integrated graphics. If M is selected, the
@@ -67,15 +71,15 @@
or previous releases.

config DRM_I915
- tristate "Intel 830M, 845G, 852GM, 855GM, 865G, 915G"
- depends on DRM && AGP && AGP_INTEL && !(DRM_I830=y)
+ tristate "New driver"
help
Choose this option if you have a system that has Intel 830M, 845G,
852GM, 855GM 865G or 915G integrated graphics. If M is selected, the
module will be called i915. AGP support is required for this driver
to work. This driver should be used for systems running Xorg 6.8 and
XFree86 releases after (but not including 4.4).
-
+
+endchoice

config DRM_MGA
tristate "Matrox g200/g400"
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/