Skip to contentSkip to conversation

Problem with ntb_transport + ntb_netdev

DISCUSSION Jon Mason 3 participants 10 messages Jan 10, 2017 – Jan 12, 2017 1 message not in the archive NTB driver core

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Jon Mason

author maintainer
#1 lore raw

Adding the NTB mailing list

Quoted 10 lines · perplexus

Hello.

I'm working with NTB (kernel version 4.10) on Xeon D-1527 CPU and have a problem with couple ntb_transport + ntb_netdev.

On the local side I run:
sudo /etc/init.d/irqbalance stop sudo modprobe ntb_transport dyndbg=+p sudo modprobe ntb_netdev dyndbg=+p sudo ifconfig eth0 192.168.1.1 up

Quoted 8 lines

On the remote side I run:
sudo /etc/init.d/irqbalance stop sudo modprobe ntb_transport dyndbg=+p sudo modprobe ntb_netdev dyndbg=+p sudo ifconfig eth0 192.168.1.2 up

Along with these steps I run ping 192.168.1.2 and get about 2-3 successfull transmitted/received packets then get 'Destination host unreacheble'.

Do pings in the other direction work?

maintainer
#2 lore raw
Quoted 19 lines · Jon Mason

Adding the NTB mailing list

Quoted 16 lines · perplexus

Hello.

I'm working with NTB (kernel version 4.10) on Xeon D-1527 CPU and have a problem with couple ntb_transport + ntb_netdev.

On the local side I run:
sudo /etc/init.d/irqbalance stop sudo modprobe ntb_transport dyndbg=+p sudo modprobe ntb_netdev dyndbg=+p sudo ifconfig eth0 192.168.1.1 up

On the remote side I run:
sudo /etc/init.d/irqbalance stop sudo modprobe ntb_transport dyndbg=+p sudo modprobe ntb_netdev dyndbg=+p sudo ifconfig eth0 192.168.1.2 up

Quoted 5 lines
Quoted 2 lines

Along with these steps I run ping 192.168.1.2 and get about 2-3 successfull transmitted/received packets then get 'Destination host unreacheble'.

Do pings in the other direction work?

How are the NTBs connected? Where did the get the hardware? Also can you dump the stats in debugfs? And which distro are you running? Sometimes Network Manager will yank the IP for no reason if you don't configure it correctly and thus your interface can't route.

#3 lore raw
Quoted 1 line

Do pings in the other direction work?

Similarly

Quoted 1 line

How are the NTBs connected?

B2B

Quoted 1 line

And which distro are you running?

Ubuntu 16.10 with kernel 4.10.0-rc1 from git

Quoted 1 line

Sometimes

Network Manager will yank the IP for no reason if you don't configure it correctly and thus your interface can't route.
I stop network-manager service before load the modules and set IP manually.

Quoted 1 line

Also can you dump the stats in debugfs?

ntb_hw_intel_info_1 <http://pastebin.com/eyMZzSik> - one side ntb_hw_intel_info_2 <http://pastebin.com/vF94zLBk> - second side ntb_transport_info_1 <http://pastebin.com/Ktq1yAqa> - one side ntb_transport_info_2 <http://pastebin.com/w8r08ezB> - second side

среда, 11 января 2017 г., 1:24:17 UTC+3 пользователь dave.jiang написал:

Quoted 35 lines · Jon Mason
Quoted 3 lines

Adding the NTB mailing list

On Mon, Jan 9, 2017 at 11:27 AM, perplexus <[email protected] <javascript:>>

Quoted 3 lines · wrote:
Quoted 3 lines

Hello.

I'm working with NTB (kernel version 4.10) on Xeon D-1527 CPU and have

a problem with couple ntb_transport + ntb_netdev.

Quoted 7 lines
Quoted 7 lines

On the local side I run:
sudo /etc/init.d/irqbalance stop sudo modprobe ntb_transport dyndbg=+p sudo modprobe ntb_netdev dyndbg=+p sudo ifconfig eth0 192.168.1.1 up

Quoted 7 lines
Quoted 7 lines

On the remote side I run:
sudo /etc/init.d/irqbalance stop sudo modprobe ntb_transport dyndbg=+p sudo modprobe ntb_netdev dyndbg=+p sudo ifconfig eth0 192.168.1.2 up

Along with these steps I run ping 192.168.1.2 and get about 2-3

successfull transmitted/received packets then get 'Destination host unreacheble'.

Quoted 4 lines
Quoted 1 line

Do pings in the other direction work?

How are the NTBs connected? Where did the get the hardware? Also can you dump the stats in debugfs? And which distro are you running? Sometimes Network Manager will yank the IP for no reason if you don't configure it correctly and thus your interface can't route.

maintainer
#5 lore raw
In reply to [email protected]
Quoted 11 lines · On 01/11/2017 03:08 AM, [email protected] wrote:
Quoted 1 line

Do pings in the other direction work?

Similarly

Quoted 1 line

How are the NTBs connected?

B2B

Quoted 1 line

And which distro are you running?

Ubuntu 16.10 with kernel 4.10.0-rc1 from git

Quoted 1 line

Sometimes

Network Manager will yank the IP for no reason if you don't configure it correctly and thus your interface can't route.
I stop network-manager service before load the modules and set IP manually.

Quoted 5 lines
Quoted 1 line

Also can you dump the stats in debugfs?

ntb_hw_intel_info_1 <http://pastebin.com/eyMZzSik> - one side ntb_hw_intel_info_2 <http://pastebin.com/vF94zLBk> - second side ntb_transport_info_1 <http://pastebin.com/Ktq1yAqa> - one side ntb_transport_info_2 <http://pastebin.com/w8r08ezB> - second side

Your secondary BAR2 size is not the same as your primary. They both need to be 22. Also all the upstream memory miss is concerning. You should have none. You may have signal integrity issues. But fix the bar size first and see if that helps.

Quoted 51 lines

среда, 11 января 2017 г., 1:24:17 UTC+3 пользователь dave.jiang написал:

On 01/10/2017 03:03 PM, Jon Mason wrote:
> Adding the NTB mailing list
>
> On Mon, Jan 9, 2017 at 11:27 AM, perplexus <[email protected] <javascript:>> wrote:
>> Hello.
>>
>> I'm working with NTB (kernel version 4.10) on Xeon D-1527 CPU and have a problem with couple ntb_transport + ntb_netdev.
>>
>> On the local side I run:
>> sudo /etc/init.d/irqbalance stop
>> sudo modprobe ntb_transport dyndbg=+p
>> sudo modprobe ntb_netdev dyndbg=+p
>> sudo ifconfig eth0 192.168.1.1 up
>>
>> On the remote side I run:
>> sudo /etc/init.d/irqbalance stop
>> sudo modprobe ntb_transport dyndbg=+p
>> sudo modprobe ntb_netdev dyndbg=+p
>> sudo ifconfig eth0 192.168.1.2 up
>>
>> Along with these steps I run ping 192.168.1.2 and get about 2-3 successfull transmitted/received packets then get 'Destination host unreacheble'.
>>
>
> Do pings in the other direction work?
>
How are the NTBs connected? Where did the get the hardware? Also can you
dump the stats in debugfs? And which distro are you running? Sometimes Network Manager will yank the IP for no reason if you don't configure it
correctly and thus your interface can't route.

Signature · 11 lines
You received this message because you are subscribed to the Google
Groups "linux-ntb" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/linux-ntb/c18c3dc2-d242-4352-946e-931ff13e1d28%40googlegroups.com
<https://groups.google.com/d/msgid/linux-ntb/c18c3dc2-d242-4352-946e-931ff13e1d28%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
maintainer
#6 lore raw
Quoted 20 lines · Dave Jiang
Quoted 11 lines · On 01/11/2017 03:08 AM, [email protected] wrote:
Quoted 1 line

Do pings in the other direction work?

Similarly

Quoted 1 line

How are the NTBs connected?

B2B

Quoted 1 line

And which distro are you running?

Ubuntu 16.10 with kernel 4.10.0-rc1 from git

Quoted 1 line

Sometimes

Network Manager will yank the IP for no reason if you don't configure it correctly and thus your interface can't route.
I stop network-manager service before load the modules and set IP manually.

Quoted 5 lines
Quoted 1 line

Also can you dump the stats in debugfs?

ntb_hw_intel_info_1 <http://pastebin.com/eyMZzSik> - one side ntb_hw_intel_info_2 <http://pastebin.com/vF94zLBk> - second side ntb_transport_info_1 <http://pastebin.com/Ktq1yAqa> - one side ntb_transport_info_2 <http://pastebin.com/w8r08ezB> - second side

Quoted 4 lines

Your secondary BAR2 size is not the same as your primary. They both need to be 22. Also all the upstream memory miss is concerning. You should have none. You may have signal integrity issues. But fix the bar size first and see if that helps.

Also, if you are using Broadwell Xeon D, you should use the kernel from here and not upstream.
https://github.com/davejiang/linux
branch: davejiang/ntb

Quoted 53 lines
Quoted 52 lines

среда, 11 января 2017 г., 1:24:17 UTC+3 пользователь dave.jiang написал:

On 01/10/2017 03:03 PM, Jon Mason wrote:
> Adding the NTB mailing list
>
> On Mon, Jan 9, 2017 at 11:27 AM, perplexus <[email protected] <javascript:>> wrote:
>> Hello.
>>
>> I'm working with NTB (kernel version 4.10) on Xeon D-1527 CPU and have a problem with couple ntb_transport + ntb_netdev.
>>
>> On the local side I run:
>> sudo /etc/init.d/irqbalance stop
>> sudo modprobe ntb_transport dyndbg=+p
>> sudo modprobe ntb_netdev dyndbg=+p
>> sudo ifconfig eth0 192.168.1.1 up
>>
>> On the remote side I run:
>> sudo /etc/init.d/irqbalance stop
>> sudo modprobe ntb_transport dyndbg=+p
>> sudo modprobe ntb_netdev dyndbg=+p
>> sudo ifconfig eth0 192.168.1.2 up
>>
>> Along with these steps I run ping 192.168.1.2 and get about 2-3 successfull transmitted/received packets then get 'Destination host unreacheble'.
>>
>
> Do pings in the other direction work?
>
How are the NTBs connected? Where did the get the hardware? Also can you
dump the stats in debugfs? And which distro are you running? Sometimes Network Manager will yank the IP for no reason if you don't configure it
correctly and thus your interface can't route.

Signature · 11 lines
You received this message because you are subscribed to the Google
Groups "linux-ntb" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/linux-ntb/c18c3dc2-d242-4352-946e-931ff13e1d28%40googlegroups.com
<https://groups.google.com/d/msgid/linux-ntb/c18c3dc2-d242-4352-946e-931ff13e1d28%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
#8 lore raw
In reply to Dave Jiang

I built this kernel.
Unfortunately link doesn't train.

ntb_hw_intel_1 <http://pastebin.com/ZvCK9yu5> - 1'st side ntb_hw_intel_2 <http://pastebin.com/p8BJ83pv> - 2'nd side

среда, 11 января 2017 г., 19:45:05 UTC+3 пользователь dave.jiang написал:

Quoted 100 lines · Dave Jiang
Quoted 11 lines · On 01/11/2017 03:08 AM, [email protected] <javascript:> wrote:
Quoted 8 lines
Quoted 1 line

Do pings in the other direction work?

Similarly

Quoted 1 line

How are the NTBs connected?

B2B

Quoted 1 line

And which distro are you running?

Ubuntu 16.10 with kernel 4.10.0-rc1 from git

Quoted 1 line

Sometimes

Network Manager will yank the IP for no reason if you don't configure

it

Quoted 2 lines
Quoted 2 lines

correctly and thus your interface can't route.
I stop network-manager service before load the modules and set IP

manually.

Quoted 11 lines
Quoted 6 lines
Quoted 2 lines

Also can you dump the stats in debugfs?

ntb_hw_intel_info_1 <http://pastebin.com/eyMZzSik> - one side ntb_hw_intel_info_2 <http://pastebin.com/vF94zLBk> - second side ntb_transport_info_1 <http://pastebin.com/Ktq1yAqa> - one side ntb_transport_info_2 <http://pastebin.com/w8r08ezB> - second side

Your secondary BAR2 size is not the same as your primary. They both need to be 22. Also all the upstream memory miss is concerning. You should have none. You may have signal integrity issues. But fix the bar size first and see if that helps.

Also, if you are using Broadwell Xeon D, you should use the kernel from here and not upstream.
https://github.com/davejiang/linux
branch: davejiang/ntb

Quoted 3 lines
Quoted 3 lines

среда, 11 января 2017 г., 1:24:17 UTC+3 пользователь dave.jiang

написал:

Quoted 9 lines
Quoted 9 lines · Jon Mason
Quoted 3 lines

Adding the NTB mailing list

On Mon, Jan 9, 2017 at 11:27 AM, perplexus <[email protected]

    <javascript:>> wrote: 
    >> Hello. 
    >> 
    >> I'm working with NTB (kernel version 4.10) on Xeon D-1527 CPU 

and

Quoted 14 lines
Quoted 14 lines

have a problem with couple ntb_transport + ntb_netdev. >>
>> On the local side I run:
>> sudo /etc/init.d/irqbalance stop
>> sudo modprobe ntb_transport dyndbg=+p
>> sudo modprobe ntb_netdev dyndbg=+p
>> sudo ifconfig eth0 192.168.1.1 up
>>
>> On the remote side I run:
>> sudo /etc/init.d/irqbalance stop
>> sudo modprobe ntb_transport dyndbg=+p
>> sudo modprobe ntb_netdev dyndbg=+p
>> sudo ifconfig eth0 192.168.1.2 up
>>

Quoted 8 lines
Quoted 8 lines
Quoted 1 line
Quoted 1 line

Along with these steps I run ping 192.168.1.2 and get about 2-3

successfull transmitted/received packets then get 'Destination host unreacheble'.
>>
>
> Do pings in the other direction work?
>
How are the NTBs connected? Where did the get the hardware? Also

can

Quoted 2 lines
Quoted 2 lines

you
dump the stats in debugfs? And which distro are you running?

Sometimes

Quoted 11 lines
Quoted 11 lines

Network Manager will yank the IP for no reason if you don't configure it
correctly and thus your interface can't route.

Signature · 6 lines
You received this message because you are subscribed to the Google 
Groups "linux-ntb" group. 
To unsubscribe from this group and stop receiving emails from it, send 
an email to [email protected] <javascript:> 
<mailto:[email protected] <javascript:>>. 
To post to this group, send email to [email protected] 

<javascript:>

Quoted 3 lines
Quoted 3 lines

<mailto:[email protected] <javascript:>>.
To view this discussion on the web visit

https://groups.google.com/d/msgid/linux-ntb/c18c3dc2-d242-4352-946e-931ff13e1d28%40googlegroups.com

Quoted 1 line
Quoted 1 line

<

https://groups.google.com/d/msgid/linux-ntb/c18c3dc2-d242-4352-946e-931ff13e1d28%40googlegroups.com?utm_medium=email&utm_source=footer>.

Quoted 2 lines
Quoted 1 line

For more options, visit https://groups.google.com/d/optout.

maintainer
#9 lore raw

Need to see your dmesg with dyndbg for the ntb_hw_intel.ko but your SBAR23SZ is still wrong. You are not configuring the secondary BAR2/3 size correctly in BIOS. Can you provide all your NTB BIOS config options?

Quoted 127 lines · On 01/12/2017 08:29 AM, [email protected] wrote:

I built this kernel.
Unfortunately link doesn't train.

ntb_hw_intel_1 <http://pastebin.com/ZvCK9yu5> - 1'st side ntb_hw_intel_2 <http://pastebin.com/p8BJ83pv> - 2'nd side

среда, 11 января 2017 г., 19:45:05 UTC+3 пользователь dave.jiang написал:

On 01/11/2017 09:42 AM, Dave Jiang wrote:
>
>
> On 01/11/2017 03:08 AM, [email protected] <javascript:> wrote:
>>> Do pings in the other direction work?
>> Similarly
>>> How are the NTBs connected?
>> B2B
>>> And which distro are you running?
>> Ubuntu 16.10 with kernel 4.10.0-rc1 from git
>>> Sometimes
>> Network Manager will yank the IP for no reason if you don't configure it
>> correctly and thus your interface can't route.
>> I stop network-manager service before load the modules and set IP manually.
>>
>>> Also can you dump the stats in debugfs?
>> ntb_hw_intel_info_1 <http://pastebin.com/eyMZzSik> - one side >> ntb_hw_intel_info_2 <http://pastebin.com/vF94zLBk> - second side >> ntb_transport_info_1 <http://pastebin.com/Ktq1yAqa> - one side >> ntb_transport_info_2 <http://pastebin.com/w8r08ezB> - second side >
> Your secondary BAR2 size is not the same as your primary. They both need
> to be 22. Also all the upstream memory miss is concerning. You should > have none. You may have signal integrity issues. But fix the bar size > first and see if that helps.

Also, if you are using Broadwell Xeon D, you should use the kernel from here and not upstream.
https://github.com/davejiang/linux <https://github.com/davejiang/linux>
branch: davejiang/ntb

>
>>
>> среда, 11 января 2017 г., 1:24:17 UTC+3 пользователь dave.jiang написал:
>>
>> On 01/10/2017 03:03 PM, Jon Mason wrote:
>> > Adding the NTB mailing list
>> >
>> > On Mon, Jan 9, 2017 at 11:27 AM, perplexus <[email protected]
>> <javascript:>> wrote:
>> >> Hello.
>> >>
>> >> I'm working with NTB (kernel version 4.10) on Xeon D-1527
CPU and
>> have a problem with couple ntb_transport + ntb_netdev.
>> >>
>> >> On the local side I run:
>> >> sudo /etc/init.d/irqbalance stop
>> >> sudo modprobe ntb_transport dyndbg=+p
>> >> sudo modprobe ntb_netdev dyndbg=+p
>> >> sudo ifconfig eth0 192.168.1.1 up
>> >>
>> >> On the remote side I run:
>> >> sudo /etc/init.d/irqbalance stop
>> >> sudo modprobe ntb_transport dyndbg=+p
>> >> sudo modprobe ntb_netdev dyndbg=+p
>> >> sudo ifconfig eth0 192.168.1.2 up
>> >>
>> >> Along with these steps I run ping 192.168.1.2 and get
about 2-3
>> successfull transmitted/received packets then get
'Destination host
>> unreacheble'.
>> >>
>> >
>> > Do pings in the other direction work?
>> >
>> How are the NTBs connected? Where did the get the hardware?
Also can
>> you
>> dump the stats in debugfs? And which distro are you running?
Sometimes
>> Network Manager will yank the IP for no reason if you don't
>> configure it
>> correctly and thus your interface can't route.
>>
>> --
>> You received this message because you are subscribed to the Google >> Groups "linux-ntb" group.
>> To unsubscribe from this group and stop receiving emails from it, send
>> an email to [email protected] <javascript:> >> <mailto:[email protected] <javascript:>>. >> To post to this group, send email to [email protected] <javascript:>
>> <mailto:[email protected] <javascript:>>.
>> To view this discussion on the web visit
>>
https://groups.google.com/d/msgid/linux-ntb/c18c3dc2-d242-4352-946e-931ff13e1d28%40googlegroups.com
<https://groups.google.com/d/msgid/linux-ntb/c18c3dc2-d242-4352-946e-931ff13e1d28%40googlegroups.com>

>>
<https://groups.google.com/d/msgid/linux-ntb/c18c3dc2-d242-4352-946e-931ff13e1d28%40googlegroups.com?utm_medium=email&utm_source=footer
<https://groups.google.com/d/msgid/linux-ntb/c18c3dc2-d242-4352-946e-931ff13e1d28%40googlegroups.com?utm_medium=email&utm_source=footer>>.

>> For more options, visit https://groups.google.com/d/optout
<https://groups.google.com/d/optout>.
>

Signature · 11 lines
You received this message because you are subscribed to the Google
Groups "linux-ntb" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/linux-ntb/1d63eddd-e9b2-4023-8e0c-6bc658633b9a%40googlegroups.com
<https://groups.google.com/d/msgid/linux-ntb/1d63eddd-e9b2-4023-8e0c-6bc658633b9a%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.