7025 F40 CHRP IBM

2 messages, 2 authors, 2001-10-25 · open the first message on its own page

7025 F40 CHRP IBM

From: Cloves Ferreira Jr <hidden>
Date: 2001-10-21 15:03:01

Hello,

  I am trying to produce a zImage that can boot on a 7025 F40 CHRP IBM
workstation using linux kernel 2.4.3 with 110 tarball patches.
  I debuged some kernel code and found an abnormal execution at
arch/ppc/kernel/i8259.c in i8259_init function. This function is called
by arch/ppc/kernel/chrp_setup.c in chrp_init_IRQ function.

  When the start init sequence is executed a MachineCheckException is
generated printing a text message like: OUT to bad port 21 at...

  Can anyone help me with a correct code to this controller? Can anyone
point me with documentation to study about this? Can anyone give me
e-mails to change some experiences about this model of workstation (F40)

programing in IBM linux group?

  Thanks,
     Cloves.

  The code is:

----------------------------------------
void __init i8259_init(void)
{
        unsigned long flags;

        spin_lock_irqsave(&i8259_lock, flags);
        /* init master interrupt controller */
        outb(0x11, 0x20); /* Start init sequence */
        outb(0x00, 0x21); /* Vector base */
        outb(0x04, 0x21); /* edge tiggered, Cascade (slave) on IRQ2 */
        outb(0x01, 0x21); /* Select 8086 mode */
        outb(0xFF, 0x21); /* Mask all */
        /* init slave interrupt controller */
        outb(0x11, 0xA0); /* Start init sequence */
        outb(0x08, 0xA1); /* Vector base */
        outb(0x02, 0xA1); /* edge triggered, Cascade (slave) on IRQ2 */
        outb(0x01, 0xA1); /* Select 8086 mode */
        outb(0xFF, 0xA1); /* Mask all */
        outb(cached_A1, 0xA1);
        outb(cached_21, 0x21);
        spin_unlock_irqrestore(&i8259_lock, flags);
        request_irq( i8259_pic_irq_offset + 2, no_action, SA_INTERRUPT,
                     "82c59 secondary cascade", NULL );
}
----------------------------------------

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: 7025 F40 CHRP IBM

From: Hollis Blanchard <hidden>
Date: 2001-10-25 04:08:47

on 21/10/01 10:03 AM, Cloves Ferreira Jr at cfj@cefetgo.br wrote:
I am trying to produce a zImage that can boot on a 7025 F40 CHRP IBM
workstation using linux kernel 2.4.3 with 110 tarball patches.
I debuged some kernel code and found an abnormal execution at
arch/ppc/kernel/i8259.c in i8259_init function. This function is called
by arch/ppc/kernel/chrp_setup.c in chrp_init_IRQ function.

When the start init sequence is executed a MachineCheckException is
generated printing a text message like: OUT to bad port 21 at...
This message comes from arch/ppc/kernel/traps.c MachineCheckException()

Do you know if you have an 8259 in that machine? Unless your memory map is
very screwy (but I think it should be handled fine by the current PReP
code), there doesn't seem to be anything at 0x20 (system IO)...

-Hollis


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help