From a74c65c74955326c6399ab3d8176729509ea4b88 Mon Sep 17 00:00:00 2001 From: Lim Siew Hoon Date: Mon, 26 Feb 2024 10:27:30 +0800 Subject: gmmlib: upgrade 22.3.12 -> 22.3.15 Added a patches for new ARL-H device id support: - 0001-Introduce-ARL-H-support-172.patch Remove a patches already merged: - 0001-Add-more-DG2-Device-IDs.patch Signed-off-by: Lim Siew Hoon Signed-off-by: Anuj Mittal --- .../files/0001-Add-more-DG2-Device-IDs.patch | 30 ---------------- .../files/0001-Introduce-ARL-H-support-172.patch | 42 ++++++++++++++++++++++ recipes-graphics/gmmlib/gmmlib_22.3.12.bb | 26 -------------- recipes-graphics/gmmlib/gmmlib_22.3.15.bb | 26 ++++++++++++++ 4 files changed, 68 insertions(+), 56 deletions(-) delete mode 100644 recipes-graphics/gmmlib/files/0001-Add-more-DG2-Device-IDs.patch create mode 100644 recipes-graphics/gmmlib/files/0001-Introduce-ARL-H-support-172.patch delete mode 100644 recipes-graphics/gmmlib/gmmlib_22.3.12.bb create mode 100644 recipes-graphics/gmmlib/gmmlib_22.3.15.bb diff --git a/recipes-graphics/gmmlib/files/0001-Add-more-DG2-Device-IDs.patch b/recipes-graphics/gmmlib/files/0001-Add-more-DG2-Device-IDs.patch deleted file mode 100644 index d1e93114..00000000 --- a/recipes-graphics/gmmlib/files/0001-Add-more-DG2-Device-IDs.patch +++ /dev/null @@ -1,30 +0,0 @@ -From 92d702f885ae7bbfcd5b480c262db805ccc580bf Mon Sep 17 00:00:00 2001 -From: John Machado -Date: Thu, 16 Nov 2023 12:25:16 +0530 -Subject: [PATCH] Add more DG2 Device IDs - -Upstream-Status: Backport [https://github.com/intel/gmmlib/commit/92d702f885ae7bbfcd5b480c262db805ccc580bf] - -Signed-off-by: Signed-off-by: Lim Siew Hoon ---- - Source/inc/common/igfxfmid.h | 4 ++++ - 1 file changed, 4 insertions(+) - -diff --git a/Source/inc/common/igfxfmid.h b/Source/inc/common/igfxfmid.h -index 2b50de2..5ef90f5 100644 ---- a/Source/inc/common/igfxfmid.h -+++ b/Source/inc/common/igfxfmid.h -@@ -1928,6 +1928,10 @@ typedef enum __NATIVEGTTYPE - #define DEV_ID_56B1 0x56B1 - #define DEV_ID_56B2 0x56B2 - #define DEV_ID_56B3 0x56B3 -+#define DEV_ID_56BA 0x56BA -+#define DEV_ID_56BB 0x56BB -+#define DEV_ID_56BC 0x56BC -+#define DEV_ID_56BD 0x56BD - #define DEV_ID_56C0 0x56C0 - #define DEV_ID_56C1 0x56C1 - --- -2.40.1 - diff --git a/recipes-graphics/gmmlib/files/0001-Introduce-ARL-H-support-172.patch b/recipes-graphics/gmmlib/files/0001-Introduce-ARL-H-support-172.patch new file mode 100644 index 00000000..ab4cb178 --- /dev/null +++ b/recipes-graphics/gmmlib/files/0001-Introduce-ARL-H-support-172.patch @@ -0,0 +1,42 @@ +From 2b267b72d6aaa922861b120da9c1543161797046 Mon Sep 17 00:00:00 2001 +From: John Machado +Date: Fri, 9 Feb 2024 13:10:18 +0530 +Subject: [PATCH] Introduce ARL-H support (#172) + +Upstream-Status: Backport [https://github.com/intel/gmmlib/commit/544a8be6f66631e085c86c453aafd78b0e7f5179] +Signed-off-by: Lim Siew Hoon +--- + Source/inc/common/igfxfmid.h | 10 ++++++++++ + 1 file changed, 10 insertions(+) + +diff --git a/Source/inc/common/igfxfmid.h b/Source/inc/common/igfxfmid.h +index 99fc624..19aa505 100644 +--- a/Source/inc/common/igfxfmid.h ++++ b/Source/inc/common/igfxfmid.h +@@ -1966,6 +1966,11 @@ typedef enum __NATIVEGTTYPE + // ARL-S + #define DEV_ID_7D67 0x7D67 + ++// ARL-H ++#define DEV_ID_7D41 0x7D41 ++#define DEV_ID_7D51 0x7D51 ++#define DEV_ID_7DD1 0x7DD1 ++ + #define MGM_HAS 0 + + //#define SDG_HAS 1 //Reserve place for Springdale-G HAS +@@ -2012,6 +2017,11 @@ typedef enum __NATIVEGTTYPE + // Macro to identify ARL-S Device ID + #define GFX_IS_ARL_S(d) ( ( d == DEV_ID_7D67 ) ) + ++// Macro to identify ARL-H Device ID ++#define GFX_IS_ARL_H(d) ( ( d == DEV_ID_7D41 ) || \ ++ ( d == DEV_ID_7D51 ) || \ ++ ( d == DEV_ID_7DD1 )) ++ + //we define the highest cap and lower cap of stepping IDs + #define SI_REV_ID(lo,hi) (lo | hi<<16) + +-- +2.40.1 + diff --git a/recipes-graphics/gmmlib/gmmlib_22.3.12.bb b/recipes-graphics/gmmlib/gmmlib_22.3.12.bb deleted file mode 100644 index 33ada350..00000000 --- a/recipes-graphics/gmmlib/gmmlib_22.3.12.bb +++ /dev/null @@ -1,26 +0,0 @@ -SUMMARY = "Intel(R) Graphics Memory Management Library" -DESCRIPTION = "The Intel(R) Graphics Memory Management Library provides \ -device specific and buffer management for the Intel(R) Graphics \ -Compute Runtime for OpenCL(TM) and the Intel(R) Media Driver for VAAPI." - -LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://LICENSE.md;md5=465fe90caea3edd6a2cecb3f0c28a654" - -SRC_URI = " \ - git://github.com/intel/gmmlib.git;protocol=https;branch=master \ - file://0001-Add-more-DG2-Device-IDs.patch \ - " - -SRCREV = "fa8ac6d3859ea78b721ce08afa6cd50591ad4d68" - -S = "${WORKDIR}/git" - -COMPATIBLE_HOST:x86-x32 = "null" - -UPSTREAM_CHECK_GITTAGREGEX = "^intel-gmmlib-(?P(\d+(\.\d+)+))$" - -inherit pkgconfig cmake - -EXTRA_OECMAKE += "-DRUN_TEST_SUITE=OFF" - -BBCLASSEXTEND = "native nativesdk" diff --git a/recipes-graphics/gmmlib/gmmlib_22.3.15.bb b/recipes-graphics/gmmlib/gmmlib_22.3.15.bb new file mode 100644 index 00000000..5928fb86 --- /dev/null +++ b/recipes-graphics/gmmlib/gmmlib_22.3.15.bb @@ -0,0 +1,26 @@ +SUMMARY = "Intel(R) Graphics Memory Management Library" +DESCRIPTION = "The Intel(R) Graphics Memory Management Library provides \ +device specific and buffer management for the Intel(R) Graphics \ +Compute Runtime for OpenCL(TM) and the Intel(R) Media Driver for VAAPI." + +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE.md;md5=465fe90caea3edd6a2cecb3f0c28a654" + +SRC_URI = " \ + git://github.com/intel/gmmlib.git;protocol=https;branch=master \ + file://0001-Introduce-ARL-H-support-172.patch \ + " + +SRCREV = "5fb4180e22695ad4e3c155cf680119913c9f44bc" + +S = "${WORKDIR}/git" + +COMPATIBLE_HOST:x86-x32 = "null" + +UPSTREAM_CHECK_GITTAGREGEX = "^intel-gmmlib-(?P(\d+(\.\d+)+))$" + +inherit pkgconfig cmake + +EXTRA_OECMAKE += "-DRUN_TEST_SUITE=OFF" + +BBCLASSEXTEND = "native nativesdk" -- cgit v1.2.3-54-g00ecf