Re: [PATCH 4/8] NTB: ntb_pingpong: Choose doorbells based on port number

2018-06-15 Thread Logan Gunthorpe
On 15/06/18 01:49 PM, Serge Semin wrote: > Regarding the patch. The idea of using the port number instead of linearised > unique index should also work for Intel/AMD/IDT drivers. But the ports-space > linearization algorithm was created for the case if the real port numbers > would exceed the

Re: [PATCH 4/8] NTB: ntb_pingpong: Choose doorbells based on port number

2018-06-15 Thread Logan Gunthorpe
On 15/06/18 01:49 PM, Serge Semin wrote: > Regarding the patch. The idea of using the port number instead of linearised > unique index should also work for Intel/AMD/IDT drivers. But the ports-space > linearization algorithm was created for the case if the real port numbers > would exceed the

Re: [PATCH 4/8] NTB: ntb_pingpong: Choose doorbells based on port number

2018-06-15 Thread Serge Semin
On Fri, Jun 08, 2018 at 06:08:14PM -0600, Logan Gunthorpe wrote: > This commit fixes pingpong support for existing drivers that do not > implement ntb_default_port_number() and ntb_default_peer_port_number(). > This is required for hardware (like the crosslink topology of > switchtec) which

Re: [PATCH 4/8] NTB: ntb_pingpong: Choose doorbells based on port number

2018-06-15 Thread Serge Semin
On Fri, Jun 08, 2018 at 06:08:14PM -0600, Logan Gunthorpe wrote: > This commit fixes pingpong support for existing drivers that do not > implement ntb_default_port_number() and ntb_default_peer_port_number(). > This is required for hardware (like the crosslink topology of > switchtec) which

[PATCH 4/8] NTB: ntb_pingpong: Choose doorbells based on port number

2018-06-08 Thread Logan Gunthorpe
This commit fixes pingpong support for existing drivers that do not implement ntb_default_port_number() and ntb_default_peer_port_number(). This is required for hardware (like the crosslink topology of switchtec) which cannot assign reasonable port numbers to each port due to its perfect symmetry.

[PATCH 4/8] NTB: ntb_pingpong: Choose doorbells based on port number

2018-06-08 Thread Logan Gunthorpe
This commit fixes pingpong support for existing drivers that do not implement ntb_default_port_number() and ntb_default_peer_port_number(). This is required for hardware (like the crosslink topology of switchtec) which cannot assign reasonable port numbers to each port due to its perfect symmetry.