Skip to contentSkip to conversation

ACPI: Reorder IPMI driver before any other ACPI drivers

PATCH In review Matthew Garrett 4 participants 5 messages Sep 20, 2012 – Sep 21, 2012

Subsystems (2)
lore
Share & tools
lore
#1 lore raw

PATCH 2/2 IPMI: Change link order

In reply to Matthew Garrett

IPMI must be initialised before ACPI in order to ensure that any IPMI services are available before ACPI driver initialisation attempts to use any IPMI operation regions.

---
 drivers/Makefile      | 4 ++++
 drivers/char/Makefile | 1 -
 2 files changed, 4 insertions(+), 1 deletion(-)
drivers/Makefile +4 -0
index 5b42184..c2b527a 100644
@@ -14,6 +14,10 @@ obj-$(CONFIG_PARISC)		+= parisc/
 obj-$(CONFIG_RAPIDIO)		+= rapidio/
 obj-y				+= video/
 obj-y				+= idle/
+
+# IPMI must come before ACPI in order to provide IPMI opregion support
+obj-$(CONFIG_IPMI_HANDLER)	+= char/ipmi
+
 obj-$(CONFIG_ACPI)		+= acpi/
 obj-$(CONFIG_SFI)		+= sfi/
 # PnP must come after ACPI since it will eventually need to check if acpi
drivers/char/Makefile +0 -1
index d0b27a3..7ff1d0d 100644
@@ -52,7 +52,6 @@ obj-$(CONFIG_TELCLOCK)		+= tlclk.o
 obj-$(CONFIG_MWAVE)		+= mwave/
 obj-$(CONFIG_AGP)		+= agp/
 obj-$(CONFIG_PCMCIA)		+= pcmcia/
-obj-$(CONFIG_IPMI_HANDLER)	+= ipmi/
 
 obj-$(CONFIG_HANGCHECK_TIMER)	+= hangcheck-timer.o
 obj-$(CONFIG_TCG_TPM)		+= tpm/
Signature · 1 line
1.7.11.4
#0 lore raw

PATCH 1/2 ACPI: Reorder IPMI driver before any other ACPI drivers

Drivers may make calls that require the ACPI IPMI driver to have been initialised already, so make sure that it appears earlier in the build order.

---
 drivers/acpi/Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/acpi/Makefile +4 -1
index 47199e2..82422fe 100644
@@ -47,6 +47,10 @@ acpi-y				+= video_detect.o
 endif
 
 # These are (potentially) separate modules
+
+# IPMI may be used by other drivers, so it has to initialise before them
+obj-$(CONFIG_ACPI_IPMI)		+= acpi_ipmi.o
+
 obj-$(CONFIG_ACPI_AC) 		+= ac.o
 obj-$(CONFIG_ACPI_BUTTON)	+= button.o
 obj-$(CONFIG_ACPI_FAN)		+= fan.o
@@ -70,6 +74,5 @@ processor-y			+= processor_idle.o processor_thermal.o
 processor-$(CONFIG_CPU_FREQ)	+= processor_perflib.o
 
 obj-$(CONFIG_ACPI_PROCESSOR_AGGREGATOR) += acpi_pad.o
-obj-$(CONFIG_ACPI_IPMI)		+= acpi_ipmi.o
 
 obj-$(CONFIG_ACPI_APEI)		+= apei/
Signature · 1 line
1.7.11.4
#2 lore raw
Quoted 3 lines · Matthew Garrett

Drivers may make calls that require the ACPI IPMI driver to have been initialised already, so make sure that it appears earlier in the build order.

The IPMI driver uses the ACPI namespace as an option to know the address and characteristics of the device. Does that still work?

-corey

Quoted 28 lines
---
  drivers/acpi/Makefile | 5 ++++-
  1 file changed, 4 insertions(+), 1 deletion(-)
drivers/acpi/Makefile +4 -1
index 47199e2..82422fe 100644
@@ -47,6 +47,10 @@ acpi-y				+= video_detect.o
  endif
 
  # These are (potentially) separate modules
+
+# IPMI may be used by other drivers, so it has to initialise before them
+obj-$(CONFIG_ACPI_IPMI)		+= acpi_ipmi.o
+
  obj-$(CONFIG_ACPI_AC) 		+= ac.o
  obj-$(CONFIG_ACPI_BUTTON)	+= button.o
  obj-$(CONFIG_ACPI_FAN)		+= fan.o
@@ -70,6 +74,5 @@ processor-y			+= processor_idle.o processor_thermal.o
  processor-$(CONFIG_CPU_FREQ)	+= processor_perflib.o
 
  obj-$(CONFIG_ACPI_PROCESSOR_AGGREGATOR) += acpi_pad.o
-obj-$(CONFIG_ACPI_IPMI)		+= acpi_ipmi.o
 
  obj-$(CONFIG_ACPI_APEI)		+= apei/
#3 lore raw
Quoted 7 lines · Corey Minyard
Quoted 3 lines · Matthew Garrett

Drivers may make calls that require the ACPI IPMI driver to have been initialised already, so make sure that it appears earlier in the build order.

The IPMI driver uses the ACPI namespace as an option to know the address and characteristics of the device. Does that still work?

Yes, the ACPI interpreter is initialised earlier than the IPMI driver discovery.

Signature · 1 line
Matthew Garrett | [email protected]
#4 lore raw
Quoted 10 lines · Matthew Garrett
Quoted 6 lines · Corey Minyard
Quoted 3 lines · Matthew Garrett

Drivers may make calls that require the ACPI IPMI driver to have been initialised already, so make sure that it appears earlier in the build order.

The IPMI driver uses the ACPI namespace as an option to know the address and characteristics of the device. Does that still work?

Yes, the ACPI interpreter is initialised earlier than the IPMI driver discovery.

Cool, I'm good with these, then.

Thanks,

-corey