From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nikita Kalyazin Subject: Re: [PATCH v5 resend 07/12] virtio: resolve for control queue Date: Fri, 09 Oct 2015 10:11:02 +0300 Message-ID: <20151009071102.GC21145@kalyazin.rnd.samsung.ru> References: <1442589061-19225-1-git-send-email-yuanhan.liu@linux.intel.com> <1442589061-19225-8-git-send-email-yuanhan.liu@linux.intel.com> <20150920121748-mutt-send-email-mst@redhat.com> <20150921063647.GQ2339@yliu-dev.sh.intel.com> <20151008153205.GB21145@kalyazin.rnd.samsung.ru> <5616D736.2040108@steffenbauch.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Cc: dev@dpdk.org To: Steffen Bauch Return-path: Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by dpdk.org (Postfix) with ESMTP id 16A508DA6 for ; Fri, 9 Oct 2015 09:11:08 +0200 (CEST) Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout2.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NVX00M3CYMHVS20@mailout2.w1.samsung.com> for dev@dpdk.org; Fri, 09 Oct 2015 08:11:05 +0100 (BST) Content-disposition: inline In-reply-to: <5616D736.2040108@steffenbauch.de> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi, > I just recognized that this dead loop is the same one that I have > experienced (see > http://dpdk.org/ml/archives/dev/2015-October/024737.html for reference). > Just applying the changes in this patch (only 07/12) will not fix the > dead loop at least in my setup. Yes, exactly. I observe it same way even after applying the patch. -- Best regards, Nikita Kalyazin, n.kalyazin@samsung.com Software Engineer Virtualization Group Samsung R&D Institute Russia Tel: +7 (495) 797-25-00 #3816 Tel: +7 (495) 797-25-03 Office #1501, 12-1, Dvintsev str., Moscow, 127018, Russia On Thu, Oct 08, 2015 at 10:51:02PM +0200, Steffen Bauch wrote: > > > On 10/08/2015 05:32 PM, Nikita Kalyazin wrote: > > Hi Yuanhan, > > > > > > As I understand, the dead loop happened here (virtio_send_command): > > while (vq->vq_used_cons_idx == vq->vq_ring.used->idx) { > > rte_rmb(); > > usleep(100); > > } > > > > Could you explain why wrong config reading caused that and how correct reading helps to avoid? > > > Hi, > > I just recognized that this dead loop is the same one that I have > experienced (see > http://dpdk.org/ml/archives/dev/2015-October/024737.html for reference). > Just applying the changes in this patch (only 07/12) will not fix the > dead loop at least in my setup. > > Best regards, > > Steffen