On Mon, Jun 4, 2018 at 7:07 AM, Ka Vi <
yato...@gmail.com> wrote:
>
> Hi
>
> After loading the ntb.ko and ntb_hw_intel drivers, the
> /sys/kernel/debug/ntb_hw_intel/0000:00:03.0/info file appears, indicating
> that Link-Status is Down.
> When the ntb_transport driver is loaded, the Link-Status state goes to Up.
> When the ntb_netdev driver is loaded, the eth0 device appears. When
> assigning ip-addressing to both devices eth0, we have a ping between them.
>
> After downloading the ntc_ntb_msi driver, the folders by / sys / kernel /
> debug / ntc_ntb_msi, / sys / kernel / debug / ntrdma, / sys / class /
> infiniband are empty. In the / sys / class / infiniband_verbs folder there
> is only one "abi_version" file containing one "6" character.
Was the ntb_transport driver unloaded before loading ntc_ntb_msi?
> Why does not the link go into UP status when loading ntb_hw_intel?
The hw driver only provides an interface for the hardware.
> And it
> appears only after ntb_transport, it's kind of like different things.
The transport driver tells the hw driver to bring up the interface.
> Also what it is necessary to make, what the link would pass in status UP at
> loading ntb_hw_intel?
If the link is allowed to go up before the transport driver is loaded,
then some other signal would be needed to indicate when the transport
driver becomes ready for communication. Doing it this way, the link
up signal not only indicates that the link is physically up, but also
that the peer is ready for communication over the link.