RE: [EXTERNAL] Re: MSI CPU affinity for ARM64

Souradeep Chakrabarti <[email protected]>
Newsgroups gmane.os.freebsd.devel.arm
Message-ID <PSAP153MB05368A53B76615C724CE59DDCCFE9@PSAP153MB0536.APCP153.PROD.OUTLOOK.COM>


> -----Original Message-----
> From: Andrew Turner <[email protected]>
> Sent: Monday, January 9, 2023 5:14 PM
> To: Souradeep Chakrabarti <[email protected]>
> Cc: [email protected]; Li-Wen Hsu <[email protected]>; Wei Hu
> <[email protected]>
> Subject: [EXTERNAL] Re: MSI CPU affinity for ARM64
> 
> Hello Souradeep,
> 
> In what driver do you need to query the CPU affinity? In the GICv3 driver you can
> read the set of CPUs from isrc->isrc_cpu. In other drivers it appears to be more
> difficult.
> 
> Andrew
[Souradeep] 
I am trying to get the CPU id from vmbus_pcib driver.
I need to find for the MSI interrupt, what is the CPUid.
> 
> > On 7 Jan 2023, at 14:53, Souradeep Chakrabarti <[email protected]>
> wrote:
> >
> > Hi,
> > I am trying to understand how we can find the target CPU for  MSI in ARM64.
> > When looking at gic_v3 code I can see following:
> > gic_v3_bind_intr( ) does mapping to next incremental CPU but
> > gic_v3_dist_init( ) does setup boot cpu as the target CPU for MSI interrupts.
> >
> > If I need to find the CPU bound with a particular MSI interrupt, how we can do
> that?
> >
> > Also is there a way get the the CPU id from the CPU affinity in ARM?
> >
> > Thanks & Regards,
> > Souradeep
> >
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.