Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp279814rwb; Wed, 21 Sep 2022 22:21:53 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6SB29OkWY6uS/smnBXG4j6YRTpZUP+dVV9c7LvPvNeRQGDRsO+A5OzAY3dlVWRiMwjDUDd X-Received: by 2002:aa7:dc0d:0:b0:443:e1ca:bdb1 with SMTP id b13-20020aa7dc0d000000b00443e1cabdb1mr1494335edu.62.1663824113235; Wed, 21 Sep 2022 22:21:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1663824113; cv=pass; d=google.com; s=arc-20160816; b=gO/rVH+2qtKVUvr9k530JHDQTgMju4Ss5ZSpedCDGMErWbzn0LvwxvJToN4gM8LsbV VMnpKUuZQFRnam/nJvBeQJvwO46yb6imWOFQoC6xWlNnwF1V+Kn98hz6xmNyCrEEUGbV Jmq7yJ1hEUITuwb+woTdAUVlIeN9rroloc3el5L5WhlPCBBaArT59D7lJswvt7KkDDve IUKnlf8UeE4n8B2nLuIWSdFkUtGketUcqVRXT+m/C2VVCOWEM9TsAfHcDnFiuzL2hrmY TLlv1m/6X25HVmPF3vTZ2eppAcrBJOF/kozTvRXdUSiEP+zZzyDT/RWJuPRAbMSIl2M4 mjQA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=bP/yKl3QQ16+bc5saBUoaK9rgVirOypGU4uevGNPi24=; b=zHf8uxakl8N35WPRE0HSd7qLEsi/PYHAps8pNt+1KSd7cstsiviYrGPB2Xf8YYB55Q GGvdI1mLjDsCeXFilvSiqIiWtOAqJ7PLR5jeM6ijOnvCHeQ57uC/9OiMJuRZvGqCrNsg 1yTN8tct4vjC9SZQ6wEXxBlCqJbPglXvkLisW7tBL3BxsY6uNYPfmVBui5yoKPGWjAhg H9gy2XROOePZ3c4fkBIKaM2WR3Bwyl4fl/Cm+Ce0ScB/vRjFD2WgRyDLWbo05njE0L0Q KPiiarLntnVPM4BO5JrkkXLLIyhKal9bKwrTLetWwY5B9h7c6nx04dOumDU4whBOvxfu 7p1A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="gfqbaIp/"; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d18-20020a170906041200b007707ab4be28si3876967eja.972.2022.09.21.22.21.26; Wed, 21 Sep 2022 22:21:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="gfqbaIp/"; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230024AbiIVFLU (ORCPT + 99 others); Thu, 22 Sep 2022 01:11:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229563AbiIVFLR (ORCPT ); Thu, 22 Sep 2022 01:11:17 -0400 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D5649CCC3; Wed, 21 Sep 2022 22:11:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663823474; x=1695359474; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=bP/yKl3QQ16+bc5saBUoaK9rgVirOypGU4uevGNPi24=; b=gfqbaIp/5vq4cF1dYtEVH1SWF2oQvGntXYro07dyW4jhTi6XWb3GTXtE o4VCYv5QAAoCW+WJ6y9hV3+LP2ftl6LyHvHD47w/6dezFJLPpvsJ3ZlpV TdTOevOKZR9wdmnm7xNRPaB5nGuOcEFVJsbT8SJwucf+7dVoWWr31Ba9g GoVXS0M86hUk3x/ji76ZwjgbSnCxEbQMCtrO4Hp74Sx/itcjeZpLe47C6 mCK1IYEyTyVe/YArqPj0AjSGwE06+HkEfErSKPloPq/gIoDpZZKfcLBS0 LbU8SvAS1+ac1wxE7aZ1ChusY6ag5To1TM6d6cpXBBmD5krN9FLpZ4J7z w==; X-IronPort-AV: E=McAfee;i="6500,9779,10477"; a="361963679" X-IronPort-AV: E=Sophos;i="5.93,335,1654585200"; d="scan'208";a="361963679" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Sep 2022 22:11:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,335,1654585200"; d="scan'208";a="723508014" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by fmsmga002.fm.intel.com with ESMTP; 21 Sep 2022 22:11:06 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Wed, 21 Sep 2022 22:11:06 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Wed, 21 Sep 2022 22:11:06 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31 via Frontend Transport; Wed, 21 Sep 2022 22:11:06 -0700 Received: from NAM04-DM6-obe.outbound.protection.outlook.com (104.47.73.49) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.31; Wed, 21 Sep 2022 22:11:04 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Fgnc98QjDGRx2Zo/0PZzQSabFCkHrF2yvhnk6f/GEUneEXHLLZFWPLu4NZ0lxL3jze9KNyuqavBPziyALWqgSQNhPjUIthdVCAk5A9XECSm8XDuS3BNU57UnfCjF/ftqRU/v28PMv6b2zmgyeJJcSUuKPEsEb1MaBDnUHWNBENRyabDVJAWHPmBtoFdrVIBO9EgfKAl1q7Ds7CGivo6hWJ0BJ4IQcIBceAgoBKWWq33FvsaCJF1wOUoBf+aHZYG96yGzyQfveMo705OdtF/XLcE6mGm8LyaRi3wMik/Eqhor66dVBLotIqE36EYv74//71Doy0cxGiCIuk2sSpDVTQ== 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=bP/yKl3QQ16+bc5saBUoaK9rgVirOypGU4uevGNPi24=; b=mw2FyCGdKWs6VoJfqt6r8HrSl20jRYVZjJCZKI0HON81mFmwolKAP7jB8FKrcOzGmN8YHxC+okZSw8u0fTo8BW9srqNnoBlqOZTswTS3PZm0PCZwHqYynHXA0JW/vRl0fu/MXB/oaZRTYdDVw8glpY8S7J+42meBXWYNBmEorREcoCsWW+uEAdFKZr8BfcmF2DFNdDig0GHNrhn0XBcEEBtR44nNubNoRoQiynnYS6e9vmmMnyHNqiL+kFa3CdlVIgJTNo67xiY0yK+uY66LHg8Jlf1aIEesw3o0uuZAvQkAcQ2EyTCZPBMgC81xd5+GH5pQHYlgvI/uYkC1Xpbm4A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from BN9PR11MB5276.namprd11.prod.outlook.com (2603:10b6:408:135::18) by BL3PR11MB5681.namprd11.prod.outlook.com (2603:10b6:208:33c::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.16; Thu, 22 Sep 2022 05:11:01 +0000 Received: from BN9PR11MB5276.namprd11.prod.outlook.com ([fe80::a435:3eff:aa83:73d7]) by BN9PR11MB5276.namprd11.prod.outlook.com ([fe80::a435:3eff:aa83:73d7%6]) with mapi id 15.20.5654.016; Thu, 22 Sep 2022 05:11:00 +0000 From: "Tian, Kevin" To: Jason Gunthorpe CC: Thomas Gleixner , "Chatre, Reinette" , "Jiang, Dave" , "Logan Gunthorpe" , LKML , "Bjorn Helgaas" , Marc Zygnier , Alex Williamson , "Dey, Megha" , "Raj, Ashok" , "linux-pci@vger.kernel.org" , Greg Kroah-Hartman , Jon Mason , Allen Hubbe , "linux-ntb@googlegroups.com" , "linux-s390@vger.kernel.org" , Heiko Carstens , Christian Borntraeger , "x86@kernel.org" , "Rodel, Jorg" , "iommu@lists.linux-foundation.org" Subject: RE: [patch 21/32] NTB/msi: Convert to msi_on_each_desc() Thread-Topic: [patch 21/32] NTB/msi: Convert to msi_on_each_desc() Thread-Index: AQHX4y1VNaiO68omHEet2J9DWrVARKwa1YEAgAAp0QCAABreAIAAIi2AgAE8MoCAAAd1gIAACyoAgAAPcQCAADDDAIAAp1uAgABn9QCAACTxgIAAAdGAgAAbd4CAAA94gIAABpSAgAt9SoCAADlJAIAAgb+AgABGMACAAAc8gIAAE+oAgAAmHACAAFJ4oIAAem8AgABqWwCAANPscIAAWxoAgADV7aCAAT/pAIGycJswgAhPdQCAASQawIAAV3mAgAERgAA= Date: Thu, 22 Sep 2022 05:11:00 +0000 Message-ID: References: <20211210123938.GF6385@nvidia.com> <87fsr0xp31.ffs@tglx> <875yrvwavf.ffs@tglx> <87fsqxv8zf.ffs@tglx> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BN9PR11MB5276:EE_|BL3PR11MB5681:EE_ x-ms-office365-filtering-correlation-id: 377e4db2-a7ea-4404-e378-08da9c58d73d x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: u/k1nptmKZtqUNIltFhGUpAbL95txhjEJiDdW982s/yjEf78wlvUvboELrRoCVspCgnUT+1SULnyNcLtZrdT6KUK6schYE7XWcI4n6U1D4bsPXH9ZGL+qpcataQ/b9zcfnYyZ2K084xtCMfMWos+ugMtCcFUhi706XRqhIzvyGQVzzzvjF0l6ubbv+/O9Duvai+hHG6ONYoEMvxlRc4GbNntybbZoDIm0V0b7mQXkiAFTtQZCI+FyEObKf7i1wLKzhUSH+jerC5CuNyiyVRndIqWDMakzXndlm74LG9HlvDGk5VRVdZyl8vo+l3MMi66TRCA97vusavbyqyMB03qPugtMvZ9mKKjs944yYpBJ87GUKQ25jeWR9wuLv5/ECXM+XF9/zgMgZc9WU4DzAjHRJEziR35qTsT42jOCSi2sSA+nL9VNMQrGa+HoiaHetHGrCdWbIg9xkuAMLVPujUOFvG4Rcgy4+uVWdujVMMq2ivcDFZkn6qPM3is6sbW+ouXadyEq/zX1uzv1PjtfEjwTELBB4GRtWPf4SJ42vHfSIGDQr/YD5am8fK2ahKwMzCy/KAjgFZvmsgQ6k/+cEGNdif2WvH+U+l8YSnERdzzAmnpfKJ9sG2MuBmA1Yx2TGVVGllNuY2E1vwss1iHrLK+6oGTs8T3CMJMZGbePiJpcwZ9uSo1r4lLVEKMyEjhxcUP7T5CjI+1HY81KsZmW8ZrMqcTDFMHXhdJjVdu+VwYgRzReAAXtb66iHkx6cQjQW+l x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BN9PR11MB5276.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(39860400002)(136003)(376002)(346002)(366004)(396003)(451199015)(478600001)(71200400001)(4326008)(41300700001)(7416002)(5660300002)(66946007)(52536014)(8676002)(316002)(54906003)(8936002)(66556008)(33656002)(76116006)(6916009)(66476007)(64756008)(66446008)(55016003)(122000001)(82960400001)(9686003)(38100700002)(26005)(186003)(7696005)(38070700005)(6506007)(83380400001)(86362001)(2906002)(66899012);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?Oppc6bG9BZCk7df7t5tVu4efzBfEClWnHeC6r4s7ee1bBaTE+1pnOzEwvmy8?= =?us-ascii?Q?Ze2Js2KJyPSQGCDzgWc517n4trGQFZPWmHOfI7GemOnCM2Oi34FpxJactXar?= =?us-ascii?Q?7rgIjyHzVgBONXtjRjB9DjBWdBk3UnAX0xL+jNvRaUguZFaMVP9RTtnSP6hx?= =?us-ascii?Q?NO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4XkZpk?= =?us-ascii?Q?LegLM8vAKcSulV/Gb9YFvyFrrKGSuqhqWVGEa8/oVOq+tleLPRY3QVqGCLXN?= =?us-ascii?Q?dot0JdqtYu7+/mF4AFhhWNHwXgEbBNhUn26r4k+ZNE/wHmYY/2hAl1crZ8ts?= =?us-ascii?Q?EO1yBN9hX9ZSwBOLz6QbhCX2grFKrABp1DDXwRcE0NwJDI5NM4uoIvDESXBY?= =?us-ascii?Q?o2x2p4kwKeoF1fHtApO7VIg0P+MqwYM+6XAE8812y2CuwLVO2HpOop8+GNi/?= =?us-ascii?Q?lHUmfgsvsbY4RV1SyuG35sgL4evcsOcE0bMlQO1uXxLLzY6jYlykxdnhG0bT?= =?us-ascii?Q?vGmh2ZfFr1oN8R70aUL2zDvEf9zBeCmSVVxJvXYD7VHCBjzx+pvUWQ/khmDX?= =?us-ascii?Q?Snb5wKkTLnCgf584qfX1nxi2KqiHvF295CSiHIj6fD9XoSaAg2sR17UXMNaK?= =?us-ascii?Q?x648xNLE7etH9yKu0GqbHypBf682HF/vL5Zi+2mvWCyG3QW0nav+gB05mGom?= =?us-ascii?Q?VHrDiyP2IYbQerSYUnTV5RLCQxgpseNiRW7PmvLy?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BN9PR11MB5276.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 377e4db2-a7ea-4404-e378-08da9c58d73d X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Sep 2022 05:11:00.8402 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: DLFRdFxsXUDujSqTTZXWw0WNucLAVWfwkj7Vw/Ga1qThU51DFlUrxZx3PsQFvxuDBCoAfrsgjtk71Bby98ODog== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL3PR11MB5681 X-OriginatorOrg: intel.com X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > From: Jason Gunthorpe > Sent: Wednesday, September 21, 2022 8:48 PM >=20 > On Wed, Sep 21, 2022 at 07:57:00AM +0000, Tian, Kevin wrote: > > > From: Jason Gunthorpe > > > Sent: Tuesday, September 20, 2022 10:10 PM > > > > > > On Thu, Sep 15, 2022 at 09:24:07AM +0000, Tian, Kevin wrote: > > > > > > > After migration the IRTE index could change hence the addr/data pai= r > > > > acquired before migration becomes stale and must be fixed. > > > > > > The migration has to keep this stuff stable somehow, it seems > > > infeasible to fix it after the fact. > > > > > > > This is not how live migration typically works, i.e. we don't try to > > freeze the same host resource cross migration. It's pretty fragile > > and the chance of failure is high. >=20 > Thinking of the interrupt routing as a host resource is the problem - > it is a device resource and just like PASID the ideal design would > have each RID have its own stable numberspace scoped within it. The > entire RID and all its stable numberspace would be copied over. >=20 Unfortunately it is not the case at least on Intel VT-d. The interrupt remapping table is per VT-d instead of per RID.