Skip to contentSkip to conversation

Dual Athlon on 2.2.19 ?

DISCUSSION Prasanna P Subash 4 participants 7 messages May 24, 2001

lore
Share & tools
lore
#0 lore raw

Hi all,
Is there a patch to make dual athlons work on 2.2.19 ? I know it work on
2.4.3-pre1 with AA's patch.

Signature · 8 lines
Prasanna Subash   ---   [email protected]   ---     TurboLinux, INC
------------------------------------------------------------------------
Linux, the choice          | Doing business with the government is like 
of a GNU generation   -o)  | fucking sheep.  It's easy, but it's not
Kernel 2.4.1          /\\  | very satisfying. 
on a i686            _\\_v | 
                           | 
------------------------------------------------------------------------
#1 lore raw
Quoted 2 lines

Is there a patch to make dual athlons work on 2.2.19 ? I know it work on
2.4.3-pre1 with AA's patch.

2.2.20pre1 and 2.4.current should both work

#2 lore raw
In reply to Prasanna P Subash

Alan,

I have a dual athlon on the 760MP chipset.
2.2.20pre1 and 2 dont work. I got it to work partly after applying Johannes Erdfel's 760MP patch in io_apic.c. Even after applying the patch, there are messages like

hdc: IRQ probe failed(0)
hdd: IRQ probe failed(0)
hde: IRQ probe failed(0)

hdc: lost interrupt
hdc: lost interrupt

and then the machine hangs randomly. I an guessing the io_apic does not route the interrupts correctly.

Quoted 4 lines · Alan Cox
Quoted 2 lines

Is there a patch to make dual athlons work on 2.2.19 ? I know it work on
2.4.3-pre1 with AA's patch.

2.2.20pre1 and 2.4.current should both work

Signature · 8 lines
Prasanna Subash   ---   [email protected]   ---     TurboLinux, INC
------------------------------------------------------------------------
Linux, the choice          | Reporter, n.:  A writer who guesses his way
of a GNU generation   -o)  | to the truth and dispels it with a  tempest
Kernel 2.4.1          /\\  | of words.   -- Ambrose Bierce, "The Devil's
on a i686            _\\_v | Dictionary" 
                           | 
------------------------------------------------------------------------
#3 lore raw
In reply to Prasanna P Subash
Quoted 4 lines · Prasanna P Subash

I have a dual athlon on the 760MP chipset.
2.2.20pre1 and 2 dont work. I got it to work partly after applying Johannes Erdfel's 760MP patch in io_apic.c. Even after applying the patch, there are messages like

2.2.20pre1 and pre2 both have the patch I created already applied. If you had to apply them yourself then something is wrong.

Quoted 9 lines

hdc: IRQ probe failed(0)
hdd: IRQ probe failed(0)
hde: IRQ probe failed(0)

hdc: lost interrupt
hdc: lost interrupt

and then the machine hangs randomly. I an guessing the io_apic does not route the interrupts correctly.

That would be the problem.

Which patch of mine did you apply? Which motherboard are you doing your testing with?

JE

#4 lore raw
Quoted 2 lines · Johannes Erdfelt

Which patch of mine did you apply? Which motherboard are you doing your testing with?

The dual tyan presumably. Or are there others you are aware of.

-Dan

#5 lore raw
In reply to Prasanna P Subash

Without the patch below the boot up would hang right after it detected the ide devices.

After applying the patch it booted all the way but the keyboard would hang.

BTW I'm trying to port this patch back to the 2.2.18 TL-Kernel. Are there anymore changes I have to look at ?

i386/kernel/io_apic.c Wed May 16 12:55:30 2001 renamed from i386/kernel/io_apic.c.old Wed May 16 12:48:03 2001 +4 -2
@@ -204,6 +204,8 @@
 /*
  * We disable IO-APIC IRQs by setting their 'destination CPU mask' to
  * zero. Trick by Ramesh Nalluri.
+ * Not anymore. This causes problems on some IO-APIC's, notably AMD 760MP's
+ * So we do it a more 2.4 kind of way now which should be safer -jerdfelt
  */
 DO_ACTION( mask,    0, |= 0x00010000, io_apic_sync(entry->apic))/* mask = 1 */
 DO_ACTION( unmask,  0, &= 0xfffeffff, )                                /* mask = 0 */
@@ -646,8 +648,8 @@
 
                entry.delivery_mode = dest_LowestPrio;
                entry.dest_mode = 1;                    /* logical delivery */
-               entry.mask = 0;                         /* enable IRQ */
-               entry.dest.logical.logical_dest = 0xff; /* but no route */
+               entry.mask = 1;                         /* disable IRQ */
+               entry.dest.logical.logical_dest = 0xff;
 
                idx = find_irq_entry(apic,pin,mp_INT);
                if (idx == -1) {
Quoted 25 lines · Johannes Erdfelt
Quoted 4 lines · Prasanna P Subash

I have a dual athlon on the 760MP chipset.
2.2.20pre1 and 2 dont work. I got it to work partly after applying Johannes Erdfel's 760MP patch in io_apic.c. Even after applying the patch, there are messages like

2.2.20pre1 and pre2 both have the patch I created already applied. If you had to apply them yourself then something is wrong.

Quoted 9 lines

hdc: IRQ probe failed(0)
hdd: IRQ probe failed(0)
hde: IRQ probe failed(0)

hdc: lost interrupt
hdc: lost interrupt

and then the machine hangs randomly. I an guessing the io_apic does not route the interrupts correctly.

That would be the problem.

Which patch of mine did you apply? Which motherboard are you doing your testing with?

JE

Signature · 8 lines
Prasanna Subash   ---   [email protected]   ---     TurboLinux, INC
------------------------------------------------------------------------
Linux, the choice          | The only real advantage to punk music is
of a GNU generation   -o)  | that nobody can whistle it. 
Kernel 2.4.1          /\\  | 
on a i686            _\\_v | 
                           | 
------------------------------------------------------------------------
#6 lore raw
In reply to Prasanna P Subash
Quoted 7 lines · Prasanna P Subash

Without the patch below the boot up would hang right after it detected the ide devices.

After applying the patch it booted all the way but the keyboard would hang.

BTW I'm trying to port this patch back to the 2.2.18 TL-Kernel. Are there anymore changes I have to look at ?

There were 2 patches. The one that went into 2.2.20-pre1 (not the patch you just sent) and the patch you just sent. You need both.

JE