DPDK usage discussions
 help / color / mirror / Atom feed
From: Michal Michalowski <michalm@openet.com>
To: "Hunt, David" <david.hunt@intel.com>, "users@dpdk.org" <users@dpdk.org>
Subject: Re: [dpdk-users] OS hang when running helloworld example with two I210 NICs
Date: Tue, 21 Mar 2017 12:46:34 +0000	[thread overview]
Message-ID: <5B7D1E64EC96F04199B0FF4AEBA738120115A35C@DUBEXCH02.openet-dublin> (raw)
In-Reply-To: <05c8e962-63b8-2960-bd0b-359d5c84080a@intel.com>

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 Connection (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=1M]
        Memory at f3400000 (32-bit, non-prefetchable) [size=16K]
        [virtual] Expansion ROM at f8000000 [disabled] [size=1M]
        Capabilities: [40] Power Management version 3
        Capabilities: [50] MSI: Enable- Count=1/1 Maskable+ 64bit+
        Capabilities: [70] MSI-X: Enable- Count=5 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 Connection (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=1M]
        Memory at f3200000 (32-bit, non-prefetchable) [size=16K]
        [virtual] Expansion ROM at f8200000 [disabled] [size=1M]
        Capabilities: [40] Power Management version 3
        Capabilities: [50] MSI: Enable- Count=1/1 Maskable+ 64bit+
        Capabilities: [70] MSI-X: Enable- Count=5 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 =
> 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, dissemination, disclosure, alteration, printing, circulation, retention or transmission 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 file or attachment transmitted with it in error please notify postmaster@openet.com. Although Openet has taken reasonable precautions to ensure no viruses are present in this email, we cannot accept responsibility for any loss or damage arising from the use of this email or attachments.

  reply	other threads:[~2017-03-21 12:46 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-15 16:55 Michal Michalowski
2017-03-21 12:19 ` Hunt, David
2017-03-21 12:46   ` Michal Michalowski [this message]
2017-03-21 13:17     ` Hunt, David
2017-03-21 13:52       ` Michal Michalowski
2017-03-21 14:46         ` Hunt, David
2017-03-21 15:05           ` Michal Michalowski
2017-03-22 14:38             ` Michal Michalowski
2017-03-21 13:59       ` Hunt, David
2017-03-21 14:01         ` Hunt, David

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5B7D1E64EC96F04199B0FF4AEBA738120115A35C@DUBEXCH02.openet-dublin \
    --to=michalm@openet.com \
    --cc=david.hunt@intel.com \
    --cc=users@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).