From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <stephen@networkplumber.org> 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 <dev@dpdk.org>; Tue, 14 Nov 2017 00:46:59 +0100 (CET) Received: by mail-pg0-f50.google.com with SMTP id 70so1411774pgf.6 for <dev@dpdk.org>; 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 <stephen@networkplumber.org> To: Chas Williams <3chas3@gmail.com> Cc: Ferruh Yigit <ferruh.yigit@intel.com>, Thomas Monjalon <thomas@monjalon.net>, dev@dpdk.org, Jianfeng Tan <jianfeng.tan@intel.com>, Jingjing Wu <jingjing.wu@intel.com>, Shijith Thotton <shijith.thotton@caviumnetworks.com>, Gregory Etelson <gregory@weka.io>, Harish Patil <harish.patil@cavium.com>, George Prekas <george.prekas@epfl.ch>, Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>, Rasesh Mody <rasesh.mody@cavium.com>, Lee Roberts <lee.roberts@hpe.com> Message-ID: <20171113154656.2e149727@xeon-e3> In-Reply-To: <CAG2-Gkn1+Tqy_Cs-ybQ1HdoNNA8OzYEaptDfsVsRp+11t+-_bQ@mail.gmail.com> References: <20171103223822.28852-1-ferruh.yigit@intel.com> <2004961.P5XXAOnQC2@xps> <CAG2-Gkk1Z3ZE3XpyK_FQVLnQb9qeY3tYnny6n9x2m2E0MkFRyA@mail.gmail.com> <1537486.rYyyKMFLXg@xps> <CAG2-GknAx_N_dbQAcVnmSDSF01ivfP7shZUd5ewJdZK1GCsbbA@mail.gmail.com> <3c0fb383-552b-b212-c0a0-9267a12afad9@intel.com> <CAG2-GkmO_kwy1NwBZ5VbfP1E7TU9-U2soaDfmjSB+FwFsHv=yg@mail.gmail.com> <d1e9ad62-0b2b-c67e-8425-551a0898a757@intel.com> <CAG2-Gkn1+Tqy_Cs-ybQ1HdoNNA8OzYEaptDfsVsRp+11t+-_bQ@mail.gmail.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 <dev.dpdk.org> List-Unsubscribe: <http://dpdk.org/ml/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://dpdk.org/ml/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <http://dpdk.org/ml/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=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 <ferruh.yigit@intel.com> 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.