Skip to content
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

[WIP] [SW64] Add sw64 architecture basic support #439

Open
wants to merge 86 commits into
base: linux-6.6.y
Choose a base branch
from

Conversation

Avenger-285714
Copy link
Collaborator

All of those paches are from openEuler.

These patches are considered temporary versions. wxait will provide us with more formal versions in the future.

Link: https://gitee.com/openeuler/kernel/pulls/4545
Link: https://gitee.com/openeuler/kernel/pulls/4596
Link: https://gitee.com/openeuler/kernel/pulls/4629/commits

Mao Minkai added 30 commits October 8, 2024 15:16
Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8Y8CY

--------------------------------

Add Kbuild, Makefile, Kconfig and link script for SW64 build
infrastructure.

Signed-off-by: Mao Minkai <[email protected]>
Reviewed-by: He Sheng <[email protected]>
Signed-off-by: Gu Zitao <[email protected]>
Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8Y8CY

--------------------------------

Add common headers (CPU definition) for basic SW64 support.

Signed-off-by: Mao Minkai <[email protected]>
Reviewed-by: He Sheng <[email protected]>
Signed-off-by: Gu Zitao <[email protected]>
Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8Y8CY

--------------------------------

Add common headers (atomic, bitops, barrier and locking) for basic SW64
support.

Signed-off-by: Mao Minkai <[email protected]>
Reviewed-by: He Sheng <[email protected]>
Signed-off-by: Gu Zitao <[email protected]>
Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8Y8CY

--------------------------------

Add some other common headers for basic SW64 support.

Signed-off-by: Mao Minkai <[email protected]>
Reviewed-by: He Sheng <[email protected]>
Signed-off-by: Gu Zitao <[email protected]>
Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8Y8CY

--------------------------------

Add ELF-related definition for basic SW64 support.

Signed-off-by: Mao Minkai <[email protected]>
Reviewed-by: He Sheng <[email protected]>
Signed-off-by: Gu Zitao <[email protected]>
Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8Y8CY

--------------------------------

Add some other uncommon headers for basic SW64 support.

Signed-off-by: Mao Minkai <[email protected]>
Reviewed-by: He Sheng <[email protected]>
Signed-off-by: Gu Zitao <[email protected]>
Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8Y8CY

--------------------------------

Add basic boot, setup and reset routines for SW64.

Signed-off-by: Mao Minkai <[email protected]>
Reviewed-by: He Sheng <[email protected]>
Signed-off-by: Gu Zitao <[email protected]>
Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8Y8CY

--------------------------------

Add topology setup for SW64.

Signed-off-by: Mao Minkai <[email protected]>
Reviewed-by: He Sheng <[email protected]>
Signed-off-by: Gu Zitao <[email protected]>
Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8Y8CY

--------------------------------

Add timer for basic SW64 support.

Signed-off-by: Mao Minkai <[email protected]>
Reviewed-by: He Sheng <[email protected]>
Signed-off-by: Gu Zitao <[email protected]>
Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8Y8CY

--------------------------------

Add interrupt handling mechanism for basic SW64 support.

Signed-off-by: Mao Minkai <[email protected]>
Reviewed-by: He Sheng <[email protected]>
Signed-off-by: Gu Zitao <[email protected]>
Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8Y8CY

--------------------------------

Add exception handling mechanism for basic SW64 support.

Signed-off-by: Mao Minkai <[email protected]>
Reviewed-by: He Sheng <[email protected]>
Signed-off-by: Gu Zitao <[email protected]>
Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8Y8CY

--------------------------------

Add process management support for SW64.

Signed-off-by: Mao Minkai <[email protected]>
Reviewed-by: He Sheng <[email protected]>
Signed-off-by: Gu Zitao <[email protected]>
Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8Y8CY

--------------------------------

Add hardware match mechanism for SW64.

Signed-off-by: Mao Minkai <[email protected]>
Reviewed-by: He Sheng <[email protected]>
Signed-off-by: Gu Zitao <[email protected]>
Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8Y8CY

--------------------------------

Add memory management support for SW64.

Signed-off-by: Mao Minkai <[email protected]>
Reviewed-by: He Sheng <[email protected]>
Signed-off-by: Gu Zitao <[email protected]>
Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8Y8CY

--------------------------------

Add hugetlb support for SW64.

Signed-off-by: Mao Minkai <[email protected]>
Reviewed-by: He Sheng <[email protected]>
Signed-off-by: Gu Zitao <[email protected]>
Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8Y8CY

--------------------------------

Add system call support for SW64.

Signed-off-by: Mao Minkai <[email protected]>
Reviewed-by: He Sheng <[email protected]>
Signed-off-by: Gu Zitao <[email protected]>
Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8Y8CY

--------------------------------

Add ucontext/sigcontext definition and signal handling support for SW64.

Signed-off-by: Mao Minkai <[email protected]>
Reviewed-by: He Sheng <[email protected]>
Signed-off-by: Gu Zitao <[email protected]>
Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8Y8CY

--------------------------------

Add FPU and floating-point emulation support for SW64.

Signed-off-by: Mao Minkai <[email protected]>
Reviewed-by: He Sheng <[email protected]>
Signed-off-by: Gu Zitao <[email protected]>
Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8Y8CY

--------------------------------

Add basic IO support for SW64.

Signed-off-by: Mao Minkai <[email protected]>
Reviewed-by: He Sheng <[email protected]>
Signed-off-by: Gu Zitao <[email protected]>
Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8Y8CY

--------------------------------

Add kernel module support for SW64.

Signed-off-by: Mao Minkai <[email protected]>
Reviewed-by: He Sheng <[email protected]>
Signed-off-by: Gu Zitao <[email protected]>
Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8Y8CY

--------------------------------

Add some other common routines for SW64.

Signed-off-by: Mao Minkai <[email protected]>
Reviewed-by: He Sheng <[email protected]>
Signed-off-by: Gu Zitao <[email protected]>
Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8Y8CY

--------------------------------

Add some uncommon routines for SW64.

Signed-off-by: Mao Minkai <[email protected]>
Reviewed-by: He Sheng <[email protected]>
Signed-off-by: Gu Zitao <[email protected]>
Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8Y8CY

--------------------------------

Add some library functions for SW64.

Signed-off-by: Mao Minkai <[email protected]>
Reviewed-by: He Sheng <[email protected]>
Signed-off-by: Gu Zitao <[email protected]>
Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I56P0Z

--------------------------------

Add VDSO support for SW64.

Signed-off-by: Mao Minkai <[email protected]>
Reviewed-by: He Sheng <[email protected]>
Signed-off-by: Gu Zitao <[email protected]>
Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8Y8CY

--------------------------------

Add Symmetric Multi-Processing (SMP) support for SW64.

Signed-off-by: Mao Minkai <[email protected]>
Reviewed-by: He Sheng <[email protected]>
Signed-off-by: Gu Zitao <[email protected]>
Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8Y8CY

--------------------------------

Add Non Uniform Memory Access (NUMA) support for SW64.

Signed-off-by: Mao Minkai <[email protected]>
Reviewed-by: He Sheng <[email protected]>
Signed-off-by: Gu Zitao <[email protected]>
Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8Y8CY

--------------------------------

Add default config files for SW64 based xuelang and junzhang platforms.

Signed-off-by: Mao Minkai <[email protected]>
Reviewed-by: He Sheng <[email protected]>
Signed-off-by: Gu Zitao <[email protected]>
Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8Y8CY

--------------------------------

Add basic PCI support for SW64.

Signed-off-by: Mao Minkai <[email protected]>
Reviewed-by: He Sheng <[email protected]>
Signed-off-by: Gu Zitao <[email protected]>
Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8Y8CY

--------------------------------

Add basic MSI support for SW64.

Signed-off-by: Mao Minkai <[email protected]>
Reviewed-by: He Sheng <[email protected]>
Signed-off-by: Gu Zitao <[email protected]>
Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8Y8CY

--------------------------------

Add device trees for SW64 based chip3 platform and virtual machines
(including an empty device tree for platforms that are under development).

Signed-off-by: Mao Minkai <[email protected]>
Reviewed-by: He Sheng <[email protected]>
Signed-off-by: Gu Zitao <[email protected]>
Mao Minkai added 17 commits October 8, 2024 15:36
Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8Y8CY

--------------------------------

Modify generic headers for SW64 ELF support.

Signed-off-by: Mao Minkai <[email protected]>
Reviewed-by: He Sheng <[email protected]>
Signed-off-by: Gu Zitao <[email protected]>
Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8Y8CY

--------------------------------

Modify generic routines for SW64 rrk support.

Signed-off-by: Mao Minkai <[email protected]>
Reviewed-by: He Sheng <[email protected]>
Signed-off-by: Gu Zitao <[email protected]>
Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8YQTI

--------------------------------

Modify generic headers for SW64 ACPI support.

Signed-off-by: Mao Minkai <[email protected]>
Reviewed-by: He Sheng <[email protected]>
Signed-off-by: Gu Zitao <[email protected]>
Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8Y8CY

--------------------------------

Modify generic headers for SW64 kernel module support.

Signed-off-by: Mao Minkai <[email protected]>
Reviewed-by: He Sheng <[email protected]>
Signed-off-by: Gu Zitao <[email protected]>
Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I56WV8

--------------------------------

Modify generic headers and routines for SW64 KVM support.

Signed-off-by: Mao Minkai <[email protected]>
Reviewed-by: He Sheng <[email protected]>
Signed-off-by: Gu Zitao <[email protected]>
Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8Y8CY

--------------------------------

Modify generic headers for SW64 PCI support.

Signed-off-by: Mao Minkai <[email protected]>
Reviewed-by: He Sheng <[email protected]>
Signed-off-by: Gu Zitao <[email protected]>
Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8YQW8

--------------------------------

Modify generic headers for SW64 kexec support.

Signed-off-by: Mao Minkai <[email protected]>
Reviewed-by: He Sheng <[email protected]>
Signed-off-by: Gu Zitao <[email protected]>
Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8Y8CY

--------------------------------

Modify generic headers for SW64 audit support.

Signed-off-by: Mao Minkai <[email protected]>
Reviewed-by: He Sheng <[email protected]>
Signed-off-by: Gu Zitao <[email protected]>
Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8YR3H

--------------------------------

Modify scripts for SW64 ftrace support.

Signed-off-by: Mao Minkai <[email protected]>
Reviewed-by: He Sheng <[email protected]>
Signed-off-by: Gu Zitao <[email protected]>
Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8Y8CY

--------------------------------

Add common headers and routines for SW64 support.

Signed-off-by: Mao Minkai <[email protected]>
Reviewed-by: He Sheng <[email protected]>
Signed-off-by: Gu Zitao <[email protected]>
Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8Y8CY

--------------------------------

Modify generic headers and Makefiles for SW64 support.

Signed-off-by: Mao Minkai <[email protected]>
Reviewed-by: He Sheng <[email protected]>
Signed-off-by: Gu Zitao <[email protected]>
Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8YRCP

--------------------------------

Add Build, Makefiles, common headers and routines for SW64 support.

Signed-off-by: Mao Minkai <[email protected]>
Reviewed-by: He Sheng <[email protected]>
Signed-off-by: Gu Zitao <[email protected]>
Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8YRCP

--------------------------------

Modify generic Build, Makefiles and routines for SW64 support.

Signed-off-by: Mao Minkai <[email protected]>
Reviewed-by: He Sheng <[email protected]>
Signed-off-by: Gu Zitao <[email protected]>
Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8Y8CY

--------------------------------

Modify generic routines for SW64 support.

Signed-off-by: Mao Minkai <[email protected]>
Reviewed-by: He Sheng <[email protected]>
Signed-off-by: Gu Zitao <[email protected]>
Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8YQTI

--------------------------------

Add acpi drivers for SW64.

Signed-off-by: Mao Minkai <[email protected]>
Reviewed-by: He Sheng <[email protected]>
Signed-off-by: Gu Zitao <[email protected]>
Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8Y8CY

--------------------------------

Add clocksource driver for SW64.

Signed-off-by: Mao Minkai <[email protected]>
Reviewed-by: He Sheng <[email protected]>
Signed-off-by: Gu Zitao <[email protected]>
Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8YQY2

--------------------------------

Add cpufreq drivers for SW64.

Signed-off-by: Mao Minkai <[email protected]>
Reviewed-by: He Sheng <[email protected]>
Signed-off-by: Gu Zitao <[email protected]>
@deepin-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from avenger-285714. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants