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 7494CA052A; Sun, 24 Jan 2021 16:22:18 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E9EB4140D49; Sun, 24 Jan 2021 16:22:17 +0100 (CET) Received: from hqnvemgate24.nvidia.com (hqnvemgate24.nvidia.com [216.228.121.143]) by mails.dpdk.org (Postfix) with ESMTP id 6271C140D43 for ; Sun, 24 Jan 2021 16:22:16 +0100 (CET) Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate24.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Sun, 24 Jan 2021 07:22:15 -0800 Received: from HQMAIL107.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Sun, 24 Jan 2021 07:22:15 -0800 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Sun, 24 Jan 2021 07:22:15 -0800 Received: from HQMAIL109.nvidia.com (172.20.187.15) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Sun, 24 Jan 2021 15:22:15 +0000 Received: from HQMAIL107.nvidia.com (172.20.187.13) by HQMAIL109.nvidia.com (172.20.187.15) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Sun, 24 Jan 2021 15:22:11 +0000 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.102) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Sun, 24 Jan 2021 15:22:11 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SoMKXnfFCbJ7EUCFSH2rLirN6bcUcqpZUy3QtjAa9adbz8et0/5x4/V//vcnWpyBJ/Yzoll5dLLciphjcLqBJ0qwb2lGuK4BmZ57+5tXbYIjcGU/LuJZYHUama1w9vwKQAvfIe2Bz/eOw3lzIi2gKK+WzdTAwO0bmPOi079ILCKJR+gRo82szjVmXCAfvXDW+x6Uhfrs4vBO953vd6kRVN3z1Bv5mkHMn7vq5Ydg7iiXQOVNusgWRHz4Qv9X4L7qEV4mds3gMAk7co/DYeLisU33ETJzHtmyM+mhrDi3Tq7g0JgSjnOzr06JQtOhei6yVJTcs3ZabI41g7067rHpig== 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-SenderADCheck; bh=WtdARlESEHpWGMaMUzVkInfoC/G+2BFcbDY7+XzNOb4=; b=oaBvUAC2xjsQvJDsiPm/+wCCx3KMMjkjNbHDV83JSLX0lJMS10cVa/lvMB2+0PtyxVtFFzj3UKNrTtjnffFmLuavCaEjRqwk2/fBNNeP1OLXDXCEjiFCACEP1h9tUHJeyOoBdm3VVprEq797ic1FFw9M9JxM251ogT6moo7k1LW9mRtBF9lYukJmXZRNd9X+RPp9olXWFXpXrTgzYctH59lsrs68PdjfNkQGDVsYkTDuYKWsdOjnldeW5bmExKhF1WdSxGHmzfhSr3SwdTjBq3NWvk82Nf56CnMk3OxNjBKS9knEz/nv4QMY8IQ/Ru2Mjjst1FbtLziQ2P6ddrmtsg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none Received: from BY5PR12MB4324.namprd12.prod.outlook.com (2603:10b6:a03:209::10) by BY5PR12MB4949.namprd12.prod.outlook.com (2603:10b6:a03:1df::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3784.14; Sun, 24 Jan 2021 15:22:09 +0000 Received: from BY5PR12MB4324.namprd12.prod.outlook.com ([fe80::8d03:2ada:5add:965d]) by BY5PR12MB4324.namprd12.prod.outlook.com ([fe80::8d03:2ada:5add:965d%3]) with mapi id 15.20.3784.017; Sun, 24 Jan 2021 15:22:09 +0000 From: "Xueming(Steven) Li" To: =?gb2312?B?0Lu7qs6wKLTLyrG0y7/Mo6k=?= , "ferruh.yigit@intel.com" CC: "dev@dpdk.org" , "maxime.coquelin@redhat.com" , "anatoly.burakov@intel.com" , "david.marchand@redhat.com" , "zhihong.wang@intel.com" , "chenbo.xia@intel.com" , "grive@u256.net" Thread-Topic: [dpdk-dev] [PATCH v5 2/3] PCI: support MMIO in rte_pci_ioport_map/unap/read/write Thread-Index: AQHWqIt0dw8gELN05kiN21k2KBURlao3dh6w Date: Sun, 24 Jan 2021 15:22:09 +0000 Message-ID: References: <68ecd941-9c56-4de7-fae2-2ad15bdfd81a@alibaba-inc.com> <1603381885-88819-1-git-send-email-huawei.xhw@alibaba-inc.com> <1603381885-88819-3-git-send-email-huawei.xhw@alibaba-inc.com> In-Reply-To: <1603381885-88819-3-git-send-email-huawei.xhw@alibaba-inc.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: alibaba-inc.com; dkim=none (message not signed) header.d=none; alibaba-inc.com; dmarc=none action=none header.from=nvidia.com; x-originating-ip: [222.72.18.238] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 71993574-13ce-404b-9730-08d8c07bd0eb x-ms-traffictypediagnostic: BY5PR12MB4949: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5516; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 3OxuydeB1MFEozf09BR6Dkeg15mW8hiRwIlGVdIXJ0hXKNOMNFPQrlq8vAokz4LIq26+o6JXev8f2XLOTzwKQeJ40sZQy4P0j0vu6DzacXUjLIPgaFFuvQ7pX7Xi3uCNeo32yOCX4DSfmpl0OPMZpxt5pbt0KYUw9O2rZz+DUN2/VTMsWd+L2bLPksjsyrbZLPNlHHUicefXgZKa6oDJtWv12cHv8F2mYrEP1jPUELWng5WYlHkWcZVXMb8O36XPgYFbaMRoCLR4xueb45iXifiPTouTsbNRNlTn0zWc8tFawVJ66qKHN5Tu7r2vMzWOF7Yt7NCKoPsTWrrTiBCgzZkKqbFeFkL6CEFuhAWe9AIhB5FRXgf7l1chYlNuxbusdLH3nzG/Jnq0dm5xbbAczw== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BY5PR12MB4324.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(366004)(376002)(396003)(39860400002)(346002)(86362001)(7696005)(186003)(478600001)(54906003)(26005)(64756008)(4326008)(66446008)(2906002)(6506007)(110136005)(316002)(8936002)(5660300002)(55016002)(9686003)(66556008)(76116006)(66946007)(52536014)(66476007)(83380400001)(33656002)(71200400001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?gb2312?B?QlVEclZGMXhWejhVS3VURTB5SWRtQ2hzVjlGRGFtRHl3YWl4bWtqRVF3SHFZ?= =?gb2312?B?NG9QMlFkbVFZdTdwQm9BaWVIV3NDK0FNQTIzL1RvOCs3TXJFeTd3SEk3VC93?= =?gb2312?B?dkhEN0lQTitFb2pxSlhzblNUbXhiUnVCTTI5NkNxL2czbjJnZTJWdjg5eitS?= =?gb2312?B?eEpkeDlKY0gxckhORG8zYlkxRnhwK1UyajVnTlREYkQ5N2RUeEo3elZkOWhL?= =?gb2312?B?NDRLY3BFL1AxYTNkc01GU3FqRlNhWjEyc3BsTGc4WXo1a2UzYlJEYlFZVmlK?= =?gb2312?B?K2h5ZnFLS0c2Z1lzRXE5dXZSRHhRZlgwR2o3ZzJDb20vZFZ6WHNXL3lrQjFK?= =?gb2312?B?NFVjN3pVcVZaYkVKL3BWemxNMWEzZ0Y2SC9FTFVVS2VhajREQ2FmTzVwdnpF?= =?gb2312?B?Q2k2cWR6cVhpT01LT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?8rll4yMzMvdQY=3D?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BY5PR12MB4324.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 71993574-13ce-404b-9730-08d8c07bd0eb X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Jan 2021 15:22:09.0197 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: n/J+rc2kuCi2epi6Dqq0gaEcnBndqK1fXSGYVW3oDuwga0z4Nhx2q6PPozWtUdim0E4Ppxbe9HUelpa8RKjpkA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR12MB4949 X-OriginatorOrg: Nvidia.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1611501735; bh=WtdARlESEHpWGMaMUzVkInfoC/G+2BFcbDY7+XzNOb4=; h=X-PGP-Universal:ARC-Seal:ARC-Message-Signature: ARC-Authentication-Results:From:To:CC:Subject:Thread-Topic: Thread-Index:Date:Message-ID:References:In-Reply-To: Accept-Language:Content-Language:X-MS-Has-Attach: X-MS-TNEF-Correlator:authentication-results:x-originating-ip: x-ms-publictraffictype:x-ms-office365-filtering-correlation-id: x-ms-traffictypediagnostic:x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers:x-ms-exchange-senderadcheck: x-microsoft-antispam:x-microsoft-antispam-message-info: x-forefront-antispam-report:x-ms-exchange-antispam-messagedata: x-ms-exchange-transport-forked:Content-Type: Content-Transfer-Encoding:MIME-Version: X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-AuthSource: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-originalarrivaltime: X-MS-Exchange-CrossTenant-fromentityheader: X-MS-Exchange-CrossTenant-id:X-MS-Exchange-CrossTenant-mailboxtype: X-MS-Exchange-CrossTenant-userprincipalname: X-MS-Exchange-Transport-CrossTenantHeadersStamped:X-OriginatorOrg; b=V9wwiGhvbemWwQtJHxfqtbfsDQzGyEEJOPqa2HdM9q/ZT0K+FjcDvKNFpXKaUY+T/ VPL3aWojp9pEl+pRNoQeBWaVouY8DuyJa7clO9wwhYucWt8hMzIdbUk8txShKFLeMU s5Ba4I3q+3lJowyTMdo7Qi3Eo8e/Ws9ieuPvOhMqFKzoE7E2O5fJgYFR4Shwy1ATSi UpF1bQf6yhE7ZA7KOaiWNS8xtMFQACD5gYnou6HCz7EjaNYHpIX1UiWFFmMiRlyERi hhOEmLNEA3l4et4GMErswX+kPIYyF3kwqEH7x+WehtmlGjV70WDSB8izQ8agMs8bY9 +czc4BD3K1gmA== Subject: Re: [dpdk-dev] [PATCH v5 2/3] PCI: support MMIO in rte_pci_ioport_map/unap/read/write X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" SGkgSHVhd2VpLA0KDQpOaWNlIHdvcmssIGp1c3Qgc29tZSBzbWFsbCBjb21tZW50cy4NCg0KPi0t LS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQo+RnJvbTogZGV2IDxkZXYtYm91bmNlc0BkcGRrLm9y Zz4gT24gQmVoYWxmIE9mINC7u6rOsCi0y8qxtMu/zKOpDQo+U2VudDogVGh1cnNkYXksIE9jdG9i ZXIgMjIsIDIwMjAgMTE6NTEgUE0NCj5UbzogZmVycnVoLnlpZ2l0QGludGVsLmNvbQ0KPkNjOiBk ZXZAZHBkay5vcmc7IG1heGltZS5jb3F1ZWxpbkByZWRoYXQuY29tOw0KPmFuYX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