From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 931E142333 for ; Mon, 9 Oct 2023 05:06:38 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8821C402D7; Mon, 9 Oct 2023 05:06:38 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id D7F0A402A3; Mon, 9 Oct 2023 05:06:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1696820795; x=1728356795; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=UxR3bv5T6kuJwJyGqidSHOI1vS4fwWRiZpoZ6T/rPeI=; b=TXDf/N1q0MuVR1R9+qaW0CcMb5hnF3kewkFAAiFezAHNxSrrhfxsvk2G RX5DyQEYbBrFS77GdEgQR0t+SycKGVY0dgbqQ84YzOOXXI4+jrSxdce59 iMO2pi0dd3pitaxAK17277sBvbncq0M+Vl0EVjkQjoTyIshWOvtyvvAzd LuG7wqMvGajCP1kA0G/jDzUV0pxDyLSsn9t+0CpHqMV9r0NphlbJetpKj 5oFqJgzGDhbz1yUbDe6HsdHMgtrOt7ZhSVtbf5Hpia5W/3pA/aXBNSF6X cXFm2HjnbqoF5VLCWu4UGlK37YUoCLIiguJ5qBb55aimPcs41pxYLK448 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10857"; a="383935749" X-IronPort-AV: E=Sophos;i="6.03,209,1694761200"; d="scan'208";a="383935749" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Oct 2023 20:06:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10857"; a="823180196" X-IronPort-AV: E=Sophos;i="6.03,209,1694761200"; d="scan'208";a="823180196" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by fmsmga004.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 08 Oct 2023 20:06:33 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32; Sun, 8 Oct 2023 20:06:33 -0700 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) 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.2507.32; Sun, 8 Oct 2023 20:06:32 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32 via Frontend Transport; Sun, 8 Oct 2023 20:06:32 -0700 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.103) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.32; Sun, 8 Oct 2023 20:06:32 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GmN5+pptkuwtOHAjJSZRrdP19AxWugW3LytycRPk2pHwNwakRa1v5R1YkKmJTRfR9XRwcXRmL7ap+sTIAGfAZPTxr+Qw9jp3yERLZp1pT/flxLJUO7DYGuzBvsIClnkcCPHBCIqRQvV/3bzMd5WO6g2baf0wc13Xxx1skdX9KxNGN4Y+xv/a3YWLQxgswb3if3Zs/72jdavn/aGfWjLElokEIgXK0Yk82eKyTP623Jj1a5uktEn4r4uorTx1IJbj9mXJzoA/N/urdngGN1VRnM11chlM6rW6ORfSGb2bQzCxVpKIXRqDcSmifurwtnoZ0L5tbH1w/P4HsNOr/VaIbQ== 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=UxR3bv5T6kuJwJyGqidSHOI1vS4fwWRiZpoZ6T/rPeI=; b=fxl5gpE1/lzFFhEl8Y6Mgirl1kZx6XzzUIUp9uzYT9/Sdifsst33n7BiJ8vJKTSjmPG40o3toEJnQjAupWSCBHj2fKmVS/pOIQ+QmUYh6tT7jB7OuqQHKoz704D/Uyjw6IcAeIPHK14Nr7d04GSwXKSJtaOPLvItHoa3qZSkwF507fTihDMC41OZ627BCEmmfCnOwTtmnGwCVpLLtTKezRy8MfMjsbRC96lWMFG0tAeJTHQJVBEOcP9wGm9KnUWDLBJuCyIS/woVROpYWSyBb+buqkqCzhk82ZTVdVOoPCMOT5II5t8RREuMyC4sZ6ck6fUMmKuupu1E566VhLm2RA== 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 MN0PR11MB6110.namprd11.prod.outlook.com (2603:10b6:208:3ce::19) by BL1PR11MB5526.namprd11.prod.outlook.com (2603:10b6:208:31d::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.37; Mon, 9 Oct 2023 03:06:31 +0000 Received: from MN0PR11MB6110.namprd11.prod.outlook.com ([fe80::113:a7b2:b893:ad2a]) by MN0PR11MB6110.namprd11.prod.outlook.com ([fe80::113:a7b2:b893:ad2a%2]) with mapi id 15.20.6838.040; Mon, 9 Oct 2023 03:06:31 +0000 From: "Ma, WenwuX" To: David Marchand , "nipun.gupta@amd.com" , "chenbo.xia@outlook.com" CC: "dev@dpdk.org" , "maxime.coquelin@redhat.com" , "Li, Miao" , "Ling, WeiX" , "stable@dpdk.org" Subject: RE: [PATCH v4] bus/pci: fix legacy device IO port map in secondary process Thread-Topic: [PATCH v4] bus/pci: fix legacy device IO port map in secondary process Thread-Index: AQHZ2v/f+e13U8gockieA41rnutyb7A4EJ2AgAjyDpA= Date: Mon, 9 Oct 2023 03:06:30 +0000 Message-ID: References: <20230807015820.1329972-1-wenwux.ma@intel.com> <20230830050713.58247-1-wenwux.ma@intel.com> In-Reply-To: Accept-Language: zh-CN, 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: MN0PR11MB6110:EE_|BL1PR11MB5526:EE_ x-ms-office365-filtering-correlation-id: d4c585c7-583c-4053-5bf7-08dbc874bc96 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: LZFqPk7JO+9EEiZMNZall6Qm3PyU30SQLbDKSaZOYqymfkrqLqGVC10cCjdaqJKyJyxvpbSAFmS+gbqwxM3LZzSx7Qx2Yf1bVCIBuLh4E6f5ZJnCtMR5kmoGpdduYEU0zMz7Daq3Cr14eUk0P/j9rvWpD3mV7vIArNZAHeR5CiTkoabDyRUaORTyIWz3ZtITwWSZ3rA6JG6V76xnAsS7Ve7R2BJOBi8fUdNCbKj2gdOBlpXYkRC6/fA6yaFntLH7RJlOn6HgjLYbMHC9gdG3oF1kpswSnWCMTDfI5PlRrlbDL1nj6DSpXBJwgMNyl1UNOjsNNZ8XZ5MgOSh83OvZbco8XPWtpwTXJ/8n8/cmhfubNUDOcUNTt7dFx70PQhUFm4ObWoHBEBD04piovG6UzraiHs8POcHdx1/VFcHUzifeB+y2nUlTUbbURqQ7znz7mUh2q/Ccn4XrfZ3pyGTSTWGtXHJBSTM0UTpfpym2gOdeIGjXBlZrdCiDfxCYsLFiUohFAI+x4F02lvq5QOF3TM/Jc0Gup4BOUiSZBnzDkvWOtzVPt7ieyIiRVoWDbMrTCbnJILZ6hsxV4CLBp/fuqFxqokrGZnXk45hCrEU3ZaWEOR5eenhhZgugD29kUHLR x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MN0PR11MB6110.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(136003)(39860400002)(346002)(366004)(396003)(376002)(230922051799003)(451199024)(64100799003)(1800799009)(186009)(55016003)(83380400001)(26005)(66476007)(66556008)(66946007)(54906003)(76116006)(110136005)(66446008)(316002)(64756008)(8936002)(8676002)(4326008)(5660300002)(52536014)(41300700001)(7696005)(6506007)(53546011)(71200400001)(9686003)(2906002)(45080400002)(478600001)(33656002)(38070700005)(38100700002)(82960400001)(122000001)(86362001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?VWZsMnRpcEVJTTVJVU9Cd1p5UnRTdHVCZG1pQ2VoZEVoYnd4RnBwWHp0RXV3?= =?utf-8?B?bkZ4RlJSbmRyUmVOdmY1ZkltZ0RPZE56dHY3NUIxYTBBcmRWN3liQWFWYUlr?= =?utf-8?B?NWFEOU02VVBRNThyUW1wZ3ZFcWN2cGRXeldaWmY1RG1xNytiV1VtaE5ueUxV?= =?utf-8?B?amhrazFsaFZNRjJqOVdwUEtWWWVMbitueDhyekMrQlNnVUs3U3MxNEZwMWRE?= =?utf-8?B?ZE5DZDFwcnhGaFNYeXlXbnM1MFBuYVNGSldTZlJOV2FOaDBWT0Mzc0krTjJ5?= =?utf-8?B?cm5MVm5GT3RmZkQ3WDRHdVEyR3pXTUdMYU9TZzBHT3hKZFZNL1dQNkh6amxa?=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: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MN0PR11MB6110.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: d4c585c7-583c-4053-5bf7-08dbc874bc96 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Oct 2023 03:06:30.8482 (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: 4+KnK8PkN9sYPgOmwsWFSMTz5YvSB/5Un/amwVYreg2RkgZ3pkMVpm64WtfY/Fkew/tZvQqbARajav6XBzeLQA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR11MB5526 X-OriginatorOrg: intel.com X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org SGksDQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogRGF2aWQgTWFyY2hh bmQgPGRhdmlkLm1hcmNoYW5kQHJlZGhhdC5jb20+DQo+IFNlbnQ6IDIwMjPlubQxMOaciDPml6Ug MTg6MjENCj4gVG86IE1hLCBXZW53dVggPHdlbnd1eC5tYUBpbnRlbC5jb20+OyBuaXB1bi5ndXB0 YUBhbWQuY29tOw0KPiBjaGVuYm8ueGlhQG91dGxvb2suY29tDQo+IENjOiBkZXZAZHBkay5vcmc7 IG1heGltZS5jb3F1ZWxpbkByZWRoYXQuY29tOyBMaSwgTWlhbw0KPiA8bWlhby5saUBpbnRlbC5j b20+OyBMaW5nLCBXZWlYIDx3ZWl4LmxpbmdAaW50ZWwuY29tPjsgc3RhYmxlQGRwZGsub3Jn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