From mboxrd@z Thu Jan 1 00:00:00 1970 From: "He, Shaopeng" Subject: Re: [PATCH V5 2/7] bus/pci: implement hotplug failure handler ops Date: Fri, 6 Jul 2018 15:17:36 +0000 Message-ID: <7A795063ED59344FA044FE7D577A3D9878C6E1@SHSMSX101.ccr.corp.intel.com> References: <1498711073-42917-1-git-send-email-jia.guo@intel.com> <1530776333-30318-1-git-send-email-jia.guo@intel.com> <1530776333-30318-3-git-send-email-jia.guo@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Cc: "jblunck@infradead.org" , "shreyansh.jain@nxp.com" , "dev@dpdk.org" , "Zhang, Helin" To: "Guo, Jia" , "stephen@networkplumber.org" , "Richardson, Bruce" , "Yigit, Ferruh" , "Ananyev, Konstantin" , "gaetan.rivet@6wind.com" , "Wu, Jingjing" , "thomas@monjalon.net" , "motih@mellanox.com" , "matan@mellanox.com" , "Van Haaren, Harry" , "Zhang, Qi Z" , "Iremonger, Bernard" Return-path: Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 710271BE83 for ; Fri, 6 Jul 2018 17:17:43 +0200 (CEST) In-Reply-To: <1530776333-30318-3-git-send-email-jia.guo@intel.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > -----Original Message----- > From: Guo, Jia > Sent: Thursday, July 5, 2018 3:39 PM >=20 [...] > + switch (pdev->kdrv) { > + case RTE_KDRV_IGB_UIO: > + case RTE_KDRV_UIO_GENERIC: > + case RTE_KDRV_NIC_UIO: > + /* mmio resources is invalid, remap it to be safe. */ Better to keep consistent as: mmio resource is [...] Is it helpful that pci_uio_remap_resource could also remap UIO event and co= ntrol fd? So, up-layer application will be easier to deal with the un-plug event. > +/* remap the PCI resource of a PCI device in anonymous virtual memory */ > +int > +pci_uio_remap_resource(struct rte_pci_device *dev) > +{ > + int i; > + void *map_address; Acked-by: Shaopeng He