airoha: add support for kernel 6.18#21019
Conversation
19eff8d to
731fad1
Compare
|
Bootlog for 6.18 on the XG-140G: (link) |
|
I would remove the link to the generic 6.18 PR from the commit message to avoid GitHub polluting that thread with those ugly "hurrian referenced ..." With each force-push. |
Done, thanks! |
731fad1 to
eb8ee3c
Compare
eb8ee3c to
7214a29
Compare
|
Mark. |
|
What about the crypto-hw-eip93 module? It's not even configured for kernel 6.12, even though there's a patch for it. |
As far as I remember, the downstream driver panics on startup on AN7581. This could have been caused by some edge cases. When I tested it, I had self-tests compiled in. |
|
Add patches from crypto: eip93: add pending and hack patches |
|
It would be nice to rebase this PR. As far as I can see, some patches have changed the names. |
|
I am currently waiting on a newer version of the |
|
However, I think that adding eip93 to airoha should be in a separate PR because it applies to kernel 6.12 (at first). |
Is this issue resolved now? Can it be applied to the AN7581 first? |
7214a29 to
78351cb
Compare
|
Now that the dust has settled on 6.18, I've updated the patch sets for the Thanks to the upstreaming efforts, most patches for Airoha have landed in mainline. As time goes on we will have very few out-of-tree patches to maintain. Looking for feedback on this patch set:
|
78351cb to
a54a446
Compare
|
kmod-crypto-hw-eip93 for kernel 6.12 is backported from the Linux kernel for Airoha, and from the MTK version for Mediatek mt7621. Only for kernel 6.18 there is only one "inside-secure" driver from the Linux kernel. |
5201a7e to
0dbb41b
Compare
|
Rebased to main branch. |
|
build error |
|
320-11 must have gotten corrupted in the rebase. This earlier version compiles cleanly. |
|
|
75f98c3 to
74f0c74
Compare
|
Patch set rebased on Meanwhile, 6.12 will be temporarily patched for compatibility with the new Looking for further testing reports so we can get this merged. |
|
tested latest rebase and works well. ready to merge. |
Compiled with 96e03b0, installed, no issues to report. (W1700K HW v1.0) |
During configuration of airoha for 6.18 it was noted that there were additional missing symbols from the generic config. Update the missing symbols accordingly. Signed-off-by: Kenneth Kasilag <kenneth@kasilag.me>
This is an automatically generated commit. When doing `git bisect`, consider `git bisect --skip`. Signed-off-by: Kenneth Kasilag <kenneth@kasilag.me>
This is an automatically generated commit which aids following Kernel patch history, as git will see the move and copy as a rename thus defeating the purpose. For the original discussion see: https://lists.openwrt.org/pipermail/openwrt-devel/2023-October/041673.html Signed-off-by: Kenneth Kasilag <kenneth@kasilag.me>
Update the kernel configuration in for kernel 6.18. Signed-off-by: Kenneth Kasilag <kenneth@kasilag.me>
Remove all patches that have already been upstreamed for kernel 6.18. Signed-off-by: Kenneth Kasilag <kenneth@kasilag.me>
Fix patch compatibility for kernel 6.18 on airoha. Signed-off-by: Kenneth Kasilag <kenneth@kasilag.me>
Due to hardware bugs, the PCIE Gen3 IP in Airoha AN7581 requires a special reset procedure: > MAC reset asserted thru the SCU block > PERST asserted thru the SCU for the desired PCIE lane > PHY initialization runs, clocks enabled > MAC reset deasserted > EQ config (if needed) written > PERST deasserted The existing code currently toggles PERST for all three PCIE ports every time mtk_pcie_en7581_power_up is called, resulting in PCIE link down issues. This issue was discovered during porting of the 6.18 kernel to AN7581. It is not entirely clear how the hardware seemed to function under kernel 6.12 with similar driver code, it is presumed that differences in assert/deassert times for PERST in 6.18 changed which exposed the bug. Signed-off-by: Kenneth Kasilag <kenneth@kasilag.me>
The Airoha PCS driver for kernel 6.18 relies on the pending firmware node PCS accessors, which expect the `pcs-handle` and `#pcs-cells` properties in device tree. Rename the cells in DTS for an7581 and an7583 to support this. Signed-off-by: Kenneth Kasilag <kenneth@kasilag.me>
The previous downstream driver for Airoha PCS used the `pcs` node instead of the `pcs-handle` now used in upstream. Revise the driver to support the new style node. Signed-off-by: Kenneth Kasilag <kenneth@kasilag.me>
The `config_clks_t` definition changed between 6.12 and 6.18. Revise the airoha-cpufreq driver with the proper signature. Signed-off-by: Kenneth Kasilag <kenneth@kasilag.me>
Patch `600-12-clk-en7523-Add-reset-controller-support-for-EN7523-S.patch` was accepted in 6.19-rc1 (1c0608d860db973ad09b5a9ccb19b76ae07622a3). Properly tag the patch for future reference. Signed-off-by: Kenneth Kasilag <kenneth@kasilag.me>
Refreshed automatically with `make target/linux/refresh V=s`. Signed-off-by: Kenneth Kasilag <kenneth@kasilag.me>
Add building the 6.18 kernel for airoha as testing. Signed-off-by: Kenneth Kasilag <kenneth@kasilag.me>
74f0c74 to
4f0bfb8
Compare
|
Rebased on main (due to changes in 1b9922d). |
|
Just installed |
openwrt-ai
left a comment
There was a problem hiding this comment.
Commit checks
- 7eccf34 "generic: add missing config symbols for 6.18" — adds
# CONFIG_ARCH_LAN969X is not setat line 297 intarget/linux/generic/config-6.18while the same symbol already appears at line 294 (see inline). The other added symbols (ARM64_GCS,PINCTRL_MT6893/MT7988/MT8189/MT8196) look correct, but this one looks like a copy-paste/sort accident.
Generated by Claude Code
| @@ -294,6 +294,7 @@ CONFIG_ARCH_FORCE_MAX_ORDER=11 | |||
| # CONFIG_ARCH_LAN969X is not set | |||
| # CONFIG_ARCH_LAYERSCAPE is not set | |||
| # CONFIG_ARCH_LG1K is not set | |||
| # CONFIG_ARCH_LAN969X is not set | |||
There was a problem hiding this comment.
Duplicate symbol — # CONFIG_ARCH_LAN969X is not set is already present three lines above (line 294, unchanged context). The new entry inserted here in commit 7eccf34 ("generic: add missing config symbols for 6.18") is a verbatim repeat and is also out of alphabetical order between ARCH_LG1K and ARCH_LPC32XX. Drop this line; if there's a different symbol meant here (e.g. ARCH_LAN966X?), correct it instead.
| # CONFIG_ARCH_LAN969X is not set |
Generated by Claude Code
Enable kernel 6.18 as the testing kernel for airoha.
This kernel bump removes a large amount of pending backported patches, decreasing maintenance load for the target.
All patches refreshed automatically. Patchset is functionally identical to 6.12 at this time.
Run tested on Bell XG-140G-TF (#20486), Gemtek W1700K and XR1710G(#22397).
Compile tested for the
an7581andan7583RFB.Signed-off-by: Kenneth Kasilag kenneth@kasilag.me