From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 19CDBA0528; Sat, 11 Jul 2020 08:58:01 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 680DF1D9E1; Sat, 11 Jul 2020 08:58:00 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 37EE81D9DD for ; Sat, 11 Jul 2020 08:57:58 +0200 (CEST) IronPort-SDR: RbJaKtJfyQ5qldMsT0kdBYn2dQHLzQ9as7626vKb+bViRe7TMJI1qXChblTbqWYq9xI5AdtX1V naVCwpvXBfyw== X-IronPort-AV: E=McAfee;i="6000,8403,9678"; a="135827541" X-IronPort-AV: E=Sophos;i="5.75,338,1589266800"; d="scan'208";a="135827541" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jul 2020 23:57:57 -0700 IronPort-SDR: BGN6rOxO1P8LLqI/lyOI+mEUs187ZvlSQJ4QLWqbAEfkm/u02fj9nlX7QxRoa9KE0RtY1JZKxz dc0XmbptWq6A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,338,1589266800"; d="scan'208";a="316826606" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga002.fm.intel.com with ESMTP; 10 Jul 2020 23:57:57 -0700 Received: from fmsmsx114.amr.corp.intel.com (10.18.116.8) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 10 Jul 2020 23:57:56 -0700 Received: from FMSEDG002.ED.cps.intel.com (10.1.192.134) by FMSMSX114.amr.corp.intel.com (10.18.116.8) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 10 Jul 2020 23:57:38 -0700 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.104) by edgegateway.intel.com (192.55.55.69) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 10 Jul 2020 23:57:38 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TCuC81fkJs74uw2NTmdWsllBN5/V/M4LkLeWzHnS9Fs8iqj5BHVFD7rrHWxMJJ/krW9sch2N3st8ZfJD9oqVE5u7AXozs/q2frasM0+DnhemUTUDC29aqtAkYYt9j4CkE2Q+qN1gGUDERDLNd35qbJZsYvQlkYshP+ehTXc3dhOGbFJ5wY+oD5BeiaWl6Lr4ueUhhxLVbK3F0SfcybVuby0d8mpDk1zG18lMMFl16Xz9Vm8MkyD+SWGBY+T07nA1PwrMz+UNLh1oOEcgnI+KupGe5tnwmLQwJpPRE/+St+LluRBNsHyAdL20CXxaUM2bhnf/nNInBScAa6otWiwRVw== 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=5+5zVt3Q5PVSj7W58YDfIxYtmTqE7hP8wqzrU1dr65g=; b=AOvm3Yj4+PoBg+VsBZP+m0AAQdHwCgNdBo/2fiUUd/1T22+agybVe27T6r3Ex4a4JdA5pJ9uZIYEvapY95cOg6dTigB8ZtNQJDz9KxxnYltWwMIsv648gbN+V0I/KE1Ns9zk4wvRC/sd/a0ri1IiFPyOFFSkvsU7QzH4iX/wLDfmi6TvUP9FFw9GWK8guL6HLh92n3mtY9lKUVU+OC93mxQIBoqs/e/8YhzV5BhO1PSHWkEKVkt7i8PA/btetbGv/yO3siXb54iEIMR+0Bo+FlmBJPCNphZMGWj+1yTWdGMoSopsKUBwM3tjn0iRe0LMd+BvGEfXrgevaNBvi3ep8w== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5+5zVt3Q5PVSj7W58YDfIxYtmTqE7hP8wqzrU1dr65g=; b=jTlvJb6ssxcmBc2ebqN+mR78cWolboXUjXZYLoxgXYhGu5rEy36EJEdKJaG/qnFle6OxzUBbT0DxvzkICcIkmT1t1FUOp0Za4JpgEVxdbfnNDPXRyPi9Pz3KdOHQTQL9ogysuVwmNKOCUIDbOuWmfj+MNsBPqZdDt/9lcrXnD98= Received: from SN6PR11MB2960.namprd11.prod.outlook.com (2603:10b6:805:d4::12) by SN6PR11MB2575.namprd11.prod.outlook.com (2603:10b6:805:57::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.22; Sat, 11 Jul 2020 06:57:36 +0000 Received: from SN6PR11MB2960.namprd11.prod.outlook.com ([fe80::20d6:bb89:9836:e68a]) by SN6PR11MB2960.namprd11.prod.outlook.com ([fe80::20d6:bb89:9836:e68a%7]) with mapi id 15.20.3174.022; Sat, 11 Jul 2020 06:57:36 +0000 From: "Zhang, AlvinX" To: David Marchand CC: dev Thread-Topic: [dpdk-dev] [PATCH] bus/pci: fix mmap PCI resource Thread-Index: AQHWVQnn1RDxUua/TUiFOP0g9lYVRKkAlgAAgAFe/lA= Date: Sat, 11 Jul 2020 06:57:36 +0000 Message-ID: References: <20200708092435.9776-1-alvinx.zhang@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: redhat.com; dkim=none (message not signed) header.d=none;redhat.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.102.204.38] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 70db3c3f-859d-4267-f412-08d82567b19c x-ms-traffictypediagnostic: SN6PR11MB2575: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7691; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: /y0n29ljWmZppeQMdgHjOuewopuYevDADnQfHcBri3R2RnMaia4zi2JM5jgPiFr2Ckc6BtbXpGlryNwBos3womo8xfC2TnjlXgo9Ur0tCM5DqojQesgyuGb9VvrCZ1qFGlA5XCL20f1mkneJ1bW7LIbhikXLphxOI5AI+ceO4RrRI2CJIlUTD6HVilXX01JQvqejt14p19TbAkT01MW/dfQt5ORB7YZ53DQ4iPQDMgb9jnnD0HVR4gtZNVVVv+Zz0FDz8OfuRjtfSgjabslOe5akOBi1wVQPsixxAjkR/wx0xb5Zdp7ZbXWJ1yH7Fh6o+gcP1NvhHUMeEdGxfaYQ2w== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR11MB2960.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(396003)(39860400002)(136003)(346002)(376002)(366004)(52536014)(33656002)(8936002)(478600001)(83380400001)(86362001)(5660300002)(66446008)(66556008)(71200400001)(64756008)(66476007)(76116006)(66946007)(6916009)(7696005)(6506007)(53546011)(26005)(316002)(186003)(55016002)(8676002)(4326008)(2906002)(9686003); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: l7YLThRez+eW2LANO/usRr8QiwPISGZ2rTN4U6qrdiB4UMeA+p6tLeULSgZ32V77YiYxuNXJjotuKAjsZ5nCWDx8yfBTv5fTe4FgChXsEt2/Zl+ulXn+U7n/zVmNNGhGkNMQngvfILuGADl571TSwkegbg8Rgt/9qvN+WkrQEZj4p7KpALtUREXZeOgK11fdSFzWMMMob1h1EM2jLuzpNrDAkxengdRcQtL7+pGMmFUl4w6nL85SBm7ALK9yHJ5OQQ7jj6mO8ae3eeL08Ln4jMmJ2YlIeTUemSw5L6OhsBLPFq7Sb/4Uv7sL7qjMn06YADqyg1BwaIDVchqC9KfnxrwQUr3mvPnRLHKdJFMIucd/4nPUEGub5jaTbKL1oJOPIdtFw/rTWUE6ybVFMxD+X8tUceCSzjX2dqkZUpWYYvF957K2XeE/ILx6/IHLoJW+OTSBDnWnmWKe+6+X9he8p9mn4AgzfoTnuLE7M75GJiFTjHnhbXn/SiXaNkfEIIX0 x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB2960.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 70db3c3f-859d-4267-f412-08d82567b19c X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Jul 2020 06:57:36.3038 (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: YFUAnnazhtu2cGjPz2gusDE8Q7ObdBENtHRgJuSZwH3dmi++EHgJfhL6nRuahTSll8QelFVJKKQP9D0Od0hyDw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR11MB2575 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH] bus/pci: fix mmap PCI resource X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBEYXZpZCBNYXJjaGFuZCA8ZGF2 aWQubWFyY2hhbmRAcmVkaGF0LmNvbT4NCj4gU2VudDogRnJpZGF5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