Skip to contentSkip to conversation

firmware: only allow EDD on x86/x86_64

PATCH Superseded Mike Frysinger 4 participants 7 messages Oct 6, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 firmware: only allow EDD on x86/x86_64

git-svn-id: svn://localhost/svn/linux-kernel/trunk@7548 526b6c2d-f592-4532-a319-5dd88ccb003d

---
 drivers/firmware/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/firmware/Kconfig +1 -1
index ebb9e51..7fff33f 100644
@@ -7,7 +7,7 @@ menu "Firmware Drivers"
 
 config EDD
 	tristate "BIOS Enhanced Disk Drive calls determine boot disk"
-	depends on !IA64
+	depends on (X86_64 || X86_32)
 	help
 	  Say Y or M here if you want to enable BIOS Enhanced Disk Drive
 	  Services real mode BIOS calls to determine which disk
Signature · 1 line
1.6.5.rc2
#1 lore raw

PATCH v2 1/1 firmware: only allow EDD on x86/x86_64

Rather than have the EDD depend on !ia64 (and assuming that only ia64, x86, x86_64 will be including this Kconfig), have EDD depend on the only arches which can support this code. This should allow all other arches to cleanly include the firmware Kconfig.

---
v2
- send out the right file this time

 drivers/firmware/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/firmware/Kconfig +1 -1
index ebb9e51..7fff33f 100644
@@ -7,7 +7,7 @@ menu "Firmware Drivers"
 
 config EDD
 	tristate "BIOS Enhanced Disk Drive calls determine boot disk"
-	depends on !IA64
+	depends on (X86_64 || X86_32)
 	help
 	  Say Y or M here if you want to enable BIOS Enhanced Disk Drive
 	  Services real mode BIOS calls to determine which disk
Signature · 1 line
1.6.5.rc2
#2 lore raw

At Tue, 6 Oct 2009 01:57:07 -0400,

Quoted 19 lines · Mike Frysinger

Rather than have the EDD depend on !ia64 (and assuming that only ia64, x86, x86_64 will be including this Kconfig), have EDD depend on the only arches which can support this code. This should allow all other arches to cleanly include the firmware Kconfig.

---
v2
- send out the right file this time

 drivers/firmware/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/firmware/Kconfig +0 -0
index ebb9e51..7fff33f 100644

drivers/firmware/Kconfig menu "Firmware Drivers" · line 10

Quoted 5 lines
drivers/firmware/Kconfig +1 -1
@@ -7,7 +7,7 @@ menu "Firmware Drivers"
 
 config EDD
 	tristate "BIOS Enhanced Disk Drive calls determine boot disk"
-	depends on !IA64
+	depends on (X86_64 || X86_32)

How about "depends on X86" ?

Takashi

#3 lore raw
Quoted 20 lines · Takashi Iwai

At Tue,  6 Oct 2009 01:57:07 -0400,

Quoted 19 lines

Rather than have the EDD depend on !ia64 (and assuming that only ia64, x86, x86_64 will be including this Kconfig), have EDD depend on the only arches which can support this code.  This should allow all other arches to cleanly include the firmware Kconfig.

---
v2
      - send out the right file this time

 drivers/firmware/Kconfig |    2 +-

 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/firmware/Kconfig +0 -0
index ebb9e51..7fff33f 100644
@@ -7,7 +7,7 @@ menu "Firmware Drivers"
 
Quoted 6 lines
Quoted 4 lines

 config EDD
      tristate "BIOS Enhanced Disk Drive calls determine boot disk"
-     depends on !IA64
+     depends on (X86_64 || X86_32)

How about "depends on X86" ?

i merely copied the string as seen in FIRMWARE_MEMMAP ... i assumed that was the way to go. if simply using x86 works, then i can change it to that.
-mike

#4 lore raw

PATCH v3 1/1 firmware: only allow EDD on x86

In reply to Mike Frysinger

Rather than have the EDD depend on !ia64 (and assuming that only ia64, x86, x86_64 will be including this Kconfig), have EDD depend on the only arches which can support this code. This should allow all other arches to cleanly include the firmware Kconfig.

Also simplify the x86 string used by FIRMWARE_MEMMAP to match EDD.

---
v3
- use simpler x86 string pointed out by Takashi

 drivers/firmware/Kconfig |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/firmware/Kconfig +2 -2
index ebb9e51..1b03ba1 100644
@@ -7,7 +7,7 @@ menu "Firmware Drivers"
 
 config EDD
 	tristate "BIOS Enhanced Disk Drive calls determine boot disk"
-	depends on !IA64
+	depends on X86
 	help
 	  Say Y or M here if you want to enable BIOS Enhanced Disk Drive
 	  Services real mode BIOS calls to determine which disk
@@ -28,7 +28,7 @@ config EDD_OFF
 
 config FIRMWARE_MEMMAP
     bool "Add firmware-provided memory map to sysfs" if EMBEDDED
-    default (X86_64 || X86_32)
+    default X86
     help
       Add the firmware-provided (unmodified) memory map to /sys/firmware/memmap.
       That memory map is used for example by kexec to set up parameter area
Signature · 1 line
1.6.5.rc2
Acked-by on v3 1/1
#5 lore raw

Re: [PATCH v3] firmware: only allow EDD on x86

Quoted 8 lines · Mike Frysinger

Rather than have the EDD depend on !ia64 (and assuming that only ia64, x86, x86_64 will be including this Kconfig), have EDD depend on the only arches which can support this code. This should allow all other arches to cleanly include the firmware Kconfig.

Also simplify the x86 string used by FIRMWARE_MEMMAP to match EDD.

Signature · 3 lines
Matt Domsch
Technology Strategist, Dell Office of the CTO
linux.dell.com & www.dell.com/linux
#6 lore raw

Re: [PATCH v3] firmware: only allow EDD on x86

Quoted 11 lines · Matt Domsch
Quoted 8 lines · Mike Frysinger

Rather than have the EDD depend on !ia64 (and assuming that only ia64, x86, x86_64 will be including this Kconfig), have EDD depend on the only arches which can support this code.  This should allow all other arches to cleanly include the firmware Kconfig.

Also simplify the x86 string used by FIRMWARE_MEMMAP to match EDD.

guessing you meant @dell.com :)
-mike