All of lore.kernel.org
 help / color / mirror / Atom feed
* DMAR errors when running testpmd
@ 2014-05-07 14:03 Tomasz K
       [not found] ` <CAHJKsGzVUqnCf0gC05MDPztw-kuecp3oAmGDCcQiObYF5LVAzA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 11+ messages in thread
From: Tomasz K @ 2014-05-07 14:03 UTC (permalink / raw)
  To: dev

Hi All

We're trying to run testpmd application on HP Proliant DL380P Gen 8 server.
We've enabled SR-IOV in BIOS and set appropriate flags when booting kernel
(iommu=pt intel_iommu=on)
The NIC we are using is 82599EB (2 ports, 10Gb SFP+)

When running testpmd application we always encouter DMAR error in dmesg

[  186.302866] dmar: DRHD: handling fault status reg 2
[  186.302872] dmar: DMAR:[DMA Read] Request device [07:00.1] fault addr
1f73220000
[  186.302872] DMAR:[fault reason 06] PTE Read access is not set
[  186.302875] dmar: DMAR:[DMA Read] Request device [07:00.0] fault addr
1f73200000
[  186.302875] DMAR:[fault reason 06] PTE Read access is not set
[  324.759520] dmar: DRHD: handling fault status reg 202
[  324.759525] dmar: DMAR:[DMA Read] Request device [07:00.1] fault addr
1f73220000
[  324.759525] DMAR:[fault reason 06] PTE Read access is not set
[  324.759528] dmar: DMAR:[DMA Read] Request device [07:00.0] fault addr
1f73200000
[  324.759528] DMAR:[fault reason 06] PTE Read access is not set

Has anyone encountered this issue?
Tried to search through gmane and google and the only solution was to
disable SR-IOV which we cannot do.

Thanks in advance
Tomasz

Host:
HP Proliant DL380p Gen 8 Server
Intel(R) Xeon(R) CPU E5-2695 v2 @ 2.40GHz

NIC:
82599EB 10-Gigabit SFI/SFP+ Network Connection (rev 01)

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: DMAR errors when running testpmd
       [not found] ` <CAHJKsGzVUqnCf0gC05MDPztw-kuecp3oAmGDCcQiObYF5LVAzA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2014-05-07 14:07   ` Burakov, Anatoly
       [not found]     ` <C6ECDF3AB251BE4894318F4E45123697592ACABC-kPTMFJFq+rF9qrmMLTLiibfspsVTdybXVpNB7YpNyf8@public.gmane.org>
  0 siblings, 1 reply; 11+ messages in thread
From: Burakov, Anatoly @ 2014-05-07 14:07 UTC (permalink / raw)
  To: Tomasz K, dev

Hi Tomasz

It looks like you have your kernel booted with iommu=on. Please check your /proc/cmdline to make sure you didn't accidentally selected the wrong bootloader entry.

> We're trying to run testpmd application on HP Proliant DL380P Gen 8 server.
> We've enabled SR-IOV in BIOS and set appropriate flags when booting kernel
> (iommu=pt intel_iommu=on) The NIC we are using is 82599EB (2 ports, 10Gb
> SFP+)
> 
> When running testpmd application we always encouter DMAR error in dmesg
> 
> [  186.302866] dmar: DRHD: handling fault status reg 2 [  186.302872] dmar:
> DMAR:[DMA Read] Request device [07:00.1] fault addr
> 1f73220000
> [  186.302872] DMAR:[fault reason 06] PTE Read access is not set [
> 186.302875] dmar: DMAR:[DMA Read] Request device [07:00.0] fault addr
> 1f73200000
> [  186.302875] DMAR:[fault reason 06] PTE Read access is not set [
> 324.759520] dmar: DRHD: handling fault status reg 202 [  324.759525] dmar:
> DMAR:[DMA Read] Request device [07:00.1] fault addr
> 1f73220000
> [  324.759525] DMAR:[fault reason 06] PTE Read access is not set [
> 324.759528] dmar: DMAR:[DMA Read] Request device [07:00.0] fault addr
> 1f73200000
> [  324.759528] DMAR:[fault reason 06] PTE Read access is not set

Best regards,
Anatoly Burakov
DPDK SW Engineer




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: DMAR errors when running testpmd
       [not found]     ` <C6ECDF3AB251BE4894318F4E45123697592ACABC-kPTMFJFq+rF9qrmMLTLiibfspsVTdybXVpNB7YpNyf8@public.gmane.org>
@ 2014-05-07 14:29       ` Tomasz K
       [not found]         ` <CAHJKsGxQP7h1uw-61UEeLUn1KO+2ouvz764ZGPWuJNzjjQJtJA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 11+ messages in thread
From: Tomasz K @ 2014-05-07 14:29 UTC (permalink / raw)
  To: Burakov, Anatoly; +Cc: dev

Hi Anatoly.

Yes I do have iommu=on set when booting kernel. This is one of
prerequisites to have SR-IOV running.
Below is the cmdline output

cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-3.11.0-20-generic
root=UUID=c70fa456-ee10-43e5-9f07-4dbb372dcee3 ro quiet splash iommu=pt
intel_iommu=on default_hugepagesz=1G hugepagesz=1G hugepages=4 vt.handoff=7

Thanks
Tomasz


2014-05-07 16:07 GMT+02:00 Burakov, Anatoly <anatoly.burakov-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>:

> Hi Tomasz
>
> It looks like you have your kernel booted with iommu=on. Please check your
> /proc/cmdline to make sure you didn't accidentally selected the wrong
> bootloader entry.
>
> > We're trying to run testpmd application on HP Proliant DL380P Gen 8
> server.
> > We've enabled SR-IOV in BIOS and set appropriate flags when booting
> kernel
> > (iommu=pt intel_iommu=on) The NIC we are using is 82599EB (2 ports, 10Gb
> > SFP+)
> >
> > When running testpmd application we always encouter DMAR error in dmesg
> >
> > [ 186.302866] dmar: DRHD: handling fault status reg 2 [  186.302872]
> dmar:
> > DMAR:[DMA Read] Request device [07:00.1] fault addr
> > 1f73220000
> > [  186.302872] DMAR:[fault reason 06] PTE Read access is not set [
> > 186.302875] dmar: DMAR:[DMA Read] Request device [07:00.0] fault addr
> > 1f73200000
> > [  186.302875] DMAR:[fault reason 06] PTE Read access is not set [
> > 324.759520] dmar: DRHD: handling fault status reg 202 [  324.759525]
> dmar:
> > DMAR:[DMA Read] Request device [07:00.1] fault addr
> > 1f73220000
> > [  324.759525] DMAR:[fault reason 06] PTE Read access is not set [
> > 324.759528] dmar: DMAR:[DMA Read] Request device [07:00.0] fault addr
> > 1f73200000
> > [  324.759528] DMAR:[fault reason 06] PTE Read access is not set
>
> Best regards,
> Anatoly Burakov
> DPDK SW Engineer
>
>
>
>

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: DMAR errors when running testpmd
       [not found]         ` <CAHJKsGxQP7h1uw-61UEeLUn1KO+2ouvz764ZGPWuJNzjjQJtJA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2014-05-07 14:33           ` Burakov, Anatoly
       [not found]             ` <C6ECDF3AB251BE4894318F4E45123697592ACAE3-kPTMFJFq+rF9qrmMLTLiibfspsVTdybXVpNB7YpNyf8@public.gmane.org>
  0 siblings, 1 reply; 11+ messages in thread
From: Burakov, Anatoly @ 2014-05-07 14:33 UTC (permalink / raw)
  To: Tomasz K; +Cc: dev

Hi Tomasz,

Your words:

> We've enabled SR-IOV in BIOS and set appropriate flags when booting kernel
> (iommu=pt intel_iommu=on)

Your other words:

> Yes I do have iommu=on set when booting kernel.

Here lies your mistake :-) Boot your kernel with iommu to "pt" (iommu=pt intel_iommu=on) and everything will work. Thje "pt" option enables IOMMU only for VM's while "on" sets up your whole system to work through IOMMU (including host devices). However, both of these options enable SR-IOV. 

Best regards,
Anatoly Burakov
DPDK SW Engineer




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: DMAR errors when running testpmd
       [not found]             ` <C6ECDF3AB251BE4894318F4E45123697592ACAE3-kPTMFJFq+rF9qrmMLTLiibfspsVTdybXVpNB7YpNyf8@public.gmane.org>
@ 2014-05-07 14:45               ` Burakov, Anatoly
       [not found]                 ` <C6ECDF3AB251BE4894318F4E45123697592ACAFB-kPTMFJFq+rF9qrmMLTLiibfspsVTdybXVpNB7YpNyf8@public.gmane.org>
  0 siblings, 1 reply; 11+ messages in thread
From: Burakov, Anatoly @ 2014-05-07 14:45 UTC (permalink / raw)
  To: Burakov, Anatoly, Tomasz K; +Cc: dev

Hi Tomasz, 

> 
> Here lies your mistake :-) Boot your kernel with iommu to "pt" (iommu=pt
> intel_iommu=on) and everything will work. Thje "pt" option enables IOMMU
> only for VM's while "on" sets up your whole system to work through IOMMU
> (including host devices). However, both of these options enable SR-IOV.
> 

Apologies, I misread your command-line output. It seems like you have everything set up correctly. I'm not sure what is wrong here, but the messages you're seeing are usually related to incorrect IOMMU boot parameters. Which DPDK version are you using?

Best regards,
Anatoly Burakov
DPDK SW Engineer




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: DMAR errors when running testpmd
       [not found]                 ` <C6ECDF3AB251BE4894318F4E45123697592ACAFB-kPTMFJFq+rF9qrmMLTLiibfspsVTdybXVpNB7YpNyf8@public.gmane.org>
@ 2014-05-07 14:56                   ` Tomasz K
       [not found]                     ` <CAHJKsGyuG-sLpFxD8UT2g_PHA7qF7eA2xUN5pvFTuh2SMu+ntA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 11+ messages in thread
From: Tomasz K @ 2014-05-07 14:56 UTC (permalink / raw)
  To: Burakov, Anatoly; +Cc: dev

Hi Anatoly

I'm using dpdk-1.6.0r2 on Ubuntu 12.04 LTS with kernel 3.11.0-20-generic
#35~precise1-Ubuntu SMP

As for further investigation:
1. It doesn't matter whether DPDK uses 1GB or 2MB hugepages.
2. dmesg messages appear only when I invoke "start tx_first" in testpmd app
(so only when I try to send some packets)

The setup is very easy. 2 NICs connected with each other (port0 on NIC1 to
port0 on NIC2, same for port1). Each NIC iis on different server

Thanks
Tomasz


2014-05-07 16:45 GMT+02:00 Burakov, Anatoly <anatoly.burakov-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>:

> Hi Tomasz,
>
> >
> > Here lies your mistake :-) Boot your kernel with iommu to "pt" (iommu=pt
> > intel_iommu=on) and everything will work. Thje "pt" option enables IOMMU
> > only for VM's while "on" sets up your whole system to work through IOMMU
> > (including host devices). However, both of these options enable SR-IOV.
> >
>
> Apologies, I misread your command-line output. It seems like you have
> everything set up correctly. I'm not sure what is wrong here, but the
> messages you're seeing are usually related to incorrect IOMMU boot
> parameters. Which DPDK version are you using?
>
> Best regards,
> Anatoly Burakov
> DPDK SW Engineer
>
>
>
>

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: DMAR errors when running testpmd
       [not found]                     ` <CAHJKsGyuG-sLpFxD8UT2g_PHA7qF7eA2xUN5pvFTuh2SMu+ntA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2014-05-07 15:08                       ` Burakov, Anatoly
       [not found]                         ` <C6ECDF3AB251BE4894318F4E45123697592ACB3A-kPTMFJFq+rF9qrmMLTLiibfspsVTdybXVpNB7YpNyf8@public.gmane.org>
  0 siblings, 1 reply; 11+ messages in thread
From: Burakov, Anatoly @ 2014-05-07 15:08 UTC (permalink / raw)
  To: Tomasz K; +Cc: dev

Hi Tomasz,

> 2. dmesg messages appear only when I invoke "start tx_first" in testpmd app (so only when I try to send some packets)

Does receiving packets work? I would assume it doesn't, but just making sure.

Best regards,
Anatoly Burakov
DPDK SW Engineer




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: DMAR errors when running testpmd
       [not found]                         ` <C6ECDF3AB251BE4894318F4E45123697592ACB3A-kPTMFJFq+rF9qrmMLTLiibfspsVTdybXVpNB7YpNyf8@public.gmane.org>
@ 2014-05-07 15:11                           ` Tomasz K
       [not found]                             ` <CAHJKsGxPXrLXEoannwP0bFAUbi+3GA-b4rFfc8eqZwGDi08a5g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 11+ messages in thread
From: Tomasz K @ 2014-05-07 15:11 UTC (permalink / raw)
  To: Burakov, Anatoly; +Cc: dev

Hi Anatoly

You guessed right...it doesn't
"show port stats all" always shows zeros.


Thanks
Tomasz


2014-05-07 17:08 GMT+02:00 Burakov, Anatoly <anatoly.burakov-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>:

> Hi Tomasz,
>
> > 2. dmesg messages appear only when I invoke "start tx_first" in testpmd
> app (so only when I try to send some packets)
>
> Does receiving packets work? I would assume it doesn't, but just making
> sure.
>
> Best regards,
> Anatoly Burakov
> DPDK SW Engineer
>
>
>
>

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: DMAR errors when running testpmd
       [not found]                             ` <CAHJKsGxPXrLXEoannwP0bFAUbi+3GA-b4rFfc8eqZwGDi08a5g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2014-05-07 15:24                               ` Burakov, Anatoly
       [not found]                                 ` <C6ECDF3AB251BE4894318F4E45123697592ACB6D-kPTMFJFq+rF9qrmMLTLiibfspsVTdybXVpNB7YpNyf8@public.gmane.org>
  0 siblings, 1 reply; 11+ messages in thread
From: Burakov, Anatoly @ 2014-05-07 15:24 UTC (permalink / raw)
  To: Tomasz K; +Cc: dev

Hi Tomasz,

> You guessed right...it doesn't
> "show port stats all" always shows zeros.

As I said earlier, such errors are usually related to errors in boot parameters, but your kernel cmdline looks perfectly fine, so unless there's something really odd happening, I can't see this being at fault.

Another (rather unlikely, but I'll still mention it just in case) reason could be that you're using igb_uio module that is really old (I don't remember when igb_uio gained IOMMU support, probably 1.4.x), which is why I asked about DPDK version, but since you're using 1.6.0 you should be fine.

Other than that, I'm afraid I can't think of any reasons why this could be happening. Did you try this on another board with the same OS? 

Best regards,
Anatoly Burakov
DPDK SW Engineer




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: DMAR errors when running testpmd
       [not found]                                 ` <C6ECDF3AB251BE4894318F4E45123697592ACB6D-kPTMFJFq+rF9qrmMLTLiibfspsVTdybXVpNB7YpNyf8@public.gmane.org>
@ 2014-05-08  7:18                                   ` Tomasz K
       [not found]                                     ` <CAHJKsGxSsNLEeyWxhRpZxsR00+E6guKGi3x7wrns_RCGeRRyMA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 11+ messages in thread
From: Tomasz K @ 2014-05-08  7:18 UTC (permalink / raw)
  To: Burakov, Anatoly; +Cc: dev

Hi Anatoly

It seems that the problem was Ubuntu distribution.
We switched to Ubuntu 14.04 Server Edition and sending packets through NIC
works like charm

Thanks
Tomasz

PS.
This is for google to index in case anyone else has similar problems
If You are using:
HP ProLiant DL380p Gen8
HP SmartArray p420
Intel 82599EB

Use Ubuntu 14.04 as Your host OS !!!




2014-05-07 17:24 GMT+02:00 Burakov, Anatoly <anatoly.burakov-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>:

> Hi Tomasz,
>
> > You guessed right...it doesn't
> > "show port stats all" always shows zeros.
>
> As I said earlier, such errors are usually related to errors in boot
> parameters, but your kernel cmdline looks perfectly fine, so unless there's
> something really odd happening, I can't see this being at fault.
>
> Another (rather unlikely, but I'll still mention it just in case) reason
> could be that you're using igb_uio module that is really old (I don't
> remember when igb_uio gained IOMMU support, probably 1.4.x), which is why I
> asked about DPDK version, but since you're using 1.6.0 you should be fine.
>
> Other than that, I'm afraid I can't think of any reasons why this could be
> happening. Did you try this on another board with the same OS?
>
> Best regards,
> Anatoly Burakov
> DPDK SW Engineer
>
>
>
>

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: DMAR errors when running testpmd
       [not found]                                     ` <CAHJKsGxSsNLEeyWxhRpZxsR00+E6guKGi3x7wrns_RCGeRRyMA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2014-05-08 10:33                                       ` Yang, Tao Y
  0 siblings, 0 replies; 11+ messages in thread
From: Yang, Tao Y @ 2014-05-08 10:33 UTC (permalink / raw)
  To: Tomasz K, Burakov, Anatoly; +Cc: dev

If you don't test the DPDK in virtualization environment.
The easy way to fix it is to disable the VT-d in the BIOS.




-----Original Message-----
From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Tomasz K
Sent: Thursday, May 8, 2014 3:18 PM
To: Burakov, Anatoly
Cc: dev
Subject: Re: [dpdk-dev] DMAR errors when running testpmd

Hi Anatoly

It seems that the problem was Ubuntu distribution.
We switched to Ubuntu 14.04 Server Edition and sending packets through NIC works like charm

Thanks
Tomasz

PS.
This is for google to index in case anyone else has similar problems If You are using:
HP ProLiant DL380p Gen8
HP SmartArray p420
Intel 82599EB

Use Ubuntu 14.04 as Your host OS !!!




2014-05-07 17:24 GMT+02:00 Burakov, Anatoly <anatoly.burakov@intel.com>:

> Hi Tomasz,
>
> > You guessed right...it doesn't
> > "show port stats all" always shows zeros.
>
> As I said earlier, such errors are usually related to errors in boot 
> parameters, but your kernel cmdline looks perfectly fine, so unless 
> there's something really odd happening, I can't see this being at fault.
>
> Another (rather unlikely, but I'll still mention it just in case) 
> reason could be that you're using igb_uio module that is really old (I 
> don't remember when igb_uio gained IOMMU support, probably 1.4.x), 
> which is why I asked about DPDK version, but since you're using 1.6.0 you should be fine.
>
> Other than that, I'm afraid I can't think of any reasons why this 
> could be happening. Did you try this on another board with the same OS?
>
> Best regards,
> Anatoly Burakov
> DPDK SW Engineer
>
>
>
>

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2014-05-08 10:33 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-07 14:03 DMAR errors when running testpmd Tomasz K
     [not found] ` <CAHJKsGzVUqnCf0gC05MDPztw-kuecp3oAmGDCcQiObYF5LVAzA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-05-07 14:07   ` Burakov, Anatoly
     [not found]     ` <C6ECDF3AB251BE4894318F4E45123697592ACABC-kPTMFJFq+rF9qrmMLTLiibfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2014-05-07 14:29       ` Tomasz K
     [not found]         ` <CAHJKsGxQP7h1uw-61UEeLUn1KO+2ouvz764ZGPWuJNzjjQJtJA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-05-07 14:33           ` Burakov, Anatoly
     [not found]             ` <C6ECDF3AB251BE4894318F4E45123697592ACAE3-kPTMFJFq+rF9qrmMLTLiibfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2014-05-07 14:45               ` Burakov, Anatoly
     [not found]                 ` <C6ECDF3AB251BE4894318F4E45123697592ACAFB-kPTMFJFq+rF9qrmMLTLiibfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2014-05-07 14:56                   ` Tomasz K
     [not found]                     ` <CAHJKsGyuG-sLpFxD8UT2g_PHA7qF7eA2xUN5pvFTuh2SMu+ntA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-05-07 15:08                       ` Burakov, Anatoly
     [not found]                         ` <C6ECDF3AB251BE4894318F4E45123697592ACB3A-kPTMFJFq+rF9qrmMLTLiibfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2014-05-07 15:11                           ` Tomasz K
     [not found]                             ` <CAHJKsGxPXrLXEoannwP0bFAUbi+3GA-b4rFfc8eqZwGDi08a5g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-05-07 15:24                               ` Burakov, Anatoly
     [not found]                                 ` <C6ECDF3AB251BE4894318F4E45123697592ACB6D-kPTMFJFq+rF9qrmMLTLiibfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2014-05-08  7:18                                   ` Tomasz K
     [not found]                                     ` <CAHJKsGxSsNLEeyWxhRpZxsR00+E6guKGi3x7wrns_RCGeRRyMA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-05-08 10:33                                       ` Yang, Tao Y

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.