Date: Mon, 9 Jan 2023 15:24:03 +0000 From: Souradeep Chakrabarti <schakrabarti@microsoft.com> To: Andrew Turner <andrew@fubar.geek.nz> Cc: "freebsd-arm@FreeBSD.org" <freebsd-arm@FreeBSD.org>, Li-Wen Hsu <lwhsu@freebsd.org>, Wei Hu <weh@microsoft.com> Subject: RE: [EXTERNAL] Re: MSI CPU affinity for ARM64 Message-ID: <PSAP153MB05368A53B76615C724CE59DDCCFE9@PSAP153MB0536.APCP153.PROD.OUTLOOK.COM> In-Reply-To: <C9FA2D79-C36B-4841-8D99-71A161756559@fubar.geek.nz> References: <PSAP153MB0536DE0C63CFD99B65406F87CCF89@PSAP153MB0536.APCP153.PROD.OUTLOOK.COM> <C9FA2D79-C36B-4841-8D99-71A161756559@fubar.geek.nz>
next in thread | previous in thread | raw e-mail | index | archive | help
> -----Original Message----- > From: Andrew Turner <andrew@fubar.geek.nz> > Sent: Monday, January 9, 2023 5:14 PM > To: Souradeep Chakrabarti <schakrabarti@microsoft.com> > Cc: freebsd-arm@FreeBSD.org; Li-Wen Hsu <lwhsu@freebsd.org>; Wei Hu > <weh@microsoft.com> > Subject: [EXTERNAL] Re: MSI CPU affinity for ARM64 >=20 > Hello Souradeep, >=20 > 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. >=20 > Andrew [Souradeep]=20 I am trying to get the CPU id from vmbus_pcib driver. I need to find for the MSI interrupt, what is the CPUid. >=20 > > On 7 Jan 2023, at 14:53, Souradeep Chakrabarti <schakrabarti@microsoft.= com> > wrote: > > > > Hi, > > I am trying to understand how we can find the target CPU for MSI in AR= M64. > > 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 inter= rupts. > > > > 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 > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?PSAP153MB05368A53B76615C724CE59DDCCFE9>