From owner-freebsd-x11@freebsd.org Fri Nov 4 10:26:07 2016 Return-Path: Delivered-To: freebsd-x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AE004C26C2A for ; Fri, 4 Nov 2016 10:26:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 98094ADA for ; Fri, 4 Nov 2016 10:26:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 9494AC26C29; Fri, 4 Nov 2016 10:26:07 +0000 (UTC) Delivered-To: x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 94345C26C27 for ; Fri, 4 Nov 2016 10:26:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8447EAD9 for ; Fri, 4 Nov 2016 10:26:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id uA4AQ7IQ089896 for ; Fri, 4 Nov 2016 10:26:07 GMT (envelope-from bugzilla-noreply@freebsd.org) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" From: bugzilla-noreply@freebsd.org To: x11@FreeBSD.org Subject: maintainer-feedback requested: [Bug 214204] Unable to run OpenCL programs while X11 session is active Date: Fri, 04 Nov 2016 10:26:07 +0000 X-Bugzilla-Type: request 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: X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: x11@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? Message-ID: In-Reply-To: References: 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.23 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Nov 2016 10:26:07 -0000 Alexey Dokuchaev has reassigned Bugzilla Automation 's request for maintainer-feedback to x11@FreeBSD.org: Bug 214204: Unable to run OpenCL programs while X11 session is active https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D214204 --- Description --- I've decided to play with OpenCL on AMD A8-5550M APU laptop of mine a bit, = so I've read our wiki [1], installed necessary ports, googled for a simple Ope= nCL program source code [2], built it, and run. It ran OK, but only when I switched from my X11 session to console, or if I= run it as root. Being inside X, it reports: > radeon: Failed to get PCI ID, error number -13 > Using platform: Clover > No devices found. Check OpenCL installation! devel/clinfo also behaves this way (finds no devices) and spits out the same error. My user belongs to "video" group, and permissions on /dev/dri/* are sane (default, "rw-" for "video" group). -13 indicates "permission denied" (-EACCES). Apparently, similar (or perha= ps related) bug was discovered and fixed in Mesa back in 2012 [3]. The code in current Mesa is different though. Perhaps FreeBSD needs special treatment,= or original bug resurfaced. I'm not an expert on Mesa codebase but will gladly provide any additional details and happy to test patches. [1] https://wiki.freebsd.org/Graphics/OpenCL [2] http://simpleopencl.blogspot.ru/2013/06/tutorial-simple-start-with-opencl-a= nd-c .html [3] https://lists.freedesktop.org/archives/mesa-commit/2012-July/038068.html