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

test: test ARM CPU templates in Linux host 5.10 #4911

Merged
merged 1 commit into from
Nov 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 5 additions & 9 deletions tests/framework/utils_cpu_templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,12 @@ def get_supported_cpu_templates():

SUPPORTED_CPU_TEMPLATES = get_supported_cpu_templates()

# Custom CPU templates for Aarch64 for testing
AARCH64_CUSTOM_CPU_TEMPLATES_G2 = ["v1n1"]
AARCH64_CUSTOM_CPU_TEMPLATES_G3 = [
"aarch64_with_sve_and_pac",
"v1n1",
]


def get_supported_custom_cpu_templates():
"""
Return the list of custom CPU templates supported by the platform.
"""
# pylint:disable=too-many-return-statements
host_linux = global_props.host_linux_version_tpl

match get_cpu_vendor(), global_props.cpu_codename:
Expand All @@ -65,9 +59,11 @@ def get_supported_custom_cpu_templates():
case CpuVendor.AMD, _:
return AMD_TEMPLATES
case CpuVendor.ARM, CpuModel.ARM_NEOVERSE_N1 if host_linux >= (6, 1):
return AARCH64_CUSTOM_CPU_TEMPLATES_G2
return ["v1n1"]
case CpuVendor.ARM, CpuModel.ARM_NEOVERSE_V1 if host_linux >= (6, 1):
return AARCH64_CUSTOM_CPU_TEMPLATES_G3
return ["v1n1", "aarch64_with_sve_and_pac"]
case CpuVendor.ARM, CpuModel.ARM_NEOVERSE_V1:
return ["aarch64_with_sve_and_pac"]
case _:
return []

Expand Down
Loading