OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 4:59 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Can MSIs target the IO APIC?
PostPosted: Tue Oct 18, 2022 7:32 am 
Offline

Joined: Tue Oct 18, 2022 7:17 am
Posts: 2
I would say no. They are two different and independent mechanisms for interrupt delivery.

Then again, there's this sentence in the Intel SDM vol 3 explaining the Destination ID field of the MSI destination address range of the processor:

Quote:
Destination ID — This field contains an 8-bit destination ID. It identifies the message’s target processor(s).
The destination ID corresponds to bits 63:56 of the I/O APIC Redirection Table Entry if the IOAPIC is used to
dispatch the interrupt to the processor(s).


As far as I know, the MSI writes are handled by the root complex/host bridge in/and/or the system agent/UBox. Thus I don't see how the IO APIC gets into the picture. It's not even possible to make an MSI-capable device to write to an RTE of the IO APIC since the access to these is indexed.

It's theoretically possible for an SoC to have an MSI write in the standard processor range to be redirected through the IO APIC but I haven't found such capability in all the PCH datasheets, nor in a few Xeon datasheets, nor in the VT-d specification.

Note that I'm not asking if the IO APIC can deliver MSIs (it makes no sense to ask such). I'm asking about the meaning of the quoted sentence.

After some thinking, the only thing I came up with is that the sentence is to be interpreted as "If you are already using the IO APIC to dispatch interrupt, you can simply use the bits 63:56 of the relevant RTE to fill the Destination ID field of the MSI address".

I'm I missing some trivial link between MSIs and the IO APIC?


Top
 Profile  
 
 Post subject: Re: Can MSIs target the IO APIC?
PostPosted: Tue Oct 18, 2022 11:05 am 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5100
MSIs completely bypass the IOAPIC. That sentence is just poor editing on Intel's part.


Top
 Profile  
 
 Post subject: Re: Can MSIs target the IO APIC?
PostPosted: Tue Oct 18, 2022 12:53 pm 
Offline
Member
Member

Joined: Fri Feb 11, 2022 4:55 am
Posts: 435
Location: behind the keyboard
MSI sends the interrupt directly to the target CPU, it has nothing to do with IOAPIC. You can send an IRQ 50 or IRQ 99 or whatever you want with MSI.


Top
 Profile  
 
 Post subject: Re: Can MSIs target the IO APIC?
PostPosted: Tue Oct 25, 2022 12:59 pm 
Offline

Joined: Tue Oct 18, 2022 7:17 am
Posts: 2
devc1 wrote:
MSI sends the interrupt directly to the target CPU, it has nothing to do with IOAPIC. You can send an IRQ 50 or IRQ 99 or whatever you want with MSI.


That's pretty obvious, as I already explained in the answer. The question was about what Intel wrote in their manual and if there was anything true in it. It was not about the pretty easy topic of MSIs themselves.

As already better answered by others, it's just poor editing.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 77 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group