[coreboot] IRQ 9 on s2895 and s2892
Myles Watson
mylesgw at gmail.com
Mon Mar 16 21:48:06 CET 2009
On Mon, Mar 16, 2009 at 2:36 PM, Rudolf Marek <r.marek at assembler.cz> wrote:
> Myles Watson napsal(a):
>>
>> On Mon, Mar 16, 2009 at 1:23 PM, Rudolf Marek <r.marek at assembler.cz>
>> wrote:
>>>
>>> Hi,
>>>
>>>> All of the other interrupts from 0x0-0xf are set as Edge triggered in
>>>> the mptable, so that seems likely.
>>>
>>> Fine. Second reason might be that the ExtInt pin is wrong for the APIC. I
>>> mean it is set wrongly. To which pin sets the original BIOS the ExtInt
>>> IRQ?
>>
>> Do I need to decode the mptable to know that? Is there a utility to
>> do that? I've gotten as far as "ISA is bus 86", but I'm struggling to
>> find ExtINT in there. I don't see anything that matches what I
>> expect.
>>
>
> It should be the interrupt type 3 maybe you can dump the table somewhere?
That's what I was looking for. I thought 03 03 .... 86, but I didn't
see anything like that.
I'm attaching the hexdump.
>
> mp_ExtINT Looking into the mptable for yhe 2895 seems that extint is not
> pin0 but pin2!
>
> Maybe you can change the code here:
>
> --- ck804_lpc.c (revision 3613)
> +++ ck804_lpc.c (working copy)
> @@ -43,9 +43,9 @@
> #define INT (1 << 8)
> /* IO-APIC virtual wire mode configuration */
> /* mask, trigger, polarity, destination, delivery, vector */
> - { 0, ENABLED | TRIGGER_EDGE | POLARITY_HIGH | PHYSICAL_DEST |
> ExtINT, NONE},
> + { 0, DISABLED, NONE},
> { 1, DISABLED, NONE},
> - { 2, DISABLED, NONE},
> + { 2, ENABLED | TRIGGER_EDGE | POLARITY_HIGH | PHYSICAL_DEST |
> ExtINT, NONE},
> { 3, DISABLED, NONE},
> { 4, DISABLED, NONE},
> { 5, DISABLED, NONE},
I'll try it.
>
>> 04d0: 20 0c
>>
>> IRQ 7, IRQ a, IRQ b are edge?
>
> Nope IRQ5 and IRQ10 and IRQ11 are edge.
Right.
> But I think that linux trusts more the APIC conf and not the MPTable so,
> after you fix it it may actually start to work.
Thanks,
Myles
-------------- next part --------------
00097c60 50 43 4d 50 bc 01 04 00 41 4d 44 20 20 20 20 20 |PCMP....AMD |
00097c70 48 41 4d 4d 45 52 20 20 20 20 20 20 00 00 00 00 |HAMMER ....|
00097c80 00 00 2c 00 00 00 e0 fe d8 00 7d 00 00 00 10 03 |..,.......}.....|
00097c90 12 0f 00 00 ff fb 8b 17 00 00 00 00 00 00 00 00 |................|
00097ca0 00 01 10 01 12 0f 00 00 ff fb 8b 17 00 00 00 00 |................|
00097cb0 00 00 00 00 00 02 10 01 12 0f 00 00 ff fb 8b 17 |................|
00097cc0 00 00 00 00 00 00 00 00 00 03 10 01 12 0f 00 00 |................|
00097cd0 ff fb 8b 17 00 00 00 00 00 00 00 00 01 00 50 43 |..............PC|
00097ce0 49 20 20 20 01 01 50 43 49 20 20 20 01 02 50 43 |I ..PCI ..PC|
00097cf0 49 20 20 20 01 08 50 43 49 20 20 20 01 09 50 43 |I ..PCI ..PC|
00097d00 49 20 20 20 01 0a 50 43 49 20 20 20 01 80 50 43 |I ..PCI ..PC|
00097d10 49 20 20 20 01 81 50 43 49 20 20 20 01 86 49 53 |I ..PCI ..IS|
00097d20 41 20 20 20 02 04 11 01 00 00 c0 fe 02 05 11 01 |A ............|
00097d30 00 00 00 d0 02 06 11 01 00 10 00 d0 03 03 05 00 |................|
00097d40 00 00 04 00 03 00 05 00 00 01 04 01 03 00 05 00 |................|
00097d50 00 02 04 02 03 00 05 00 00 03 04 03 03 00 05 00 |................|
00097d60 00 04 04 04 03 00 0f 00 00 05 04 05 03 00 05 00 |................|
00097d70 00 06 04 06 03 00 05 00 00 07 04 07 03 00 05 00 |................|
00097d80 00 08 04 08 03 00 05 00 00 09 04 09 03 00 0f 00 |................|
00097d90 00 0a 04 0a 03 00 0f 00 00 0b 04 0b 03 00 05 00 |................|
00097da0 00 0c 04 0c 03 00 05 00 00 0d 04 0d 03 00 05 00 |................|
00097db0 00 0e 04 0e 03 00 05 00 00 0f 04 0f 03 00 0f 00 |................|
00097dc0 00 08 04 0a 03 00 0f 00 00 09 04 0b 03 00 0f 00 |................|
00097dd0 00 10 04 0a 03 00 0f 00 00 1c 04 0a 03 00 0f 00 |................|
00097de0 00 20 04 0b 03 00 0f 00 00 28 04 0b 03 00 0f 00 |. .......(......|
00097df0 01 14 04 12 03 00 0f 00 02 00 04 11 03 00 0f 00 |................|
00097e00 80 28 07 05 03 00 0f 00 81 00 07 00 04 03 05 00 |.(..............|
00097e10 86 00 ff 00 04 01 05 00 86 00 ff 01 80 14 00 01 |................|
00097e20 00 00 0a 00 00 00 00 00 00 00 02 00 00 00 00 00 |................|
00097e30 80 14 00 00 00 10 00 00 00 00 00 00 68 0c 00 00 |............h...|
00097e40 00 00 00 00 80 14 00 01 00 00 00 b0 00 00 00 00 |................|
00097e50 00 00 00 08 00 00 00 00 80 14 00 02 00 00 00 c0 |................|
00097e60 00 00 00 00 00 00 00 10 00 00 00 00 80 14 00 01 |................|
00097e70 00 00 c0 fe 00 00 00 00 00 04 00 00 00 00 00 00 |................|
00097e80 80 14 08 01 00 00 00 d0 00 00 00 00 00 f8 3f 00 |..............?.|
00097e90 00 00 00 00 80 14 80 00 00 20 00 00 00 00 00 00 |......... ......|
00097ea0 00 20 00 00 00 00 00 00 80 14 80 01 00 00 40 d0 |. ............ at .|
00097eb0 00 00 00 00 00 00 40 00 00 00 00 00 81 08 86 01 |...... at .........|
00097ec0 00 00 00 00 82 08 00 00 00 00 00 00 82 08 00 00 |................|
00097ed0 01 00 00 00 82 08 08 01 00 00 00 00 82 08 08 01 |................|
00097ee0 01 00 00 00 82 08 80 01 00 00 00 00 82 08 80 01 |................|
00097ef0 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00097f00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
More information about the coreboot
mailing list