Skip to content

Commit 9c1cc62

Browse files
committed
intel-gmmlib: add arm64 support
- Disable AuxTable test on aarch64 - Link: intel/gmmlib#128
1 parent a1a8295 commit 9c1cc62

File tree

4 files changed

+37
-1
lines changed

4 files changed

+37
-1
lines changed

runtime-devices/intel-gmmlib/autobuild/defines

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ PKGSEC=libs
33
PKGDEP="glibc"
44
PKGDES="Intel Graphics Memory Management Library"
55

6-
FAIL_ARCH="!(amd64|loongarch64)"
6+
FAIL_ARCH="!(amd64|arm64|loongarch64)"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
From 5f7d53ef6c1a6c40d0ff2d717dca59533ad633d5 Mon Sep 17 00:00:00 2001
2+
From: Vihang Mehta <[email protected]>
3+
Date: Wed, 26 Feb 2025 09:59:15 -0800
4+
Subject: [PATCH] Disable AuxTable test on aarch64
5+
6+
Signed-off-by: Vihang Mehta <[email protected]>
7+
---
8+
Source/GmmLib/ULT/GmmAuxTableULT.cpp | 7 +++++++
9+
1 file changed, 7 insertions(+)
10+
11+
diff --git a/Source/GmmLib/ULT/GmmAuxTableULT.cpp b/Source/GmmLib/ULT/GmmAuxTableULT.cpp
12+
index c6a9b537..46a66f50 100644
13+
--- a/Source/GmmLib/ULT/GmmAuxTableULT.cpp
14+
+++ b/Source/GmmLib/ULT/GmmAuxTableULT.cpp
15+
@@ -213,7 +213,14 @@ TEST_F(CTestAuxTable, DISABLED_TestUpdateAuxTableStress)
16+
pGmmULTClientContext->DestroyPageTblMgrObject(mgr);
17+
}
18+
19+
+#if defined(__aarch64__)
20+
+// aarch64 systems have VAs where the 48th bit is set but don't have the same
21+
+// canonize semantics as x86_64 where bits 63-49 need to be the same as bit 48.
22+
+// This causes this test to fault, instead we disable it in aarch64.
23+
+TEST_F(CTestAuxTable, DISABLED_TestAuxTableContent)
24+
+#else
25+
TEST_F(CTestAuxTable, TestAuxTableContent)
26+
+#endif
27+
{
28+
GmmPageTableMgr *mgr = pGmmULTClientContext->CreatePageTblMgrObject(&DeviceCBInt, TT_TYPE::AUXTT);
29+

runtime-devices/intel-gmmlib/autobuild/prepare

+6
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,10 @@ if ab_match_arch loongarch64; then
99
abinfo "Appending -mno-lsx, -mno-lasx to workaround build failure ..."
1010
export CFLAGS="${CFLAGS} -mno-lsx -mno-lasx"
1111
export CXXFLAGS="${CXXFLAGS} -mno-lsx -mno-lasx"
12+
13+
elif ab_match_arch arm64; then
14+
# FIXME:
15+
# cc1plus: error:‘-Wformat-security’ ignored without ‘-Wformat’
16+
export CFLAGS="${CFLAGS} -Wformat"
17+
export CXXFLAGS="${CXXFLAGS} -Wformat"
1218
fi

runtime-devices/intel-gmmlib/spec

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
VER=22.7.0
2+
REL=1
23
SRCS="git::commit=tags/intel-gmmlib-$VER;copy-repo=true::https://github.com/intel/gmmlib"
34
CHKSUMS="SKIP"
45
CHKUPDATE="anitya::id=20342"

0 commit comments

Comments
 (0)