hi.
if it possible to use ioapic and 8259a pic simultaneously?
my bsp initialized the ioapic. but i want one ap use 8259a.
by the way, my bsp and ap run different kernel.
use ioapic and 8259a simultaneously
-
- Member
- Posts: 25
- Joined: Tue Nov 05, 2013 4:06 am
Re: use ioapic and 8259a simultaneously
Hi,
Cheers,
Brendan
In theory, it is possible to use the IO APIC and PIC chips at the same time. In practice; ACPI's AML doesn't support it and it's something I'd expect to have a "higher than normal" risk of problems (e.g. motherboards that don't work properly); and the advantages (typically none) don't justify the increased complexity or the risk of potential problems.watermirror wrote:if it possible to use ioapic and 8259a pic simultaneously?
I don't think that's possible. The PIC chips were never designed to support multi-CPU and I doubt there's any (reliable) way to get the PIC chip's IRQs routed to any AP.watermirror wrote:my bsp initialized the ioapic. but i want one ap use 8259a.
In that case, if a kernel needs the PIC chips (for some unknown and likely dubious reason) then run it on the BSP, and run the kernel that uses the IO APIC on the AP. That would at least solve some of the many problems.watermirror wrote:by the way, my bsp and ap run different kernel.
Cheers,
Brendan
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.
Re: use ioapic and 8259a simultaneously
Only bsp can receive 8259a interrupt request, ap will ignore it, ap only accept io apic.
-
- Member
- Posts: 25
- Joined: Tue Nov 05, 2013 4:06 am
Re: use ioapic and 8259a simultaneously
hi, could you tell me how could this happen?fluray wrote:Only bsp can receive 8259a interrupt request, ap will ignore it, ap only accept io apic.
-
- Member
- Posts: 25
- Joined: Tue Nov 05, 2013 4:06 am
Re: use ioapic and 8259a simultaneously
hi, BrendanIn that case, if a kernel needs the PIC chips (for some unknown and likely dubious reason) then run it on the BSP, and run the kernel that uses the IO APIC on the AP. That would at least solve some of the many problems.
could you tell me what are the problems?
Re: use ioapic and 8259a simultaneously
As shown in Figure:watermirror wrote:hi, could you tell me how could this happen?fluray wrote:Only bsp can receive 8259a interrupt request, ap will ignore it, ap only accept io apic.
It is bad when both open 8259 PIC and IO APIC, 8259 PIC overlapping functions with IO APIC interrupt request will be submitted twice in the BSP.
There are situations :
An interrupt request is sent to the BSP, another interrupt request is sent to AP
May cause conflicts when these interrupt handler shared variables.
...