From nobody Mon Jan 09 11:44:14 2023 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NrBtc2Mmyz2qpj4 for ; Mon, 9 Jan 2023 11:44:24 +0000 (UTC) (envelope-from bT.5is6c55d30=7ivc0wbbqwow=y0om3pasoh@em790814.fubar.geek.nz) Received: from e2i580.smtp2go.com (e2i580.smtp2go.com [103.2.142.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4NrBtZ6Y4rz3R41 for ; Mon, 9 Jan 2023 11:44:22 +0000 (UTC) (envelope-from bT.5is6c55d30=7ivc0wbbqwow=y0om3pasoh@em790814.fubar.geek.nz) Authentication-Results: mx1.freebsd.org; dkim=none ("invalid DKIM record") header.d=smtpservice.net header.s=mgy720.a1-4.dyn header.b=wVpgc5sE; dkim=pass header.d=fubar.geek.nz header.s=s790814 header.b=ft0WRwPP; spf=pass (mx1.freebsd.org: domain of "bT.5is6c55d30=7ivc0wbbqwow=y0om3pasoh@em790814.fubar.geek.nz" designates 103.2.142.68 as permitted sender) smtp.mailfrom="bT.5is6c55d30=7ivc0wbbqwow=y0om3pasoh@em790814.fubar.geek.nz"; dmarc=pass (policy=none) header.from=fubar.geek.nz DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=smtpservice.net; s=mgy720.a1-4.dyn; x=1673265562; h=Feedback-ID: X-Smtpcorp-Track:To:Message-Id:Date:From:Subject:Reply-To:Sender: List-Unsubscribe; bh=3wMXBYp0yx6mW70cKcceRhjAkMgNj/MoX5gflWY8K+w=; b=wVpgc5sE wKvXiMa30qTj/o/yFncH4UvZ7JPBp+hE0dIOUOfbEI7xkU13SrWI/PExnwgsrQ9UBb1Al18gyQ3al 4ytqQGMACpZcOYjGyR/dIFmPdBeFyCPpKXn5uKJcYrOLWLYjx9+WPBLcvlD9SgiRFOUFaTDt78qS5 nKdpdwgCXxY8cBCHLZbgRHLHhB3HQJpuGZoCOY0DSD9aBYcxGVix7EL4AailA5Z7izRZiRDUX3nOg iN8eSw+VLrctP/Zb08BoB3WmnM83cNkajzlU3GcyLnucXQOKPpH0q1vTAO0kGn0+j9uVgZdYvpQi7 EIpv7hTyo5525UJgQsZrVce3tw==; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fubar.geek.nz; i=@fubar.geek.nz; q=dns/txt; s=s790814; t=1673264662; h=from : subject : to : message-id : date; bh=3wMXBYp0yx6mW70cKcceRhjAkMgNj/MoX5gflWY8K+w=; b=ft0WRwPPn/c5eFAu9sSBwMIPRBKm0w3DFqeY4+xXNG7gMVYzQFRbdt2t16xw1QWhFESGl E3Uk/2FtkPmS+P18LbaxVgQyeExUhgH3KDDZclj4RrBot0vZqEIeXg7Aal4qF099OpxxFuR fBdFte6pxjLPU7oyWWmIQrx2CC8szokcmv/IRZeqrl9xScxAUFMx3nqMuZ9d5HSqWxp+jDN BhA0OaYtbCSjV6v3Jmvs+OGlZTBqG/Btc1AbL90316QMD/vBYogDNxMikWdT32faCMiff+E aNBpLMLHjeiN4PafejzmkfASPvwSV47TeGHphdL/5TOnMx9rRvu88wF1Sr6w== Received: from [10.139.162.187] (helo=SmtpCorp) by smtpcorp.com with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.94.2-S2G) (envelope-from ) id 1pEqZe-qt4B5D-Sa; Mon, 09 Jan 2023 11:44:18 +0000 Received: from [10.162.55.164] (helo=morbo.fubar.geek.nz) by smtpcorp.com with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96-S2G) (envelope-from ) id 1pEqZe-4XaBIa-29; Mon, 09 Jan 2023 11:44:18 +0000 Received: from smtpclient.apple (cpc91214-cmbg18-2-0-cust234.5-4.cable.virginm.net [81.102.75.235]) by morbo.fubar.geek.nz (Postfix) with ESMTPSA id 55FA62AFB8; Mon, 9 Jan 2023 11:44:15 +0000 (UTC) Content-Type: text/plain; charset=us-ascii List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Subject: Re: MSI CPU affinity for ARM64 From: Andrew Turner In-Reply-To: Date: Mon, 9 Jan 2023 11:44:14 +0000 Cc: "freebsd-arm@FreeBSD.org" , Li-Wen Hsu , Wei Hu Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Souradeep Chakrabarti X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Smtpcorp-Track: 1pEqZ-4baUma29.Iy4TtA8uS7cVG Feedback-ID: 790814m:790814amQcrys:790814slHL3ZvFbV X-Report-Abuse: Please forward a copy of this message, including all headers, to X-Spamd-Result: default: False [-3.90 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; MV_CASE(0.50)[]; DMARC_POLICY_ALLOW(-0.50)[fubar.geek.nz,none]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; FORGED_SENDER(0.30)[andrew@fubar.geek.nz,bT.5is6c55d30=7ivc0wbbqwow=y0om3pasoh@em790814.fubar.geek.nz]; RCVD_IN_DNSWL_MED(-0.20)[103.2.142.68:from]; R_SPF_ALLOW(-0.20)[+ip4:103.2.140.0/22]; R_DKIM_ALLOW(-0.20)[fubar.geek.nz:s=s790814]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_THREE(0.00)[4]; FROM_HAS_DN(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; R_DKIM_PERMFAIL(0.00)[smtpservice.net:s=mgy720.a1-4.dyn]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MLMMJ_DEST(0.00)[freebsd-arm@FreeBSD.org]; ARC_NA(0.00)[]; ASN(0.00)[asn:23352, ipnet:103.2.140.0/22, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DKIM_MIXED(0.00)[]; TO_DN_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_NEQ_ENVFROM(0.00)[andrew@fubar.geek.nz,bT.5is6c55d30=7ivc0wbbqwow=y0om3pasoh@em790814.fubar.geek.nz]; RCVD_COUNT_THREE(0.00)[4]; MIME_TRACE(0.00)[0:+]; DKIM_TRACE(0.00)[smtpservice.net:~,fubar.geek.nz:+]; RWL_MAILSPIKE_POSSIBLE(0.00)[103.2.142.68:from]; RCVD_TLS_ALL(0.00)[] X-Rspamd-Queue-Id: 4NrBtZ6Y4rz3R41 X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N 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 > On 7 Jan 2023, at 14:53, Souradeep Chakrabarti = wrote: >=20 > 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. >=20 > If I need to find the CPU bound with a particular MSI interrupt, how = we can do that? >=20 > Also is there a way get the the CPU id from the CPU affinity in ARM? >=20 > Thanks & Regards,=20 > Souradeep >=20