I figured out the problem. It turns out to be a mis-configuration in 
FSConfig.py. In FSConfig.py, ISA bus is assigned bus id 0 and PCI bus is 
assigned bus id 1. Then the PCI device should all have bus=1, but the example 
IDE controller (dev4) uses bus=0. The mis-configuration does not impact IDE 
controller but makes kernel mistake PCI bus as ISA bus for the Ethernet device. 

Also, the InterruptLine of the Ethernet device should be equal to the PIN 
number of the I/O APIC you assign to the PCI device, otherwise it will cause an 
assertion error.

Best regards
Fangfei

-----Original Message-----
From: gem5-users-boun...@gem5.org [mailto:gem5-users-boun...@gem5.org] On 
Behalf Of Fangfei Liu
Sent: 2013年7月2日 17:14
To: gem5 users mailing list
Subject: Re: [gem5-users] x86 interrupts

Sorry for replying an old thread. I'm trying to get x86 dual system work and 
want to add an Ethernet device to x86 system. Following David's instructions, I 
met the same problem as him. I also tried other Ethernet devices (IGbE_e1000 
and NSGigE), all gave the same error message in the kernel log.

Can't find IRQ for PCI INT A; probably buggy MP

If I tried to configure eth0, I will get the following error message:

Error -16 getting interrupt
SIOCSIFFLAP: device or resource busy

Does anyone know how to solve this problem? Thanks very much!

Best regards
Fangfei

-----Original Message-----
From: gem5-users-boun...@gem5.org [mailto:gem5-users-boun...@gem5.org] On 
Behalf Of David Miller
Sent: 2013年6月12日 16:26
To: gem5 users mailing list
Subject: [gem5-users] x86 interrupts

Hi,

I'm struggling to get interrupts to work properly on x86.

I've added an instance of X86IntelMPIOIntAssignment to the MP table in 
makeX86system(), but the kernel driver still says it can't find an mptable 
entry for this device's interrupt:

> igb 0000:00:02.0: can't find IRQ for PCI INT A; probably buggy MP 
> table

/proc/interrupts shows no sign of this device, but /proc/irq contains an inode 
'17' (which is the IOAPIC interrupt I assigned the device), although there's 
nothing in it other than 'spurious'.

Beyond that, I've not been able to find a way to read the mptable, so I can't 
see what to do next.

Can anybody shed any light as to what's going wrong?

David.
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to