From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail1.bemta3.messagelabs.com (mail1.bemta3.messagelabs.com [195.245.230.171]) by dpdk.org (Postfix) with ESMTP id B412511C5 for ; Tue, 21 Mar 2017 13:46:36 +0100 (CET) Received: from [85.158.137.99] by server-11.bemta-3.messagelabs.com id 89/48-23940-CA021D85; Tue, 21 Mar 2017 12:46:36 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrPIsWRWlGSWpSXmKPExsVyZfehZt3VChc jDD7f07Lom/SRyaL54HoWByaPXwuWsnos3vOSKYApijUzLym/IoE1o29xE1PBXOWKS2fuMTYw rpTpYuTiEBLoZZRYeO8zaxcjJwebgK7EhduTwGwRAW+Jn1unMYPYLAKqEpte32QCsYUFQiW2P VrICFETJtG+5w+UbSRx5dQPdhCbV8BP4v+EZ2C9QgJREl19D4FmcnBwCthKXPnNCxJmFJCVeL +qiwXEZhYQl5j4eg4biC0hICCxZM95ZghbVOLl43+sEPUyEg+WbmGFqNeRWLD7ExuErS2xbOF rZoi1ghInZz5hmcAoNAvJ2FlIWmYhaZmFpGUBI8sqRo3i1KKy1CJdQwu9pKLM9IyS3MTMHF1D A2O93NTi4sT01JzEpGK95PzcTYzAwK9nYGDcwfj7tOchRkkOJiVR3jWXLkQI8SXlp1RmJBZnx BeV5qQWH2KU4eBQkuCtkrkYISRYlJqeWpGWmQOMQZi0BAePkgjvDZA0b3FBYm5xZjpE6hSjLs ethj1vmIRY8vLzUqXEefNAigRAijJK8+BGwNLBJUZZKWFeRgYGBiGegtSi3MwSVPlXjOIcjEr CvD+lgabwZOaVwG16BXQEE9ARZXsugBxRkoiQkmpgFNzl9Kq6PD6FPX7x1vaDj3+wv6r48+n5 jQOKX199PPOAb2F1lxbnjpliZU3pW7oNNefu2Ge99EpO4W897aWnjvlJT99v+MZ33oxST9kjR gYPJfeLM+9+GS2dfGVRkb3hlKqtZcw+V7JMbfzvHIir842/276M64TXlOLbyf/SbmgnXIoICj bcrsRSnJFoqMVcVJwIAJoIaXgCAwAA X-Env-Sender: michalm@openet.com X-Msg-Ref: server-2.tower-217.messagelabs.com!1490100395!83680343!1 X-Originating-IP: [212.187.194.131] X-StarScan-Received: X-StarScan-Version: 9.2.3; banners=-,-,- X-VirusChecked: Checked Received: (qmail 22261 invoked from network); 21 Mar 2017 12:46:35 -0000 Received: from unknown.level3.net (HELO dubhbca02.openet-dublin) (212.187.194.131) by server-2.tower-217.messagelabs.com with RC4-SHA encrypted SMTP; 21 Mar 2017 12:46:35 -0000 Received: from dubexch02.openet-dublin ([169.254.1.87]) by dubhbca02.openet-dublin ([10.0.3.81]) with mapi; Tue, 21 Mar 2017 12:46:35 +0000 From: Michal Michalowski To: "Hunt, David" , "users@dpdk.org" Date: Tue, 21 Mar 2017 12:46:34 +0000 Thread-Topic: [dpdk-users] OS hang when running helloworld example with two I210 NICs Thread-Index: AdKiPXXgJ7mwYeHKQz+qXt/8RpbEzAAApIVd Message-ID: <5B7D1E64EC96F04199B0FF4AEBA738120115A35C@DUBEXCH02.openet-dublin> References: <58C97216.3040207@openet.com>, <05c8e962-63b8-2960-bd0b-359d5c84080a@intel.com> In-Reply-To: <05c8e962-63b8-2960-bd0b-359d5c84080a@intel.com> Accept-Language: en-US, en-IE Content-Language: en-IE X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US, en-IE Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-users] OS hang when running helloworld example with two I210 NICs X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Mar 2017 12:46:36 -0000 Hi David, Here is the output of lscpi after NICs after the are configured for DPDK: michal@michal-HP-Z200-Workstation:~$ sudo lspci -vs 18:00 18:00.0 Ethernet controller: Intel Corporation I210 Gigabit Network Connect= ion (rev 03) Subsystem: Intel Corporation Ethernet Server Adapter I210-T1 Physical Slot: 4 Flags: fast devsel, IRQ 16 Memory at f3300000 (32-bit, non-prefetchable) [size=3D1M] Memory at f3400000 (32-bit, non-prefetchable) [size=3D16K] [virtual] Expansion ROM at f8000000 [disabled] [size=3D1M] Capabilities: [40] Power Management version 3 Capabilities: [50] MSI: Enable- Count=3D1/1 Maskable+ 64bit+ Capabilities: [70] MSI-X: Enable- Count=3D5 Masked- Capabilities: [a0] Express Endpoint, MSI 00 Capabilities: [100] Advanced Error Reporting Capabilities: [140] Device Serial Number a0-36-9f-ff-ff-d5-07-3b Capabilities: [1a0] Transaction Processing Hints Kernel driver in use: uio_pci_generic michal@michal-HP-Z200-Workstation:~$ sudo lspci -vs 24:00 24:00.0 Ethernet controller: Intel Corporation I210 Gigabit Network Connect= ion (rev 03) Subsystem: Intel Corporation Ethernet Server Adapter I210-T1 Physical Slot: 1 Flags: fast devsel, IRQ 16 Memory at f3100000 (32-bit, non-prefetchable) [size=3D1M] Memory at f3200000 (32-bit, non-prefetchable) [size=3D16K] [virtual] Expansion ROM at f8200000 [disabled] [size=3D1M] Capabilities: [40] Power Management version 3 Capabilities: [50] MSI: Enable- Count=3D1/1 Maskable+ 64bit+ Capabilities: [70] MSI-X: Enable- Count=3D5 Masked- Capabilities: [a0] Express Endpoint, MSI 00 Capabilities: [100] Advanced Error Reporting Capabilities: [140] Device Serial Number a0-36-9f-ff-ff-d5-06-12 Capabilities: [1a0] Transaction Processing Hints Kernel driver in use: uio_pci_generic Cheers, Michal ________________________________________ From: Hunt, David [david.hunt@intel.com] Sent: 21 March 2017 13:19 To: Michal Michalowski; users@dpdk.org Subject: Re: [dpdk-users] OS hang when running helloworld example with two = I210 NICs On 15/3/2017 4:55 PM, Michal Michalowski wrote: > HI, > > I have problem running helloworld example. The OS hangs and the only way > forward is to poweroff the box. > > DPDK version 16.11.1 > OS: Ubuntu 16.04 and 14.04 > NICs: > 18:00.0 Ethernet controller: Intel Corporation I210 Gigabit Network > Connection (rev 03) > 24:00.0 Ethernet controller: Intel Corporation I210 Gigabit Network > Connection (rev 03) > > The problem only appears when I have two NICs present. If I bind at > least one of them to uio_pci_generic and run helloworld the OS hangs. > If I try to use igb_uio the system hangs when binding the device. > > I have narrowed it down a bit. The OS hangs when > e1000_get_media_type_82575 is executed. Line: ctrl_ext =3D > E1000_READ_REG(hw, E1000_CTRL_EXT); > That line is reading memory mapped from resource0 of the device. > > I have reproduced behaviour just by binding the device to > uio_pci_generic and putting it in "bus master" mode and the reading from > it's resour0. > > The behaviour is not reproducible with just one NIC in place. Also if > the devices use igb driver and are in "bus master" I can read from > resource0. > > Has anyone encountered similar problem? > > Cheers, > Michal Michal, Could you post up the output of 'lspci -v' for the two cards? ('lspci -v -s 18:00' and 'lspci -v -s 24:00' should do it). I'm interested in the "Memory at" output. I'm using a board here with some i211's with Ubuntu 16.04 and DPDK 16.11.1. All OK so far with igb_uio and helloworld. Regards, Dave. This email and any files transmitted with it are confidential and intended = solely for the use of the individual or entity to whom they are addressed. = If you are not the intended recipient, please note that any review, dissemi= nation, disclosure, alteration, printing, circulation, retention or transmi= ssion of this e-mail and/or any file or attachment transmitted with it, is = prohibited and may be unlawful. If you have received this e-mail or any fil= e or attachment transmitted with it in error please notify postmaster@opene= t.com. Although Openet has taken reasonable precautions to ensure no viruse= s are present in this email, we cannot accept responsibility for any loss o= r damage arising from the use of this email or attachments.