* NC-SI driver: update multi_package, multi_channel base on package_num and channel_num.
@ 2021-01-27 23:00 Thu Nguyen OS
2021-01-29 4:30 ` Samuel Mendoza-Jonas
0 siblings, 1 reply; 2+ messages in thread
From: Thu Nguyen OS @ 2021-01-27 23:00 UTC (permalink / raw)
To: openbmc
[-- Attachment #1: Type: text/plain, Size: 1716 bytes --]
Dear,
I checked the NC-SI driver source, the driver will work difference when the interface have multiple package or multiple channel.
Such as:
If multi_channel is enabled configure all valid
* channels whether or not they currently have link
* so they will have AENs enabled.
By default the search is done once an inactive channel with up
* link is found, unless a preferred channel is set.
* If multi_package or multi_channel are configured all channels in the
* whitelist are added to the channel queue.
Look that the code:
multi_channel is set in ncsi_set_channel_mask_nl base on the configuration of NCSI_ATTR_MULTI_FLAG.
multi_package is set in ncsi_set_package_mask_nl base on the configuration of NCSI_ATTR_MULTI_FLAG.
Do we have any special reason to add this option?
What should I do to enable this option?
As my understanding, multi_channel and multi_package will be mapped with the number of the physical package/channel on OCP card.
In the driver, we have section to add/remove the package or channel in functions ncsi_add/remove_package, ncsi_add/remove_channel.
Why don’t we update multi_channel and multi_package in these function as below?
ndp->package_num++;
if (ndp->package_num > 1)
ndp->multi_package = true;
ndp->package_num--;
if (ndp->package_num <= 1)
ndp->multi_package = false;
np->channel_num++;
if (np->channel_num > 1)
np->multi_channel = true;
np->channel_num--;
if (np->channel_num <= 1)
np->multi_channel = false;
Thanks.
Thu Nguyen.
[-- Attachment #2: Type: text/html, Size: 13805 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: NC-SI driver: update multi_package, multi_channel base on package_num and channel_num.
2021-01-27 23:00 NC-SI driver: update multi_package, multi_channel base on package_num and channel_num Thu Nguyen OS
@ 2021-01-29 4:30 ` Samuel Mendoza-Jonas
0 siblings, 0 replies; 2+ messages in thread
From: Samuel Mendoza-Jonas @ 2021-01-29 4:30 UTC (permalink / raw)
To: Thu Nguyen OS, openbmc
On Wed, 2021-01-27 at 23:00 +0000, Thu Nguyen OS wrote:
> Dear,
>
> I checked the NC-SI driver source, the driver will work difference
> when the interface have multiple package or multiple channel.
> Such as:
> If multi_channel is enabled configure all valid
> * channels whether or not they currently
> have link
> * so they will have AENs enabled.
>
> By default the search is done once an inactive channel with up
> * link is found, unless a preferred channel is set.
> * If multi_package or multi_channel are configured all
> channels in the
> * whitelist are added to the channel queue.
>
> Look that the code:
> multi_channel is set in ncsi_set_channel_mask_nl base on the
> configuration of NCSI_ATTR_MULTI_FLAG.
> multi_package is set in ncsi_set_package_mask_nl base on the
> configuration of NCSI_ATTR_MULTI_FLAG.
> Do we have any special reason to add this option?
> What should I do to enable this option?
>
> As my understanding, multi_channel and multi_package will be mapped
> with the number of the physical package/channel on OCP card.
> In the driver, we have section to add/remove the package or channel
> in functions ncsi_add/remove_package, ncsi_add/remove_channel.
> Why don’t we update multi_channel and multi_package in these
> function as below?
Hi Thu,
The multi_channel and multi_package variables represent whether
multiple channels and packages should be used simultaneously, not
whether they exist. The commit introducing support for this has a good
description:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/net/ncsi?id=8d951a75d022d94a05f5fa74217670a981e8302d
Behaviour like this can be configured via the NCSI Netlink interface,
e.g. via this tool: https://github.com/sammj/ncsi-netlink
Cheers,
Sam
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-01-29 4:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-27 23:00 NC-SI driver: update multi_package, multi_channel base on package_num and channel_num Thu Nguyen OS
2021-01-29 4:30 ` Samuel Mendoza-Jonas
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.