Re: SMP Kernel 2.4.32

From: Rainer Wiener <rainer@konqui.de>
Date: Tue Feb 07 2006 - 14:16:51 CET

On Mon, 06 Feb 2006, Rainer Wiener wrote:

> System:
>
> CPU: Pentium 4
> RAM: 2GB
> Netzwerkkarte: VIA-VT6102 [Rhine-II]
> IDE interface: VT82C586A/B/VT82C686/A/B/VT823x/A/C
>

So es tut nun diesen Patch etwas auf den 2.4.32 umgebogen und es tut.
Ist ein Patch für den Patch. Denn um den 2.4.22 haben die da was
geändert, da die Probs mit einigen Mainboards hatten. (Ja das Leben
schlägt immer wieder zu ;))

--- linux-2.4.24.old/arch/i386/kernel/io_apic.c Mon Jan 5 15:10:33 2004
+++ linux-2.4.24/arch/i386/kernel/io_apic.c Thu Jan 8 14:40:03 2004
@@ -125,7 +125,7 @@
                        break;
\
                reg = io_apic_read(entry->apic, 0x10 + R + pin*2);
\
                reg ACTION;
\
- io_apic_write(entry->apic, 0x10 + R + pin*2, reg);
                \
+ io_apic_modify(entry->apic, reg); \
                if (!entry->next)
\
                        break;
\
                entry = irq_2_pin + entry->next;
\
--- linux-2.4.24.old/include/asm-i386/io_apic.h Mon Jan 5 15:34:34 2004
+++ linux-2.4.24/include/asm-i386/io_apic.h Fri Jan 9 10:04:33 2004
@@ -123,6 +123,15 @@
 }

 /*
+ * Re-write a value: to be used for read-modify-write
+ * cycles where the read already set up the index register.
+ */
+static inline void io_apic_modify(unsigned int apic, unsigned int
value)
+{
+ *(IO_APIC_BASE(apic)+4) = value;
+}
+
+/*
  * Synchronize the IO-APIC and the CPU by doing
  * a dummy read from the IO-APIC
  */

cu
Rainer

-- 
Your best consolation is the hope that the things you failed to get weren't
really worth having.
--> GPG Key available, send request to me with "send key" in the Subject <--

Received on Tue, 7 Feb 2006 14:16:51 +0100

This archive was generated by hypermail 2.1.8 : Tue Feb 07 2006 - 14:17:01 CET