git: 1ee0dd7a8fa6 - main - lang/intel-compute-runtime: update to 22.14.22890

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Sat, 09 Apr 2022 00:42:56 UTC
The branch main has been updated by jbeich:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1ee0dd7a8fa6dd75663ddddc0d5b685ea78e770e

commit 1ee0dd7a8fa6dd75663ddddc0d5b685ea78e770e
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2022-04-01 18:23:59 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2022-04-09 00:41:35 +0000

    lang/intel-compute-runtime: update to 22.14.22890
    
    Changes:        https://github.com/intel/compute-runtime/compare/22.13.22789...22.14.22890
    Reported by:    GitHub (watch releases)
---
 lang/intel-compute-runtime/Makefile             |  2 +-
 lang/intel-compute-runtime/distinfo             |  6 +++---
 lang/intel-compute-runtime/files/patch-no-rebar | 24 ++++++++++++++++++++++++
 3 files changed, 28 insertions(+), 4 deletions(-)

diff --git a/lang/intel-compute-runtime/Makefile b/lang/intel-compute-runtime/Makefile
index bb181ad04477..f3db2fc62a6a 100644
--- a/lang/intel-compute-runtime/Makefile
+++ b/lang/intel-compute-runtime/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	compute-runtime
-DISTVERSION=	22.13.22789
+DISTVERSION=	22.14.22890
 CATEGORIES=	lang
 PKGNAMEPREFIX=	intel-
 PKGNAMESUFFIX=	-${FLAVOR}
diff --git a/lang/intel-compute-runtime/distinfo b/lang/intel-compute-runtime/distinfo
index c39b8f6c3246..954761daeb49 100644
--- a/lang/intel-compute-runtime/distinfo
+++ b/lang/intel-compute-runtime/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1647954805
-SHA256 (intel-compute-runtime-22.13.22789_GH0.tar.gz) = b6edbbeb72e7173a4d6ae78871c8a6f65563160661dd21224c9a0e2bb7286421
-SIZE (intel-compute-runtime-22.13.22789_GH0.tar.gz) = 5252140
+TIMESTAMP = 1648837439
+SHA256 (intel-compute-runtime-22.14.22890_GH0.tar.gz) = 16a0fab74f6732c63cf8f666d40db5bbeecfaaf73061f69fd608a7f058ba1738
+SIZE (intel-compute-runtime-22.14.22890_GH0.tar.gz) = 5290076
diff --git a/lang/intel-compute-runtime/files/patch-no-rebar b/lang/intel-compute-runtime/files/patch-no-rebar
index 10941205ad28..a609570fb9e0 100644
--- a/lang/intel-compute-runtime/files/patch-no-rebar
+++ b/lang/intel-compute-runtime/files/patch-no-rebar
@@ -1,5 +1,14 @@
 Limit resizable BAR to Linux as NEO doesn't use libpci.
 
+level_zero/tools/source/sysman/linux/os_sysman_imp.cpp:17:10: fatal error: 'linux/pci_regs.h' file not found
+#include <linux/pci_regs.h>
+         ^~~~~~~~~~~~~~~~~~
+level_zero/tools/source/sysman/linux/os_sysman_imp.cpp:333:27: error: use of undeclared identifier 'PCI_BRIDGE_CONTROL'
+    unsigned int offset = PCI_BRIDGE_CONTROL; // Bridge control offset in Header of PCI config space
+                          ^
+level_zero/tools/source/sysman/linux/os_sysman_imp.cpp:342:26: error: use of undeclared identifier 'PCI_BRIDGE_CTL_BUS_RESET'
+    resetValue = value | PCI_BRIDGE_CTL_BUS_RESET;
+                         ^
 level_zero/tools/source/sysman/pci/linux/os_pci_imp.cpp:15:10: fatal error: 'linux/pci_regs.h' file not found
 #include <linux/pci_regs.h>
          ^~~~~~~~~~~~~~~~~~
@@ -34,6 +43,21 @@ level_zero/tools/source/sysman/pci/linux/os_pci_imp.cpp:204:55: error: use of un
     this->preadFunction(fdConfig, configMemory.get(), PCI_CFG_SPACE_EXP_SIZE, 0);
                                                       ^
 
+--- level_zero/tools/source/sysman/linux/os_sysman_imp.cpp.orig	2022-04-01 18:23:59 UTC
++++ level_zero/tools/source/sysman/linux/os_sysman_imp.cpp
+@@ -14,7 +14,12 @@
+ 
+ #include "sysman/linux/firmware_util/firmware_util.h"
+ 
++#ifdef __linux__
+ #include <linux/pci_regs.h>
++#else
++#define PCI_BRIDGE_CONTROL 0x3e
++#define PCI_BRIDGE_CTL_BUS_RESET 0x40
++#endif
+ 
+ namespace L0 {
+ 
 --- level_zero/tools/source/sysman/pci/linux/os_pci_imp.cpp.orig	2021-08-11 16:12:33 UTC
 +++ level_zero/tools/source/sysman/pci/linux/os_pci_imp.cpp
 @@ -12,7 +12,9 @@