From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f43.google.com (mail-pa0-f43.google.com [209.85.220.43]) by dpdk.org (Postfix) with ESMTP id 0BDAD5A3E for ; Wed, 15 Apr 2015 17:57:27 +0200 (CEST) Received: by pabtp1 with SMTP id tp1so55407652pab.2 for ; Wed, 15 Apr 2015 08:57:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=78mopjmIx1rMRA5apXKPk6TgHbXIXvPenaj1RgMwc04=; b=VZ+aDz6NrwWt0fxkJa8QwGUaDSQk8cgiW8AsZ8jIejGXVBig92EHkg9pdCwWWYTpiZ bhTFdhLJYXp62tEgNfKsVJHiYSXQzsk3qHE/ZSvamaHLLBdAiBqadb6kshUkGzBpNNua oeV0NDMXvCk4j8vkYrzEtljeu5ZLAsojMc07GpUnV7YH9r3jqOQMlSQBDP/kHTIa8cw1 AWM1k0dLuahk2/16anpz3lEwUgpIv8inV7HIpUFpTOGJUQ1zR90lEP2d7EPPyaAjaZwa b4eAZeqdCvRA8A+VHtiTH5/P4UbOzJQUlFA1DsyijJbs3cXu2QQwr4xsWbTPVL83g9i/ sGGw== X-Gm-Message-State: ALoCoQnLCzXqrLmKxXcL8431ZI8dgPIkO4BQT1R3KE7Qh1svBEUUt30UfdmdPkSqF6Y3JDS6ocrX X-Received: by 10.66.240.34 with SMTP id vx2mr48021508pac.136.1429113446307; Wed, 15 Apr 2015 08:57:26 -0700 (PDT) Received: from urahara (static-50-53-82-155.bvtn.or.frontiernet.net. [50.53.82.155]) by mx.google.com with ESMTPSA id f1sm4528680pds.62.2015.04.15.08.57.25 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Apr 2015 08:57:26 -0700 (PDT) Date: Wed, 15 Apr 2015 08:57:31 -0700 From: Stephen Hemminger To: "Zhou, Danny" Message-ID: <20150415085731.054f701f@urahara> In-Reply-To: References: <20150414180620.03deb8ee@urahara> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] UIO pci-generic support broke igb_uio X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Apr 2015 15:57:27 -0000 On Wed, 15 Apr 2015 07:19:39 +0000 "Zhou, Danny" wrote: > Could you please send out the steps for us to reproduce it? I guess you have applied > v6 interrupt patches to perform interrupt related tests, right? > > We cannot reproduce it now. > > The support to in_kernel uio_pci_generic avoids using igb_uio this DPDK specific kernel module, > so it will be much easier for any Linux distribution to package DPDK. Very simple. Run with link state enabled and igb_uio driver. Looking more closely, I think the right way to fix this is to fix the upstream uio_pci_generic to support controlling interrupts properly, rather than trying to do it directly in userspace. The problem is that doing it userspace is inherently racy because the userspace config access does not do proper locking. It really is an upstream kernel bug. Will send patch upstream to do it the right way. But that won't help distributions.