From owner-dev-commits-ports-main@freebsd.org Fri Sep 17 15:00:48 2021 Return-Path: Delivered-To: dev-commits-ports-main@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 96F7B6B416D; Fri, 17 Sep 2021 15:00:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4H9xwJ2CgRz3C5t; Fri, 17 Sep 2021 15:00:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 2DACE16E30; Fri, 17 Sep 2021 15:00:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 18HF0mTJ030426; Fri, 17 Sep 2021 15:00:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 18HF0mVG030425; Fri, 17 Sep 2021 15:00:48 GMT (envelope-from git) Date: Fri, 17 Sep 2021 15:00:48 GMT Message-Id: <202109171500.18HF0mVG030425@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Jan Beich Subject: git: e4234cf102a7 - main - lang/intel-compute-runtime: update to 21.37.20939 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jbeich X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e4234cf102a73e3df15fde03768adcd6813758a1 Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-main@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commits to the main branch of the FreeBSD ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Sep 2021 15:00:48 -0000 The branch main has been updated by jbeich: URL: https://cgit.FreeBSD.org/ports/commit/?id=e4234cf102a73e3df15fde03768adcd6813758a1 commit e4234cf102a73e3df15fde03768adcd6813758a1 Author: Jan Beich AuthorDate: 2021-09-10 14:22:47 +0000 Commit: Jan Beich CommitDate: 2021-09-17 15:00:32 +0000 lang/intel-compute-runtime: update to 21.37.20939 Changes: https://github.com/intel/compute-runtime/compare/21.36.20889...21.37.20939 Reported by: GitHub (watch releases) --- lang/intel-compute-runtime/Makefile | 4 +- lang/intel-compute-runtime/distinfo | 10 ++-- lang/intel-compute-runtime/files/patch-max_freq | 73 ++++--------------------- 3 files changed, 18 insertions(+), 69 deletions(-) diff --git a/lang/intel-compute-runtime/Makefile b/lang/intel-compute-runtime/Makefile index f393ca4d606e..47168dd162bf 100644 --- a/lang/intel-compute-runtime/Makefile +++ b/lang/intel-compute-runtime/Makefile @@ -1,10 +1,10 @@ PORTNAME= compute-runtime -DISTVERSION= 21.36.20889 +DISTVERSION= 21.37.20939 CATEGORIES= lang PKGNAMEPREFIX= intel- PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/ -PATCHFILES+= 4a926516c3ea.patch:-p1 # https://github.com/intel/compute-runtime/pull/361 +PATCHFILES+= aa5a39a2db79.patch:-p1 # https://github.com/intel/compute-runtime/pull/361 MAINTAINER= jbeich@FreeBSD.org COMMENT= OpenCL implementation for Intel HD 5000 (Gen8) or newer diff --git a/lang/intel-compute-runtime/distinfo b/lang/intel-compute-runtime/distinfo index 05cce936a145..1c7b088321da 100644 --- a/lang/intel-compute-runtime/distinfo +++ b/lang/intel-compute-runtime/distinfo @@ -1,5 +1,5 @@ -TIMESTAMP = 1630693229 -SHA256 (intel-compute-runtime-21.36.20889_GH0.tar.gz) = a6865bae0be21f13917da0da73329c0fa5ec7d899b4402947eaea36d4cc86631 -SIZE (intel-compute-runtime-21.36.20889_GH0.tar.gz) = 4569511 -SHA256 (4a926516c3ea.patch) = 1a9c4694dbe892f01a7d3be5c5229b6b3bb34222848d61054f7bdf91134ca60f -SIZE (4a926516c3ea.patch) = 1691 +TIMESTAMP = 1631283767 +SHA256 (intel-compute-runtime-21.37.20939_GH0.tar.gz) = 306fac63d58fd08c9ae1e5fceab8bb89c2c892c6e1579f66c4d936e5b581eb4b +SIZE (intel-compute-runtime-21.37.20939_GH0.tar.gz) = 4576917 +SHA256 (aa5a39a2db79.patch) = fc2290d950fed2bcde8fd6ce13cefb64d90ca348ae364a46a480c1d2509f67f9 +SIZE (aa5a39a2db79.patch) = 1691 diff --git a/lang/intel-compute-runtime/files/patch-max_freq b/lang/intel-compute-runtime/files/patch-max_freq index 8f1d8c50571b..3c5afd6896a6 100644 --- a/lang/intel-compute-runtime/files/patch-max_freq +++ b/lang/intel-compute-runtime/files/patch-max_freq @@ -3,11 +3,11 @@ $ clinfo | fgrep clock Max clock frequency 0MHz ---- shared/source/os_interface/linux/drm_query.cpp.orig 2021-07-16 13:20:44 UTC -+++ shared/source/os_interface/linux/drm_query.cpp -@@ -15,6 +15,13 @@ - - #include +--- shared/source/os_interface/linux/drm_neo.cpp.orig 2021-09-10 14:22:47 UTC ++++ shared/source/os_interface/linux/drm_neo.cpp +@@ -34,6 +34,13 @@ + #include + #include +#if defined(__FreeBSD__) +#include @@ -19,64 +19,13 @@ namespace NEO { namespace IoctlHelper { -@@ -35,6 +42,26 @@ std::string getIoctlParamStringRemaining(int param) { - - int Drm::getMaxGpuFrequency(HardwareInfo &hwInfo, int &maxGpuFrequency) { - maxGpuFrequency = 0; -+#if defined(__FreeBSD__) -+ char name[SPECNAMELEN + 1]; -+ if (!fdevname_r(getFileDescriptor(), name, sizeof(name))) { -+ return 0; -+ } -+ int id; -+ if (!sscanf(name, "drm/%d", &id) && !sscanf(name, "dri/renderD%d", &id)) { -+ return 0; -+ } -+ -+ char oid[MAXPATHLEN + 1]; -+ char max_freq[PAGE_SIZE]; -+ size_t len = sizeof(max_freq); -+ snprintf(oid, sizeof(oid), "sys.class.drm.card%d.gt_max_freq_mhz", id - 128); -+ if (sysctlbyname(oid, &max_freq, &len, NULL, 0)) { -+ return 0; -+ } -+ -+ maxGpuFrequency = std::stoi(max_freq); -+#else - std::string clockSysFsPath = getSysFsPciPath(); - - clockSysFsPath += "/gt_max_freq_mhz"; -@@ -46,6 +73,7 @@ int Drm::getMaxGpuFrequency(HardwareInfo &hwInfo, int - - ifs >> maxGpuFrequency; - ifs.close(); -+#endif - return 0; - } - ---- shared/source/os_interface/linux/drm_query_dg1.cpp.orig 2021-07-16 13:20:44 UTC -+++ shared/source/os_interface/linux/drm_query_dg1.cpp -@@ -16,6 +16,13 @@ - - #include - -+#if defined(__FreeBSD__) -+#include -+#include -+#include -+#include -+#endif -+ - namespace NEO { - class OsContext; - -@@ -37,6 +44,26 @@ std::string getIoctlParamStringRemaining(int param) { +@@ -800,6 +807,26 @@ bool Drm::sysmanQueryEngineInfo() { - int Drm::getMaxGpuFrequency(HardwareInfo &hwInfo, int &maxGpuFrequency) { + int getMaxGpuFrequencyOfDevice(Drm &drm, std::string &sysFsPciPath, int &maxGpuFrequency) { maxGpuFrequency = 0; +#if defined(__FreeBSD__) + char name[SPECNAMELEN + 1]; -+ if (!fdevname_r(getFileDescriptor(), name, sizeof(name))) { ++ if (!fdevname_r(drm.getFileDescriptor(), name, sizeof(name))) { + return 0; + } + int id; @@ -94,10 +43,10 @@ + + maxGpuFrequency = std::stoi(max_freq); +#else - std::string clockSysFsPath = getSysFsPciPath(); + std::string clockSysFsPath = sysFsPciPath + "/gt_max_freq_mhz"; - clockSysFsPath += "/gt_max_freq_mhz"; -@@ -48,6 +75,7 @@ int Drm::getMaxGpuFrequency(HardwareInfo &hwInfo, int + std::ifstream ifs(clockSysFsPath.c_str(), std::ifstream::in); +@@ -809,6 +836,7 @@ int getMaxGpuFrequencyOfDevice(Drm &drm, std::string & ifs >> maxGpuFrequency; ifs.close();