From owner-svn-ports-all@freebsd.org Fri Jan 24 16:06:05 2020 Return-Path: Delivered-To: svn-ports-all@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 78F8D1F407A; Fri, 24 Jan 2020 16:06:05 +0000 (UTC) (envelope-from jbeich@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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4843sT2fQGz4CVH; Fri, 24 Jan 2020 16:06:05 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 51D7829BE5; Fri, 24 Jan 2020 16:06:05 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 00OG65MR018853; Fri, 24 Jan 2020 16:06:05 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 00OG64ig018851; Fri, 24 Jan 2020 16:06:04 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <202001241606.00OG64ig018851@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Fri, 24 Jan 2020 16:06:04 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r523972 - in head/lang/intel-compute-runtime: . files X-SVN-Group: ports-head X-SVN-Commit-Author: jbeich X-SVN-Commit-Paths: in head/lang/intel-compute-runtime: . files X-SVN-Commit-Revision: 523972 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Jan 2020 16:06:05 -0000 Author: jbeich Date: Fri Jan 24 16:06:04 2020 New Revision: 523972 URL: https://svnweb.freebsd.org/changeset/ports/523972 Log: lang/intel-compute-runtime: update to 20.03.15346 Changes: https://github.com/intel/compute-runtime/compare/20.02.15268...20.03.15346 Reported by: GitHub (watch releases) Modified: head/lang/intel-compute-runtime/Makefile (contents, props changed) head/lang/intel-compute-runtime/distinfo (contents, props changed) head/lang/intel-compute-runtime/files/patch-userptr (contents, props changed) Modified: head/lang/intel-compute-runtime/Makefile ============================================================================== --- head/lang/intel-compute-runtime/Makefile Fri Jan 24 15:52:06 2020 (r523971) +++ head/lang/intel-compute-runtime/Makefile Fri Jan 24 16:06:04 2020 (r523972) @@ -1,7 +1,7 @@ # $FreeBSD$ PORTNAME= compute-runtime -DISTVERSION= 20.02.15268 +DISTVERSION= 20.03.15346 CATEGORIES= lang PKGNAMEPREFIX= intel- @@ -17,7 +17,7 @@ ONLY_FOR_ARCHS_REASON= Only Intel GPUs on x86 are supp LIB_DEPENDS= libigc.so:devel/intel-graphics-compiler \ libigdgmm.so:multimedia/gmmlib -USES= cmake compiler:c++14-lang pkgconfig +USES= cmake compiler:c++14-lang localbase:ldflags pkgconfig USE_GITHUB= yes USE_LDCONFIG= yes GH_ACCOUNT= intel Modified: head/lang/intel-compute-runtime/distinfo ============================================================================== --- head/lang/intel-compute-runtime/distinfo Fri Jan 24 15:52:06 2020 (r523971) +++ head/lang/intel-compute-runtime/distinfo Fri Jan 24 16:06:04 2020 (r523972) @@ -1,3 +1,3 @@ -TIMESTAMP = 1578394678 -SHA256 (intel-compute-runtime-20.02.15268_GH0.tar.gz) = e5b2893b7e129ad005b3b9b4ec514343c1f44beca670d5a5d65d0dc6e01cf04d -SIZE (intel-compute-runtime-20.02.15268_GH0.tar.gz) = 2664394 +TIMESTAMP = 1579087635 +SHA256 (intel-compute-runtime-20.03.15346_GH0.tar.gz) = 6732e7b63ec0c32782e136f6c5ed3276c92c68616240b11183b7cc41237f92a6 +SIZE (intel-compute-runtime-20.03.15346_GH0.tar.gz) = 2671869 Modified: head/lang/intel-compute-runtime/files/patch-userptr ============================================================================== --- head/lang/intel-compute-runtime/files/patch-userptr Fri Jan 24 15:52:06 2020 (r523971) +++ head/lang/intel-compute-runtime/files/patch-userptr Fri Jan 24 16:06:04 2020 (r523972) @@ -38,16 +38,16 @@ frame #5: 0x000000080104b4e5 libigdrcl.so`NEO::DrmMemo 60 } 61 } ---- runtime/os_interface/linux/drm_memory_manager.cpp.orig 2019-11-29 14:23:34 UTC +--- runtime/os_interface/linux/drm_memory_manager.cpp.orig 2020-01-15 11:27:15 UTC +++ runtime/os_interface/linux/drm_memory_manager.cpp @@ -141,7 +141,17 @@ NEO::BufferObject *DrmMemoryManager::allocUserptr(uint userptr.flags = static_cast(flags); - if (this->drm->ioctl(DRM_IOCTL_I915_GEM_USERPTR, &userptr) != 0) { + if (this->getDrm(rootDeviceIndex).ioctl(DRM_IOCTL_I915_GEM_USERPTR, &userptr) != 0) { - return nullptr; + if (errno == ENODEV && userptr.flags == 0) { + userptr.flags = I915_USERPTR_UNSYNCHRONIZED; -+ if (this->drm->ioctl(DRM_IOCTL_I915_GEM_USERPTR, &userptr) != 0) { ++ if (this->getDrm(rootDeviceIndex).ioctl(DRM_IOCTL_I915_GEM_USERPTR, &userptr) != 0) { + if (geteuid() != 0) { + printDebugString(true, stderr, "%s", "ioctl(I915_GEM_USERPTR) failed. Try running as root but expect poor stability.\n"); + } @@ -58,4 +58,4 @@ frame #5: 0x000000080104b4e5 libigdrcl.so`NEO::DrmMemo + } } - auto res = new (std::nothrow) BufferObject(this->drm, userptr.handle, rootDeviceIndex); + auto res = new (std::nothrow) BufferObject(&getDrm(rootDeviceIndex), userptr.handle, rootDeviceIndex);