From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-f50.google.com (mail-pg0-f50.google.com [74.125.83.50]) by dpdk.org (Postfix) with ESMTP id 3C7571B39F for ; Tue, 14 Nov 2017 00:46:59 +0100 (CET) Received: by mail-pg0-f50.google.com with SMTP id 70so1411774pgf.6 for ; Mon, 13 Nov 2017 15:46:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=31B53pFDvqWgQ1/kyTIsbD2h0yFxo7dst0CQ+jk3vNE=; b=L1M2u9cZbwwf3+V5SyN3RJEgWb9bmgz/URQPbrLkdKXHT+WDm97qfyDpQiPeyBZn58 fcGkIjyB6nNlrMuhI/qGiGiHoDZoyXG2AjbZDNVEzqsvs0+mXjbUvkM6UIboj2Eq5onB LnWbovzRIC8aTWv4l0+/sB4BiMm6eMTJcoi8Zxc7ZUOAFMv1qykcwnzAwbigXm8tcNeC f7Yw1Sy7EZXwKHjRUkqS0tRPUw+pQ9HxxiqNh72Tcm0dOXkdPOJb30AwGdJKV+oRTt6B zpWqyzqsG9LBO9p/PjflpIbxBn8+9wlHZYEvYAePBIDZvlVauR7VuuoehzbpFw8X5iKX CRTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=31B53pFDvqWgQ1/kyTIsbD2h0yFxo7dst0CQ+jk3vNE=; b=EnUjRkxnjkouj3Pm6EW+tFI9xGfdwZNXQhA1bdS606XIL8K+Lg3vNit+WPGg9uAlHd 7MIWVRLKgiAx86mXFgeaJWtuxC3f81Ms6wsU3fYQt5DikFcQmeEJVQ3S6wmK1xSa0b/l i1zXg/r9bnVkvpTbUA1WL//p6dewgVWahcji/7F4bN78hoJRoQrrIPit2u0ddq6VxgBM QC8X7drIEx97Wa9PB8gOwDy9aEU3ZHovO5/S6BcYsA96zuvr/FRVP6OUC52VZ/x68oEM Vrv8BgUkJpsy3Q+/NEcDdonD7TIYjmculFEnUKHAOGPY/HsQ08eN0DnB5J+daTDYB6LW Er6w== X-Gm-Message-State: AJaThX4snUsb5Nk2LBBGL/Dp7W6ov4SmEj7QSU114LM7ejvjHLX7AeuI D6Gga78b/22KtSsLj4VRT8je6g== X-Google-Smtp-Source: AGs4zMYQHfiMF+YBpFQwy79/bNRF9Ho/BETACioylke2MSSWM6AMwwNjlv1afgCjnv6Lzp4pJ8TukQ== X-Received: by 10.84.129.2 with SMTP id 2mr6658294plb.343.1510616818342; Mon, 13 Nov 2017 15:46:58 -0800 (PST) Received: from xeon-e3 (76-14-207-240.or.wavecable.com. [76.14.207.240]) by smtp.gmail.com with ESMTPSA id m69sm36133525pfc.27.2017.11.13.15.46.57 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 13 Nov 2017 15:46:58 -0800 (PST) Date: Mon, 13 Nov 2017 15:46:56 -0800 From: Stephen Hemminger To: Chas Williams <3chas3@gmail.com> Cc: Ferruh Yigit , Thomas Monjalon , dev@dpdk.org, Jianfeng Tan , Jingjing Wu , Shijith Thotton , Gregory Etelson , Harish Patil , George Prekas , Sergio Gonzalez Monroy , Rasesh Mody , Lee Roberts Message-ID: <20171113154656.2e149727@xeon-e3> In-Reply-To: References: <20171103223822.28852-1-ferruh.yigit@intel.com> <2004961.P5XXAOnQC2@xps> <1537486.rYyyKMFLXg@xps> <3c0fb383-552b-b212-c0a0-9267a12afad9@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-dev] [dpdk-stable] [PATCH v2] igb_uio: prevent reset for a list of devices 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: , X-List-Received-Date: Mon, 13 Nov 2017 23:46:59 -0000 On Wed, 8 Nov 2017 07:00:23 -0500 Chas Williams <3chas3@gmail.com> wrote: > On Tue, Nov 7, 2017 at 5:26 PM, Ferruh Yigit wro= te: > On 11/7/2017 12:47 PM, Chas Williams wrote: > > I will confess I haven't looked into the issue too hard since I have a > > workaround.=C2=A0 My first guess is that there is something going on wi= th the IOMMU > > and quiescing a PCI pass-through device/function from the guest (since = I don't > > think the IOMMU is "visible" to the guest) seems iffy. > > > > Most devices have some sort of reset to put the device into a known sta= te for > > setup/configuration (or enable/disable for the DMA engines).=C2=A0 If t= his is done at > > .dev_close(), shouldn't that be as sufficient as resetting the function? >=20 > This is for the cases DPDK app terminated unexpectedly, proper exit path = already > does cleanup. >=20 > Call a usermode helper from igb_uio that does an open/close on the device= about to be released? usermode helper is hated by upstream kernel developers. There are many prob= lems such as what namespace and security.