From nobody Sat Jan 07 14:53:32 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 4Nq3BC38Bhz2qmHZ for ; Sat, 7 Jan 2023 14:53:55 +0000 (UTC) (envelope-from schakrabarti@microsoft.com) Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2110.outbound.protection.outlook.com [40.107.255.110]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "DigiCert Cloud Services CA-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Nq3B959vfz4KVV; Sat, 7 Jan 2023 14:53:53 +0000 (UTC) (envelope-from schakrabarti@microsoft.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=microsoft.com header.s=selector2 header.b=P48MA+pq; spf=pass (mx1.freebsd.org: domain of schakrabarti@microsoft.com designates 40.107.255.110 as permitted sender) smtp.mailfrom=schakrabarti@microsoft.com; dmarc=pass (policy=reject) header.from=microsoft.com; arc=pass ("microsoft.com:s=arcselector9901:i=1") ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DzwggE137qBk9NbKP+r4/Zot8LEmAmz2PDZj5DuhuxYE4Ll1G5UkZj1qPmxxWBMvKdvrzLkwVL1yMh9k6fS+dYpdTriSHouYmkv4IMJOBsmoGoSsjxdiMcX9KhqshAlXyFRYP0w29wW3i/kw2UQJQZHePcacR9/tmqDw8dheJnPA1hvvv3R+VP/JC/LZSrmPU1m+59XWubYzfTg2V/FiejZ8f+ESMCSWCzupZP63+AXOOsSa/zBVA1vBcTdKOLZFlMAlZ8wYBADcg6vMcEN6gzisEOSYQ0Nkz5sxdwjnbgtlFZtNpUtn2vaai1+8jr/veqlcVOg7yenKS8W7ytZpEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=6NUgHlS8mwl6l7DvPfsM8eMxoW69Hx0Q/iHf2IyEh1s=; b=G8K6ISGsrw6SXysHzLF96z9QKmUcPwQN/di4aQjymXK2d/Bf0GGHh5erJeKK9yQye2PY5yIodUYk8eXUNuSMg8wnAWpOVg1rt7gI+46BLJlHdyCCktciSoooTKZwPSpoghFm720iQT/doirL+JQgVh8oz7mtFaxFdpMJLiuG1HvnTHTjp7Qxm8c3ROef1HBOQ6R9EfeHmo0OVcEud6CwaxKLTsvZyTaALoE4F205sLVHQXogowKglCar3QgBhdnH34jfvlflWv+JM07WkOv3ptqz9M81ARYne9Rz0MCKHqOVpNZIPay1niBC8c6xf6WvhKWe4HOf1fIdM8BamUCqUA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microsoft.com; dmarc=pass action=none header.from=microsoft.com; dkim=pass header.d=microsoft.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6NUgHlS8mwl6l7DvPfsM8eMxoW69Hx0Q/iHf2IyEh1s=; b=P48MA+pqPxTzr0A5I2AAX5eUmhN60tluZIylEHX/Zle+m//bzn4brAYJ6qAlhj78oL/iDZoyktk2tUnL69sCwnc9sGHng5sXq+tAV6GQpn19mWtCcWxhihFkqNy6l7wI3d/nUYzVLK0jMc+T6j4zpR75bsW9UzgbETT0FCpQd+U= Received: from PSAP153MB0536.APCP153.PROD.OUTLOOK.COM (2603:1096:301:75::14) by SI2P153MB0637.APCP153.PROD.OUTLOOK.COM (2603:1096:4:1fc::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.4; Sat, 7 Jan 2023 14:53:32 +0000 Received: from PSAP153MB0536.APCP153.PROD.OUTLOOK.COM ([fe80::9cbf:40b9:40ce:290]) by PSAP153MB0536.APCP153.PROD.OUTLOOK.COM ([fe80::9cbf:40b9:40ce:290%5]) with mapi id 15.20.6002.009; Sat, 7 Jan 2023 14:53:32 +0000 From: Souradeep Chakrabarti To: "freebsd-arm@FreeBSD.org" , Li-Wen Hsu CC: Wei Hu Subject: MSI CPU affinity for ARM64 Thread-Topic: MSI CPU affinity for ARM64 Thread-Index: Adkio8F3khe3N5kdTvWiOLlk332lhA== Date: Sat, 7 Jan 2023 14:53:32 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ActionId=db4a32ba-f893-40d3-8ebf-516da4c3f48c;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ContentBits=0;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=true;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Method=Standard;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Name=Internal;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2023-01-07T14:23:14Z;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PSAP153MB0536:EE_|SI2P153MB0637:EE_ x-ms-office365-filtering-correlation-id: 5c0e51d8-1283-4467-705b-08daf0bef239 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: fF0Aa3kgSWrZZodvbpRBsfTQNUFrgoND1ClePOuk7Ih8qJb69MrUl6CcWswp3JjhR5dICbHoqWhxqQWBx+K7Le0It37o5qnaw1ud2ZuTW93BYVQMrDj7oUrvJykaHNSCBnMJvXtMaQspi7jvJyiyUygOB2uDzW1Ty26FtXX14g18G/0DEKeAUliT5xjE55zUCSant86zbZJYpwuVJc1psVzHMQ6w1Iu+5wlQN6VAJZ0PWBAzwCa1OnyI6Fryg9r/BZA6jsmvgA1DfcMedIIeZD1WS2mivva1kazllnmEBkq6mdApVu8F79Rmwmr3ck+NIe+A89pxP/EUV4Y+5Oqn1hexJQiGRuas7guhEzt12JfZ6wrcndqdMNiFxvbhLUCxnIwySJwtVnHEId1lvkH3MvSOOLqDUUMKUx1W3y79E51MkE7KP8tqPR9TqCvr3cewXaRchzDXpAFEOfMrNwjRA91tZdlLV9T2cl9CpfhcqNpiwuisMJGm2XAbtQnx4KjNyeIYXU+vGXyv9R+vnPeej3z7fGxzeq8LDImSCQjiWGsneJGQbox7sIoNYCWgVolYKR+q830pckSOCpWg4C9Bdd71f3YgakSiu03b9Cx5i76EwgnA7cjtZg+bX+BiSnuQIyfepX9FEsz/bndekmem1knl8QLE0uC1FSgL6Ps5YeorYPKQ3VyXZ15Ud0j0i2GzF2smbWDFFu7mN/GNYps2jwITwPDuVZ/6E7PSibbVJuXD9RLMEMT+VFXZaZFPHyHi x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PSAP153MB0536.APCP153.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230022)(4636009)(136003)(376002)(346002)(366004)(396003)(39860400002)(451199015)(71200400001)(9686003)(186003)(66946007)(6506007)(10290500003)(38100700002)(110136005)(478600001)(7696005)(316002)(107886003)(66446008)(4326008)(450100002)(41300700001)(64756008)(76116006)(66476007)(8676002)(5660300002)(8936002)(2906002)(52536014)(82960400001)(4744005)(66556008)(122000001)(38070700005)(82950400001)(8990500004)(55016003)(33656002)(86362001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata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dPgoZq/mlPS6DLFGNfxByO50ZtN3fjm43Tapx?= =?us-ascii?Q?91k1+8WBzZcFeum5KwWxaKLzQSUF+yOj7Nf2IjCc1KCfOOTFU/k9R53Tqvat?= =?us-ascii?Q?jMGQm/FwfxPZm7fKOdVqjQO/uHakZeH3XScFqWwXM68d3MiNxG4U4B+z+mly?= =?us-ascii?Q?bKCrgZUcfVGO75Up/brGXH9H0U+md0Mabl41lzbsCfspnnz+pKWiKA+Oge8z?= =?us-ascii?Q?o1nGMWxJCKCNiuhqI2mcJtHLWNIoVVUNxssnk7ZxulT/zoXCbuPbIZ8oHo7H?= =?us-ascii?Q?93UMrYPWJ/6w91EFpU5T8pudZ45+JK5XU4ZcTjLUQTlyG3wNJTM1YQXHjC2r?= =?us-ascii?Q?hKDaquCzf3YGHD1826kOcLn8jWvR0X5s8nEvhKPR17rm2N1UTnmZaLLTr/mM?= =?us-ascii?Q?HD5+vyEae85/7dZY+uTxvlh4NzSgZLvWYxvR4Dff/5JjZo0RPgeLIUz8Vxhf?= =?us-ascii?Q?c/nkdJyD7IjwbgAnPbylbJPTsyexOlw6mYhyyvbZX9qcI3OU5ZC09/l9Rfpw?= =?us-ascii?Q?ZHwITdcLBmvd0R+ku1+jvydfblYFffdc9z1PScGjVQEF1WbQrj6FC7arzWNy?= =?us-ascii?Q?y4Aje6BKR1MvJOkvw/BXPTDw88AErxMDSyqClzDxXqfR4YbA7FSJK1sE79K8?= =?us-ascii?Q?nZwkSgIUnvzI4ozXE8r2Zi+2nooGGhZ750hNy+EZMUCaph6SlIIr8LJybSS6?= =?us-ascii?Q?duYzhoXuiybEyj+8d/yCUwvSndXGOE0vFyhu4kAu?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 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 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PSAP153MB0536.APCP153.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: 5c0e51d8-1283-4467-705b-08daf0bef239 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Jan 2023 14:53:32.4024 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: f57PCHzq5G5j+4CaqyhOzDOzLceYUvL3vUKssuKihPB50yKRMY5AdRk5QkPQEGvCNvJ9hwreyRrAsiKtKJgnZYsBY3EfwX6HEDC/2HKxl/M= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SI2P153MB0637 X-Spamd-Result: default: False [-10.00 / 15.00]; WHITELIST_SPF_DKIM(-3.00)[microsoft.com:d:+,microsoft.com:s:+]; DWL_DNSWL_MED(-2.00)[microsoft.com:dkim]; NEURAL_HAM_LONG(-1.00)[-1.000]; ARC_ALLOW(-1.00)[microsoft.com:s=arcselector9901:i=1]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.997]; DMARC_POLICY_ALLOW(-0.50)[microsoft.com,reject]; R_SPF_ALLOW(-0.20)[+ip4:40.107.0.0/16]; R_DKIM_ALLOW(-0.20)[microsoft.com:s=selector2]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[freebsd-arm@FreeBSD.org]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:8075, ipnet:40.104.0.0/14, country:US]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[40.107.255.110:from]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[40.107.255.110:from]; DKIM_TRACE(0.00)[microsoft.com:+]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_EQ_ADDR_SOME(0.00)[] X-Rspamd-Queue-Id: 4Nq3B959vfz4KVV X-Spamd-Bar: --------- X-ThisMailContainsUnwantedMimeParts: N 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_in= it( ) 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,=20 Souradeep