-
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
[tn48m/tn48m-dn series] Upgrade kernel version to 5.10 #45
Conversation
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.
Is packages/base/any/kernels/5.10-lts/patches/0023-delta-tn48m-dn-series-dts.patch
just a copy from the 5.6 version, or did you have to update it?
self.insmod("prestera_sw.ko") | ||
self.insmod("prestera_pci.ko") | ||
# Insert Marvell prestera modules by only probing prestera_pci module | ||
# Suggested by Taras Chornyi |
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.
Please put that into the commit message.
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.
Done and thanks.
self.insmod("prestera_pci.ko") | ||
# Insert Marvell prestera modules by only probing prestera_pci module | ||
# Suggested by Taras Chornyi | ||
subprocess.call('modprobe prestera_pci', shell=True) |
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.
Why is self.insmod("prestero_pci.ko")
not working anymore?
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.
Why is
self.insmod("prestero_pci.ko")
not working anymore?
Hi Paul,
Because the name of prestera driver is changed from "prestera_sw.ko" to "prestera.ko", it will be better if we use modprobe to probe prestero_pci driver only, modprobe will automatically help us to insert the necessary drivers, like prestera.ko here.
For more details, you can refer to the discussion: #43 (comment)
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.
I wonder if a method modprobe
should be added to packages/base/all/vendor-config-onl/src/
, so only self.modprobe("prestero")
needs to be used.
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.
I wonder if a method
modprobe
should be added topackages/base/all/vendor-config-onl/src/
, so onlyself.modprobe("prestero")
needs to be used.
Yes, the self.modprobe function can be implemented in file: "packages/base/all/vendor-config-onl/src/python/onl/platform/base.py" in the future if needed.
@@ -16,3 +16,5 @@ | |||
0020-accton-as5114.patch | |||
0021-tn48m-add-sfp-eeprom-support-to-ethtool.patch | |||
#0022-marvell-wa-tx-disable.patch | |||
0023-delta-tn48m-dn-series-dts.patch | |||
|
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.
Please remove the blank line at the end of the file.
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.
Done and thanks.
# Insert Marvell prestera modules by only probing prestera_pci module | ||
# Suggested by Taras Chornyi | ||
subprocess.call('modprobe prestera_pci', shell=True) |
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.
Ditto as above.
# Insert Marvell prestera modules by only probing prestera_pci module | ||
# Suggested by Taras Chornyi | ||
subprocess.call('modprobe prestera_pci', shell=True) |
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.
Ditto as above.
# Insert Marvell prestera modules by only probing prestera_pci module | ||
# Suggested by Taras Chornyi | ||
subprocess.call('modprobe prestera_pci', shell=True) |
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.
Ditto as above. (I won’t comment on the other occurrences.)
b0e2991
to
272224a
Compare
The 'packages/base/any/kernels/5.10-lts/patches/0023-delta-tn48m-dn-series-dts.patch' is just a copy from kernel 5.6. |
Here are the out-of-Linux-kernel-tree switch driver messages.
|
Could you please add that to the git commit message? |
272224a
to
ddc0448
Compare
Sure. Added. |
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>
ddc0448
to
f41abe2
Compare
@@ -16,3 +16,4 @@ | |||
0020-accton-as5114.patch | |||
0021-tn48m-add-sfp-eeprom-support-to-ethtool.patch | |||
#0022-marvell-wa-tx-disable.patch |
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.
This Line:
#22-marvell-wa-tx-disable.patch
should be removed and you can use:
0022-delta-tn48m-dn-series-dts.patch
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.
@Mickey201, No problem, updated in e633451. Thanks for the suggestions.
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.
Chenglin,
Did you tested it with Marvell Switchdev 5.10 support?
I did a review - it looks ok.
Yes, in the test log, I saw the Marvell firmware 2.8.0 and Marvell prestera drivers are successfully loaded in kernel 5.10. dentOS_tn4810m_kernel_5.10_onlpdump_2021_0218.log
|
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]: dentproject#45 (comment) Signed-off-by: Chenglin Tsai <chenglin.tsai@deltaww.com>
@sonoble As pointed by @paulmenzel in #44 commits from the pull request will be squashed and merged to main branch as one commit. Is it possible to enable Rebase and Merge option |
Upgrade kernel version to 5.10 on tn48m and tn48m-dn series.
Test logs:
dentOS_tn4810m_kernel_5.10_onlpdump_2021_0218.log
dentOS_tn48m_kernel_5.10_onlpdump_2021_0218.log
dentOS_tn48m-poe_kernel_5.10_onlpdump_2021_0218.log
Signed-off-by: Chenglin Tsai chenglin.tsai@deltaww.com