From owner-freebsd-x11@freebsd.org Thu Nov 5 06:12:15 2020 Return-Path: Delivered-To: freebsd-x11@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 CC2CC44BDDB for ; Thu, 5 Nov 2020 06:12:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4CRY8H50QLz4ptf for ; Thu, 5 Nov 2020 06:12:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id AB8FA44BE3C; Thu, 5 Nov 2020 06:12:15 +0000 (UTC) Delivered-To: x11@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 AB5A644C1FB for ; Thu, 5 Nov 2020 06:12:15 +0000 (UTC) (envelope-from bugzilla-noreply@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 "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CRY8H31k3z4ppR for ; Thu, 5 Nov 2020 06:12:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 4769C1A80E for ; Thu, 5 Nov 2020 06:12:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 0A56CFvj083081 for ; Thu, 5 Nov 2020 06:12:15 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 0A56CFa1083080 for x11@FreeBSD.org; Thu, 5 Nov 2020 06:12:15 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: x11@FreeBSD.org Subject: [Bug 250522] After upgrading to 12.2-BETA3 and mesa-dri-20.2.0_1 OpenCL (clover) stopped working Date: Thu, 05 Nov 2020 06:12:14 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: shamaz.mazum@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: x11@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Nov 2020 06:12:15 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D250522 --- Comment #6 from shamaz.mazum@gmail.com --- > Does userland print anything relevant? I checked if OpenCL functions return any errors. No, they do not. Differenc= e in output of clinfo between versions: --- test1 2020-11-05 08:44:01.248555000 +0300 +++ test2 2020-11-05 08:46:25.847840000 +0300 @@ -1,18 +1,18 @@ Number of platforms 1 Platform Name Clover Platform Vendor Mesa - Platform Version OpenCL 1.1 Mesa 19.0.8 + Platform Version OpenCL 1.1 Mesa 20.2.0 Platform Profile FULL_PROFILE Platform Extensions cl_khr_icd Platform Extensions function suffix MESA Platform Name Clover Number of devices 1 - Device Name Radeon RX 580 Series (POLARIS10, DRM 3.23.0, 12.2-RELEASE, LLVM 8.0.1) + Device Name Radeon RX 580 Series (POLARIS10, DRM 3.23.0, 12.2-RELEASE, LLVM 10.0.1) Device Vendor AMD Device Vendor ID 0x1002 - Device Version OpenCL 1.1 Mesa 19.0.8 - Driver Version 19.0.8 + Device Version OpenCL 1.1 Mesa 20.2.0 + Driver Version 20.2.0 Device OpenCL C Version OpenCL C 1.1=20 Device Type GPU Device Profile FULL_PROFILE @@ -29,17 +29,10 @@ short 8 / 8=20=20=20=20= =20=20=20 int 4 / 4=20=20=20=20= =20=20=20 long 2 / 2=20=20=20=20= =20=20=20 - half 8 / 8=20=20=20=20= =20=20=20 (cl_khr_fp16) + half 0 / 0 (n/a) float 4 / 4=20=20=20=20= =20=20=20 double 2 / 2=20=20=20=20= =20=20=20 (cl_khr_fp64) - Half-precision Floating-point support (cl_khr_fp16) - Denormals No - Infinity and NANs Yes - Round to nearest Yes - Round to zero No - Round to infinity No - IEEE754-2008 fused multiply-add No - Support is emulated in software No + Half-precision Floating-point support (n/a) Single-precision Floating-point support (core) Denormals No Infinity and NANs Yes @@ -69,7 +62,7 @@ Local memory type Local Local memory size 32768 (32KiB) Max number of constant args 16 - Max constant buffer size 2147483647 (2GiB) + Max constant buffer size 2147483392 (2GiB) Max size of kernel argument 1024 Queue properties=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 Out-of-order execution No @@ -78,33 +71,4 @@ Execution capabilities=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20 Run OpenCL kernels Yes Run native kernels No - Device Extensions=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20 cl_khr_byte_addressable_store cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_fp64 cl_khr_fp16 - -NULL platform behavior - clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...) Clover - clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...) Success [MESA] - clCreateContext(NULL, ...) [default] Success [MESA] - clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT) Success (1) - Platform Name Clover - Device Name Radeon RX 580 Series (POLARIS10, DRM 3.23.0, 12.2-RELEASE, LLVM 8.0.1) - clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU) No devices found in platform - clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU) Success (1) - Platform Name Clover - Device Name Radeon RX 580 Series (POLARIS10, DRM 3.23.0, 12.2-RELEASE, LLVM 8.0.1) - clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR) No devices fo= und in platform - clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM) No devices found in platform - clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL) Success (1) - Platform Name Clover - Device Name Radeon RX 580 Series (POLARIS10, DRM 3.23.0, 12.2-RELEASE, LLVM 8.0.1) - -ICD loader properties - ICD loader Name OpenCL ICD Loader - ICD loader Vendor OCL Icd free software - ICD loader Version 2.2.12 - ICD loader Profile OpenCL 2.2 - NOTE: your OpenCL library declares to support OpenCL 2.2, - but it seems to support up to OpenCL 1.0 only. - NOTE: your OpenCL library only supports OpenCL 1.0, - but some installed platforms support OpenCL 1.1. - Programs using 1.1 features may crash - or behave unexpectedly + Device Extensions=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20 cl_khr_byte_addressable_store cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_fp64 Tried to replace clCreateCommandQueue() with modern clCreateCommandQueueWithProperties() without any success. I am reluctant to upgrade to CURRENT, but I can try to cherry-pick related linux KPI commits on top of releng/12.2 if you can say which commits are relevant. Btw, upgrading mesa-libs and mesa-dri, but keeping the old version of clover seems to be an option. --=20 You are receiving this mail because: You are the assignee for the bug.=