Skip to contentSkip to conversation

kernel build fails with CONFIG_X86_MCE_P4THERMAL=y

Xenomai-help Stefan Kisdaroczi 2 participants 4 messages Jun 21, 2009 – Jun 22, 2009 x86

lore
Share & tools
lore
#0 lore raw

hi,

if 'check for P4 thermal throttling interrupt.' ( CONFIG_X86_MCE_P4THERMAL ) is enabled, kernel builds ok with 2.6.28, but fails with adeos-ipipe-2.6.29.5-x86-2.4-02.patch:

arch/x86/kernel/ipipe.c: In function ‘__ipipe_enable_pipeline’:
arch/x86/kernel/ipipe.c:210: error: ‘smp_thermal_interrupt’ undeclared (first use in this function) arch/x86/kernel/ipipe.c:210: error: (Each undeclared identifier is reported only once arch/x86/kernel/ipipe.c:210: error: for each function it appears in.)
make[3]: *** [arch/x86/kernel/ipipe.o] Fehler 1
make[2]: *** [arch/x86/kernel] Fehler 2

#1 lore raw
Quoted 6 lines · Stefan Kisdaroczi

hi,

if 'check for P4 thermal throttling interrupt.' ( CONFIG_X86_MCE_P4THERMAL ) is enabled, kernel builds ok with 2.6.28, but fails with adeos-ipipe-2.6.29.5-x86-2.4-02.patch:

Quoted 9 lines

arch/x86/kernel/ipipe.c: In function ‘__ipipe_enable_pipeline’:
arch/x86/kernel/ipipe.c:210: error: ‘smp_thermal_interrupt’ undeclared (first use in this function)
arch/x86/kernel/ipipe.c:210: error: (Each undeclared identifier is reported only once
arch/x86/kernel/ipipe.c:210: error: for each function it appears in.) make[3]: *** [arch/x86/kernel/ipipe.o] Fehler 1
make[2]: *** [arch/x86/kernel] Fehler 2

Thanks. I will push 2.4-03 out after I have received confirmation that everything is fine on your side. TIA,

arch/x86/kernel/ipipe.c +3 -0
index 28cc903..d186a4c 100644
@@ -116,6 +116,9 @@ void smp_invalidate_interrupt(struct pt_regs *regs);
 void smp_call_function_interrupt(struct pt_regs *regs);
 void smp_call_function_single_interrupt(struct pt_regs *regs);
 void uv_bau_message_interrupt(struct pt_regs *regs);
+#ifdef CONFIG_X86_32
+void smp_thermal_interrupt(struct pt_regs *regs);
+#endif
 
 static void __ipipe_ack_irq(unsigned irq, struct irq_desc *desc)
 {
Quoted 5 lines

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Signature · 1 line
Philippe.
#2 lore raw
Quoted 15 lines · Philippe Gerum
Quoted 12 lines · Stefan Kisdaroczi

hi,

if 'check for P4 thermal throttling interrupt.' ( CONFIG_X86_MCE_P4THERMAL ) is enabled, kernel builds ok with 2.6.28, but fails with adeos-ipipe-2.6.29.5-x86-2.4-02.patch:

arch/x86/kernel/ipipe.c: In function ‘__ipipe_enable_pipeline’:
arch/x86/kernel/ipipe.c:210: error: ‘smp_thermal_interrupt’ undeclared (first use in this function) arch/x86/kernel/ipipe.c:210: error: (Each undeclared identifier is reported only once arch/x86/kernel/ipipe.c:210: error: for each function it appears in.)
make[3]: *** [arch/x86/kernel/ipipe.o] Fehler 1
make[2]: *** [arch/x86/kernel] Fehler 2

Quoted 3 lines

Thanks. I will push 2.4-03 out after I have received confirmation that everything is fine on your side. TIA,

the kernel compiled fine now with P4THERMAL enabled. thanks.
hint: did you notice the CONFIG_X86_64 ? same problem ?

+#if defined(CONFIG_X86_MCE_P4THERMAL) || defined(CONFIG_X86_64)
+ ipipe_virtualize_irq(ipipe_root_domain,

+                 ipipe_apic_vector_irq(THERMAL_APIC_VECTOR),
+                 (ipipe_irq_handler_t)&smp_thermal_interrupt,
+                 NULL,
+                 &__ipipe_ack_apic,
+                 IPIPE_STDROOT_MASK);

+#endif /* CONFIG_X86_MCE_P4THERMAL || CONFIG_X86_64 */

Quoted 21 lines
arch/x86/kernel/ipipe.c +3 -0
index 28cc903..d186a4c 100644
@@ -116,6 +116,9 @@ void smp_invalidate_interrupt(struct pt_regs *regs);
 void smp_call_function_interrupt(struct pt_regs *regs);
 void smp_call_function_single_interrupt(struct pt_regs *regs);
 void uv_bau_message_interrupt(struct pt_regs *regs);
+#ifdef CONFIG_X86_32
+void smp_thermal_interrupt(struct pt_regs *regs);
+#endif
 
 static void __ipipe_ack_irq(unsigned irq, struct irq_desc *desc)
 {
Quoted 7 lines

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

#3 lore raw
Quoted 20 lines · Stefan Kisdaroczi
Quoted 19 lines · Philippe Gerum
Quoted 16 lines · Stefan Kisdaroczi

hi,

if 'check for P4 thermal throttling interrupt.' ( CONFIG_X86_MCE_P4THERMAL ) is enabled, kernel builds ok with 2.6.28, but fails with adeos-ipipe-2.6.29.5-x86-2.4-02.patch:

arch/x86/kernel/ipipe.c: In function ‘__ipipe_enable_pipeline’:
arch/x86/kernel/ipipe.c:210: error: ‘smp_thermal_interrupt’ undeclared (first use in this function)
arch/x86/kernel/ipipe.c:210: error: (Each undeclared identifier is reported only once
arch/x86/kernel/ipipe.c:210: error: for each function it appears in.) make[3]: *** [arch/x86/kernel/ipipe.o] Fehler 1
make[2]: *** [arch/x86/kernel] Fehler 2

Quoted 6 lines
Quoted 3 lines

Thanks. I will push 2.4-03 out after I have received confirmation that everything is fine on your side. TIA,

the kernel compiled fine now with P4THERMAL enabled. thanks.
hint: did you notice the CONFIG_X86_64 ? same problem ?

X86_64 declares smp_thermal_interrupt() properly in asm/traps.h, not X86_32 unfortunately.

Quoted 31 lines
(quoted diff) +8 -0
+#if defined(CONFIG_X86_MCE_P4THERMAL) || defined(CONFIG_X86_64)
+    ipipe_virtualize_irq(ipipe_root_domain,
+                 ipipe_apic_vector_irq(THERMAL_APIC_VECTOR),
+                 (ipipe_irq_handler_t)&smp_thermal_interrupt,
+                 NULL,
+                 &__ipipe_ack_apic,
+                 IPIPE_STDROOT_MASK);
+#endif /* CONFIG_X86_MCE_P4THERMAL || CONFIG_X86_64 */
Quoted 22 lines
arch/x86/kernel/ipipe.c +3 -0
index 28cc903..d186a4c 100644
@@ -116,6 +116,9 @@ void smp_invalidate_interrupt(struct pt_regs *regs);
 void smp_call_function_interrupt(struct pt_regs *regs);
 void smp_call_function_single_interrupt(struct pt_regs *regs);
 void uv_bau_message_interrupt(struct pt_regs *regs);
+#ifdef CONFIG_X86_32
+void smp_thermal_interrupt(struct pt_regs *regs);
+#endif
 
 static void __ipipe_ack_irq(unsigned irq, struct irq_desc *desc)
 {
Quoted 7 lines

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Signature · 1 line
Philippe.