RE: MSI CPU affinity for ARM64

From: Souradeep Chakrabarti <schakrabarti_at_microsoft.com>
Date: Mon, 09 Jan 2023 07:13:50 UTC


> -----Original Message-----
> From: Souradeep Chakrabarti
> Sent: Saturday, January 7, 2023 8:24 PM
> To: freebsd-arm@FreeBSD.org; Li-Wen Hsu <lwhsu@freebsd.org>
> Cc: Wei Hu <weh@microsoft.com>
> Subject: MSI CPU affinity for ARM64
> 
> 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
[Souradeep] 
Adding FreeBSD Hackers on the mail thread.