Skip to content

T4849: add Ten64/NXP DPAA2 support patches - #288

Closed
mcbridematt wants to merge 3 commits into
vyos:currentfrom
mcbridematt:t4849-arm64-kernel
Closed

T4849: add Ten64/NXP DPAA2 support patches#288
mcbridematt wants to merge 3 commits into
vyos:currentfrom
mcbridematt:t4849-arm64-kernel

Conversation

@mcbridematt

Copy link
Copy Markdown
Contributor

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes)
  • Migration from an old Vyatta component to vyos-1x, please link to related PR inside obsoleted component
  • Other (please describe):

Related Task(s)

https://phabricator.vyos.net/T4849

Component(s) name

Proposed changes

Updates the arm64 kernel configuration to 5.15 (equivalent to the x86 version at the time of writing), as well as the image data for arm64 (correct GRUB + kernel package variants).
Additionally, patches to fix SFP+ issues on the Traverse Technologies Ten64 platform are included
(Note to self: To avoid breaking x86 in the future it could be a good idea to only apply these patches when target arch = arm64. I'll create a new task/pull if I get around to that)

How to test

This is part of the 'port' I have done over here: https://github.com/mcbridematt/vyos-arm64-builder . I am slowly iterating down my patchset (there are various other bits that still need to be addressed for a complete x86-equivalent build)
See here for more info: https://forum.traverse.com.au/t/vyos-build-my-repo/181/5 or in vyos-on-arm64 in the VyOS slack

Checklist:

  • I have read the CONTRIBUTING document
  • I have linked this PR to one or more Phabricator Task(s)
  • My commit headlines contain a valid Task id
  • My change requires a change to the documentation
  • I have updated the documentation accordingly

Comment thread packages/linux-kernel/arch/arm64/configs/vyos_defconfig Outdated
@MartB

MartB commented Jan 26, 2023

Copy link
Copy Markdown

Another thing to note:
Im not sure where the original arm64 config came from.
There is quite an extensive non-architecture related list of differences compared to the x86 config in a few places.

Some examples are the CONFIG_TCP_CONG_*, CONFIG_IPV6_*, CONFIG_INET6_*, CONFIG_NETFILTER_ and CONFIG_NFT_ keys, to name a few network-related ones.

Would be wise to try and match these two configs where applicable.

Edit:
I uploaded the changes I had flying around for "reference" but i probably made a few mistakes anyway.
https://github.com/MartB/vyos-build/tree/current-arm64
https://github.com/MartB/vyos-arm64-builder

@mcbridematt

Copy link
Copy Markdown
Contributor Author

I think the original one in vyos-build came from a Raspberry Pi and is missing a lot of ARM server related options (like EFI and ACPI) as a result.

I took our (Traverse) standard config ( https://gitlab.com/traversetech/traverse-kernel-patches/-/blob/torvalds/kernel-config ) and tried to "equalize" the networking options with Vyos-x86 but it seems I missed a few, thanks for the hints!

Comment thread packages/linux-kernel/arch/arm64/configs/vyos_defconfig Outdated
@github-actions

Copy link
Copy Markdown

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@mcbridematt
mcbridematt marked this pull request as draft February 17, 2023 11:24
@c-po c-po added the current VyOS rolling release label Sep 15, 2023
tjjh89017 and others added 3 commits December 15, 2023 01:16
Signed-off-by: Date Huang <tjjh89017@hotmail.com>
Signed-off-by: Date Huang <tjjh89017@hotmail.com>
This patch set is imported from the series "Fix rtnl_mutex deadlock with
DPAA2 and SFP modules"[1] that landed in kernel 6.2.

[1] https://patchwork.kernel.org/project/netdevbpf/list/?series=700098&state=%2A&archive=both
@github-actions

Copy link
Copy Markdown

Conflicts have been resolved. A maintainer will review the pull request shortly.

@mcbridematt

Copy link
Copy Markdown
Contributor Author

I've just updated this on top of #421 (T5499).

There are no other kernel config changes needed on top of that. (There is an SMMU/IOMMU issue requiring a kernel cmdline addition, but I think I can fix the firmware to work without that)

The SFP related fixes for our platform (NXP DPAA2) landed in kernel 6.2, which I have squashed into a singular .patch.

@mcbridematt mcbridematt changed the title T4849: update arm64 kernel to 5.15.x / add Ten64 support T4849: add Ten64/NXP DPAA2 support patches Dec 15, 2023
@c-po

c-po commented Feb 9, 2024

Copy link
Copy Markdown
Member

Please rebase as #495 was merged

@c-po c-po added the stale PR has become inactive or needs attention label Feb 17, 2024
@c-po
c-po requested review from a team, MartB, c-po, dmbaturin, jestabro, sarthurdev, sever-sever and zdc and removed request for a team and MartB February 17, 2024 19:48
@dmbaturin

Copy link
Copy Markdown
Member

Closing due to no response from the reporter in over a month. Please reopen it if/when you get the time to rebase it.

@dmbaturin dmbaturin closed this Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

current VyOS rolling release stale PR has become inactive or needs attention

Development

Successfully merging this pull request may close these issues.

5 participants