From owner-freebsd-ports-bugs@freebsd.org Fri Nov 4 10:26:08 2016 Return-Path: Delivered-To: freebsd-ports-bugs@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 04984C26C30 for ; Fri, 4 Nov 2016 10:26:08 +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 CE51FADD 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 uA4AQ7IU089896 for ; Fri, 4 Nov 2016 10:26:07 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 214204] Unable to run OpenCL programs while X11 session is active Date: Fri, 04 Nov 2016 10:26:07 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new 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: danfe@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: x11@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: 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-ports-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Nov 2016 10:26:08 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D214204 Bug ID: 214204 Summary: Unable to run OpenCL programs while X11 session is active Product: Ports & Packages Version: Latest Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: x11@FreeBSD.org Reporter: danfe@FreeBSD.org Assignee: x11@FreeBSD.org Flags: maintainer-feedback?(x11@FreeBSD.org) 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 --=20 You are receiving this mail because: You are the assignee for the bug.=