-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
marvell: prestera: Update prestera driver to v2.8.0 for kernel 5.10 #43
Conversation
We will need to update the python boot scripts to load the module's new name. I think we can include both during the transition period. packages/platforms/delta/arm64/tn48m/tn48m/platform-config/r0/src/python/arm64_delta_tn48m_r0/init.py |
It's not just per-platform script: |
28bb0af
0f876d0
to
c83046c
Compare
I tried to reviewed, but had to spend several minutes to know what is going on, especially as GitHub is unable to display the big patch file, and so it’s easily missed. It’d be awesome, if you could be much more elaborate. Here is the git patch header from the big commit:
Where can the versions be looked up? Without that Update is misleading. What is v2.8.0? It’s good to start with some background. Maybe something like:
So, I’d put the commit marvell: prestera: enable Prestera driver (and add Linux 5.10) in there first, and also remove the patch file, as that’s what is in the Linux kernel sources now. Then, I’d add the updated driver wtih a new patch name, so they are not confused with the file for Linux 5.6. Just use the name created by For the updated driver, give background, to where the version numbers come from. For example, what version is in Linux 5.10 upstream? Also, add the URL, where you sent the updated driver to Linux upstream for review, and when it will be expected in Linux upstream. And lastly, how did you test the new driver and features (something which should be also added to the patch file). |
Also, I assume for Linux kernel upstream review you split this up into several commits? For example, why is the ethtool interface (commit a97d3c6939 (net: marvell: prestera: Add ethtool interface support)) removed?
I’d would prefer if you did not add one big patch, but the patch series sent to Linux kernel upstream. |
The copyright lines should also be just one line. |
Not all prestera driver features were upstreamed to the mainline kernel. we are working with the community on upstreaming more features. Latest patch series https://patchwork.kernel.org/project/netdevbpf/cover/20210203165458.28717-1-vadym.kochan@plvision.eu/ |
New features: * phylink support NOTE: Prestera switchdev driver name has been changed to align with the upstream kernel. The new driver name is prestera instead of prestera_sw Signed-off-by: Taras Chornyi <taras.chornyi@plvision.eu>
Enable prestera driver for arm64 kernel 5.10 build Signed-off-by: Taras Chornyi <taras.chornyi@plvision.eu>
3c1e807
c83046c
to
3c1e807
Compare
Thank you for the update and answers. What did you change in your last push? So “version” refers to the firmware version? As only So why not add “version 2.5” [net-next,0/7] Marvell Prestera Switchdev misc updates first, and then “version 2.8” second? And why is version 2.8 not submitted for review upstream? Who is supposed to review an almost 17,000 line diffstat? |
Does Marvell have a public Linux kernel repository where this version 2.8 patch is part of? |
version is basically the driver version. The driver itself has a dependency on a minimal FW version. Upstream is several versions behind. |
as for the firmware image it's already integrated to the main branch with this commit 59ebd04 |
(Too bad the text part in the GitHub notification emails do not contain the URL.) Ah, would be nice to mention that too. |
Without
I am unable to approve such a big change, which cannot be reviewed because it’s too big (and the GitHub interface is unable to deal with it). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Marvell will work on a better way to patch the kernel. At this point we are blocked so we are relying on the testing Amazon and Marvell have done.
Yes, I understand that. But the way, how it’s added to DentOS leaves much to be desired, and at least the commit messages and pull/merge request description could have been improved before merging this. :( |
Hi Paul, we are fully aligned with your wise comments and intentions;
And still – we are doing our best to move between these comments to our other commitments.
I can assure you we will do our best to address at least most of it – but it will take some time.
Regards, Mickey
|
In kernel 5.10, the driver 'prestera_sw' is renamed to 'prestera', so using the 'self.modprobe' to probe 'prestera_pci', which makes the 'prestera' will be also loaded [1]. [1]: dentproject#43 (comment) The 'packages/base/any/kernels/5.10-lts/patches/0023-delta-tn48m-dn-series-dts.patch' is a copy from kernel 5.6 Signed-off-by: Chenglin Tsai <chenglin.tsai@deltaww.com>
…entproject#43) * marvell: prestera: Update prestera driver to v2.8.0 New features: * phylink support NOTE: Prestera switchdev driver name has been changed to align with the upstream kernel. The new driver name is prestera instead of prestera_sw Signed-off-by: Taras Chornyi <taras.chornyi@plvision.eu> * marvell: prestera: enable Prestera driver Enable prestera driver for arm64 kernel 5.10 build Signed-off-by: Taras Chornyi <taras.chornyi@plvision.eu>
* [tn48m/tn48m-dn] Upgrade kernel version to 5.10 In kernel 5.10, the driver 'prestera_sw' is renamed to 'prestera', so using the 'self.modprobe' to probe 'prestera_pci', which makes the 'prestera' will be also loaded [1]. [1]: #43 (comment) The 'packages/base/any/kernels/5.10-lts/patches/0023-delta-tn48m-dn-series-dts.patch' is a copy from kernel 5.6 Signed-off-by: Chenglin Tsai <chenglin.tsai@deltaww.com> * tn48m-dn: Modify the patch number of tn48m-dn from 23 to 22 Since the codes in 0022-marvell-wa-tx-disable.patch is already merged into kernel 5.10, and we don't need them anymore. So modify the patch number of tn48m-dn from 23 to 22. [1]: #45 (comment) Signed-off-by: Chenglin Tsai <chenglin.tsai@deltaww.com> Co-authored-by: Steven Noble <snoble@sonn.com>
The switchdev driver for the Prestera family ASIC was added in Linux 5.10 by commit torvalds/linux@501ef3066c (net: marvell: prestera: Add driver for Prestera family ASIC devices),
The following features are supported by this driver:
For the DentOS Arthur release, an out-of-the tree driver was added as a patch for kernel 5.6, which supports additionaly following features:
With this pull request, in-tree driver is updated to include all features and bug fixes that are present in Arthur release.
Signed-off-by: Taras Chornyi taras.chornyi@plvision.eu