From owner-freebsd-x11@freebsd.org Sun Mar 12 05:32:09 2017 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 6CC74CF9081 for ; Sun, 12 Mar 2017 05:32:09 +0000 (UTC) (envelope-from davshao@gmail.com) Received: from mail-qk0-x22f.google.com (mail-qk0-x22f.google.com [IPv6:2607:f8b0:400d:c09::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 271A61CB4 for ; Sun, 12 Mar 2017 05:32:09 +0000 (UTC) (envelope-from davshao@gmail.com) Received: by mail-qk0-x22f.google.com with SMTP id v125so199709139qkh.2 for ; Sat, 11 Mar 2017 21:32:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=KRsqBc90HzwLCwaxVy4wFZ9FjmhNTEUaFiHAXCPZfNc=; b=r5QiCmIdVE5CzLnaEm6tCvT6hwt8C1vMsUuiUrmrZRsndiB6atbvnF5C2+8xxZhTok vPwrgLBXmCgH6vdchdWq9AZADR3wNmeqaXVmyeOxprXJn1YJK8NAlgD/HWCkpE7Ut9me +c9zk0+l2eOjsC+/bnrFo3kMvwmI1W4Jxb+rHkyx1gzYCVQq8D1/P6+cGlNNueKVf7QW ljFuikbIOrOx72WO08ZIC/bJGpi8xYAkJ63HlNeOIEof7kLXL3qWe3sOO372++AgLTlJ UeH5rsfa/B9Mb1Q9qhLaKKaeTng07pzAwuKRZpacMUPvNuiNYILA84A/Fx8RwJ0iwbWc UPBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=KRsqBc90HzwLCwaxVy4wFZ9FjmhNTEUaFiHAXCPZfNc=; b=r4gPPF0vKuSBO1aSEawmUwXm2zwiATirkJ0PdhhTLOMND+yiEUPG7fg4kMX5R1ANfp gc6E1AkEqHan3dursS8PO0i4j1+Ja1jMX4s4a93iaLzKrOicLFMXcpS8dIeH2GQcVzlA lmI++dWow7IxTJuHs3tjAQ+J7A276Q/VDSmBfNOfTSD+laiBBuvUq3/nPNVhZQuFeUZA NJDslyojqu6r6SrpwaVasqAhgpj5x7418YofQfGuVEJpl5pqIdyqkwMhldf6ZpAFUSL5 z0SJSjGr9RYmMInoeSW3UXbYE28lFoG2lSVx6iHWY9QNfb7vooDYkjFzRjp6Oyoauijz D3WA== X-Gm-Message-State: AFeK/H08uIN6tU3omM9cBCDXAHgz/2dPW+i10tIsQXjn8/80kxAHm4AhPGQpMr+AzBp7GDQ/bhFR4YgoD/w5TQ== X-Received: by 10.55.100.73 with SMTP id y70mr28813791qkb.62.1489296727990; Sat, 11 Mar 2017 21:32:07 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.135.129 with HTTP; Sat, 11 Mar 2017 21:32:07 -0800 (PST) From: David Shao Date: Sat, 11 Mar 2017 21:32:07 -0800 Message-ID: Subject: libdrm and xf86drm.c Re: Upstreaming Proposal To: freebsd-x11@freebsd.org Content-Type: text/plain; charset=UTF-8 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: Sun, 12 Mar 2017 05:32:09 -0000 TL;DR Stop trying to use libdevq and just copy from it a couple of functions. This is what needs to be done to upstream to libdrm FreeBSD changes to xf86drm.c. Working code implementing these changes exists and has been published. Given a file descriptor fd, in the case of FreeBSD to a device such as /dev/dri/card0 or /dev/dri/controlD64, and assuming this fd is for some PCI graphics device, libdrm's most complicated query is to fill in the fields of a struct listing the numerical values for the devices's domain, bus, device (slot), function, vendor id, device id, subvendor id, subdevice id, and revision id. The kernel knows this information. The cleanest implementation is OpenBSD's which simply defines an ioctl and a struct whose fields the kernel simply fills in. Especially for kernel drm, unused ioctl numbers seems scarce, so this approach has not been taken in general for all OSes. If one is not going to ioctl an file descriptor, what about fstat-ing it? From fstat one can obtain at least three pieces of information for the underlying device: major number, minor number, and the device name. The only reason major and minor manipulations occur in xf86drm.c is for Linux, and that is because these numbers are used to lookup entries under /sys. The BSDs should basically IGNORE all of the major / minor code and concentrate on the device name. For FreeBSD the code should parse the device name taking care to extract the device name number at the end, for example the 0 from /dev/dri/card0. Unfortunately the PCI device information is split into two separate branches of the sysctl tree, part under hw.dri and part under dev.vgapci. The device name number (0) should be used to look up under hw.dri.0 the PCI device's domain, bus, slot, and function. Then this information should be dragged over to the dev.vgapci branch to search for the matching entry with the same values, after which one reads off the vendor, device, subvendor, and subdevice ids (and guesses the revision id). The code to implement this is not that difficult, just a series of snprintf, sscanf, and sysctl calls. Unfortunately FreeBSD ports keeps insisting that what is the content of only two fairly trivial functions should be obtained only by linking with the libdevq project. This is what makes it impossible for the patches to be upstreamed, first to mesa3d and now to libdrm. The current drmBSDDeviceNameHack() misses the point because of this need to hammer the code to use libdevq. There are hardcoded constants and strings that already are defined in more general form in libdrm. (And now that drm-next may have introduced render nodes, how does "/dev/dri/renderD128" compare as a string to "/dev/dri/controlD64"?) The FreeBSD ports patch ignores the perfectly fine string comparison code already in libdrm to determine the type of node in static int drmGetNodeType(const char *name) { if (strncmp(name, DRM_PRIMARY_MINOR_NAME, sizeof(DRM_PRIMARY_MINOR_NAME) - 1) == 0) return DRM_NODE_PRIMARY; if (strncmp(name, DRM_CONTROL_MINOR_NAME, sizeof(DRM_CONTROL_MINOR_NAME ) - 1) == 0) return DRM_NODE_CONTROL; if (strncmp(name, DRM_RENDER_MINOR_NAME, sizeof(DRM_RENDER_MINOR_NAME) - 1) == 0) return DRM_NODE_RENDER; return -EINVAL; } But what is most disheartening about the present drmBSDDeviceNameHack() is that it fails to return separately for its caller the one piece of information that actually matters for FreeBSD: the device name number, probably 0. Instead it just jams this number onto the hacked path name returned to the caller expecting the caller to parse this name yet again for the number. Given that libdrm already has code to determine the node type, maybe try something like this: static int drmBSDDeviceNameHack(const char *path, char *hacked_path, int length, int node_type) { int start, number, base; const char *errstr; base = drmGetMinorBase(node_type); if (node_type == DRM_NODE_RENDER) { start = sizeof(DRM_RENDER_MINOR_NAME) - 1; } else if (node_type == DRM_NODE_CONTROL) { start = sizeof(DRM_CONTROL_MINOR_NAME) - 1; } else { start = sizeof(DRM_PRIMARY_MINOR_NAME) - 1; } number = strtonum(&(path[start]), 0, 256, &errstr) - base; snprintf(hacked_path, length, "card%i", number); return number; } Or perhaps change the libdrm node type parsing code to do all the parsing in one shot. Having obtained this device name number 0, we change to: #if defined (__FreeBSD__) || defined(__DragonFly__) ret = drmProcessPciDevice(&d, node, node_type, maj, number, true, flags); +#else instead of using the useless minor number min. Now because the domain, bus, slot, and function numbers need to be dragged over to search dev.vgapci, we need an internal API change of the form: #if defined(__FreeBSD__) static int drmParsePciDeviceInfoBSD(int maj, int min, drmPciDeviceInfoPtr device, drmPciBusInfoPtr info, uint32_t flags) #else static int drmParsePciDeviceInfo(int maj, int min, drmPciDeviceInfoPtr device, uint32_t flags) Working patches tested on an Intel IvyBridge integrated graphics machine can be found in the pkgsrc-wip project libdrm-dfbsd, patch name patch-ab. This patch is bloated up by a tremendous number of drmMsg debugging lines I added and also by code to deal with DragonFly not having a well-defined idea of a major number. From owner-freebsd-x11@freebsd.org Sun Mar 12 21:00:19 2017 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 5C68BD09AD7 for ; Sun, 12 Mar 2017 21:00:19 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 49D4D12A8 for ; Sun, 12 Mar 2017 21:00:19 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id 3CB42D09AD3; Sun, 12 Mar 2017 21:00:19 +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 3C61DD09AD2 for ; Sun, 12 Mar 2017 21:00:19 +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 1A86112A2 for ; Sun, 12 Mar 2017 21:00:19 +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 v2CL01MX012203 for ; Sun, 12 Mar 2017 21:00:18 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Message-Id: <201703122100.v2CL01MX012203@kenobi.freebsd.org> From: bugzilla-noreply@FreeBSD.org To: x11@FreeBSD.org Subject: Problem reports for x11@FreeBSD.org that need special attention Date: Sun, 12 Mar 2017 21:00:18 +0000 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: Sun, 12 Mar 2017 21:00:19 -0000 To view an individual PR, use: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=(Bug Id). The following is a listing of current problems submitted by FreeBSD users, which need special attention. These represent problem reports covering all versions including experimental development code and obsolete releases. Status | Bug Id | Description ------------+-----------+--------------------------------------------------- In Progress | 188833 | [suspend/resume] Suspend/resume with Intel GMA HD Open | 211797 | x11-fonts/xfs: Add CPE information 2 problems total for which you should take action. From owner-freebsd-x11@freebsd.org Mon Mar 13 19:48:47 2017 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 236CAD0A43A for ; Mon, 13 Mar 2017 19:48:47 +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 0DBF718E7 for ; Mon, 13 Mar 2017 19:48:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 0A4F9D0A437; Mon, 13 Mar 2017 19:48:47 +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 09F43D0A436 for ; Mon, 13 Mar 2017 19:48:47 +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 D4B2F18E5 for ; Mon, 13 Mar 2017 19:48:46 +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 v2DJmk2u049993 for ; Mon, 13 Mar 2017 19:48:46 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 217771] lang/beignet: update to 1.3.1 Date: Mon, 13 Mar 2017 19:48:46 +0000 X-Bugzilla-Type: request X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: patch 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: Mon, 13 Mar 2017 19:48:47 -0000 Jan Beich (mail not working) has reassigned Bugzilla Automation 's request for maintainer-feedback to x11@FreeBSD.org: Bug 217771: lang/beignet: update to 1.3.1 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D217771 --- Description --- For upstream changes see URL bugzilla field, for downstream changes see com= mit message (in the patch). Build testing: 10.3 i386 - http://sprunge.us/MSbN 10.3 amd64 - http://sprunge.us/FBaG 11.0 i386 - http://sprunge.us/VLTY 11.0 amd64 - http://sprunge.us/BMZJ /head@r314638 amd64 - http://sprunge.us/ADLP 10.3 i386 + TEST=3Don - http://sprunge.us/XdKA 10.3 amd64 + FP64=3Don + OPENCL20=3Doff - http://sprunge.us/UhYb 11.0 amd64 + TEST=3Don - http://sprunge.us/Seji Runtime testing (drm-next): $ clinfo | fgrep -i version Platform Version OpenCL 2.0 beignet 1.3 Device Version OpenCL 2.0 beignet 1.3 Driver Version 1.3 Device OpenCL C Version OpenCL C 2.0 beignet 1.3 SPIR versions 1.2 ICD loader Version 2.2.11 $ clpeak Platform: Intel Gen OCL Driver Device: Intel(R) HD Graphics Skylake Desktop GT2 Driver version : 1.3 (FreeBSD) Compute units : 24 Clock frequency : 1000 MHz Global memory bandwidth (GBPS) float : 29.06 float2 : 28.91 float4 : 31.40 float8 : 32.07 float16 : 30.10 Single-precision compute (GFLOPS) float : 422.04 float2 : 438.56 float4 : 438.05 float8 : 436.74 float16 : 434.20 No double precision support! Skipped Transfer bandwidth (GBPS) enqueueWriteBuffer : 8.68 enqueueReadBuffer : 11.32 enqueueMapBuffer(for read) : 40215.05 memcpy from mapped ptr : 11.48 enqueueUnmap(after write) : 43296.04 memcpy to mapped ptr : 10.58 Kernel launch latency : 29.47 us Nothing to output ! From owner-freebsd-x11@freebsd.org Mon Mar 13 19:48:47 2017 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 4563BD0A43E for ; Mon, 13 Mar 2017 19:48:47 +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 2F00F18E9 for ; Mon, 13 Mar 2017 19:48:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 21492D0A439; Mon, 13 Mar 2017 19:48:47 +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 20F9FD0A438 for ; Mon, 13 Mar 2017 19:48:47 +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 07B7A18E6 for ; Mon, 13 Mar 2017 19:48:47 +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 v2DJmk2w049993 for ; Mon, 13 Mar 2017 19:48:46 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: x11@FreeBSD.org Subject: [Bug 217771] lang/beignet: update to 1.3.1 Date: Mon, 13 Mar 2017 19:48:46 +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: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jbeich@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 bug_file_loc op_sys bug_status keywords 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-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: Mon, 13 Mar 2017 19:48:47 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D217771 Bug ID: 217771 Summary: lang/beignet: update to 1.3.1 Product: Ports & Packages Version: Latest Hardware: Any URL: https://cgit.freedesktop.org/beignet/log/?h=3DRelease_v1 .3.1 OS: Any Status: New Keywords: patch Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: x11@FreeBSD.org Reporter: jbeich@FreeBSD.org Flags: maintainer-feedback?(x11@FreeBSD.org) Assignee: x11@FreeBSD.org For upstream changes see URL bugzilla field, for downstream changes see com= mit message (in the patch). Build testing: 10.3 i386 - http://sprunge.us/MSbN 10.3 amd64 - http://sprunge.us/FBaG 11.0 i386 - http://sprunge.us/VLTY 11.0 amd64 - http://sprunge.us/BMZJ /head@r314638 amd64 - http://sprunge.us/ADLP 10.3 i386 + TEST=3Don - http://sprunge.us/XdKA 10.3 amd64 + FP64=3Don + OPENCL20=3Doff - http://sprunge.us/UhYb 11.0 amd64 + TEST=3Don - http://sprunge.us/Seji Runtime testing (drm-next): $ clinfo | fgrep -i version Platform Version OpenCL 2.0 beignet 1.3 Device Version OpenCL 2.0 beignet 1.3 Driver Version 1.3 Device OpenCL C Version OpenCL C 2.0 beignet 1.3 SPIR versions 1.2 ICD loader Version 2.2.11 $ clpeak Platform: Intel Gen OCL Driver Device: Intel(R) HD Graphics Skylake Desktop GT2 Driver version : 1.3 (FreeBSD) Compute units : 24 Clock frequency : 1000 MHz Global memory bandwidth (GBPS) float : 29.06 float2 : 28.91 float4 : 31.40 float8 : 32.07 float16 : 30.10 Single-precision compute (GFLOPS) float : 422.04 float2 : 438.56 float4 : 438.05 float8 : 436.74 float16 : 434.20 No double precision support! Skipped Transfer bandwidth (GBPS) enqueueWriteBuffer : 8.68 enqueueReadBuffer : 11.32 enqueueMapBuffer(for read) : 40215.05 memcpy from mapped ptr : 11.48 enqueueUnmap(after write) : 43296.04 memcpy to mapped ptr : 10.58 Kernel launch latency : 29.47 us Nothing to output ! --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-x11@freebsd.org Mon Mar 13 19:49:43 2017 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 4C61ED0A4F2 for ; Mon, 13 Mar 2017 19:49:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 3677119D4 for ; Mon, 13 Mar 2017 19:49:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 35C51D0A4F1; Mon, 13 Mar 2017 19:49:43 +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 35691D0A4F0 for ; Mon, 13 Mar 2017 19:49:43 +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 2542519D3 for ; Mon, 13 Mar 2017 19:49:43 +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 v2DJnhXP051168 for ; Mon, 13 Mar 2017 19:49:43 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: x11@FreeBSD.org Subject: [Bug 217771] lang/beignet: update to 1.3.1 Date: Mon, 13 Mar 2017 19:49:43 +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: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jbeich@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: attachments.created 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.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: Mon, 13 Mar 2017 19:49:43 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D217771 --- Comment #1 from Jan Beich (mail not working) --- Created attachment 180792 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D180792&action= =3Dedit update, v1 --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-x11@freebsd.org Mon Mar 13 20:22:32 2017 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 98502D0A368 for ; Mon, 13 Mar 2017 20:22:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 8221D1245 for ; Mon, 13 Mar 2017 20:22:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 817D8D0A367; Mon, 13 Mar 2017 20:22:32 +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 8120AD0A366 for ; Mon, 13 Mar 2017 20:22:32 +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 70A021244 for ; Mon, 13 Mar 2017 20:22:32 +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 v2DKMWVW044103 for ; Mon, 13 Mar 2017 20:22:32 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: x11@FreeBSD.org Subject: [Bug 217635] lang/beignet: crash in get_program_global_data() after 1.3.0 update Date: Mon, 13 Mar 2017 20:22:32 +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: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jbeich@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: 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.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: Mon, 13 Mar 2017 20:22:32 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D217635 --- Comment #4 from Jan Beich (mail not working) --- With bug 217771 in scope comment 0 is limited to OPENCL20=3Doff while comme= nt 1 no longer happens. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-x11@freebsd.org Mon Mar 13 20:24:56 2017 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 DCDF4D0A3CA for ; Mon, 13 Mar 2017 20:24:56 +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 C671012DE for ; Mon, 13 Mar 2017 20:24:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id C5CF0D0A3C9; Mon, 13 Mar 2017 20:24:56 +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 C56E5D0A3C8 for ; Mon, 13 Mar 2017 20:24:56 +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 B515012DD for ; Mon, 13 Mar 2017 20:24:56 +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 v2DKOu98047113 for ; Mon, 13 Mar 2017 20:24:56 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: x11@FreeBSD.org Subject: [Bug 213551] lang/beignet: fix for utests compilation Date: Mon, 13 Mar 2017 20:24:56 +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: jbeich@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: DUPLICATE X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: x11@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: resolution bug_status 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.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: Mon, 13 Mar 2017 20:24:57 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D213551 Jan Beich (mail not working) changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |DUPLICATE Status|New |Closed --- Comment #2 from Jan Beich (mail not working) --- utests aren't built by default. Bug 217771 tries a bit harder to make them = work but uses aligned_alloc (C11) to avoid POSIX weirdness. $ make clean test WITH=3DTEST BATCH=3D *** This bug has been marked as a duplicate of bug 217771 *** --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-x11@freebsd.org Mon Mar 13 20:24:57 2017 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 4382ED0A3CF for ; Mon, 13 Mar 2017 20:24:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 2DB6D12E1 for ; Mon, 13 Mar 2017 20:24:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 2D1CFD0A3CD; Mon, 13 Mar 2017 20:24:57 +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 2CCD6D0A3CC for ; Mon, 13 Mar 2017 20:24:57 +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 1CE0512E0 for ; Mon, 13 Mar 2017 20:24:57 +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 v2DKOu9C047113 for ; Mon, 13 Mar 2017 20:24:56 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: x11@FreeBSD.org Subject: [Bug 217771] lang/beignet: update to 1.3.1 Date: Mon, 13 Mar 2017 20:24:56 +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: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jbeich@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: cc 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.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: Mon, 13 Mar 2017 20:24:57 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D217771 Jan Beich (mail not working) changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |igor.arabesc.pavlov@gmail.c | |om --- Comment #2 from Jan Beich (mail not working) --- *** Bug 213551 has been marked as a duplicate of this bug. *** --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-x11@freebsd.org Mon Mar 13 20:47:31 2017 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 89463D0A808 for ; Mon, 13 Mar 2017 20:47:31 +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 72F851CCF for ; Mon, 13 Mar 2017 20:47:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 6F28ED0A807; Mon, 13 Mar 2017 20:47:31 +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 6ECFDD0A806 for ; Mon, 13 Mar 2017 20:47:31 +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 5ECA21CCE for ; Mon, 13 Mar 2017 20:47:31 +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 v2DKlVTt094858 for ; Mon, 13 Mar 2017 20:47:31 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: x11@FreeBSD.org Subject: [Bug 217771] lang/beignet: update to 1.3.1 Date: Mon, 13 Mar 2017 20:47:31 +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: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: rezny@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: cc 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.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: Mon, 13 Mar 2017 20:47:31 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D217771 Matthew Rezny changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rezny@freebsd.org --- Comment #3 from Matthew Rezny --- Is there any reason that OpenCL 2.0 should not always be enabled? It should= not be a problem to do so for 1.3.1. Enable OpenCL 2.0 only where supported "This allows a single beignet binary to both offer 2.0 where available, and still work on older hardware." --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-x11@freebsd.org Mon Mar 13 20:50:04 2017 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 5269CD0A95E for ; Mon, 13 Mar 2017 20:50:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 3585E1FB3 for ; Mon, 13 Mar 2017 20:50:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 31A0DD0A95D; Mon, 13 Mar 2017 20:50:04 +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 313ADD0A95C for ; Mon, 13 Mar 2017 20:50:04 +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 20A4D1FA6 for ; Mon, 13 Mar 2017 20:50:04 +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 v2DKo3m4098129 for ; Mon, 13 Mar 2017 20:50:04 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: x11@FreeBSD.org Subject: [Bug 217635] lang/beignet: crash in get_program_global_data() after 1.3.0 update Date: Mon, 13 Mar 2017 20:50:04 +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: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: rezny@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: 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.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: Mon, 13 Mar 2017 20:50:04 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D217635 --- Comment #5 from Matthew Rezny --- (In reply to Jan Beich (mail not working) from comment #4) I was going to suggest trying 1.3.1 since it was released today but it appe= ars you are ahead of me. If I understand your last reply correctly, there is no problem and no need for the patch if beignet is built with OpenCL 2.0 suppo= rt enabled, correct? --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-x11@freebsd.org Mon Mar 13 21:10:25 2017 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 DBE64D0A642 for ; Mon, 13 Mar 2017 21:10:25 +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 C5AE21EDE for ; Mon, 13 Mar 2017 21:10:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id C2240D0A641; Mon, 13 Mar 2017 21:10:25 +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 C1C6AD0A640 for ; Mon, 13 Mar 2017 21:10:25 +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 B1C291EDD for ; Mon, 13 Mar 2017 21:10:25 +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 v2DLAP6J024314 for ; Mon, 13 Mar 2017 21:10:25 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: x11@FreeBSD.org Subject: [Bug 217771] lang/beignet: update to 1.3.1 Date: Mon, 13 Mar 2017 21:10:25 +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: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jbeich@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: 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.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: Mon, 13 Mar 2017 21:10:26 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D217771 --- Comment #4 from Jan Beich (mail not working) --- OpenCL 2.0 is not supported on i386. Do you want me to hide it via OPTIONS_SLAVE? --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-x11@freebsd.org Tue Mar 14 01:01:22 2017 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 1C88BD09C17 for ; Tue, 14 Mar 2017 01:01:22 +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 06425141E for ; Tue, 14 Mar 2017 01:01:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 02A97D09C16; Tue, 14 Mar 2017 01:01:22 +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 02560D09C14 for ; Tue, 14 Mar 2017 01:01:22 +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 E676E141A for ; Tue, 14 Mar 2017 01:01:21 +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 v2E11LLf031378 for ; Tue, 14 Mar 2017 01:01:21 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: x11@FreeBSD.org Subject: [Bug 217771] lang/beignet: update to 1.3.1 Date: Tue, 14 Mar 2017 01:01:21 +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: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: rezny@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: attachments.created 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.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: Tue, 14 Mar 2017 01:01:22 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D217771 --- Comment #5 from Matthew Rezny --- Created attachment 180799 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D180799&action= =3Dedit update lang/beignet to 1.3.1 --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-x11@freebsd.org Tue Mar 14 01:05:05 2017 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 6AA11D09E43 for ; Tue, 14 Mar 2017 01:05:05 +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 5496D179D for ; Tue, 14 Mar 2017 01:05:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 51083D09E42; Tue, 14 Mar 2017 01:05:05 +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 50A7DD09E41 for ; Tue, 14 Mar 2017 01:05:05 +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 40B8F179B for ; Tue, 14 Mar 2017 01:05:05 +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 v2E155Vn042458 for ; Tue, 14 Mar 2017 01:05:05 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: x11@FreeBSD.org Subject: [Bug 217771] lang/beignet: update to 1.3.1 Date: Tue, 14 Mar 2017 01:05:05 +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: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: rezny@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: 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.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: Tue, 14 Mar 2017 01:05:05 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D217771 --- Comment #6 from Matthew Rezny --- (In reply to Jan Beich (mail not working) from comment #4) I mean to not use an option and just have PLIST_SUB depend on ARCH as in the patch I just attached. I've verified the build in Poudriere 10/11 amd64/i38= 6. Runtime testing would be appreciated. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-x11@freebsd.org Tue Mar 14 04:45:16 2017 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 8737AD0B174 for ; Tue, 14 Mar 2017 04:45:16 +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 70A2F1208 for ; Tue, 14 Mar 2017 04:45:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 6D0F0D0B171; Tue, 14 Mar 2017 04:45:16 +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 6CA82D0B16F for ; Tue, 14 Mar 2017 04:45:16 +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 5BD831207 for ; Tue, 14 Mar 2017 04:45:16 +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 v2E4jGog023194 for ; Tue, 14 Mar 2017 04:45:16 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: x11@FreeBSD.org Subject: [Bug 217771] lang/beignet: update to 1.3.1 Date: Tue, 14 Mar 2017 04:45:16 +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: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jbeich@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: 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.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: Tue, 14 Mar 2017 04:45:16 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D217771 --- Comment #7 from Jan Beich (mail not working) --- Comment on attachment 180799 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D180799 update lang/beignet to 1.3.1 OpenCL 2.0 requires LLVM >=3D 3.9 and libdrm >=3D 2.4.67 (i.e. ports r43146= 3 and maybe[1] drm-next). I forgot to adjust at least BUILD_DEPENDS in my version. [1] Whether drm_intel_bo_set_softpin_offset() works on FreeBSD 10.3 or 11.0= or causes a crash similar to bug 217635 is unknown. https://cgit.freedesktop.org/mesa/drm/commit/?id=3D8b4d57e7=20=20 > +OPTIONS_DEFINE=3D FP64 TEST > +FP64_DESC=3D Double precision (experimental) I don't like this style of grouping as it doesn't scale. If you have many options having to jump between descriptions and definitions when working on= a port with many can get tiring, see multimedia/ffmpeg. > +.if ${ARCH} =3D=3D amd64 > +PLIST_SUB+=3D OCL20=3D"" > +.else # ${ARCH} =3D=3D i386 > +PLIST_SUB+=3D OCL20=3D"@comment " > +.endif Conditionals break (mostly) declarative style of makefiles. Try the followi= ng instead PLIST_SUB+=3D OCL20=3D"${ARCH:Namd64:C/.+/@comment /}" > + -@(cd ${TEST_WRKSRC}.utests; . ./setenv.sh; \ Why do you need to introduce typos? $ make test WITH=3DTEST =3D=3D=3D> Testing for beignet-1.3.1 cd: /usr/ports/lang/beignet/work/Beignet-1.3.1-Source.utests: No such fil= e or directory .: cannot open ./setenv.sh: No such file or directory *** Error code 2 (ignored) $ make test WITH=3DTEST =3D=3D=3D> Testing for beignet-1.3.1 /bin/sh: ./flataddress_space: not found > +- src_data =3D (uint32_t*)memalign(base_address_alignment, buffer_sz); > +- if(!src_data) { > ++ if(posix_memalign((void**)&src_data, base_address_alignment, buffer_s= z)) { posix_memalign has greater minimal alignment than memalign or aligned_alloc= in jemalloc and glibc. And neither memalign nor posix_memalign are available on Windows. Or do you have something against using C11/C++17 features without passing corresponding -std=3D ? https://github.com/jemalloc/jemalloc/blob/4.5.0/src/jemalloc.c#L2038 https://github.com/jemalloc/jemalloc/blob/4.5.0/src/jemalloc.c#L1787 https://sourceware.org/git/?p=3Dglibc.git;a=3Dblob;f=3Dmalloc/malloc.c;hb= =3Dglibc-2.25#l3071 https://sourceware.org/git/?p=3Dglibc.git;a=3Dblob;f=3Dmalloc/malloc.c;hb= =3Dglibc-2.25#l3136 > @@ -17,7 +17,7 @@ >=20=20 > # XLib > Find_Package(X11) > -@@ -219,7 +218,7 @@ IF(OCLIcd_FOUND) > +@@ -217,7 +216,7 @@ IF(OCLIcd_FOUND) > "intel-beignet.icd.in" > "${ICD_FILE_NAME}" > ) Try to avoid excessive noise (e.g. line offsets, timestamps) in patches. > @@ -29,6 +29,8 @@ > lib/beignet/include/ocl_vload_20.h > lib/beignet/include/ocl_work_group.h > lib/beignet/include/ocl_workitem.h > +%%OCL20%%lib/beignet/beignet_20.bc > +%%OCL20%%lib/beignet/beignet_20.pch > lib/beignet/libcl.so > lib/beignet/libgbe.so > lib/beignet/libgbeinterp.so Keep sorting consistent with a version where %% macros are expanded. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-x11@freebsd.org Tue Mar 14 10:07:27 2017 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 6C416D0CD7B for ; Tue, 14 Mar 2017 10:07:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 560141967 for ; Tue, 14 Mar 2017 10:07:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 555C1D0CD7A; Tue, 14 Mar 2017 10:07:27 +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 550A4D0CD79 for ; Tue, 14 Mar 2017 10:07:27 +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 3A0381966 for ; Tue, 14 Mar 2017 10:07:27 +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 v2EA7R3A052816 for ; Tue, 14 Mar 2017 10:07:27 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: x11@FreeBSD.org Subject: [Bug 217771] lang/beignet: update to 1.3.1 Date: Tue, 14 Mar 2017 10:07:27 +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: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: rezny@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: 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.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: Tue, 14 Mar 2017 10:07:27 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D217771 --- Comment #8 from Matthew Rezny --- (In reply to Jan Beich (mail not working) from comment #7) >OpenCL 2.0 requires LLVM >=3D 3.9 and libdrm >=3D 2.4.67 (i.e. ports r4314= 63 and pkg info libdrm >maybe[1] drm-next). I forgot to adjust at least BUILD_DEPENDS in my versio= n. The LLVM requirement was bumped to 3.9 during the prior update to 1.3.0 and= we have had an up to date libdrm long enough that should be no concern either. >[1] Whether drm_intel_bo_set_softpin_offset() works on FreeBSD 10.3 or 11.= 0 or causes a crash similar to bug 217635 is unknown. > https://cgit.freedesktop.org/mesa/drm/commit/?id=3D8b4d57e7=20=20 That is something that will need to be tested. Given that the only Intel bo= x I have has a chipset with "Gen3" GPU, I cannot test any OpenCL on Intel. >> +OPTIONS_DEFINE=3D FP64 TEST >> +FP64_DESC=3D Double precision (experimental) >I don't like this style of grouping as it doesn't scale. If you have many = >options having to jump between descriptions and definitions when working o= n a >port with many can get tiring, see multimedia/ffmpeg. And I don't like excess whitespace to scroll through, so it's merely a difference of opinion. This port is not ffmpeg and it does have an unwieldy number of options, nor is it expected to. Should there be an explosion of options, whitespace can be added as needed. >> +.if ${ARCH} =3D=3D amd64 >> +PLIST_SUB+=3D OCL20=3D"" >> +.else # ${ARCH} =3D=3D i386 >> +PLIST_SUB+=3D OCL20=3D"@comment " >> +.endif >Conditionals break (mostly) declarative style of makefiles. Try the follow= ing instead > PLIST_SUB+=3D OCL20=3D"${ARCH:Namd64:C/.+/@comment /}" The conditional used it immediately understandable at a glance, the other w= ay is not. Clarity has value greater than conciseness. >> + -@(cd ${TEST_WRKSRC}.utests; . ./setenv.sh; \ >Why do you need to introduce typos? Because I'm not a robot, but an imperfect human? If you mean to ask why did= I retype it, well, I'd already bumped the port version and made some changes (i.e. adding the OCL20 stuff), so the patch wasn't going to apply without abandoning the progress made, copy and paste from the browser doesn't prese= rve the tabs, and that particular section had excess whitespace that would need= to be removed, so retyping was the fastest solution, until I have to explain h= ow a typo could possibly come to be... I did not try to run the tests as I do not expect any to succeed without the requisite hardware. >> +- src_data =3D (uint32_t*)memalign(base_address_alignment, buffer_sz); >> +- if(!src_data) { >> ++ if(posix_memalign((void**)&src_data, base_address_alignment, buffer_= sz)) { >posix_memalign has greater minimal alignment than memalign or aligned_allo= c in >jemalloc and glibc. And neither memalign nor posix_memalign are avail= able on >Windows. Or do you have something against using C11/C++17 features= without >passing corresponding -std=3D ? The intent was the make a patch that could be upstreamed more easily. posix_memalign is part of platforms (that doesn't include Windows). If aligned_alloc is available on all the platforms on which posix_memalign exi= sts, then that is news to me. I am aware it is part of C11, but the support for C++11 (and therefore I assume C11 as well) in GCC (still the favorite on Li= nux) has been lacking every time I have tried to use it, and the last time I had= to use a Microsoft compiler it did not support C99 and left a portion of C++0x stranded in the stdext namespace instead of std, so those are out the quest= ion. If the C11 support in GCC is strong enough, then aligned_alloc would be fin= e, though as you mention it would need the correct -std passed since GCC defau= lts to gnu++98. I do not see any more strict alignment requirements for posix_memalign; they both require the alignment be a power of 2. "As an example of the "supported by the implementation" requirement, POSIX function posix_memalign accepts any alignment that is a power of two and a multiple of sizeof(void *), and POSIX-based implementations of aligned_alloc inherit this requirements." >Try to avoid excessive noise (e.g. line offsets, timestamps) in patches. I had previously been advised to use makepatch when adding and changing patches. Is there a more strict set of criteria for when it is appropriate = than I am aware of? > @@ -29,6 +29,8 @@ > lib/beignet/include/ocl_vload_20.h > lib/beignet/include/ocl_work_group.h > lib/beignet/include/ocl_workitem.h > +%%OCL20%%lib/beignet/beignet_20.bc > +%%OCL20%%lib/beignet/beignet_20.pch > lib/beignet/libcl.so > lib/beignet/libgbe.so > lib/beignet/libgbeinterp.so >Keep sorting consistent with a version where %% macros are expanded. What is inconsistent about the sorting? lib/beignet/b* < lib/beignet/l* --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-x11@freebsd.org Tue Mar 14 14:52:14 2017 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 B77BFD0B76E for ; Tue, 14 Mar 2017 14:52:14 +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 A1137116D for ; Tue, 14 Mar 2017 14:52:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id A07FAD0B76D; Tue, 14 Mar 2017 14:52:14 +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 A030BD0B76C for ; Tue, 14 Mar 2017 14:52:14 +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 86E27116B for ; Tue, 14 Mar 2017 14:52:14 +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 v2EEqE10055052 for ; Tue, 14 Mar 2017 14:52:14 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: x11@FreeBSD.org Subject: [Bug 217771] lang/beignet: update to 1.3.1 Date: Tue, 14 Mar 2017 14:52: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: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jbeich@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: 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.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: Tue, 14 Mar 2017 14:52:14 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D217771 --- Comment #9 from Jan Beich (mail not working) --- (In reply to Matthew Rezny from comment #8) > The LLVM requirement was bumped to 3.9 during the prior update to > 1.3.0 and we have had an up to date libdrm long enough that should > be no concern either. libdrm was updated just ~2 months ago. Once 2017Q2 is branched users may fi= nd OpenCL 2.0 is auto-disabled during build. Partial upgrades were never supported, so this can be ignored. > That is something that will need to be tested. Given that the only > Intel box I have has a chipset with "Gen3" GPU, I cannot test any > OpenCL on Intel. Removing OPENCL20 option makes 1.2 vs. 2.0 troubleshooting harder. Neither beignet port exposes debugging support (vendor optimization gets in the way) nor ports framework provides packages with debugging symbols to help distinguish crash fingerprints from already reported. > need the correct -std passed since GCC defaults to gnu++98. Not necessarily. GCC switched from C89 to C11 since 5.0 and from C++98 to C= ++14 since 6.0. Clang switched from C99 to C11 in 3.6 but as of 4.0 is still stu= ck with C++98. -std=3Dc++0x (and -std=3Dc++11) is already used in CMakeLists.txt. Downstre= am that provides beignet package also has new enough GCC version, newer than lang/g= cc on FreeBSD. https://repology.org/metapackage/beignet/versions https://repology.org/metapackage/gcc/versions > multiple of sizeof(void *) memalign and aligned_alloc don't have such a restriction. Upstream already = uses posix_memalign in other places, so I'm giving up. When pushing files/ upstr= eam some __FreeBSD__ checks would need to be dropped to avoid churn for other B= SDs. > copy and paste from the browser doesn't preserve the tabs, and that > particular section had excess whitespace that would need to be > removed, so retyping was the fastest solution Firefox and Chromium on X11 platforms preserve tabs just fine both via clipboard or primary selection. > I had previously been advised to use makepatch when adding and changing > patches. Is there a more strict set of criteria for when it is appropriat= e than > I am aware of? "make makepatch" (like "make makeplist") output isn't supposed to be used as is. It can accidentally merge separate patch files, incorporate sed(1) usag= e, etc. Porter's Handbook describes noise mainly in relation to "non-functional whitespace changes", so I maybe wrong. https://www.freebsd.org/doc/en/books/porters-handbook/slow-patch.html > What is inconsistent about the sorting? > lib/beignet/b* < lib/beignet/l* See where lib/beignet/beignet.pch is already placed, move *_20.* files ther= e as well. lib/beignet/b* < lib/beignet/i* < lib/beignet/l* --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-x11@freebsd.org Tue Mar 14 15:07:45 2017 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 96EA3D0BBA9 for ; Tue, 14 Mar 2017 15:07:45 +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 804311A0E for ; Tue, 14 Mar 2017 15:07:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 7CE6BD0BBA7; Tue, 14 Mar 2017 15:07:45 +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 7AE7AD0BBA6 for ; Tue, 14 Mar 2017 15:07:45 +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 64E8B1A0C for ; Tue, 14 Mar 2017 15:07:45 +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 v2EF7fPQ049459 for ; Tue, 14 Mar 2017 15:07:45 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: x11@FreeBSD.org Subject: [Bug 217585] graphics/libGL: MESA-LOADER: failed to retrieve device information Date: Tue, 14 Mar 2017 15:07:42 +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: jbeich@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: x11@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: flagtypes.name bug_status resolution 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.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: Tue, 14 Mar 2017 15:07:45 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D217585 Jan Beich (mail not working) changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|maintainer-feedback?(x11@Fr | |eeBSD.org) | Status|New |Closed Resolution|--- |FIXED --- Comment #9 from Jan Beich (mail not working) --- Worked around by rezny in ports r436156. The proper fix is likely to follow= up on the following: https://lists.freebsd.org/pipermail/freebsd-x11/2017-March/019076.html --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-x11@freebsd.org Tue Mar 14 15:43:09 2017 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 90FA9D0CD57 for ; Tue, 14 Mar 2017 15:43:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 7AE8DAAD for ; Tue, 14 Mar 2017 15:43:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 7A46ED0CD56; Tue, 14 Mar 2017 15:43:09 +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 79EF9D0CD55 for ; Tue, 14 Mar 2017 15:43:09 +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 67183AAC for ; Tue, 14 Mar 2017 15:43:09 +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 v2EFh9kI094560 for ; Tue, 14 Mar 2017 15:43:09 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: x11@FreeBSD.org Subject: [Bug 217771] lang/beignet: update to 1.3.1 Date: Tue, 14 Mar 2017 15:43:09 +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: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: rezny@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: 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.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: Tue, 14 Mar 2017 15:43:09 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D217771 --- Comment #10 from Matthew Rezny --- (In reply to Jan Beich (mail not working) from comment #9) >libdrm was updated just ~2 months ago. Once 2017Q2 is branched users may f= ind OpenCL 2.0 is auto-disabled during build. Partial upgrades were never s= upported, so this can be ignored. Right, people on a quarterly branch with old libdrm won't have the new beig= net with OCL2, people on head will get both new libdrm and new beignet, and any= one who cares about something like OpenCL is not on quarterly. >Removing OPENCL20 option makes 1.2 vs. 2.0 troubleshooting harder. Neither= beignet port exposes debugging support (vendor optimization gets in the wa= y) nor ports framework provides packages with debugging symbols to help dis= tinguish crash fingerprints from already reported. Wouldn't two variants, one with 2.0 support and one without, make that exact issue worse than having a single build would? I must be missing something, = it was my impression that the single build was desirable. >Not necessarily. GCC switched from C89 to C11 since 5.0 and from C++98 to = C++14 since 6.0. Clang switched from C99 to C11 in 3.6 but as of 4.0 is sti= ll stuck with C++98. Ah, good to know, I had not been keeping up on the changes in GCC, and still bumping into the old default since the default ports gcc is still 4.9 >memalign and aligned_alloc don't have such a restriction. Upstream already= uses posix_memalign in other places, so I'm giving up. When pushing files/= upstream some __FreeBSD__ checks would need to be dropped to avoid churn f= or other BSDs. I did not mean to cause contention. Using posix_memalign looked to be the m= ore portable solution is all, and if that is not the case I do welcome to be corrected as that entails an expansion of knowledge. It sounds like you had= a reason I didn't fully grasp. >Firefox and Chromium on X11 platforms preserve tabs just fine both via cli= pboard or primary selection. This falls into the category of things that didn't work reliably and thus a= re no longer tried. Perhaps it depends on the site from which it's copied, some sites might be converting tabs to spaces before it gets to the browser.=20 >> I had previously been advised to use makepatch when adding and changing >> patches. Is there a more strict set of criteria for when it is appropria= te than >> I am aware of? >"make makepatch" (like "make makeplist") output isn't supposed to be used = as is. It can accidentally merge separate patch files, incorporate sed(1) u= sage, etc. Porter's Handbook describes noise mainly in relation to "non-fun= ctional whitespace changes", so I maybe wrong. I am aware the output needs to be checked and quite used to doing the dance with makepatch wherein I copy back all those that were touched in post-patc= h. Of course I'm not perfect, I have accidentally committed sed cruft after regenerating a set of patches so many times I blinded myself to that part. I have briefly mulled over the idea of another target for this purpose, e.g. = make cleanpatch. I assume the reason to regularly regenerate patches is to ease fixing hunks that don't automatically apply after a port update. If the line numbers have been drifting for a long time and the context is insufficient, it can be difficult to be sure where to apply that hunk. >> What is inconsistent about the sorting? >> lib/beignet/b* < lib/beignet/l* >See where lib/beignet/beignet.pch is already placed, move *_20.* files the= re as well. >lib/beignet/b* < lib/beignet/i* < lib/beignet/l* Doh! I should have noticed that from your diff. I must have been thinking of directory first sorting or mentally rewriting lib/beignet/include/ to include/beignet/ (as it probably should be) when I inserted those. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-x11@freebsd.org Tue Mar 14 16:00:47 2017 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 B5F94D0CA14 for ; Tue, 14 Mar 2017 16:00:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 9FB22AF8 for ; Tue, 14 Mar 2017 16:00:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 9BA0BD0CA13; Tue, 14 Mar 2017 16:00:47 +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 9B4D9D0CA12 for ; Tue, 14 Mar 2017 16:00:47 +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 727C9AF1 for ; Tue, 14 Mar 2017 16:00:47 +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 v2EG0kx9042232 for ; Tue, 14 Mar 2017 16:00:47 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: x11@FreeBSD.org Subject: [Bug 217771] lang/beignet: update to 1.3.1 Date: Tue, 14 Mar 2017 16:00:47 +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: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: rezny@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: attachments.isobsolete attachments.created 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.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: Tue, 14 Mar 2017 16:00:47 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D217771 Matthew Rezny changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #180799|0 |1 is obsolete| | --- Comment #11 from Matthew Rezny --- Created attachment 180820 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D180820&action= =3Dedit update lang/beignet to 1.3.1 The patch has been revised to correct the issues noted thus far. It is my h= ope we can get this tested and committed without strife. I sense that my nature= of wanting to know the why of everything that is done is wearing on you. The update to 1.3.0 was a blind update motivated by a desire to drop dependencies on llvm37 since there was an observed conflict when llvm37 is installed alongside llvm39. I normally prefer to test first, but could not = do so myself and did not know of anyone using this port. When a PR was opened against the port, I thought "great, we have a user aka tester" but I didn't expect an update PR to soon follow after a period in w= hich it appeared nobody cared for this port. Perhaps instead of trying to meld o= ur efforts, I should have just taken notice of your apparent interest and said "looks good enough, go for it." I've spent a lot of time getting to know the graphics stack, but you are the more experienced committer and my explorations have not included the Intel specific parts such as this port. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-x11@freebsd.org Wed Mar 15 07:25:28 2017 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 C24ECD0DA54 for ; Wed, 15 Mar 2017 07:25:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id AC58E1E11 for ; Wed, 15 Mar 2017 07:25:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id ABB3BD0DA53; Wed, 15 Mar 2017 07:25:28 +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 AB563D0DA52 for ; Wed, 15 Mar 2017 07:25:28 +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 9B2311E10 for ; Wed, 15 Mar 2017 07:25:28 +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 v2F7PSgC002012 for ; Wed, 15 Mar 2017 07:25:28 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: x11@FreeBSD.org Subject: [Bug 217016] graphics/libGL: update to 17.0.1 to get llvm40 support Date: Wed, 15 Mar 2017 07:25:28 +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: jbeich@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: 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.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: Wed, 15 Mar 2017 07:25:28 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D217016 --- Comment #13 from Jan Beich (mail not working) --- (In reply to Jan Beich (mail not working) from comment #10) https://cgit.freedesktop.org/mesa/mesa/commit/?id=3Dfe56c745b8cb --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-x11@freebsd.org Thu Mar 16 08:14:37 2017 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 98EA6D0FED7 for ; Thu, 16 Mar 2017 08:14:37 +0000 (UTC) (envelope-from portscout@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 86229192A for ; Thu, 16 Mar 2017 08:14:37 +0000 (UTC) (envelope-from portscout@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id 85889D0FED6; Thu, 16 Mar 2017 08:14:37 +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 85386D0FED5 for ; Thu, 16 Mar 2017 08:14:37 +0000 (UTC) (envelope-from portscout@FreeBSD.org) Received: from portscout.ysv.freebsd.org (portscout.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:6]) (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 787A61929 for ; Thu, 16 Mar 2017 08:14:37 +0000 (UTC) (envelope-from portscout@FreeBSD.org) Received: from portscout.ysv.freebsd.org ([127.0.1.123]) by portscout.ysv.freebsd.org (8.15.2/8.15.2) with ESMTP id v2G8EbnN061317 for ; Thu, 16 Mar 2017 08:14:37 GMT (envelope-from portscout@FreeBSD.org) Received: (from portscout@localhost) by portscout.ysv.freebsd.org (8.15.2/8.15.2/Submit) id v2G8Eb8e061316; Thu, 16 Mar 2017 08:14:37 GMT (envelope-from portscout@FreeBSD.org) Message-Id: <201703160814.v2G8Eb8e061316@portscout.ysv.freebsd.org> X-Authentication-Warning: portscout.ysv.freebsd.org: portscout set sender to portscout@FreeBSD.org using -f Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain MIME-Version: 1.0 Date: Thu, 16 Mar 2017 08:14:37 +0000 From: portscout@FreeBSD.org To: x11@freebsd.org Subject: FreeBSD ports you maintain which are out of date X-Mailer: portscout/0.8.1 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: Thu, 16 Mar 2017 08:14:37 -0000 Dear port maintainer, The portscout new distfile checker has detected that one or more of your ports appears to be out of date. Please take the opportunity to check each of the ports listed below, and if possible and appropriate, submit/commit an update. If any ports have already been updated, you can safely ignore the entry. You will not be e-mailed again for any of the port/version combinations below. Full details can be found at the following URL: http://portscout.freebsd.org/x11@freebsd.org.html Port | Current version | New version ------------------------------------------------+-----------------+------------ x11-servers/xephyr | 1.18.4 | 1.19.3 ------------------------------------------------+-----------------+------------ x11-servers/xorg-dmx | 1.18.4 | 1.19.3 ------------------------------------------------+-----------------+------------ x11-servers/xorg-server | 1.18.4 | 1.19.3 ------------------------------------------------+-----------------+------------ x11-servers/xorg-vfbserver | 1.19.1 | 1.19.3 ------------------------------------------------+-----------------+------------ x11-servers/xwayland | 1.19.1 | 1.19.3 ------------------------------------------------+-----------------+------------ If any of the above results are invalid, please check the following page for details on how to improve portscout's detection and selection of distfiles on a per-port basis: http://portscout.freebsd.org/info/portscout-portconfig.txt Thanks. From owner-freebsd-x11@freebsd.org Thu Mar 16 11:42:33 2017 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 D6CFDD0D82F for ; Thu, 16 Mar 2017 11:42:33 +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 BEAEE13E3 for ; Thu, 16 Mar 2017 11:42:33 +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 v2GBgXfQ080476 for ; Thu, 16 Mar 2017 11:42:33 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-x11@FreeBSD.org Subject: [Bug 196678] x11-servers/xorg-server: make config/devd recognize /dev/input/eventX from multimedia/webcamd Date: Thu, 16 Mar 2017 11:42:33 +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: patch X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: rezny@freebsd.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-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.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: Thu, 16 Mar 2017 11:42:33 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D196678 --- Comment #72 from Matthew Rezny --- (In reply to Jan Beich (mail not working) from comment #71) I have not tried the HAL code in years since it did not work for me, but I = saw similar with the udev config code active, so I do not believe it specific to the devd backend. With the isParent check in place, X doesn't let go of the input device and thus devd doesn't send the removal notice until I do a VT switch, which interrupts all the inputs. I also noticed that reconnecting t= he tablet creates a /dev/event/inputX+1 to which another instance of the wacom driver attaches. All the instances stay connected, spamming the log, until = VT switch. The way I understood that comment in UnInit is that newer X server will call UnInit for every child device in correct order whereas old server did not. = The old UnInit code checks to see if the device it was handed isParent, and if = so it runs through and removes all devices for which isParent is false, i.e. t= he children. Given that, the check for isParent appears to be in the wrong pla= ce. Instead of checking priv->isParent initially, which would only be true if t= he I/O error occurs while the parent device is attempting a read, check !other->isParent in the for loop. Unfortunately, this is more complex that it appears at first glance. DeleteInputDeviceRequest is not safe to call here. It looked like it was ok= the first time, but most of the time I get multiple backtraces in the log upon disconnect. [523237.117] (EE) BUG: triggered 'if (in_input_thread())' [523237.117] (EE) BUG: io.c:656 in WriteToClient() [523237.118] (EE) ******** WriteToClient called from input thread ********* [523237.118] (EE)=20 [523237.118] (EE) Backtrace: [523237.142] (EE) 0: /usr/local/bin/Xorg (WriteToClient+0x78) [0x5aa0d8] [523237.162] (EE) 1: /usr/local/bin/Xorg (WriteEventsToClient+0x187) [0x441= 657] [523237.184] (EE) 2: /usr/local/bin/Xorg (TryClientEvents+0x1dc) [0x4414bc] [523237.204] (EE) 3: /usr/local/bin/Xorg (DeliverRawEvent+0x834) [0x442b34] [523237.225] (EE) 4: /usr/local/bin/Xorg (DeliverEventsToWindow+0x35c) [0x441a5c] [523237.245] (EE) 5: /usr/local/bin/Xorg (XIGetDevice+0xd58) [0x529bd8] [523237.266] (EE) 6: /usr/local/bin/Xorg (DisableDevice+0x2d8) [0x42ca08] [523237.286] (EE) 7: /usr/local/bin/Xorg (RemoveDevice+0xcd) [0x42db9d] [523237.307] (EE) 8: /usr/local/bin/Xorg (DeleteInputDeviceRequest+0x38) [0x489238] [523237.327] (EE) 9: /usr/local/lib/xorg/modules/input/wacom_drv.so (_init+0x17f5) [0x811f3a925] [523237.348] (EE) 10: /usr/local/lib/xorg/modules/input/wacom_drv.so (_init+0x841) [0x811f38a71] [523237.369] (EE) 11: /usr/local/bin/Xorg (xthread_sigmask+0xee) [0x5a936e] [523237.389] (EE) 12: /usr/local/bin/Xorg (OsCleanup+0x4cf) [0x5ab51f] [523237.409] (EE) 13: /usr/local/bin/Xorg (input_force_unlock+0x712) [0x5a9= 572] [523237.430] (EE) 14: /lib/libthr.so.3 (_pthread_create+0x915) [0x80256e365] [523237.450] (EE) 15: ? (?+0x915) [0x915] It turns out that patching the wacom DDX is not all that practical. The way input is handled was changed in 1.19, now there is an input thread on which= the I/O occurs and we can't go removing or disabling device from within the thr= ead, rather we would need to signal across threads. The better way to solve this= is at the root of the problem; instead of patching every input driver just fix webcamd so it removes device nodes for disconnected devices. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-x11@freebsd.org Thu Mar 16 16:40:14 2017 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 66DADD0FD38 for ; Thu, 16 Mar 2017 16:40:14 +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 55B861905 for ; Thu, 16 Mar 2017 16:40:14 +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 v2GGeBaR041540 for ; Thu, 16 Mar 2017 16:40:14 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-x11@FreeBSD.org Subject: [Bug 196678] x11-servers/xorg-server: make config/devd recognize /dev/input/eventX from multimedia/webcamd Date: Thu, 16 Mar 2017 16:40:11 +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: patch X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: rezny@freebsd.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-x11@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.isobsolete attachments.created 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.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: Thu, 16 Mar 2017 16:40:14 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D196678 Matthew Rezny changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #180700|0 |1 is obsolete| | --- Comment #73 from Matthew Rezny --- Created attachment 180880 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D180880&action= =3Dedit update Xorg to 1.19.3 and integrate collective devd enhancements --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-x11@freebsd.org Thu Mar 16 17:10:37 2017 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 08513D0EC09 for ; Thu, 16 Mar 2017 17:10:37 +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 E629E120A for ; Thu, 16 Mar 2017 17:10:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id E58A9D0EC08; Thu, 16 Mar 2017 17:10:36 +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 E5309D0EC07 for ; Thu, 16 Mar 2017 17:10:36 +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 D4D391208 for ; Thu, 16 Mar 2017 17:10:36 +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 v2GHAabW024266 for ; Thu, 16 Mar 2017 17:10:36 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: x11@FreeBSD.org Subject: [Bug 217689] x11-drivers/xf86-video-intel: Panic since latest update Date: Thu, 16 Mar 2017 17:10:37 +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: rezny@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: 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.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: Thu, 16 Mar 2017 17:10:37 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D217689 --- Comment #3 from Matthew Rezny --- (In reply to Jason Bacon from comment #0) Start with complete information, i.e. everything between 0 and 15 in the backtrace. Attach Xorg.0.log and dmesg output. Do you have a xorg.conf or anything in xorg.conf.d? Are you using stock packages are building locally? --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-x11@freebsd.org Thu Mar 16 17:51:04 2017 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 19395D0FB92 for ; Thu, 16 Mar 2017 17:51:04 +0000 (UTC) (envelope-from rezny@freebsd.org) Received: from mail.modirum.com (mail.modirum.com [31.185.27.10]) (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 64D9B1E18 for ; Thu, 16 Mar 2017 17:51:03 +0000 (UTC) (envelope-from rezny@freebsd.org) Received: by mail.modirum.com with esmtpsa (TLSv1:ECDHE-RSA-AES256-SHA:256) (Exim 4.87 (FreeBSD)) (envelope-from ) id 1coZY5-000GBQ-Ac for freebsd-x11@freebsd.org; Thu, 16 Mar 2017 17:50:53 +0000 From: Matthew Rezny To: "freebsd-x11@freebsd.org" Subject: CFT: update Xorg to 1.19.3 Date: Thu, 16 Mar 2017 18:50:49 +0100 Message-ID: <1774569.2utjLAkrOb@workstation.reztek> Organization: FreeBSD User-Agent: KMail/4.14.10 (FreeBSD/11.0-STABLE; KDE/4.14.10; amd64; ; ) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="nextPart1921716.mvUtxT9krT" Content-Transfer-Encoding: 7Bit X-SA-Authenticated: Yes X-SA-Exim-Connect-IP: 94.142.238.108 X-SA-Exim-Mail-From: rezny@freebsd.org X-SA-Exim-Scanned: No (on mail.modirum.com); SAEximRunCond expanded to false 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: Thu, 16 Mar 2017 17:51:04 -0000 This is a multi-part message in MIME format. --nextPart1921716.mvUtxT9krT Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" The time has come for the next update of Xorg. All the drivers were readied for the new ABI during the previous update so no new drivers are needed, just be sure to rebuild all the drivers after upgrading xorg-server. Changes in 1.19 include threaded input support and improvements to the modesetting driver and GLAMOR. There are also a few local changes of note. * The devd config backend has been updated to handle /dev/hidX and /dev/input/eventX devices as provided by webcamd. * An experimental option is now provided for a third config backend, udev, which is the replacement for HAL upstream, but using libudev-devd. * The SUID option has been changed to install a setuid wrapper, to which /usr/local/bin/X points, instead of making /usr/local/bin/Xorg setuid. This allows Xorg to be launched as a non-root user, useful if it will not be interfacing hardware (e.g. virtual framebuffer in jail, with xpra, etc). There is no difference for non-root users running startx as it executes X, which points to the setuid wrapper. Please test and reply to this list with your feedback. --nextPart1921716.mvUtxT9krT Content-Disposition: attachment; filename="Xorg_1_19_3.patch" Content-Transfer-Encoding: quoted-printable Content-Type: text/x-patch; charset="UTF-8"; name="Xorg_1_19_3.patch" Index: Mk/bsd.xorg.mk =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- Mk/bsd.xorg.mk=09(revision 436260) +++ Mk/bsd.xorg.mk=09(working copy) @@ -58,12 +58,13 @@ . endif =20 . if ${XORG_CAT} =3D=3D "driver" -USE_XORG+=3D=09xorg-server xproto randrproto xi renderproto xextproto = \ -=09=09inputproto kbproto fontsproto videoproto dri2proto dri3proto \ -=09=09xf86driproto presentproto glproto xineramaproto resourceproto \ -=09=09scrnsaverproto +USE_XORG+=3D=09dri2proto dri3proto fontsproto glproto inputproto kbpro= to \ +=09=09=09presentproto randrproto renderproto resourceproto \ +=09=09=09scrnsaverproto videoproto xextproto xf86driproto xi \ +=09=09=09xineramaproto xorg-server xproto CONFIGURE_ENV+=3D=09DRIVER_MAN_SUFFIX=3D4x DRIVER_MAN_DIR=3D'$$(mandir= )/man4' -USES+=3D=09=09libtool +CFLAGS+=3D=09=09-Werror=3Duninitialized +USES+=3D=09=09=09libtool INSTALL_TARGET=3D=09install-strip . endif =20 @@ -81,7 +82,8 @@ . endif =20 . if ${XORG_CAT} =3D=3D "lib" -USES+=3D=09=09pathfix libtool +USES+=3D=09=09=09libtool pathfix USE_LDCONFIG=3D=09yes +CFLAGS+=3D=09=09-Werror=3Duninitialized CONFIGURE_ARGS+=3D--enable-malloc0returnsnull . endif @@ -93,10 +95,10 @@ . if ${XORG_CAT} =3D=3D "xserver" DISTFILES?=3D=09xorg-server-${PORTVERSION}.tar.bz2 WRKSRC=3D=09=09${WRKDIR}/xorg-server-${PORTVERSION} -USES+=3D=09pathfix +USES+=3D=09=09libtool pathfix +CFLAGS+=3D=09-Werror=3Duninitialized CONFIGURE_ARGS+=3D=09--with-xkb-path=3D${LOCALBASE}/share/X11/xkb \ =09=09=09=09=09--with-fontrootdir=3D${LOCALBASE}/share/fonts - LIB_PC_DEPENDS+=3D=09${LOCALBASE}/libdata/pkgconfig/dri.pc:graphics/dr= i USE_XORG+=3D=09fontutil:build . endif @@ -112,7 +114,7 @@ # Register all xorg .pc files here. # foo_LIB_PC_DEPENDS means it should go to BUILD_DEPENDS *and* RUN_DEP= ENDS. =20 -XORG_MODULES=3D=09=09=09bigreqsproto \ +XORG_MODULES=3D=09bigreqsproto \ =09=09=09=09compositeproto \ =09=09=09=09damageproto \ =09=09=09=09dmx \ Index: x11-servers/xephyr/Makefile =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- x11-servers/xephyr/Makefile=09(revision 436260) +++ x11-servers/xephyr/Makefile=09(working copy) @@ -16,8 +16,6 @@ DESCR=3D=09=09${.CURDIR}/pkg-descr =20 SLAVE_PORT=3D=09yes -OPTIONS_EXCLUDE=3DDEVD HAL SUID - USE_XORG=3D=09x11 xcb =20 CONFIGURE_ARGS+=3D--enable-xephyr --disable-dmx --disable-xnest --disa= ble-xvfb \ Index: x11-servers/xorg-dmx/Makefile =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- x11-servers/xorg-dmx/Makefile=09(revision 436260) +++ x11-servers/xorg-dmx/Makefile=09(working copy) @@ -11,8 +11,6 @@ DESCR=3D=09=09${.CURDIR}/pkg-descr =20 SLAVE_PORT=3D=09yes -OPTIONS_EXCLUDE=3DDEVD HAL SUID - USE_XORG=3D=09dmx dmxproto x11 xaw7 xext xfixes xi xmu xpm xrender xre= s xt xtst =20 CONFIGURE_ARGS+=3D--enable-dmx --disable-xephyr --disable-xnest --disa= ble-xvfb \ Index: x11-servers/xorg-nestserver/Makefile =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- x11-servers/xorg-nestserver/Makefile=09(revision 436260) +++ x11-servers/xorg-nestserver/Makefile=09(working copy) @@ -2,7 +2,6 @@ # $FreeBSD$ =20 PORTNAME=3D=09xorg-nestserver -PORTVERSION=3D=091.19.1 PORTEPOCH=3D=092 =20 COMMENT=3D=09Nesting X server from X.Org @@ -11,16 +10,12 @@ =20 MASTERDIR=3D=09${.CURDIR}/../xorg-server DESCR=3D=09=09${.CURDIR}/pkg-descr -DISTINFO_FILE=3D=09${.CURDIR}/distinfo -PATCHDIR=3D=09${.CURDIR}/files =20 RUN_DEPENDS=3D=09xkeyboard-config>=3D2.5:x11/xkeyboard-config =20 SLAVE_PORT=3D=09yes -OPTIONS_EXCLUDE=3DDEVD HAL SUID +USE_XORG=3D=09x11 xext =20 -USE_XORG=3D=09x11 xext xfont2 - CONFIGURE_ARGS+=3D--enable-xnest --disable-dmx --disable-xephyr --disa= ble-xvfb \ =09=09--disable-xwayland =20 Index: x11-servers/xorg-nestserver/distinfo =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- x11-servers/xorg-nestserver/distinfo=09(revision 436260) +++ x11-servers/xorg-nestserver/distinfo=09(nonexistent) @@ -1,3 +0,0 @@ -TIMESTAMP =3D 1484388904 -SHA256 (xorg/xserver/xorg-server-1.19.1.tar.bz2) =3D 79ae2cf39d3f6c4a9= 1201d8dad549d1d774b3420073c5a70d390040aa965a7fb -SIZE (xorg/xserver/xorg-server-1.19.1.tar.bz2) =3D 6041792 Property changes on: x11-servers/xorg-nestserver/distinfo ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: x11-servers/xorg-server/Makefile =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- x11-servers/xorg-server/Makefile=09(revision 436260) +++ x11-servers/xorg-server/Makefile=09(working copy) @@ -2,7 +2,7 @@ # $FreeBSD$ =20 PORTNAME?=3D=09xorg-server -PORTVERSION?=3D=091.18.4 +PORTVERSION?=3D=091.19.3 PORTREVISION?=3D=090 PORTEPOCH?=3D=091 CATEGORIES=3D=09x11-servers @@ -23,17 +23,28 @@ OPTIONS_SUB=3D=09yes OPTIONS_DEFINE=3D=09SUID OPTIONS_RADIO=3D=09CONF -OPTIONS_RADIO_CONF=3D=09DEVD HAL -DEVD_DESC=3D=09Use devd for autoconfiguration of input devices -HAL_DESC=3D=09Use hald for autoconfiguration of input devices -SUID_DESC=3D=09Install the Xorg server with setuid bit set -OPTIONS_DEFAULT=3DDEVD SUID +OPTIONS_RADIO_CONF=3D=09DEVD HAL UDEV +OPTIONS_DEFAULT=3D=09DEVD SUID =20 +SUID_DESC=3D=09Install setuid wrapper to allow startx as non-root +CONF_DESC=3D=09Backend to use for input device configuration +DEVD_DESC=3D=09Use devd (native) +HAL_DESC=3D=09Use HAL (deprecated) +UDEV_DESC=3D=09Use udev via libudev-devd (experimental) + OPTIONS_EXCLUDE_sparc64=3D=09HAL =20 -.include +DEVD_CONFIGURE_ENABLE=3D=09config-devd +HAL_CONFIGURE_ENABLE=3D=09config-hal +HAL_LIB_DEPENDS=3D=09libhal.so:sysutils/hal \ +=09=09=09libdbus-1.so:devel/dbus +SUID_CONFIGURE_ENABLE=3D=09suid-wrapper +SUID_CONFIGURE_ON=3D=09--libexecdir=3D${PREFIX}/bin=09# set SUID_WRAPP= ER_DIR +UDEV_CONFIGURE_ENABLE=3D=09config-udev +UDEV_CONFIGURE_ON=3D=09--disable-config-udev-kms +UDEV_LIB_DEPENDS=3D=09libudev.so:devel/libudev-devd =20 -USES=3D=09=09gmake libtool perl5 ssl tar:bzip2 +USES=3D=09=09gmake perl5 ssl USE_PERL5=3D=09build USE_GL+=3D=09gl USE_XORG+=3D=09bigreqsproto compositeproto damageproto dri2proto dri3p= roto \ @@ -40,12 +51,11 @@ =09=09fixesproto fontsproto glproto inputproto kbproto pixman \ =09=09presentproto randrproto recordproto renderproto \ =09=09resourceproto scrnsaverproto videoproto xau \ -=09=09xcmiscproto xdmcp xextproto xf86driproto xfont \ +=09=09xcmiscproto xdmcp xextproto xf86driproto xfont2 \ =09=09xineramaproto xkbfile xproto xshmfence xtrans CONFIGURE_ARGS+=3D--without-doxygen --without-xmlto --without-fop \ -=09=09--localstatedir=3D/var --with-shared-memory-dir=3D/tmp \ -=09=09--disable-config-udev --disable-config-udev-kms \ -=09=09--without-dtrace --enable-glamor +=09=09--without-dtrace --with-shared-memory-dir=3D/tmp \ +=09=09--disable-install-setuid INSTALL_TARGET=3D=09install-strip =20 .if ${SLAVE_PORT} =3D=3D "no" || ${PORTNAME} =3D=3D "xephyr" || ${PORT= NAME} =3D=3D "xwayland" @@ -62,9 +72,9 @@ =09=09--disable-xwayland SUB_FILES=3D=09pkg-install pkg-deinstall .else -CONFIGURE_ARGS+=3D--disable-xorg -# for slave ports we need to overwrite PLIST, so it doesn't overwrite -# PLIST_FILES, with the masterport plist. +CONFIGURE_ARGS+=3D=09--disable-xorg +OPTIONS_EXCLUDE=3D=09DEVD HAL UDEV SUID +# Set PLIST for slave ports so they only need to set PLIST_FILES PLIST=3D=09=09${.CURDIR}/pkg-plist .endif =20 @@ -77,16 +87,6 @@ CONFIGURE_ENV=3D=09SHA1_LIB=3D"-L/usr/lib -lcrypto" SHA1_CFLAGS=3D"-I/= usr/include" .endif =20 -.if ${PORT_OPTIONS:MHAL} -LIB_DEPENDS+=3D=09libhal.so:sysutils/hal -CONFIGURE_ARGS+=3D=09--enable-config-hal -.else -CONFIGURE_ARGS+=3D=09--disable-config-hal -.endif - -# We handle Xorg setuid in the plist. This allows to build xorg-server= as a user. -CONFIGURE_ARGS+=3D--disable-install-setuid - .if ${ARCH} =3D=3D "i386" || ${ARCH} =3D=3D "amd64" LIB_DEPENDS+=3D=09libunwind.so:devel/libunwind .endif @@ -97,39 +97,15 @@ PLIST_SUB+=3D=09SPARC64=3D"@comment " .endif =20 -.if ${PORT_OPTIONS:MSUID} -pre-everything:: -=09@${ECHO_MSG} "By default, the X Server installs as a set-user-id ro= ot binary. When run by" -=09@${ECHO_MSG} "a normal user, it checks arguments and environment as= done in the x11/wrapper" -=09@${ECHO_MSG} "port before handling them normally. If you are conce= rned about the security" -=09@${ECHO_MSG} "of this, but still want to run an X Server (for examp= le using xdm/kdm/gdm," -=09@${ECHO_MSG} "which will still run the server as root), you can can= cel the build and set" -=09@${ECHO_MSG} "xorg-server_UNSET=3DSUID in /etc/make.conf." -.endif - post-patch: =09@${REINPLACE_CMD} 's/test.*-traditional.*;/true;/' \ =09=09${WRKSRC}/configure -# build libglx.so but don't install it yet. which is done in pre-insta= ll. -=09@${REINPLACE_CMD} -e 's|@GLX_TRUE@GLXMODS =3D|@GLX_BOGUS@GLXMODS =3D= |g' \ -=09=09-e 's|^LTLIBRARIES =3D |LTLIBRARIES =3D libglx.la |g' \ -=09=09${WRKSRC}/hw/xfree86/dixmods/Makefile.in =20 -post-configure: -.if ${PORT_OPTIONS:MDEVD} -=09@${REINPLACE_CMD} -e 's|config\.c|config.c devd.c|g' \ -=09=09-e 's|config\.lo|config.lo devd.lo|g' \ -=09=09${WRKSRC}/config/Makefile -=09@${REINPLACE_CMD} -e 's|^/\* #undef CONFIG_UDEV \*/|#define CONFIG_= DEVD 1|' \ -=09=09${WRKSRC}/include/dix-config.h -.endif - .if ${SLAVE_PORT} =3D=3D "no" post-install: -# The .xorg dir because else the xorg-server might not load the correc= t -# libglx module. +# Avoid conflict with nvidia-driver, move libglx.so into .xorg directo= ry =09@${MKDIR} ${STAGEDIR}${PREFIX}/lib/xorg/modules/extensions/.xorg -=09${INSTALL_LIB} ${WRKSRC}/hw/xfree86/dixmods/.libs/libglx.so \ +=09${MV} ${STAGEDIR}${PREFIX}/lib/xorg/modules/extensions/libglx.so \ =09=09${STAGEDIR}${PREFIX}/lib/xorg/modules/extensions/.xorg/ =09@${MKDIR} ${STAGEDIR}${PREFIX}/etc/X11/xorg.conf.d .endif # ! SLAVE_PORT Index: x11-servers/xorg-server/distinfo =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- x11-servers/xorg-server/distinfo=09(revision 436260) +++ x11-servers/xorg-server/distinfo=09(working copy) @@ -1,3 +1,3 @@ -TIMESTAMP =3D 1484803304 -SHA256 (xorg/xserver/xorg-server-1.18.4.tar.bz2) =3D 278459b2c31d61a15= 655d95a72fb79930c480a6bb8cf9226e48a07df8b1d31c8 -SIZE (xorg/xserver/xorg-server-1.18.4.tar.bz2) =3D 6009508 +TIMESTAMP =3D 1489641765 +SHA256 (xorg/xserver/xorg-server-1.19.3.tar.bz2) =3D 677a8166e03474719= 238dfe396ce673c4234735464d6dadf2959b600d20e5a98 +SIZE (xorg/xserver/xorg-server-1.19.3.tar.bz2) =3D 6050221 Index: x11-servers/xorg-server/files/config_Makefile.am =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- x11-servers/xorg-server/files/config_Makefile.am=09(nonexistent) +++ x11-servers/xorg-server/files/config_Makefile.am=09(working copy) @@ -0,0 +1,16 @@ +* Build the devd config backend if activated +* +--- config/Makefile.am.orig=092017-03-16 05:24:43 UTC ++++ config/Makefile.am +@@ -4,6 +4,11 @@ noinst_LTLIBRARIES =3D libconfig.la + libconfig_la_SOURCES =3D config.c config-backends.h + libconfig_la_LIBADD =3D +=20 ++if CONFIG_DEVD ++libconfig_la_SOURCES +=3D devd.c ++libconfig_la_LIBADD +=3D -lusbhid ++endif ++ + if NEED_DBUS + AM_CFLAGS +=3D $(DBUS_CFLAGS) + libconfig_la_SOURCES +=3D dbus-core.c Property changes on: x11-servers/xorg-server/files/config_Makefile.am ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: x11-servers/xorg-server/files/configure.ac =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- x11-servers/xorg-server/files/configure.ac=09(nonexistent) +++ x11-servers/xorg-server/files/configure.ac=09(working copy) @@ -0,0 +1,97 @@ +* Plumb the devd config backend into configure +* +* define USE_DEV_IO for ARM platforms +* +* Only run pkg-config for udev if it is not disabled to prevent over-l= inking +* +* Automatically use systemd/logind only on Linux +* +--- configure.ac.orig=092017-03-15 18:05:25 UTC ++++ configure.ac +@@ -328,9 +328,12 @@ case $host_cpu in + =09esac + =09GLX_ARCH_DEFINES=3D"-D__GLX_ALIGN64 -mieee" + =09;; +- arm*) ++ arm*|aarch64*) + =09ARM_VIDEO=3Dyes + =09DEFAULT_INT10=3D"stub" ++=09case $host_os in ++=09=09*freebsd*)=09AC_DEFINE(USE_DEV_IO) ;; ++=09esac + =09;; + i*86) + =09I386_VIDEO=3Dyes +@@ -628,6 +631,7 @@ AC_ARG_ENABLE(tslib, AS_HELP_ST + AC_ARG_ENABLE(dbe, AS_HELP_STRING([--disable-dbe], [Build = DBE extension (default: enabled)]), [DBE=3D$enableval], [DBE=3Dyes]) + AC_ARG_ENABLE(xf86bigfont, AS_HELP_STRING([--enable-xf86bigfont], = [Build XF86 Big Font extension (default: disabled)]), [XF86BIGFONT=3D$e= nableval], [XF86BIGFONT=3Dno]) + AC_ARG_ENABLE(dpms, AS_HELP_STRING([--disable-dpms], [Build= DPMS extension (default: enabled)]), [DPMSExtension=3D$enableval], [DP= MSExtension=3Dyes]) ++AC_ARG_ENABLE(config-devd, AS_HELP_STRING([--enable-config-devd], = [Build devd support (default: auto)]), [CONFIG_DEVD=3D$enableval], [CON= FIG_DEVD=3Dauto]) + AC_ARG_ENABLE(config-udev, AS_HELP_STRING([--enable-config-udev], = [Build udev support (default: auto)]), [CONFIG_UDEV=3D$enableval], [CON= FIG_UDEV=3Dauto]) + AC_ARG_ENABLE(config-udev-kms, AS_HELP_STRING([--enable-config-ude= v-kms], [Build udev kms support (default: auto)]), [CONFIG_UDEV_KMS=3D$= enableval], [CONFIG_UDEV_KMS=3Dauto]) + AC_ARG_ENABLE(config-hal, AS_HELP_STRING([--disable-config-hal], = [Build HAL support (default: auto)]), [CONFIG_HAL=3D$enableval], [CONFI= G_HAL=3Dauto]) +@@ -924,10 +928,27 @@ if test "x$CONFIG_UDEV" =3D xyes && test " + =09AC_MSG_ERROR([Hotplugging through both libudev and hal not allowed= ]) + fi +=20 +-PKG_CHECK_MODULES(UDEV, $LIBUDEV, [HAVE_LIBUDEV=3Dyes], [HAVE_LIBUDEV= =3Dno]) +-if test "x$CONFIG_UDEV" =3D xauto; then +-=09CONFIG_UDEV=3D"$HAVE_LIBUDEV" +-=09AC_DEFINE(HAVE_LIBUDEV, 1, [Define to 1 if libudev is available.])= ++if test "x$CONFIG_DEVD" =3D xauto; then ++=09case $host_os in ++=09=09*freebsd*) ++=09=09=09CONFIG_DEVD=3Dyes ++=09=09=09;; ++=09=09*) ++=09=09=09CONFIG_DEVD=3Dno ++=09=09=09;; ++=09esac ++fi ++AM_CONDITIONAL(CONFIG_DEVD, [test "x$CONFIG_DEVD" =3D xyes]) ++if test "x$CONFIG_DEVD" =3D xyes; then ++=09AC_DEFINE(CONFIG_DEVD, 1, [Use devd for input auto configuration])= ++fi ++ ++if test "x$CONFIG_UDEV" !=3D xno; then ++=09PKG_CHECK_MODULES(UDEV, $LIBUDEV, [HAVE_LIBUDEV=3Dyes], [HAVE_LIBU= DEV=3Dno]) ++=09if test "x$CONFIG_UDEV" =3D xauto; then ++=09=09CONFIG_UDEV=3D"$HAVE_LIBUDEV" ++=09=09AC_DEFINE(HAVE_LIBUDEV, 1, [Define to 1 if libudev is available= .]) ++=09fi + fi + AM_CONDITIONAL(CONFIG_UDEV, [test "x$CONFIG_UDEV" =3D xyes]) + if test "x$CONFIG_UDEV" =3D xyes; then +@@ -975,7 +996,14 @@ AM_CONDITIONAL(CONFIG_HAL, [test "x$CONF +=20 + if test "x$SYSTEMD_LOGIND" =3D xauto; then + if test "x$HAVE_DBUS" =3D xyes -a "x$CONFIG_UDEV" =3D xyes ; = then +- SYSTEMD_LOGIND=3Dyes ++ case $host_os in ++ *linux*) ++ SYSTEMD_LOGIND=3Dyes ++ ;; ++ *) ++ SYSTEMD_LOGIND=3Dno ++ ;; ++ esac + else + SYSTEMD_LOGIND=3Dno + fi +@@ -2570,12 +2598,12 @@ AC_SUBST([prefix]) +=20 + AC_CONFIG_COMMANDS([sdksyms], [touch hw/xfree86/sdksyms.dep]) +=20 +-if test "x$CONFIG_HAL" =3D xno && test "x$CONFIG_UDEV" =3D xno; then ++if test "x$CONFIG_HAL" =3D xno && test "x$CONFIG_UDEV" =3D xno && tes= t "x$CONFIG_DEVD" =3D xno; then + AC_MSG_WARN([ +- *********************************************** +- Neither HAL nor udev backend will be enabled. ++ ***************************************************** ++ Neither HAL, devd, nor udev backend will be enabled. + Input device hotplugging will not be available! +- ***********************************************]) ++ *****************************************************]) + fi +=20 + AC_CONFIG_FILES([ Property changes on: x11-servers/xorg-server/files/configure.ac ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: x11-servers/xorg-server/files/hw_xfree86_Makefile.am =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- x11-servers/xorg-server/files/hw_xfree86_Makefile.am=09(nonexistent= ) +++ x11-servers/xorg-server/files/hw_xfree86_Makefile.am=09(working cop= y) @@ -0,0 +1,14 @@ +* Don't overwrite Xorg binary with Xorg.sh when SUID_WRAPPER_DIR =3D=3D= bindir +* Instead, relink bin/X to Xorg.wrap rather than to Xorg (which isn't = Xorg.sh) +* +--- hw/xfree86/Makefile.am.orig=092017-03-16 05:24:43 UTC ++++ hw/xfree86/Makefile.am +@@ -109,7 +109,7 @@ endif + if SUID_WRAPPER + =09$(MKDIR_P) $(DESTDIR)$(SUID_WRAPPER_DIR) + =09mv $(DESTDIR)$(bindir)/Xorg $(DESTDIR)$(SUID_WRAPPER_DIR)/Xorg +-=09${INSTALL} -m 755 Xorg.sh $(DESTDIR)$(bindir)/Xorg ++=09(test ! -f $(DESTDIR)$(bindir)/Xorg && ${INSTALL} -m 755 Xorg.sh $= (DESTDIR)$(bindir)/Xorg || cd $(DESTDIR)$(bindir) && rm -f X && $(LN_S)= Xorg.wrap$(EXEEXT) X) + =09-chown root $(DESTDIR)$(SUID_WRAPPER_DIR)/Xorg.wrap && chmod u+s $= (DESTDIR)$(SUID_WRAPPER_DIR)/Xorg.wrap + endif +=20 Property changes on: x11-servers/xorg-server/files/hw_xfree86_Makefile.= am ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: x11-servers/xorg-server/files/patch-config_Makefile.in =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- x11-servers/xorg-server/files/patch-config_Makefile.in=09(nonexiste= nt) +++ x11-servers/xorg-server/files/patch-config_Makefile.in=09(working c= opy) @@ -0,0 +1,91 @@ +* generated from patched Makefile.am; revise and regen instead of edit= ing +* +* Build the devd config backend if activated +* +--- config/Makefile.in.orig=092017-03-16 05:24:43 UTC ++++ config/Makefile.in +@@ -89,16 +89,18 @@ PRE_UNINSTALL =3D : + POST_UNINSTALL =3D : + build_triplet =3D @build@ + host_triplet =3D @host@ +-@NEED_DBUS_TRUE@am__append_1 =3D $(DBUS_CFLAGS) +-@NEED_DBUS_TRUE@am__append_2 =3D dbus-core.c +-@NEED_DBUS_TRUE@am__append_3 =3D $(DBUS_LIBS) +-@CONFIG_UDEV_TRUE@am__append_4 =3D $(UDEV_CFLAGS) +-@CONFIG_UDEV_TRUE@am__append_5 =3D udev.c +-@CONFIG_UDEV_TRUE@am__append_6 =3D $(UDEV_LIBS) +-@CONFIG_HAL_TRUE@@CONFIG_UDEV_FALSE@am__append_7 =3D $(HAL_CFLAGS) +-@CONFIG_HAL_TRUE@@CONFIG_UDEV_FALSE@am__append_8 =3D hal.c +-@CONFIG_HAL_TRUE@@CONFIG_UDEV_FALSE@am__append_9 =3D $(HAL_LIBS) +-@CONFIG_HAL_FALSE@@CONFIG_UDEV_FALSE@@CONFIG_WSCONS_TRUE@am__append_1= 0 =3D wscons.c ++@CONFIG_DEVD_TRUE@am__append_1 =3D devd.c ++@CONFIG_DEVD_TRUE@am__append_2 =3D -lusbhid ++@NEED_DBUS_TRUE@am__append_3 =3D $(DBUS_CFLAGS) ++@NEED_DBUS_TRUE@am__append_4 =3D dbus-core.c ++@NEED_DBUS_TRUE@am__append_5 =3D $(DBUS_LIBS) ++@CONFIG_UDEV_TRUE@am__append_6 =3D $(UDEV_CFLAGS) ++@CONFIG_UDEV_TRUE@am__append_7 =3D udev.c ++@CONFIG_UDEV_TRUE@am__append_8 =3D $(UDEV_LIBS) ++@CONFIG_HAL_TRUE@@CONFIG_UDEV_FALSE@am__append_9 =3D $(HAL_CFLAGS) ++@CONFIG_HAL_TRUE@@CONFIG_UDEV_FALSE@am__append_10 =3D hal.c ++@CONFIG_HAL_TRUE@@CONFIG_UDEV_FALSE@am__append_11 =3D $(HAL_LIBS) ++@CONFIG_HAL_FALSE@@CONFIG_UDEV_FALSE@@CONFIG_WSCONS_TRUE@am__append_1= 2 =3D wscons.c + subdir =3D config + ACLOCAL_M4 =3D $(top_srcdir)/aclocal.m4 + am__aclocal_m4_deps =3D $(top_srcdir)/m4/ac_define_dir.m4 \ +@@ -126,16 +128,18 @@ am__DEPENDENCIES_1 =3D + @CONFIG_UDEV_TRUE@am__DEPENDENCIES_3 =3D $(am__DEPENDENCIES_1) + @CONFIG_HAL_TRUE@@CONFIG_UDEV_FALSE@am__DEPENDENCIES_4 =3D \ + @CONFIG_HAL_TRUE@@CONFIG_UDEV_FALSE@=09$(am__DEPENDENCIES_1) +-libconfig_la_DEPENDENCIES =3D $(am__DEPENDENCIES_2) \ +-=09$(am__DEPENDENCIES_3) $(am__DEPENDENCIES_4) +-am__libconfig_la_SOURCES_DIST =3D config.c config-backends.h dbus-cor= e.c \ +-=09udev.c hal.c wscons.c +-@NEED_DBUS_TRUE@am__objects_1 =3D dbus-core.lo +-@CONFIG_UDEV_TRUE@am__objects_2 =3D udev.lo +-@CONFIG_HAL_TRUE@@CONFIG_UDEV_FALSE@am__objects_3 =3D hal.lo +-@CONFIG_HAL_FALSE@@CONFIG_UDEV_FALSE@@CONFIG_WSCONS_TRUE@am__objects_= 4 =3D wscons.lo ++libconfig_la_DEPENDENCIES =3D $(am__DEPENDENCIES_1) \ ++=09$(am__DEPENDENCIES_2) $(am__DEPENDENCIES_3) \ ++=09$(am__DEPENDENCIES_4) ++am__libconfig_la_SOURCES_DIST =3D config.c config-backends.h devd.c \= ++=09dbus-core.c udev.c hal.c wscons.c ++@CONFIG_DEVD_TRUE@am__objects_1 =3D devd.lo ++@NEED_DBUS_TRUE@am__objects_2 =3D dbus-core.lo ++@CONFIG_UDEV_TRUE@am__objects_3 =3D udev.lo ++@CONFIG_HAL_TRUE@@CONFIG_UDEV_FALSE@am__objects_4 =3D hal.lo ++@CONFIG_HAL_FALSE@@CONFIG_UDEV_FALSE@@CONFIG_WSCONS_TRUE@am__objects_= 5 =3D wscons.lo + am_libconfig_la_OBJECTS =3D config.lo $(am__objects_1) $(am__objects_= 2) \ +-=09$(am__objects_3) $(am__objects_4) ++=09$(am__objects_3) $(am__objects_4) $(am__objects_5) + libconfig_la_OBJECTS =3D $(am_libconfig_la_OBJECTS) + AM_V_lt =3D $(am__v_lt_@AM_V@) + am__v_lt_ =3D $(am__v_lt_@AM_DEFAULT_V@) +@@ -586,12 +590,14 @@ target_alias =3D @target_alias@ + top_build_prefix =3D @top_build_prefix@ + top_builddir =3D @top_builddir@ + top_srcdir =3D @top_srcdir@ +-AM_CFLAGS =3D $(DIX_CFLAGS) $(am__append_1) $(am__append_4) \ +-=09$(am__append_7) ++AM_CFLAGS =3D $(DIX_CFLAGS) $(am__append_3) $(am__append_6) \ ++=09$(am__append_9) + noinst_LTLIBRARIES =3D libconfig.la +-libconfig_la_SOURCES =3D config.c config-backends.h $(am__append_2) \= +-=09$(am__append_5) $(am__append_8) $(am__append_10) +-libconfig_la_LIBADD =3D $(am__append_3) $(am__append_6) $(am__append_= 9) ++libconfig_la_SOURCES =3D config.c config-backends.h $(am__append_1) \= ++=09$(am__append_4) $(am__append_7) $(am__append_10) \ ++=09$(am__append_12) ++libconfig_la_LIBADD =3D $(am__append_2) $(am__append_5) $(am__append_= 8) \ ++=09$(am__append_11) + @CONFIG_UDEV_TRUE@@XORG_TRUE@xorgconfddir =3D $(datadir)/X11/$(XF86CO= NFIGDIR) + @CONFIG_UDEV_TRUE@@XORG_TRUE@xorgconfd_DATA =3D 10-quirks.conf + EXTRA_DIST =3D x11-input.fdi fdi2iclass.py 10-quirks.conf +@@ -651,6 +657,7 @@ distclean-compile: +=20 + @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/config.Plo@am__quote= @ + @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dbus-core.Plo@am__qu= ote@ ++@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/devd.Plo@am__quote@ + @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hal.Plo@am__quote@ + @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/udev.Plo@am__quote@ + @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/wscons.Plo@am__quote= @ Property changes on: x11-servers/xorg-server/files/patch-config_Makefil= e.in ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: x11-servers/xorg-server/files/patch-config_config-backends.h =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- x11-servers/xorg-server/files/patch-config_config-backends.h=09(rev= ision 436260) +++ x11-servers/xorg-server/files/patch-config_config-backends.h=09(wor= king copy) @@ -1,11 +1,12 @@ ---- config/config-backends.h.orig=092016-07-15 16:17:45 UTC +* Define required functions for devd config backend +* +--- config/config-backends.h.orig=092017-03-15 18:05:25 UTC +++ config/config-backends.h -@@ -44,3 +44,8 @@ void config_hal_fini(void); +@@ -43,4 +43,7 @@ void config_hal_fini(void); + #elif defined(CONFIG_WSCONS) int config_wscons_init(void); void config_wscons_fini(void); - #endif -+ -+#ifdef CONFIG_DEVD ++#elif defined(CONFIG_DEVD) +int config_devd_init(void); +void config_devd_fini(void); -+#endif + #endif Index: x11-servers/xorg-server/files/patch-config_config.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- x11-servers/xorg-server/files/patch-config_config.c=09(revision 436= 260) +++ x11-servers/xorg-server/files/patch-config_config.c=09(working copy= ) @@ -1,4 +1,6 @@ ---- config/config.c.orig=092016-07-19 17:07:29 UTC +* Call the devd config backend functions if activated +* +--- config/config.c.orig=092017-03-15 18:05:25 UTC +++ config/config.c @@ -55,6 +55,9 @@ config_init(void) #elif defined(CONFIG_WSCONS) Index: x11-servers/xorg-server/files/patch-config_devd.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- x11-servers/xorg-server/files/patch-config_devd.c=09(revision 43626= 0) +++ x11-servers/xorg-server/files/patch-config_devd.c=09(working copy) @@ -1,11 +1,15 @@ ---- config/devd.c.orig=092017-01-19 15:20:42 UTC +--- config/devd.c.orig=092017-03-16 05:24:43 UTC +++ config/devd.c -@@ -0,0 +1,532 @@ +@@ -0,0 +1,882 @@ +/* + * Copyright (c) 2012 Baptiste Daroussin + * Copyright (c) 2013, 2014 Alex Kozlov + * Copyright (c) 2014 Robert Millan + * Copyright (c) 2014 Jean-Sebastien Pedron ++ * Copyright (c) 2015 Hans Petter Selasky ++ * Copyright (c) 2015-2017 Rozhuk Ivan ++ * Copyright (c) 2016, 2017 Vladimir Kondratyev ++ * Copyright (c) 2017 Matthew Rezny + * + * Permission is hereby granted, free of charge, to any person obtain= ing a + * copy of this software and associated documentation files (the "Sof= tware"), @@ -39,8 +43,14 @@ +#include +#include +#include ++#include ++#include ++#include ++#include ++#include + +#include ++#include +#include +#include +#include @@ -47,6 +57,9 @@ +#include +#include +#include ++#include ++#include ++#include + +#include "input.h" +#include "inputstr.h" @@ -54,440 +67,761 @@ +#include "config-backends.h" +#include "os.h" + -+#define DEVD_SOCK_PATH "/var/run/devd.pipe" ++/* from: */ ++#define=09_IOC_READ IOC_OUT ++struct input_id { ++=09uint16_t bustype; ++=09uint16_t vendor; ++=09uint16_t product; ++=09uint16_t version; ++}; + ++#define=09EVIOCGBIT(ev, len)=09_IOC(_IOC_READ, 'E', 0x20 + (ev), (len= )) ++#define=09EVIOCGID=09=09_IOR('E', 0x02, struct input_id) ++#define=09EVIOCGNAME(len)=09=09_IOC(_IOC_READ, 'E', 0x06, (len)) ++#define=09EVIOCGPHYS(len)=09=09_IOC(_IOC_READ, 'E', 0x07, (len)) ++ ++#define=09EV_KEY=09=09=090x01 ++#define=09EV_REL=09=09=090x02 ++#define=09EV_ABS=09=09=090x03 ++#define=09BTN_MISC=09=090x100 ++#define=09BTN_LEFT=09=090x110 ++#define=09BTN_RIGHT=09=090x111 ++#define=09BTN_MIDDLE=09=090x112 ++#define=09BTN_JOYSTICK=09=090x120 ++#define=09BTN_TOOL_PEN=09=090x140 ++#define=09BTN_TOOL_FINGER=09=090x145 ++#define=09BTN_TOUCH=09=090x14a ++#define=09BTN_STYLUS=09=090x14b ++#define=09BTN_STYLUS2=09=090x14c ++#define=09KEY_MAX=09=09=090x2ff ++#define=09KEY_CNT=09=09=09(KEY_MAX + 1) ++#define=09REL_X=09=09=090x00 ++#define=09REL_Y=09=09=090x01 ++#define=09REL_MAX=09=09=090x0f ++#define=09REL_CNT=09=09=09(REL_MAX + 1) ++#define=09ABS_X=09=09=090x00 ++#define=09ABS_Y=09=09=090x01 ++#define=09ABS_PRESSURE=09=090x18 ++#define=09ABS_MT_SLOT=09=090x2f ++#define=09ABS_MAX=09=09=090x3f ++#define=09ABS_CNT=09=09=09(ABS_MAX + 1) ++ ++#define=09ULONG_BITS=09=09(sizeof(unsigned long) * 8) ++#define=09ULONG_CNT(__x)=09=09(((__x) + ULONG_BITS - 1) / ULONG_BITS)= ++#define ULONG_IS_BIT_SET(__x, __bit) (((((const unsigned long*)(__x))= [((__bit) >> 5)] >> ((__bit) & 0x1f))) & 0x01) ++ ++/* from: */ ++#define JSIOCGNAME(len)=09=09_IOC(_IOC_READ, 'j', 0x13, len)=09=09/* = get identifier string */ ++ ++/* WebCamD specific. */ ++#define WEBCAMD_IOCTL_GET_USB_VENDOR_ID _IOR('q', 250, unsigned short= ) ++#define WEBCAMD_IOCTL_GET_USB_PRODUCT_ID _IOR('q', 251, unsigned shor= t) ++#define WEBCAMD_IOCTL_GET_USB_SPEED=09_IOR('q', 252, unsigned int) ++ ++#ifdef COMPAT_32BIT ++=09#define hid_pass_ptr(ptr)=09((uint64_t)(uintptr_t)(ptr)) ++#else ++=09#define hid_pass_ptr(ptr)=09(ptr) ++#endif ++ ++#define _PATH_DEV_LEN=09=09(sizeof(_PATH_DEV) - 1) ++#define DEVD_PATH_DEV=09=09"devd:" _PATH_DEV ++#define DEVD_PATH_DEV_LEN=09(sizeof(DEVD_PATH_DEV) - 1) ++#define DEVD_PATH_LEN=09=09(DEVD_PATH_DEV_LEN - _PATH_DEV_LEN) ++ ++#define DEVD_SOCK_PATH=09=09_PATH_VARRUN "devd.pipe" ++ +#define DEVD_EVENT_ADD=09=09'+' +#define DEVD_EVENT_REMOVE=09'-' ++#define DEVD_EVENT_NOTIFY=09'!' + -+#define RECONNECT_DELAY=09=095 * 1000 ++#define RECONNECT_DELAY=09(5 * 1000) + -+static int sock_devd; -+static bool is_console_kbd =3D false; -+static bool is_kbdmux =3D false; ++#define is_meuqual(__v1, __v1sz, __v2, __v2sz)=09=09=09=09\ ++=09((__v1sz) =3D=3D (__v2sz) && NULL !=3D (__v1) && NULL !=3D (__v2) = &&=09\ ++=09 0 =3D=3D memcmp((__v1), (__v2), (__v1sz))) ++ ++#define is_meuqual_cstr(__cstr, __v, __vsz)=09=09=09=09\ ++=09is_meuqual(__cstr, (sizeof(__cstr) - 1), __v, __vsz) ++ ++#define is_de_euqual_cstr(__de, __cstr)=09=09=09=09=09\ ++=09(NULL !=3D (__de) &&=09=09=09=09=09=09\ ++=09 is_meuqual((__de)->d_name, (__de)->d_namlen, __cstr, (sizeof(__cs= tr) - 1))) ++ ++#define devd_get_val_cstr(__cstr, __buf, __bufsz, __valsz)=09=09\ ++=09devd_get_val((__buf), (__bufsz), __cstr, (sizeof(__cstr) - 1),=09\= ++=09(__valsz)) ++ ++static int devd_skt =3D 0; ++static char devd_buf[4096]; ++static size_t devd_buf_used =3D 0; ++static int is_kbdmux =3D 0; +static OsTimerPtr rtimer =3D NULL; + -+struct hw_type { -+=09const char *driver; -+=09int flag; -+=09const char *xdriver; ++/* Input devices. */ ++typedef struct hw_type_s { ++=09const char=09*dev_name; ++=09size_t=09=09dev_name_size; ++=09size_t=09=09path_offset; ++=09int=09=09flags; ++=09const char=09*xdriver;=20 ++} hw_type_t, *hw_type_p; ++ ++/* xdriver can be set via config "InputClass" section. ++ * Do not set xdriver name if device have more than one ++ * xf86-input-* drivers. ++ * "input/event" can be hadled by: xf86-input-evdev and ++ * xf86-input-wacom, let user choose. ++ */ ++static hw_type_t hw_types[] =3D { ++=09{ "uhid",=094, 0, 0, NULL }, ++=09{ "ukbd",=094, 0, ATTR_KEY | ATTR_KEYBOARD, "kbd" }, ++=09{ "atkbd",=095, 0, ATTR_KEY | ATTR_KEYBOARD, "kbd" }, ++=09{ "kbdmux",=096, 0, ATTR_KEY | ATTR_KEYBOARD, "kbd" }, ++=09{ "sysmouse",=098, 0, ATTR_POINTER, "mouse" }, ++=09{ "ums",=093, 0, ATTR_POINTER, "mouse" }, ++=09{ "psm",=093, 0, ATTR_POINTER, "mouse" }, ++=09{ "vboxguest",=099, 0, ATTR_POINTER, "vboxmouse" }, ++=09{ "joy",=093, 0, ATTR_JOYSTICK, NULL }, ++=09{ "atp",=093, 0, ATTR_TOUCHPAD, NULL }, ++=09{ "uep",=093, 0, ATTR_TOUCHSCREEN, NULL }, ++=09{ "input/event",5, 6, 0, NULL }, ++=09{ "input/js",=092, 6, ATTR_JOYSTICK, NULL }, ++=09{ NULL,=09=090, 0, 0, NULL }, +}; + -+static struct hw_type hw_types[] =3D { -+=09{ "ukbd", ATTR_KEYBOARD, "kbd" }, -+=09{ "atkbd", ATTR_KEYBOARD, "kbd" }, -+=09{ "kbdmux", ATTR_KEYBOARD, "kbd" }, -+=09{ "sysmouse", ATTR_POINTER, "mouse" }, -+=09{ "ums", ATTR_POINTER, "mouse" }, -+=09{ "psm", ATTR_POINTER, "mouse" }, -+=09{ "vboxguest", ATTR_POINTER, "vboxmouse" }, -+=09{ "joy", ATTR_JOYSTICK, NULL }, -+=09{ "atp", ATTR_TOUCHPAD, NULL }, -+=09{ "uep", ATTR_TOUCHSCREEN, NULL }, -+=09{ NULL, -1, NULL }, ++/* Input devices paths. */ ++static hw_type_t hw_type_path[] =3D { ++=09{ "input/",=090, 6, 0, NULL }, ++=09{ NULL,=09=090, 0, 0, NULL }, +}; + -+static bool -+sysctl_exists(const struct hw_type *device, int unit, -+=09char *devname, size_t devname_len) ++static size_t ++bits_calc(const unsigned long *bits, size_t off_start, size_t off_sto= p) +{ -+=09char sysctlname[PATH_MAX]; -+=09size_t len; -+=09int ret; ++=09size_t count =3D 0; + -+=09if (device =3D=3D NULL || device->driver =3D=3D NULL) -+=09=09return false; ++=09for (size_t i =3D off_start; i < off_stop; ++i) { ++=09=09if (ULONG_IS_BIT_SET(bits, i)) { ++=09=09=09++count; ++=09=09} ++=09} ++=09return count; ++} + -+=09/* Check if a sysctl exists. */ -+=09snprintf(sysctlname, sizeof(sysctlname), "dev.%s.%i.%%desc", -+=09 device->driver, unit); -+=09ret =3D sysctlbyname(sysctlname, NULL, &len, NULL, 0); ++static hw_type_p ++get_dev_type_by_name(const char *dev_name, size_t dev_name_size) ++{ ++=09if (!dev_name || !dev_name_size) ++=09=09return NULL; + -+=09if (ret =3D=3D 0 && len > 0) { -+=09=09snprintf(devname, devname_len, "%s%i", device->driver, unit); -+=09=09return true; ++=09for (size_t i =3D 0; hw_types[i].dev_name; ++i) { ++=09=09if (dev_name_size >=3D (hw_types[i].dev_name_size + hw_types[i]= .path_offset) && ++=09=09 !memcmp(dev_name, hw_types[i].dev_name, (hw_types[i].path_o= ffset + hw_types[i].dev_name_size))) { ++=09=09=09return &hw_types[i]; ++=09=09} +=09} ++=09return NULL; ++} + -+=09return false; ++static hw_type_p ++get_dev_type_by_path(const char *dev_name, size_t dev_name_size, hw_t= ype_p hw_type_cust) ++{ ++=09if (!dev_name || !dev_name_size || !hw_type_cust) ++=09=09return NULL; ++ ++=09for (size_t i =3D 0; hw_type_path[i].dev_name; ++i) { ++=09=09if (dev_name_size <=3D hw_type_path[i].path_offset || ++=09=09 memcmp(dev_name, hw_type_path[i].dev_name, hw_type_path[i].= path_offset)) ++=09=09=09continue; ++=09=09/* Path in white list. */ ++=09=09hw_type_cust->dev_name =3D dev_name; ++=09=09hw_type_cust->flags =3D hw_type_path[i].flags; ++=09=09hw_type_cust->xdriver =3D hw_type_path[i].xdriver; ++=09=09hw_type_cust->path_offset =3D hw_type_path[i].path_offset; ++=09=09size_t name_end =3D hw_type_cust->path_offset; ++=09=09while (name_end < dev_name_size && !isdigit(dev_name[name_end])= ) ++=09=09=09++name_end; ++=09=09hw_type_cust->dev_name_size =3D (name_end - hw_type_cust->path_= offset); ++=09=09return hw_type_cust; ++=09} ++=09return NULL; +} + -+static bool -+devpath_exists(const struct hw_type *device, -+=09char *devname, size_t devname_len) ++static int ++is_kbdmux_enabled(void) +{ -+=09char *devpath; -+=09struct stat st; -+=09int ret; ++=09/* Xorg uses /dev/ttyv0 as a console device */ ++=09/* const char device[]=3D"/dev/console"; */ ++=09static const char *device =3D _PATH_TTY "v0"; + -+=09if (device =3D=3D NULL || device->driver =3D=3D NULL) -+=09=09return false; ++=09int fd =3D open(device, O_RDONLY); ++=09if (fd < 0) ++=09=09return 0; + -+=09/* Check if /dev/$driver exists. */ -+=09asprintf(&devpath, "/dev/%s", device->driver); -+=09if (devpath =3D=3D NULL) -+=09=09return false; ++=09keyboard_info_t info; ++=09int ret =3D (ioctl(fd, KDGKBINFO, &info) =3D=3D -1 || ++=09 memcmp(info.kb_name, "kbdmux", 6)) ? 0 : 1; ++=09close(fd); ++=09return ret; ++} + -+=09ret =3D stat(devpath, &st); -+=09free(devpath); ++/* Derived from EvdevProbe() function of xf86-input-evdev driver */ ++static int ++get_evdev_flags(int fd) ++{ ++=09if (fd<0) ++=09=09return 0; + -+=09if (ret =3D=3D 0) { -+=09=09strncpy(devname, device->driver, devname_len); -+=09=09return true; ++=09unsigned long key_bits[ULONG_CNT(KEY_CNT)], rel_bits[ULONG_CNT(REL= _CNT)], abs_bits[ULONG_CNT(ABS_CNT)]; ++=09size_t has_keys =3D 0, has_buttons =3D 0, has_lmr =3D 0, has_rel_a= xes =3D 0, has_abs_axes =3D 0, has_mt =3D 0; ++=09if (ioctl(fd, EVIOCGBIT(EV_KEY, sizeof(key_bits)), key_bits) !=3D = -1) { ++=09=09has_keys =3D bits_calc(key_bits, 0, BTN_MISC); ++=09=09has_buttons =3D bits_calc(key_bits, BTN_MISC, BTN_JOYSTICK); ++=09=09has_lmr =3D bits_calc(key_bits, BTN_LEFT, BTN_MIDDLE); +=09} ++=09if (ioctl(fd, EVIOCGBIT(EV_REL, sizeof(rel_bits)), rel_bits) !=3D = -1) { ++=09=09has_rel_axes =3D bits_calc(rel_bits, 0, REL_MAX); ++=09} ++=09if (ioctl(fd, EVIOCGBIT(EV_ABS, sizeof(abs_bits)), abs_bits) !=3D = -1) { ++=09=09has_abs_axes =3D bits_calc(abs_bits, 0, ABS_MAX); ++=09=09has_mt =3D bits_calc(abs_bits, ABS_MT_SLOT, ABS_MAX); ++=09} + -+=09return false; ++=09int flags =3D 0; ++=09if (has_abs_axes) { ++=09=09if (has_mt) { ++=09=09=09if (!has_buttons) { ++=09=09=09=09/* ++=09=09=09=09 * XXX: I'm not sure that joystick detection is ++=09=09=09=09 * done right. xf86-input-evdev does not support them. ++=09=09=09=09 */ ++=09=09=09=09if (ULONG_IS_BIT_SET(key_bits, BTN_JOYSTICK)) ++=09=09=09=09=09flags =3D ATTR_JOYSTICK; ++=09=09=09=09else ++=09=09=09=09=09++has_buttons; ++=09=09=09} ++=09=09} ++=09=09if (!flags && ULONG_IS_BIT_SET(abs_bits, ABS_X) && ULONG_IS_BIT= _SET(abs_bits, ABS_Y)) { ++=09=09=09if (ULONG_IS_BIT_SET(key_bits, BTN_TOOL_PEN) || ++=09=09=09 ULONG_IS_BIT_SET(key_bits, BTN_STYLUS) || ++=09=09=09 ULONG_IS_BIT_SET(key_bits, BTN_STYLUS2)) ++=09=09=09=09flags =3D ATTR_TABLET; ++=09=09=09else if (ULONG_IS_BIT_SET(abs_bits, ABS_PRESSURE) || ++=09=09=09 ULONG_IS_BIT_SET(key_bits, BTN_TOUCH)) { ++=09=09=09=09if (has_lmr || ULONG_IS_BIT_SET(key_bits, BTN_TOOL_FINGER= )) ++=09=09=09=09=09flags =3D ATTR_TOUCHPAD; ++=09=09=09=09else ++=09=09=09=09=09flags =3D ATTR_TOUCHSCREEN; ++=09=09=09} else if (!(ULONG_IS_BIT_SET(rel_bits, REL_X) && ++=09=09=09 ULONG_IS_BIT_SET(rel_bits, REL_Y)) && ++=09=09=09 has_lmr) /* some touchscreens use BTN_LEFT rathe= r than BTN_TOUCH */ ++=09=09=09=09flags =3D ATTR_TOUCHSCREEN; ++=09=09} ++=09} ++=09if (!flags) { ++=09=09if (has_keys) ++=09=09=09flags =3D ATTR_KEY | ATTR_KEYBOARD; ++=09=09else if (has_rel_axes || has_abs_axes || has_buttons) ++=09=09=09flags =3D ATTR_POINTER; ++=09} ++=09return flags; +} + ++/* From: sys/dev/usb/usb_hid.c */ ++static int ++hid_is_collection(report_desc_t s, uint32_t usage) ++{ ++=09struct hid_data* hd =3D hid_start_parse(s, ~0, -1); ++=09if (!hd) ++=09=09return 0; ++ ++=09struct hid_item hi; ++=09int rc; ++=09while ((rc =3D hid_get_item(hd, &hi))) { ++=09=09 if (hi.kind =3D=3D hid_collection && hi.usage =3D=3D usage) ++=09=09=09break; ++=09} ++=09hid_end_parse(hd); ++=09return rc; ++} ++ ++static int ++hid_is_mouse(report_desc_t s) ++{ ++=09struct hid_data* hd =3D hid_start_parse(s, (1 << hid_input), -1); ++=09if (!hd) ++=09=09return 0; ++ ++=09struct hid_item hi; ++=09int found =3D 0, mdepth =3D 0; ++=09while (hid_get_item(hd, &hi)) { ++=09=09switch (hi.kind) { ++=09=09case hid_collection: ++=09=09=09if (mdepth !=3D 0) ++=09=09=09=09++mdepth; ++=09=09=09else if (hi.collection =3D=3D 1 && ++=09=09=09 hi.usage =3D=3D HID_USAGE2(HUP_GENERIC_DESKTOP, HUG= _MOUSE)) ++=09=09=09=09++mdepth; ++=09=09=09break; ++=09=09case hid_endcollection: ++=09=09=09if (mdepth) ++=09=09=09=09--mdepth; ++=09=09=09break; ++=09=09case hid_input: ++=09=09=09if (!mdepth) ++=09=09=09=09break; ++=09=09=09if (hi.usage =3D=3D HID_USAGE2(HUP_GENERIC_DESKTOP, HUG_X) &= & ++=09=09=09 (hi.flags & (HIO_CONST|HIO_RELATIVE)) =3D=3D HIO_RELATIV= E) ++=09=09=09=09++found; ++=09=09=09if (hi.usage =3D=3D HID_USAGE2(HUP_GENERIC_DESKTOP, HUG_Y) &= & ++=09=09=09 (hi.flags & (HIO_CONST|HIO_RELATIVE)) =3D=3D HIO_RELATIV= E) ++=09=09=09=09++found; ++=09=09=09break; ++=09=09default: ++=09=09=09break; ++=09=09} ++=09} ++=09hid_end_parse(hd); ++=09return found; ++} ++ +static char * -+sysctl_get_str(const char *sysctlname) ++sysctl_get_str(const char *sysctlname, size_t *size_ret) +{ -+=09char *dest =3D NULL; -+=09size_t len; ++=09if (!sysctlname) ++=09=09return NULL; + -+=09if (sysctlname =3D=3D NULL) ++=09size_t len =3D 0; ++=09if (sysctlbyname(sysctlname, NULL, &len, NULL, 0) || !len) +=09=09return NULL; + -+=09if (sysctlbyname(sysctlname, NULL, &len, NULL, 0) =3D=3D 0) { -+=09=09dest =3D malloc(len + 1); -+=09=09if (dest) { -+=09=09=09if (sysctlbyname(sysctlname, dest, &len, NULL, 0) =3D=3D 0) -+=09=09=09=09dest[len] =3D '\0'; -+=09=09=09else { -+=09=09=09=09free(dest); -+=09=09=09=09dest =3D NULL; -+=09=09=09} -+=09=09} ++=09char* dest =3D malloc(len + 1); ++=09if (!dest) ++=09=09return NULL; ++ ++=09if (sysctlbyname(sysctlname, dest, &len, NULL, 0)) { ++=09=09free(dest); ++=09=09return NULL; +=09} -+ ++=09dest[len] =3D 0; ++=09if (size_ret) ++=09=09*size_ret =3D len; +=09return dest; +} + -+static void -+device_added(const char *devname) ++static char * ++devd_get_val(char *buf, size_t buf_size, const char *val_name, size_t= val_name_size, size_t *val_size) +{ -+=09char path[PATH_MAX]; -+=09char sysctlname[PATH_MAX]; -+=09char *vendor; -+=09char *product =3D NULL; -+=09char *config_info =3D NULL; -+=09char *walk; -+=09InputOption *options =3D NULL; -+=09InputAttributes attrs =3D { }; -+=09DeviceIntPtr dev =3D NULL; -+=09int i; -+=09int fd; ++=09if (!buf || !buf_size || !val_name || !val_name_size) ++=09=09return NULL; + -+=09for (i =3D 0; hw_types[i].driver !=3D NULL; i++) { -+=09=09size_t len; -+ -+=09=09len =3D strlen(hw_types[i].driver); -+=09=09if (strcmp(devname, hw_types[i].driver) =3D=3D 0 || -+=09=09=09(strncmp(devname, hw_types[i].driver, len) =3D=3D 0 && -+=09=09=09=09isnumber(*(devname + len)))) { -+=09=09=09attrs.flags |=3D hw_types[i].flag; -+=09=09=09break; ++=09char *ret =3D buf, *buf_end =3D (buf + buf_size); ++=09while (ret && ret < buf_end) { ++=09=09ret =3D memmem(ret, (buf_end - ret), val_name, val_name_size); ++=09=09if (!ret) ++=09=09=09return NULL; ++=09=09/* Found. */ ++=09=09/* Check: space before or buf+1. */ ++=09=09if ((buf + 1) < ret && ret[-1] !=3D ' ') { ++=09=09=09ret +=3D val_name_size; ++=09=09=09continue; +=09=09} ++=09=09/* Check: =3D after name and size for value. */ ++=09=09ret +=3D val_name_size; ++=09=09if ((ret + 1) >=3D buf_end) ++=09=09=09return NULL; ++=09=09if (ret[0] !=3D '=3D') ++=09=09=09continue; ++=09=09++ret; ++=09=09break; +=09} ++=09if (!ret || !val_size) ++=09=09return ret; ++=09/* Calc value data size. */ ++=09char* ptr =3D memchr(ret, ' ', (buf_end - ret)); ++=09if (!ptr) /* End of string/last value. */ ++=09=09ptr =3D buf_end; ++=09*val_size =3D (ptr - ret); ++=09return ret; ++} + -+=09if (hw_types[i].driver =3D=3D NULL || hw_types[i].xdriver =3D=3D N= ULL) { -+=09=09LogMessage(X_INFO, "config/devd: ignoring device %s\n", -+=09=09=09=09devname); ++static void ++device_added(const char *dev_name, size_t dev_name_size, int allow_no= _device) ++{ ++=09if (!dev_name || !dev_name_size || dev_name_size > PATH_MAX) +=09=09return; ++ ++=09char config_info[PATH_MAX + 32]; ++=09/* Make dev_name null ended string. */ ++=09snprintf(config_info, sizeof(config_info), DEVD_PATH_DEV"%.*s", (i= nt)dev_name_size, dev_name); ++=09/* Set / update pointers to dev_name and dev_path. */ ++=09char* dev_path =3D (config_info + DEVD_PATH_LEN); /* Skip: "devd:"= */ ++=09dev_name =3D (dev_path + _PATH_DEV_LEN); /* Skip: "/dev/" */ ++ ++=09/* Is known input device or path? */ ++=09hw_type_t *hwtype =3D get_dev_type_by_name(dev_name, dev_name_size= ); ++=09if (!hwtype) { ++=09=09hw_type_t hwtype_cust; ++=09=09hwtype =3D get_dev_type_by_path(dev_name, dev_name_size, &hwtyp= e_cust); +=09} ++=09if (!hwtype) /* Not found in white list. */ ++=09=09return; + +=09/* Skip keyboard devices if kbdmux is enabled */ -+=09if (is_kbdmux && is_console_kbd && hw_types[i].flag & ATTR_KEYBOAR= D) { -+=09=09LogMessage(X_INFO, "config/devd: kbdmux is enabled, ignoring de= vice %s\n", -+=09=09=09=09devname); ++=09if (is_kbdmux && !allow_no_device && (hwtype->flags & ATTR_KEYBOAR= D)) { ++=09=09LogMessage(X_INFO, "config/devd: kbdmux is enabled, ignoring de= vice %s\n", dev_name); +=09=09return; +=09} -+ -+=09snprintf(path, sizeof(path), "/dev/%s", devname); -+ -+=09options =3D input_option_new(NULL, "_source", "server/devd"); -+=09if (!options) ++=09/* Skip duplicate devices. */ ++=09if (device_is_duplicate(config_info)) { ++=09=09LogMessage(X_WARNING, "config/devd: device %s already added. ig= noring\n", dev_path); +=09=09return; -+ -+=09snprintf(sysctlname, sizeof(sysctlname), "dev.%s.%s.%%desc", -+=09 hw_types[i].driver, devname + strlen(hw_types[i].driver)); -+=09vendor =3D sysctl_get_str(sysctlname); -+=09if (vendor =3D=3D NULL) { -+=09=09options =3D input_option_new(options, "name", devname); +=09} -+=09else { -+=09=09if ((walk =3D strchr(vendor, ' ')) !=3D NULL) { -+=09=09=09walk[0] =3D '\0'; -+=09=09=09walk++; -+=09=09=09product =3D walk; -+=09=09=09if ((walk =3D strchr(product, ',')) !=3D NULL) -+=09=09=09=09walk[0] =3D '\0'; -+=09=09} + -+=09=09attrs.vendor =3D strdup(vendor); -+=09=09if (product) { -+=09=09=09attrs.product =3D strdup(product); -+=09=09=09options =3D input_option_new(options, "name", product); -+=09=09} -+=09=09else -+=09=09=09options =3D input_option_new(options, "name", "(unnamed)"); ++=09/* Init and set attributes. */ ++=09char pnp_usb_id[PATH_MAX], product[PATH_MAX], vendor[PATH_MAX]; ++=09InputAttributes attrs; ++=09memset(&attrs, 0, sizeof(attrs)); ++=09attrs.device =3D dev_path; ++=09attrs.flags =3D hwtype->flags; + -+=09=09free(vendor); -+=09} -+ -+=09/* XXX implement usb_id */ -+=09attrs.usb_id =3D NULL; -+=09attrs.device =3D strdup(path); -+=09options =3D input_option_new(options, "driver", hw_types[i].xdrive= r); -+ -+=09fd =3D open(path, O_RDONLY); -+=09if (fd > 0) { -+=09=09close(fd); -+=09=09options =3D input_option_new(options, "device", path); -+=09} -+=09else { -+=09=09if (attrs.flags & ~ATTR_KEYBOARD) { -+=09=09=09LogMessage(X_INFO, "config/devd: device %s already opened\n"= , -+=09=09=09=09=09 path); -+ ++=09/* Try to open device. */ ++=09int fd =3D open(dev_path, O_RDONLY); ++=09if (fd < 0) { ++=09=09if (!(hwtype->flags & (ATTR_KEY | ATTR_KEYBOARD))) { +=09=09=09/* +=09=09=09 * Fail if cannot open device, it breaks AllowMouseOpenFail,= -+=09=09=09 * but it should not matter when config/devd enabled ++=09=09=09 * but it should not matter when config/devd is enabled +=09=09=09 */ -+=09=09=09goto unwind; ++=09=09=09LogMessage(X_WARNING, "config/devd: device %s already opened= \n", dev_path); ++=09=09=09return; +=09=09} -+ -+=09=09if (is_console_kbd) { ++=09=09if (!allow_no_device) { +=09=09=09/* +=09=09=09 * There can be only one keyboard attached to console and +=09=09=09 * it is already added. +=09=09=09 */ -+=09=09=09LogMessage(X_WARNING, "config/devd: console keyboard is " -+=09=09=09=09=09"already added, ignoring %s (%s)\n", -+=09=09=09=09=09attrs.product, path); -+=09=09=09goto unwind; ++=09=09=09LogMessage(X_WARNING, "config/devd: console keyboard is alre= ady added, ignoring %s\n", dev_path); ++=09=09=09return; +=09=09} -+=09=09else -+=09=09=09/* -+=09=09=09 * Don't pass "device" option if the keyboard is already -+=09=09=09 * attached to the console (ie. open() fails). -+=09=09=09 * This would activate a special logic in xf86-input-keyboar= d. -+=09=09=09 * Prevent any other attached to console keyboards being -+=09=09=09 * processed. There can be only one such device. -+=09=09=09 */ -+=09=09=09is_console_kbd =3D true; -+=09} ++=09} else { ++=09=09/* Try to get device info via ioctl(). */ ++=09=09keyboard_info_t kbdi; ++=09=09mousehw_t mshw; ++=09=09struct input_id iid; ++=09=09report_desc_t rep_desc; + -+=09if (asprintf(&config_info, "devd:%s", devname) =3D=3D -1) { -+=09=09config_info =3D NULL; -+=09=09goto unwind; ++=09=09if (ioctl(fd, KDGKBINFO, &kbdi) !=3D -1) { /* Is this keyboard?= */ ++=09=09=09memcpy(product, kbdi.kb_name, sizeof(kbdi.kb_name)); ++=09=09=09attrs.product =3D product; ++=09=09=09attrs.flags =3D ATTR_KEY | ATTR_KEYBOARD; ++=09=09=09LogMessage(X_INFO, "config/devd: detected keyboard: %s, kb_i= ndex=3D%i, kb_unit=3D%i, kb_type=3D%i, kb_config=3D%i\n", ++=09=09=09 kbdi.kb_name, kbdi.kb_index, kbdi.kb_unit, kbdi.k= b_type, kbdi.kb_config); ++=09=09} else if (ioctl(fd, MOUSE_GETHWINFO, &mshw) !=3D -1) { /* Is t= his mouse? */ ++=09=09=09/* FreeBSD mouse drivers does not return real vid+pid. */ ++=09=09=09/* construct USB ID in lowercase hex - "0000:ffff" */ ++=09=09=09if (mshw.iftype !=3D MOUSE_IF_USB && mshw.model > 0) { ++=09=09=09=09snprintf(pnp_usb_id, sizeof(pnp_usb_id), "%04x:%04x", msh= w.hwid, mshw.model); ++=09=09=09=09attrs.usb_id =3D pnp_usb_id; ++=09=09=09} ++=09=09=09if (mshw.type =3D=3D MOUSE_PAD) ++=09=09=09=09attrs.flags =3D ATTR_TOUCHPAD; ++=09=09=09else ++=09=09=09=09attrs.flags =3D ATTR_POINTER; ++=09=09=09LogMessage(X_INFO, "config/devd: detected mouse: hwid=3D%04x= , model=3D%04x, type=3D%04x, iftype=3D%04x, buttons=3D%d\n", ++=09=09=09 mshw.hwid, mshw.model, mshw.type, mshw.iftype, ms= hw.buttons); ++=09=09} else if (ioctl(fd, JSIOCGNAME((sizeof(product) - 1)), product= ) !=3D -1) { /* Is this joystick? */ ++=09=09=09attrs.product =3D product; ++=09=09=09attrs.flags =3D ATTR_JOYSTICK; ++=09=09=09LogMessage(X_INFO, "config/devd: detected joystick: %s\n", p= roduct); ++=09=09} else if (ioctl(fd, EVIOCGID, &iid) !=3D -1 && ++=09=09 ioctl(fd, EVIOCGNAME((sizeof(product) - 1)), product= ) !=3D -1) { /* Is this event? */ ++=09=09=09/* construct USB ID in lowercase hex - "0000:ffff" */ ++=09=09=09snprintf(pnp_usb_id, sizeof(pnp_usb_id), "%04x:%04x", iid.ve= ndor, iid.product); ++=09=09=09attrs.usb_id =3D pnp_usb_id; ++=09=09=09attrs.product =3D product; ++=09=09=09/* Detect device type. */ ++=09=09=09attrs.flags =3D get_evdev_flags(fd); ++=09=09=09/* Skip keyboard devices if kbdmix is enabled */ ++=09=09=09if (is_kbdmux && (attrs.flags & ATTR_KEYBOARD)) { ++=09=09=09=09close(fd); ++=09=09=09=09LogMessage(X_INFO, "config/devd: kbdmux is enabled, ignor= ing device %s\n", dev_name); ++=09=09=09=09return; ++=09=09=09} ++=09=09=09LogMessage(X_INFO, "config/devd: detected event input: %s, b= ustype=3D%04x, vendor=3D%04x, product=3D%04x, version=3D%04x\n", ++=09=09=09 product, iid.bustype, iid.vendor, iid.product, ii= d.version); ++=09=09} else if ((rep_desc =3D hid_get_report_desc(fd))) { /* Is USB = HID? */ ++=09=09=09if (hid_is_mouse(rep_desc)) { ++=09=09=09=09attrs.flags =3D ATTR_POINTER; ++=09=09=09=09LogMessage(X_INFO, "config/devd: detected USB HID mouse\n= "); ++=09=09=09} else if (hid_is_collection(rep_desc, HID_USAGE2(HUP_GENERI= C_DESKTOP, HUG_KEYBOARD))) { ++=09=09=09=09/* Skip keyboard devices if kbdmux is enabled */ ++=09=09=09=09if (is_kbdmux) { ++=09=09=09=09=09hid_dispose_report_desc(rep_desc); ++=09=09=09=09=09close(fd); ++=09=09=09=09=09LogMessage(X_INFO, "config/devd: kbdmux is enabled, ig= noring device %s\n", dev_name); ++=09=09=09=09=09return; ++=09=09=09=09} ++=09=09=09=09attrs.flags =3D ATTR_KEY | ATTR_KEYBOARD; ++=09=09=09=09LogMessage(X_INFO, "config/devd: detected USB HID keyboar= d\n"); ++=09=09=09} else if (hid_is_collection(rep_desc, HID_USAGE2(HUP_GENERI= C_DESKTOP, HUG_JOYSTICK)) || ++=09=09=09 hid_is_collection(rep_desc, HID_USAGE2(HUP_GENERI= C_DESKTOP, HUG_GAME_PAD))) { ++=09=09=09=09attrs.flags =3D ATTR_JOYSTICK; ++=09=09=09=09LogMessage(X_INFO, "config/devd: detected USB HID joystic= k\n"); ++=09=09=09} else ++=09=09=09=09LogMessage(X_INFO, "config/devd: detected USB HID of unkn= own type\n"); ++=09=09=09hid_dispose_report_desc(rep_desc); ++=09=09} ++ ++=09=09if (!attrs.usb_id) { /* Is this webcamd device? */ ++=09=09=09unsigned short vid, pid; ++=09=09=09if (ioctl(fd, WEBCAMD_IOCTL_GET_USB_VENDOR_ID, &vid) !=3D -1= && ++=09=09=09 ioctl(fd, WEBCAMD_IOCTL_GET_USB_PRODUCT_ID, &pid) !=3D -= 1) { ++=09=09=09=09snprintf(pnp_usb_id, sizeof(pnp_usb_id), "%04x:%04x", vid= , pid); ++=09=09=09=09attrs.usb_id =3D pnp_usb_id; ++=09=09=09=09LogMessage(X_INFO, "config/devd: webcamd device: %s\n", p= np_usb_id); ++=09=09=09} ++=09=09} +=09} ++=09close(fd); + -+=09if (device_is_duplicate(config_info)) { -+=09=09LogMessage(X_WARNING, "config/devd: device %s (%s) already adde= d. " -+=09=09=09=09"ignoring\n", attrs.product, path); -+=09=09goto unwind; ++=09/* Try to get device info via sysctl(). */ ++=09if (!attrs.usb_id && !attrs.pnp_id) { ++=09=09char sysctlname[PATH_MAX]; ++=09=09snprintf(sysctlname, sizeof(sysctlname), "dev.%.*s.%s.%%pnpinfo= ", ++=09=09 (int)hwtype->dev_name_size, ++=09=09 (hwtype->dev_name + hwtype->path_offset), ++=09=09 (dev_name + hwtype->path_offset + hwtype->dev_name_siz= e)); ++=09=09size_t sdata_size; ++=09=09char* sdata =3D sysctl_get_str(sysctlname, &sdata_size); ++=09=09if (sdata) { ++=09=09=09size_t pid_size, vid_size; ++=09=09=09char* ptr_vid =3D devd_get_val_cstr("vendor", sdata, sdata_s= ize, &vid_size); ++=09=09=09char* ptr_pid =3D devd_get_val_cstr("product", sdata, sdata_= size, &pid_size); ++=09=09=09if (ptr_vid && ptr_pid) { /* usb_id */ ++=09=09=09=09ptr_vid[vid_size] =3D 0; ++=09=09=09=09ptr_pid[pid_size] =3D 0; ++=09=09=09=09snprintf(pnp_usb_id, sizeof(pnp_usb_id), "%s:%s", ptr_vid= , ptr_pid); ++=09=09=09=09attrs.usb_id =3D pnp_usb_id; ++=09=09=09=09LogMessage(X_INFO, "config/devd: [sysctl] usb_id: %s\n", = pnp_usb_id); ++=09=09=09} else { /* pnp_id */ ++=09=09=09=09strlcpy(pnp_usb_id, sdata, sizeof(pnp_usb_id)); ++=09=09=09=09attrs.pnp_id =3D pnp_usb_id; ++=09=09=09} ++=09=09=09free(sdata); ++=09=09} +=09} ++=09if (!attrs.vendor || !attrs.product) { ++=09=09char sysctlname[PATH_MAX]; ++=09=09snprintf(sysctlname, sizeof(sysctlname), "dev.%.*s.%s.%%desc", ++=09=09 (int)hwtype->dev_name_size, ++=09=09 (hwtype->dev_name + hwtype->path_offset), ++=09=09 (dev_name + hwtype->path_offset + hwtype->dev_name_siz= e)); ++=09=09size_t sdata_size; ++=09=09char* sdata =3D sysctl_get_str(sysctlname, &sdata_size); ++=09=09if (sdata) { ++=09=09=09/* Vendor. */ ++=09=09=09char* ptr_pid =3D memchr(sdata, ' ', sdata_size); ++=09=09=09if (ptr_pid) ++=09=09=09=09ptr_pid[0] =3D 0; ++=09=09=09strlcpy(vendor, sdata, sizeof(vendor)); ++=09=09=09attrs.vendor =3D vendor; ++=09=09=09/* Product. */ ++=09=09=09if (!attrs.product && ptr_pid) { ++=09=09=09=09++ptr_pid; ++=09=09=09=09char* ptr_vid =3D memchr(ptr_pid, ',', (sdata_size - (ptr= _pid - sdata))); ++=09=09=09=09if (ptr_vid) ++=09=09=09=09=09ptr_vid[0] =3D 0; ++=09=09=09=09strlcpy(product, ptr_pid, sizeof(product)); ++=09=09=09=09attrs.product =3D product; ++=09=09=09} else ++=09=09=09=09product[0] =3D 0; ++=09=09=09free(sdata); ++=09=09=09LogMessage(X_INFO, "config/devd: [sysctl] vendor: %s, produc= t: %s\n", vendor, product); ++=09=09} ++=09} + -+=09options =3D input_option_new(options, "config_info", config_info);= -+=09LogMessage(X_INFO, "config/devd: adding input device %s (%s)\n", -+=09=09=09attrs.product, path); -+ -+=09NewInputDeviceRequest(options, &attrs, &dev); -+ -+unwind: -+=09free(config_info); -+=09input_option_free_list(&options); -+=09free(attrs.usb_id); -+=09free(attrs.product); -+=09free(attrs.device); -+=09free(attrs.vendor); ++=09/* Init options. */ ++=09InputOption *option =3D NULL, *options =3D NULL; ++=09if ((option =3D input_option_new(options, "_source", "server/devd"= ))) ++=09=09options =3D option; ++=09if (option && (option =3D input_option_new(options, "config_info",= config_info))) ++=09=09options =3D option; ++=09if (option && (option =3D input_option_new(options, "name", (attrs= .product ? attrs.product : dev_name)))) ++=09=09options =3D option; ++=09if (option && hwtype->xdriver && (option =3D input_option_new(opti= ons, "driver", hwtype->xdriver))) ++=09=09options =3D option; ++=09/* ++=09 * Don't pass "device" option if the keyboard is already attached = to the console (ie. open() failed) ++=09 * This would activate a special logic in xf86-input-keyboard. Pre= vent any other attached to console ++=09 * keyboards being processed. There can be only one such device. ++=09 */ ++=09if (option && fd >=3D 0 && (option =3D input_option_new(options, "= device", dev_path))) ++=09=09options =3D option; ++=09/* Most drivers just use "device" but evdev also uses "path" so po= pulate both */ ++=09if (option && (option =3D input_option_new(options, "path", dev_pa= th))) ++=09=09options =3D option; ++=09if (option) { ++=09=09LogMessage(X_INFO, "config/devd: adding input device %s\n", dev= _path); ++=09=09DeviceIntPtr dev_iptr =3D NULL; ++=09=09int rc; ++=09=09if ((rc =3D NewInputDeviceRequest(options, &attrs, &dev_iptr)) = !=3D Success) ++=09=09=09LogMessage(X_ERROR, "config/devd: error %d adding device %s\= n", rc, dev_path); ++=09} else ++=09=09LogMessage(X_ERROR, "config/devd: error adding device %s\n", de= v_path); ++=09if (options) ++=09=09input_option_free_list(&options); ++=09return; +} + +static void -+device_removed(char *devname) ++device_removed(const char *dev_name, size_t dev_name_size) +{ -+=09char *config_info; + -+=09if (asprintf(&config_info, "devd:%s", devname) =3D=3D -1) ++=09if (!dev_name || !dev_name_size || dev_name_size > PATH_MAX) +=09=09return; + ++=09hw_type_t hwtype_cust; ++=09if (!get_dev_type_by_name(dev_name, dev_name_size) && ++=09 !get_dev_type_by_path(dev_name, dev_name_size, &hwtype_cust)) ++=09=09return;=09/* Device not in list - unknown. */ ++ ++=09char config_info[PATH_MAX + 32]; ++=09snprintf(config_info, sizeof(config_info), DEVD_PATH_DEV"%.*s", (i= nt)dev_name_size, dev_name); ++=09if (device_is_duplicate(config_info)) ++=09=09LogMessage(X_INFO, "config/devd: removing input device %s\n", (= config_info + DEVD_PATH_LEN)); ++=09else ++=09=09LogMessage(X_INFO, "config/devd: removing nonexistent device %s= \n", (config_info + DEVD_PATH_LEN)); +=09remove_devices("devd", config_info); -+ -+=09free(config_info); ++=09return; +} + -+static bool is_kbdmux_enabled(void) -+{ -+=09/* Xorg uses /dev/ttyv0 as a console device */ -+=09/* const char device[]=3D"/dev/console"; */ -+=09const char device[]=3D"/dev/ttyv0"; -+=09keyboard_info_t info; -+=09int fd; ++static void socket_handler(int fd, int ready, void *data); + -+=09fd =3D open(device, O_RDONLY); -+ -+=09if (fd < 0) -+=09=09return false; -+ -+=09if (ioctl(fd, KDGKBINFO, &info) =3D=3D -1) { -+=09=09close(fd); -+=09=09return false; -+=09} -+ -+=09close(fd); -+ -+=09if (!strncmp(info.kb_name, "kbdmux", 6)) -+=09=09return true; -+ -+=09return false; -+} -+ -+static void -+disconnect_devd(int sock) -+{ -+=09if (sock >=3D 0) { -+=09=09RemoveGeneralSocket(sock); -+=09=09close(sock); -+=09} -+} -+ +static int +connect_devd(void) +{ -+=09struct sockaddr_un devd; -+=09int sock; -+ -+=09sock =3D socket(AF_UNIX, SOCK_STREAM, 0); ++=09int sock =3D socket(AF_UNIX, SOCK_STREAM, 0); +=09if (sock < 0) { -+=09=09LogMessage(X_ERROR, "config/devd: fail opening stream socket\n"= ); ++=09=09LogMessage(X_ERROR, "config/devd: failed opening stream socket:= %s\n", strerror(errno)); +=09=09return -1; +=09} + ++=09struct sockaddr_un devd; +=09devd.sun_family =3D AF_UNIX; -+=09strlcpy(devd.sun_path, DEVD_SOCK_PATH, sizeof(devd.sun_path)); -+ -+=09if (connect(sock, (struct sockaddr *) &devd, sizeof(devd)) < 0) { ++=09memcpy(devd.sun_path, DEVD_SOCK_PATH, sizeof(DEVD_SOCK_PATH)); ++=09if (connect(sock, (struct sockaddr*)&devd, sizeof(devd)) < 0) { ++=09=09int error =3D errno; +=09=09close(sock); -+=09=09LogMessage(X_ERROR, "config/devd: fail to connect to devd\n"); ++=09=09LogMessage(X_ERROR, "config/devd: failed to connect to devd: %s= )\n", strerror(error)); +=09=09return -1; +=09} + -+=09AddGeneralSocket(sock); ++=09SetNotifyFd(sock, socket_handler, X_NOTIFY_READ, NULL); ++=09return sock; ++} + -+=09return=09sock; ++static void ++disconnect_devd(int sock) ++{ ++=09if (sock < 0) ++=09=09return; ++=09RemoveNotifyFd(sock); ++=09close(sock); ++=09return; +} + +static CARD32 +reconnect_handler(OsTimerPtr timer, CARD32 time, void *arg) +{ -+=09int newsock; -+ -+=09if ((newsock =3D connect_devd()) > 0) { -+=09=09sock_devd =3D newsock; -+=09=09TimerFree(rtimer); -+=09=09rtimer =3D NULL; -+=09=09LogMessage(X_INFO, "config/devd: reopening devd socket\n"); -+=09=09return 0; -+=09} -+ -+=09/* Try again after RECONNECT_DELAY */ -+=09return RECONNECT_DELAY; ++=09devd_buf_used =3D 0; ++=09devd_skt =3D connect_devd(); ++=09if (devd_skt < 0) /* Try again after RECONNECT_DELAY */ ++=09=09return RECONNECT_DELAY; ++=09TimerFree(rtimer); ++=09rtimer =3D NULL; ++=09LogMessage(X_INFO, "config/devd: reopened devd socket\n"); ++=09return 0; +} + -+static ssize_t -+socket_getline(int fd, char **out) ++static void ++socket_handler(int fd, int ready, void *data) +{ -+=09char *buf, *newbuf; -+=09ssize_t ret, cap, sz =3D 0; -+=09char c; -+ -+=09cap =3D 1024; -+=09buf =3D malloc(cap * sizeof(char)); -+=09if (!buf) -+=09=09return -1; -+ -+=09for (;;) { -+=09=09ret =3D read(sock_devd, &c, 1); -+=09=09if (ret < 0) { -+=09=09=09if (errno =3D=3D EINTR) -+=09=09=09=09continue; -+=09=09=09free(buf); -+=09=09=09return -1; -+=09=09/* EOF - devd socket is lost */ -+=09=09} else if (ret =3D=3D 0) { -+=09=09=09disconnect_devd(sock_devd); -+=09=09=09rtimer =3D TimerSet(NULL, 0, 1, reconnect_handler, NULL); -+=09=09=09LogMessage(X_WARNING, "config/devd: devd socket is lost\n");= -+=09=09=09free(buf); -+=09=09=09return -1; ++=09/* Read new data. */ ++=09while (1) { ++=09=09ssize_t ios =3D recv(devd_skt, (devd_buf + devd_buf_used), (siz= eof(devd_buf) - devd_buf_used), MSG_DONTWAIT); ++=09=09if (ios > 0) { /* Read OK. */ ++=09=09=09devd_buf_used +=3D ios; ++=09=09=09continue; /* Try to read more. */ +=09=09} -+=09=09if (c =3D=3D '\n') -+=09=09=09break; -+ -+=09=09if (sz + 1 >=3D cap) { -+=09=09=09cap *=3D 2; -+=09=09=09newbuf =3D realloc(buf, cap * sizeof(char)); -+=09=09=09if (!newbuf) { -+=09=09=09=09free(buf); -+=09=09=09=09return -1; -+=09=09=09} -+=09=09=09buf =3D newbuf; ++=09=09/* Something wrong. */ ++=09=09int error =3D errno; ++=09=09if (error =3D=3D EAGAIN) ++=09=09=09break; /* All available data read. */ ++=09=09if (error =3D=3D EINTR) ++=09=09=09continue; ++=09=09if (devd_buf_used >=3D sizeof(devd_buf)) { ++=09=09=09devd_buf_used =3D 0; /* Message too long, reset buf. */ ++=09=09=09continue; +=09=09} -+=09=09buf[sz] =3D c; -+=09=09sz++; ++=09=09/* devd socket is lost */ ++=09=09disconnect_devd(devd_skt); ++=09=09rtimer =3D TimerSet(NULL, 0, 1, reconnect_handler, NULL); ++=09=09LogMessage(X_WARNING, "config/devd: devd socket read error: %s\= n", strerror(error)); ++=09=09return; +=09} + -+=09buf[sz] =3D '\0'; -+=09if (sz >=3D 0) -+=09=09*out =3D buf; -+=09else -+=09=09free(buf); ++=09/* Process data. */ ++=09char *ptr, *line =3D (devd_buf + 1); ++=09size_t line_size =3D 0; ++=09while((ptr =3D memchr(line, '\n', (devd_buf_used - line_size)))) {= ++=09=09line_size =3D (ptr - line); ++=09=09do { ++=09=09=09if (*(line - 1) !=3D DEVD_EVENT_NOTIFY) ++=09=09=09=09break; /* Handle only notify. */ ++=09=09=09/* Check: is system=3DDEVFS. */ ++=09=09=09size_t val_size; ++=09=09=09char* val =3D devd_get_val_cstr("system", line, line_size, &= val_size); ++=09=09=09if (!is_meuqual_cstr("DEVFS", val, val_size)) ++=09=09=09=09break; ++=09=09=09/* Check: is subsystem=3DCDEV. */ ++=09=09=09val =3D devd_get_val_cstr("subsystem", line, line_size, &val= _size); ++=09=09=09if (!is_meuqual_cstr("CDEV", val, val_size)) ++=09=09=09=09break; ++=09=09=09/* Get device name. */ ++=09=09=09size_t cdev_size; ++=09=09=09char* cdev =3D devd_get_val_cstr("cdev", line, line_size, &c= dev_size); ++=09=09=09if (!cdev) ++=09=09=09=09break; ++=09=09=09/* Get event type. */ ++=09=09=09val =3D devd_get_val_cstr("type", line, line_size, &val_size= ); ++=09=09=09if (is_meuqual_cstr("CREATE", val, val_size)) { ++=09=09=09=09device_added(cdev, cdev_size, 0); ++=09=09=09} else if (is_meuqual_cstr("DESTROY", val, val_size)) { ++=09=09=09=09device_removed(cdev, cdev_size); ++=09=09=09} ++=09=09} while(0); + -+=09/* Number of bytes in the line, not counting the line break */ -+=09return sz; -+} -+ -+static void -+wakeup_handler(void *data, int err, void *read_mask) -+{ -+=09char *line =3D NULL; -+=09char *walk; -+ -+=09if (err < 0) -+=09=09return; -+ -+=09if (FD_ISSET(sock_devd, (fd_set *) read_mask)) { -+=09=09if (socket_getline(sock_devd, &line) < 0) ++=09=09line +=3D (line_size + 2); /* Skip '\n' and event type byte. */= ++=09=09line_size =3D (line - devd_buf); ++=09=09if (devd_buf_used <=3D line_size) { ++=09=09=09devd_buf_used =3D 0; +=09=09=09return; -+ -+=09=09walk =3D strchr(line + 1, ' '); -+=09=09if (walk !=3D NULL) -+=09=09=09walk[0] =3D '\0'; -+ -+=09=09switch (*line) { -+=09=09case DEVD_EVENT_ADD: -+=09=09=09device_added(line + 1); -+=09=09=09break; -+=09=09case DEVD_EVENT_REMOVE: -+=09=09=09device_removed(line + 1); -+=09=09=09break; -+=09=09default: -+=09=09=09break; +=09=09} -+=09=09free(line); +=09} ++=09/* Save line without end marker. */ ++=09if (line_size) { ++=09=09devd_buf_used -=3D (line_size - 1); ++=09=09memmove(devd_buf, (line - 1), devd_buf_used); ++=09} ++=09return; +} + -+static void -+block_handler(void *data, struct timeval **tv, void *read_mask) -+{ -+} -+ +int +config_devd_init(void) +{ -+=09char devicename[1024]; -+=09int i, j; -+ +=09LogMessage(X_INFO, "config/devd: probing input devices...\n"); + +=09/* @@ -494,27 +828,46 @@ +=09 * Add fake keyboard and give up on keyboards management +=09 * if kbdmux is enabled +=09 */ -+=09if ((is_kbdmux =3D is_kbdmux_enabled()) =3D=3D true) -+=09=09device_added("kbdmux"); ++=09is_kbdmux =3D is_kbdmux_enabled(); ++=09if (is_kbdmux) ++=09=09device_added("kbdmux0", 7, 1); + -+=09for (i =3D 0; hw_types[i].driver !=3D NULL; i++) { -+=09=09/* First scan the sysctl to determine the hardware */ -+=09=09for (j =3D 0; j < 16; j++) { -+=09=09=09if (sysctl_exists(&hw_types[i], j, -+=09=09=09=09=09devicename, sizeof(devicename)) !=3D 0) -+=09=09=09=09device_added(devicename); ++=09/* Scan /dev/ for devices. */ ++=09struct dirent** namelist; ++=09size_t dir_cnt =3D scandir(_PATH_DEV, &namelist, 0, alphasort); ++=09for (size_t i =3D 0; i < dir_cnt; ++i) { ++=09=09struct dirent* de =3D namelist[i]; ++=09=09if (is_de_euqual_cstr(de, ".") || ++=09=09 is_de_euqual_cstr(de, "..")) { ++=09=09=09free(de); ++=09=09=09continue; +=09=09} -+ -+=09=09if (devpath_exists(&hw_types[i], devicename, sizeof(devicename)= ) !=3D 0) -+=09=09=09device_added(devicename); ++=09=09if (de->d_type !=3D DT_DIR) { ++=09=09=09device_added(de->d_name, de->d_namlen, 0); ++=09=09} else { /* Sub folder. */ ++=09=09=09char devicename[PATH_MAX]; ++=09=09=09snprintf(devicename, sizeof(devicename), _PATH_DEV "%s", de-= >d_name); ++=09=09=09struct dirent** snamelist; ++=09=09=09size_t sdir_cnt =3D scandir(devicename, &snamelist, 0, alpha= sort); ++=09=09=09for (size_t j =3D 0; j < sdir_cnt; ++j) { ++=09=09=09=09struct dirent* sde =3D snamelist[j]; ++=09=09=09=09if (!is_de_euqual_cstr(sde, ".") && ++=09=09=09=09 !is_de_euqual_cstr(sde, "..") && ++=09=09=09=09 sde->d_type !=3D DT_DIR) { ++=09=09=09=09=09size_t tm =3D snprintf(devicename, sizeof(devicename),= "%s/%s", de->d_name, sde->d_name); ++=09=09=09=09=09device_added(devicename, tm, 0); ++=09=09=09=09} ++=09=09=09=09free(sde); ++=09=09=09} ++=09=09=09free(snamelist); ++=09=09} ++=09=09free(de); +=09} ++=09free(namelist); + -+=09if ((sock_devd =3D connect_devd()) < 0) -+=09=09return 0; -+ -+=09RegisterBlockAndWakeupHandlers(block_handler, wakeup_handler, NULL= ); -+ -+=09return 1; ++=09devd_buf_used =3D 0; ++=09devd_skt =3D connect_devd(); ++=09return (devd_skt < 0) ? 0 : 1; +} + +void @@ -527,9 +880,6 @@ +=09=09rtimer =3D NULL; +=09} + -+=09disconnect_devd(sock_devd); -+ -+=09RemoveBlockAndWakeupHandlers(block_handler, wakeup_handler, NULL);= -+ -+=09is_console_kbd =3D false; ++=09disconnect_devd(devd_skt); ++=09return; +} Index: x11-servers/xorg-server/files/patch-config_udev.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- x11-servers/xorg-server/files/patch-config_udev.c=09(nonexistent) +++ x11-servers/xorg-server/files/patch-config_udev.c=09(working copy) @@ -0,0 +1,53 @@ +* Don't pass the device parameter when using kbdmux to prevent conflic= t +* +* Specify a driver to use for basic devices (keyboard and mouse), othe= rwise none attaches +* +--- config/udev.c.orig=092017-03-15 18:05:25 UTC ++++ config/udev.c +@@ -29,6 +29,7 @@ +=20 + #include + #include ++#include + #include +=20 + #include "input.h" +@@ -188,7 +189,21 @@ device_added(struct udev_device *udev_de + attrs.product =3D strdup(name); + input_options =3D input_option_new(input_options, "name", name); + input_options =3D input_option_new(input_options, "path", path); +- input_options =3D input_option_new(input_options, "device", path)= ; ++ if(strstr(path, "kbdmux") !=3D NULL) { ++ /* ++ * Don't pass "device" option if the keyboard is already atta= ched ++ * to the console (ie. open() fails). This would activate a s= pecial ++ * logic in xf86-input-keyboard. Prevent any other attached t= o console ++ * keyboards being processed. There can be only one such devi= ce. ++ */ ++ int fd =3D open(path, O_RDONLY); ++ if (fd > -1) { ++ close(fd); ++ input_options =3D input_option_new(input_options, "device= ", path); ++ } ++ } ++ else ++ input_options =3D input_option_new(input_options, "device", p= ath); + input_options =3D input_option_new(input_options, "major", itoa(m= ajor(devnum))); + input_options =3D input_option_new(input_options, "minor", itoa(m= inor(devnum))); + if (path) +@@ -272,6 +287,15 @@ device_added(struct udev_device *udev_de + } + } +=20 ++ if (attrs.flags & (ATTR_KEY | ATTR_KEYBOARD)) ++ input_options =3D input_option_new(input_options, "driver", "= kbd"); ++ else if (attrs.flags & ATTR_POINTER) { ++ if (strstr(path, "vbox")) ++ input_options =3D input_option_new(input_options, "driver= ", "vboxmouse"); ++ else ++ input_options =3D input_option_new(input_options, "driver= ", "mouse"); ++ } ++ + input_options =3D input_option_new(input_options, "config_info", = config_info); +=20 + /* Default setting needed for non-seat0 seats */ Property changes on: x11-servers/xorg-server/files/patch-config_udev.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: x11-servers/xorg-server/files/patch-configure =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- x11-servers/xorg-server/files/patch-configure=09(revision 436260) +++ x11-servers/xorg-server/files/patch-configure=09(working copy) @@ -1,6 +1,41 @@ ---- configure.orig=092016-07-19 17:27:31 UTC +* generated from patched configure.ac; revise and regen instead of edi= ting +* +* Plumb the devd config backend into configure +* +* define USE_DEV_IO for ARM platforms +* +* Only run pkg-config for udev if it is not disabled to prevent over-l= inking +* +* Automatically use systemd/logind only on Linux +* +--- configure.orig=092017-03-15 18:05:39 UTC +++ configure -@@ -23168,9 +23168,14 @@ $as_echo "#define USE_ALPHA_PIO 1" >>con +@@ -1032,6 +1032,8 @@ CONFIG_UDEV_FALSE + CONFIG_UDEV_TRUE + UDEV_LIBS + UDEV_CFLAGS ++CONFIG_DEVD_FALSE ++CONFIG_DEVD_TRUE + HAVE_SYSTEMD_DAEMON_FALSE + HAVE_SYSTEMD_DAEMON_TRUE + SYSTEMD_DAEMON_LIBS +@@ -1367,6 +1369,7 @@ enable_tslib + enable_dbe + enable_xf86bigfont + enable_dpms ++enable_config_devd + enable_config_udev + enable_config_udev_kms + enable_config_hal +@@ -2191,6 +2194,7 @@ Optional Features: + --disable-dbe Build DBE extension (default: enabled) + --enable-xf86bigfont Build XF86 Big Font extension (default: dis= abled) + --disable-dpms Build DPMS extension (default: enabled) ++ --enable-config-devd Build devd support (default: auto) + --enable-config-udev Build udev support (default: auto) + --enable-config-udev-kms + Build udev kms support (default: auto) +@@ -23280,9 +23284,13 @@ $as_echo "#define USE_ALPHA_PIO 1" >>con =09esac =09GLX_ARCH_DEFINES=3D"-D__GLX_ALIGN64 -mieee" =09;; @@ -9,19 +44,122 @@ =09ARM_VIDEO=3Dyes =09DEFAULT_INT10=3D"stub" +=09case $host_os in -+=09=09*freebsd*) -+=09=09=09$as_echo "#define USE_DEV_IO 1" >>confdefs.h -+=09=09 ;; ++=09=09*freebsd*)=09$as_echo "#define USE_DEV_IO 1" >>confdefs.h ++ ;; +=09esac =09;; i*86) =09I386_VIDEO=3Dyes -@@ -26057,7 +26062,7 @@ fi - case "x$XTRANS_SEND_FDS" in - xauto) - =09case "$host_os" in --=09linux*|solaris*) -+=09linux*|solaris*|freebsd*|dragonfly*|openbsd*) - =09=09XTRANS_SEND_FDS=3Dyes - =09=09;; - =09*) +@@ -24053,6 +24061,13 @@ else + DPMSExtension=3Dyes + fi +=20 ++# Check whether --enable-config-devd was given. ++if test "${enable_config_devd+set}" =3D set; then : ++ enableval=3D$enable_config_devd; CONFIG_DEVD=3D$enableval ++else ++ CONFIG_DEVD=3Dauto ++fi ++ + # Check whether --enable-config-udev was given. + if test "${enable_config_udev+set}" =3D set; then : + enableval=3D$enable_config_udev; CONFIG_UDEV=3D$enableval +@@ -25813,6 +25828,31 @@ if test "x$CONFIG_UDEV" =3D xyes && test " + =09as_fn_error $? "Hotplugging through both libudev and hal not allow= ed" "$LINENO" 5 + fi +=20 ++if test "x$CONFIG_DEVD" =3D xauto; then ++=09case $host_os in ++=09=09*freebsd*) ++=09=09=09CONFIG_DEVD=3Dyes ++=09=09=09;; ++=09=09*) ++=09=09=09CONFIG_DEVD=3Dno ++=09=09=09;; ++=09esac ++fi ++ if test "x$CONFIG_DEVD" =3D xyes; then ++ CONFIG_DEVD_TRUE=3D ++ CONFIG_DEVD_FALSE=3D'#' ++else ++ CONFIG_DEVD_TRUE=3D'#' ++ CONFIG_DEVD_FALSE=3D ++fi ++ ++if test "x$CONFIG_DEVD" =3D xyes; then ++ ++$as_echo "#define CONFIG_DEVD 1" >>confdefs.h ++ ++fi ++ ++if test "x$CONFIG_UDEV" !=3D xno; then +=20 + pkg_failed=3Dno + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5 +@@ -25884,11 +25924,12 @@ else + $as_echo "yes" >&6; } + =09HAVE_LIBUDEV=3Dyes + fi +-if test "x$CONFIG_UDEV" =3D xauto; then +-=09CONFIG_UDEV=3D"$HAVE_LIBUDEV" ++=09if test "x$CONFIG_UDEV" =3D xauto; then ++=09=09CONFIG_UDEV=3D"$HAVE_LIBUDEV" +=20 + $as_echo "#define HAVE_LIBUDEV 1" >>confdefs.h +=20 ++=09fi + fi + if test "x$CONFIG_UDEV" =3D xyes; then + CONFIG_UDEV_TRUE=3D +@@ -26132,7 +26173,14 @@ fi +=20 + if test "x$SYSTEMD_LOGIND" =3D xauto; then + if test "x$HAVE_DBUS" =3D xyes -a "x$CONFIG_UDEV" =3D xyes ; = then +- SYSTEMD_LOGIND=3Dyes ++ case $host_os in ++ *linux*) ++ SYSTEMD_LOGIND=3Dyes ++ ;; ++ *) ++ SYSTEMD_LOGIND=3Dno ++ ;; ++ esac + else + SYSTEMD_LOGIND=3Dno + fi +@@ -32849,17 +32897,17 @@ DIX_CFLAGS=3D"-DHAVE_DIX_CONFIG_H $XSERVER + ac_config_commands=3D"$ac_config_commands sdksyms" +=20 +=20 +-if test "x$CONFIG_HAL" =3D xno && test "x$CONFIG_UDEV" =3D xno; then ++if test "x$CONFIG_HAL" =3D xno && test "x$CONFIG_UDEV" =3D xno && tes= t "x$CONFIG_DEVD" =3D xno; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +- *********************************************** +- Neither HAL nor udev backend will be enabled. ++ ***************************************************** ++ Neither HAL, devd, nor udev backend will be enabled. + Input device hotplugging will not be available! +- ***********************************************" >&5 ++ *****************************************************" >= &5 + $as_echo "$as_me: WARNING: +- *********************************************** +- Neither HAL nor udev backend will be enabled. ++ ***************************************************** ++ Neither HAL, devd, nor udev backend will be enabled. + Input device hotplugging will not be available! +- ***********************************************" >&2;} ++ *****************************************************" >= &2;} + fi +=20 + ac_config_files=3D"$ac_config_files Makefile glx/Makefile include/Mak= efile composite/Makefile damageext/Makefile dbe/Makefile dix/Makefile d= oc/Makefile doc/dtrace/Makefile man/Makefile fb/Makefile glamor/Makefil= e record/Makefile config/Makefile mi/Makefile miext/Makefile miext/sync= /Makefile miext/damage/Makefile miext/shadow/Makefile miext/rootless/Ma= kefile os/Makefile pseudoramiX/Makefile randr/Makefile render/Makefile = xkb/Makefile Xext/Makefile Xi/Makefile xfixes/Makefile exa/Makefile dri= 3/Makefile present/Makefile hw/Makefile hw/xfree86/Makefile hw/xfree86/= Xorg.sh hw/xfree86/common/Makefile hw/xfree86/common/xf86Build.h hw/xfr= ee86/ddc/Makefile hw/xfree86/dixmods/Makefile hw/xfree86/doc/Makefile h= w/xfree86/dri/Makefile hw/xfree86/dri2/Makefile hw/xfree86/dri2/pci_ids= /Makefile hw/xfree86/drivers/Makefile hw/xfree86/drivers/modesetting/Ma= kefile hw/xfree86/exa/Makefile hw/xfree86/exa/man/Makefile hw/xfree86/f= bdevhw/Makefile hw/xfree86/fbdevhw/man/Makefile hw/xfree86/glamor_egl/M= akefile hw/xfree86/i2c/Makefile hw/xfree86/int10/Makefile hw/xfree86/lo= ader/Makefile hw/xfree86/man/Makefile hw/xfree86/modes/Makefile hw/xfre= e86/os-support/Makefile hw/xfree86/os-support/bsd/Makefile hw/xfree86/o= s-support/bus/Makefile hw/xfree86/os-support/hurd/Makefile hw/xfree86/o= s-support/misc/Makefile hw/xfree86/os-support/linux/Makefile hw/xfree86= /os-support/solaris/Makefile hw/xfree86/os-support/stub/Makefile hw/xfr= ee86/parser/Makefile hw/xfree86/ramdac/Makefile hw/xfree86/shadowfb/Mak= efile hw/xfree86/vbe/Makefile hw/xfree86/vgahw/Makefile hw/xfree86/x86e= mu/Makefile hw/xfree86/utils/Makefile hw/xfree86/utils/man/Makefile hw/= xfree86/utils/cvt/Makefile hw/xfree86/utils/gtf/Makefile hw/dmx/config/= Makefile hw/dmx/config/man/Makefile hw/dmx/doc/Makefile hw/dmx/doxygen/= doxygen.conf hw/dmx/doxygen/Makefile hw/dmx/examples/Makefile hw/dmx/in= put/Makefile hw/dmx/glxProxy/Makefile hw/dmx/Makefile hw/dmx/man/Makefi= le hw/vfb/Makefile hw/vfb/man/Makefile hw/xnest/Makefile hw/xnest/man/M= akefile hw/xwin/Makefile hw/xwin/dri/Makefile hw/xwin/glx/Makefile hw/x= win/man/Makefile hw/xwin/winclipboard/Makefile hw/xquartz/Makefile hw/x= quartz/GL/Makefile hw/xquartz/bundle/Makefile hw/xquartz/man/Makefile h= w/xquartz/mach-startup/Makefile hw/xquartz/pbproxy/Makefile hw/xquartz/= xpr/Makefile hw/kdrive/Makefile hw/kdrive/ephyr/Makefile hw/kdrive/ephy= r/man/Makefile hw/kdrive/fake/Makefile hw/kdrive/fbdev/Makefile hw/kdri= ve/linux/Makefile hw/kdrive/src/Makefile hw/xwayland/Makefile test/Make= file test/xi1/Makefile test/xi2/Makefile xserver.ent xorg-server.pc" +@@ -33122,6 +33170,10 @@ if test -z "${HAVE_SYSTEMD_DAEMON_TRUE}" + as_fn_error $? "conditional \"HAVE_SYSTEMD_DAEMON\" was never defin= ed. + Usually this means the macro was only invoked conditionally." "$LINEN= O" 5 + fi ++if test -z "${CONFIG_DEVD_TRUE}" && test -z "${CONFIG_DEVD_FALSE}"; t= hen ++ as_fn_error $? "conditional \"CONFIG_DEVD\" was never defined. ++Usually this means the macro was only invoked conditionally." "$LINEN= O" 5 ++fi + if test -z "${CONFIG_UDEV_TRUE}" && test -z "${CONFIG_UDEV_FALSE}"; t= hen + as_fn_error $? "conditional \"CONFIG_UDEV\" was never defined. + Usually this means the macro was only invoked conditionally." "$LINEN= O" 5 Index: x11-servers/xorg-server/files/patch-hw_xfree86_Makefile.in =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- x11-servers/xorg-server/files/patch-hw_xfree86_Makefile.in=09(nonex= istent) +++ x11-servers/xorg-server/files/patch-hw_xfree86_Makefile.in=09(worki= ng copy) @@ -0,0 +1,14 @@ +* Don't overwrite Xorg binary with Xorg.sh when SUID_WRAPPER_DIR =3D=3D= bindir +* Instead, relink bin/X to Xorg.wrap rather than to Xorg (which isn't = Xorg.sh) +* +--- hw/xfree86/Makefile.in.orig=092017-03-16 05:24:43 UTC ++++ hw/xfree86/Makefile.in +@@ -1149,7 +1149,7 @@ install-exec-hook: + @INSTALL_SETUID_TRUE@=09chmod u+s $(DESTDIR)$(bindir)/Xorg + @SUID_WRAPPER_TRUE@=09$(MKDIR_P) $(DESTDIR)$(SUID_WRAPPER_DIR) + @SUID_WRAPPER_TRUE@=09mv $(DESTDIR)$(bindir)/Xorg $(DESTDIR)$(SUID_WR= APPER_DIR)/Xorg +-@SUID_WRAPPER_TRUE@=09${INSTALL} -m 755 Xorg.sh $(DESTDIR)$(bindir)/X= org ++@SUID_WRAPPER_TRUE@=09(test ! -f $(DESTDIR)$(bindir)/Xorg && ${INSTAL= L} -m 755 Xorg.sh $(DESTDIR)$(bindir)/Xorg || cd $(DESTDIR)$(bindir) &&= rm -f X && $(LN_S) Xorg.wrap$(EXEEXT) X) + @SUID_WRAPPER_TRUE@=09-chown root $(DESTDIR)$(SUID_WRAPPER_DIR)/Xorg.= wrap && chmod u+s $(DESTDIR)$(SUID_WRAPPER_DIR)/Xorg.wrap +=20 + uninstall-local: Property changes on: x11-servers/xorg-server/files/patch-hw_xfree86_Mak= efile.in ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: x11-servers/xorg-server/files/patch-hw_xfree86_common_xf86AutoCo= nfig.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- x11-servers/xorg-server/files/patch-hw_xfree86_common_xf86AutoConfi= g.c=09(revision 436260) +++ x11-servers/xorg-server/files/patch-hw_xfree86_common_xf86AutoConfi= g.c=09(working copy) @@ -1,4 +1,8 @@ ---- hw/xfree86/common/xf86AutoConfig.c.orig=092017-01-11 20:00:58 UTC +* Try using modesetting driver before falling back to scfb or vesa +* +* Use our scfb driver as fallback instead of Linux's fbdev +* +--- hw/xfree86/common/xf86AutoConfig.c.orig=092017-03-15 18:05:25 UTC +++ hw/xfree86/common/xf86AutoConfig.c @@ -276,7 +276,7 @@ listPossibleVideoDrivers(char *matches[] i +=3D xf86PciMatchDriver(&matches[i], nmatches - i); Index: x11-servers/xorg-server/files/patch-hw_xfree86_common_xf86Config= .c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- x11-servers/xorg-server/files/patch-hw_xfree86_common_xf86Config.c=09= (revision 436260) +++ x11-servers/xorg-server/files/patch-hw_xfree86_common_xf86Config.c=09= (working copy) @@ -1,12 +1,14 @@ ---- hw/xfree86/common/xf86Config.c.orig=092016-07-19 17:14:30 UTC +* Select the devd config backend if it is activated +* +--- hw/xfree86/common/xf86Config.c.orig=092017-03-15 18:05:25 UTC +++ hw/xfree86/common/xf86Config.c -@@ -1410,13 +1410,16 @@ checkCoreInputDevices(serverLayoutPtr se +@@ -1375,13 +1375,16 @@ checkCoreInputDevices(serverLayoutPtr se } =20 if (!xf86Info.forceInputDevices && !(foundPointer && foundKeyboar= d)) { -#if defined(CONFIG_HAL) || defined(CONFIG_UDEV) || defined(CONFIG_WSC= ONS) +#if defined(CONFIG_HAL) || defined(CONFIG_UDEV) || defined(CONFIG_WSC= ONS) || \ -+=09=09defined(CONFIG_DEVD) ++=09defined(CONFIG_DEVD) const char *config_backend; =20 #if defined(CONFIG_HAL) Index: x11-servers/xorg-server/files/patch-hw_xfree86_common_xf86Global= s.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- x11-servers/xorg-server/files/patch-hw_xfree86_common_xf86Globals.c= =09(revision 436260) +++ x11-servers/xorg-server/files/patch-hw_xfree86_common_xf86Globals.c= =09(working copy) @@ -1,4 +1,6 @@ ---- hw/xfree86/common/xf86Globals.c.orig=092016-07-19 17:07:29 UTC +* Include devd in the set of config backends +* +--- hw/xfree86/common/xf86Globals.c.orig=092017-03-15 18:05:25 UTC +++ hw/xfree86/common/xf86Globals.c @@ -122,7 +122,8 @@ xf86InfoRec xf86Info =3D { .pmFlag =3D TRUE, Index: x11-servers/xorg-server/files/patch-hw_xfree86_common_xf86Xinput= .c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- x11-servers/xorg-server/files/patch-hw_xfree86_common_xf86Xinput.c=09= (revision 436260) +++ x11-servers/xorg-server/files/patch-hw_xfree86_common_xf86Xinput.c=09= (working copy) @@ -1,6 +1,8 @@ ---- hw/xfree86/common/xf86Xinput.c.orig=092016-07-19 17:07:29 UTC +* Recognize devd backend as a source of auto-configured devices +* +--- hw/xfree86/common/xf86Xinput.c.orig=092017-03-15 18:05:25 UTC +++ hw/xfree86/common/xf86Xinput.c -@@ -841,7 +841,7 @@ xf86NewInputDevice(InputInfoPtr pInfo, D +@@ -871,7 +871,7 @@ xf86NewInputDevice(InputInfoPtr pInfo, D { InputDriverPtr drv =3D NULL; DeviceIntPtr dev =3D NULL; @@ -9,7 +11,7 @@ int rval; char *path =3D NULL; =20 -@@ -996,6 +996,7 @@ NewInputDeviceRequest(InputOption *optio +@@ -1034,6 +1034,7 @@ NewInputDeviceRequest(InputOption *optio if (strcmp(key, "_source") =3D=3D 0 && (strcmp(value, "server/hal") =3D=3D 0 || strcmp(value, "server/udev") =3D=3D 0 || Index: x11-servers/xorg-server/files/patch-hw_xfree86_os-support_bsd_bs= d__init.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- x11-servers/xorg-server/files/patch-hw_xfree86_os-support_bsd_bsd__= init.c=09(revision 436260) +++ x11-servers/xorg-server/files/patch-hw_xfree86_os-support_bsd_bsd__= init.c=09(working copy) @@ -1,4 +1,4 @@ ---- hw/xfree86/os-support/bsd/bsd_init.c.orig=092016-07-19 17:07:29 UT= C +--- hw/xfree86/os-support/bsd/bsd_init.c.orig=092017-03-15 18:05:25 UT= C +++ hw/xfree86/os-support/bsd/bsd_init.c @@ -230,6 +230,9 @@ xf86OpenConsole() * Add cases for other *BSD that behave the same. Index: x11-servers/xorg-server/files/patch-hw_xfree86_os-support_bsd_i3= 86__video.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- x11-servers/xorg-server/files/patch-hw_xfree86_os-support_bsd_i386_= _video.c=09(revision 436260) +++ x11-servers/xorg-server/files/patch-hw_xfree86_os-support_bsd_i386_= _video.c=09(working copy) @@ -1,5 +1,5 @@ Index: programs/Xserver/hw/xfree86/os-support/bsd/i386_video.c ---- hw/xfree86/os-support/bsd/i386_video.c.orig=092016-07-15 16:18:11 = UTC +--- hw/xfree86/os-support/bsd/i386_video.c.orig=092017-03-15 18:05:25 = UTC +++ hw/xfree86/os-support/bsd/i386_video.c @@ -32,6 +32,7 @@ #include "xf86Priv.h" Index: x11-servers/xorg-server/files/patch-hw_xfree86_os-support_bsd_pp= c__video.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- x11-servers/xorg-server/files/patch-hw_xfree86_os-support_bsd_ppc__= video.c=09(revision 436260) +++ x11-servers/xorg-server/files/patch-hw_xfree86_os-support_bsd_ppc__= video.c=09(working copy) @@ -1,4 +1,4 @@ ---- hw/xfree86/os-support/bsd/ppc_video.c.orig=092016-07-15 16:18:11 U= TC +--- hw/xfree86/os-support/bsd/ppc_video.c.orig=092017-03-15 18:05:25 U= TC +++ hw/xfree86/os-support/bsd/ppc_video.c @@ -79,7 +79,11 @@ xf86DisableIO() { Index: x11-servers/xorg-server/files/patch-hw_xfree86_xorg-wrapper.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- x11-servers/xorg-server/files/patch-hw_xfree86_xorg-wrapper.c=09(no= nexistent) +++ x11-servers/xorg-server/files/patch-hw_xfree86_xorg-wrapper.c=09(wo= rking copy) @@ -0,0 +1,27 @@ +* Skip the detection of root rights requirement, the assumption that p= resence +* of KMS drivers removes the root requirement is only valid for Linux +* +--- hw/xfree86/xorg-wrapper.c.orig=092017-03-15 18:05:25 UTC ++++ hw/xfree86/xorg-wrapper.c +@@ -188,9 +188,6 @@ static int on_console(int fd) +=20 + int main(int argc, char *argv[]) + { +-#ifdef WITH_LIBDRM +- struct drm_mode_card_res res; +-#endif + char buf[PATH_MAX]; + int i, r, fd; + int kms_cards =3D 0; +@@ -227,9 +224,10 @@ int main(int argc, char *argv[]) + } + } +=20 +-#ifdef WITH_LIBDRM ++#if defined(WITH_LIBDRM) && defined(__linux__) + /* Detect if we need root rights, except when overriden by the co= nfig */ + if (needs_root_rights =3D=3D -1) { ++ struct drm_mode_card_res res; + for (i =3D 0; i < 16; i++) { + snprintf(buf, sizeof(buf), DRM_DEV_NAME, DRM_DIR_NAME, i)= ; + fd =3D open(buf, O_RDWR); Property changes on: x11-servers/xorg-server/files/patch-hw_xfree86_xor= g-wrapper.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: x11-servers/xorg-server/files/patch-include_dix-config.h.in =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- x11-servers/xorg-server/files/patch-include_dix-config.h.in=09(none= xistent) +++ x11-servers/xorg-server/files/patch-include_dix-config.h.in=09(work= ing copy) @@ -0,0 +1,14 @@ +* Add a define which will be toggled by configure when devd backend is= activated +* +--- include/dix-config.h.in.orig=092017-03-15 18:05:25 UTC ++++ include/dix-config.h.in +@@ -433,6 +433,9 @@ + /* Support D-Bus */ + #undef HAVE_DBUS +=20 ++/* Use devd for input hotplug */ ++#undef CONFIG_DEVD ++ + /* Use libudev for input hotplug */ + #undef CONFIG_UDEV +=20 Property changes on: x11-servers/xorg-server/files/patch-include_dix-co= nfig.h.in ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: x11-servers/xorg-server/files/patch-xkb_Makefile.in =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- x11-servers/xorg-server/files/patch-xkb_Makefile.in=09(revision 436= 260) +++ x11-servers/xorg-server/files/patch-xkb_Makefile.in=09(working copy= ) @@ -1,6 +1,11 @@ ---- xkb/Makefile.in.orig=092017-01-19 15:20:42 UTC +* Skip installing a README into a directory which is actually a symlin= k created +* by another port. If this file is installed, then upon uninstall pkg = will +* delete the directory under the symlink, which would cause a reinstal= l to fail +* as the target directory is not remade until reinstalling the other p= ort +* +--- xkb/Makefile.in.orig=092017-03-16 05:24:43 UTC +++ xkb/Makefile.in -@@ -878,7 +878,7 @@ info: info-am +@@ -886,7 +886,7 @@ info: info-am =20 info-am: =20 Index: x11-servers/xorg-server/files/xkb_Makefile.am =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- x11-servers/xorg-server/files/xkb_Makefile.am=09(nonexistent) +++ x11-servers/xorg-server/files/xkb_Makefile.am=09(working copy) @@ -0,0 +1,13 @@ +* Skip installing a README into a directory which is actually a symlin= k created +* by another port. If this file is installed, then upon uninstall pkg = will +* delete the directory under the symlink, which would cause a reinstal= l to fail +* as the target directory is not remade until reinstalling the other p= ort +* +--- xkb/Makefile.am.orig=092017-03-16 05:24:43 UTC ++++ xkb/Makefile.am +@@ -39,4 +39,4 @@ libxkbstubs_la_SOURCES =3D ddxVT.c ddxPriv + EXTRA_DIST =3D xkbDflts.h xkbgeom.h xkb.h +=20 + xkbcompileddir =3D $(XKB_COMPILED_DIR) +-dist_xkbcompiled_DATA =3D README.compiled ++#dist_xkbcompiled_DATA =3D README.compiled Property changes on: x11-servers/xorg-server/files/xkb_Makefile.am ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: x11-servers/xorg-server/pkg-plist =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- x11-servers/xorg-server/pkg-plist=09(revision 436260) +++ x11-servers/xorg-server/pkg-plist=09(working copy) @@ -1,6 +1,6 @@ bin/X -%%SUID%%@(,,4555) bin/Xorg -%%NO_SUID%%bin/Xorg +bin/Xorg +%%SUID%%@(,,4555) bin/Xorg.wrap bin/cvt bin/gtf include/xorg/BT.h @@ -159,7 +159,7 @@ include/xorg/xorg-server.h include/xorg/xorgVersion.h include/xorg/xserver-properties.h -@comment include/xorg/xserver_poll.h +include/xorg/xserver_poll.h include/xorg/xvdix.h include/xorg/xvmcext.h lib/xorg/modules/drivers/modesetting_drv.so @@ -177,6 +177,7 @@ lib/xorg/protocol.txt libdata/pkgconfig/xorg-server.pc man/man1/Xorg.1.gz +%%SUID%%man/man1/Xorg.wrap.1.gz man/man1/Xserver.1.gz man/man1/cvt.1.gz man/man1/gtf.1.gz @@ -183,7 +184,9 @@ man/man4/exa.4.gz man/man4/fbdevhw.4.gz man/man4/modesetting.4.gz +%%SUID%%man/man5/Xwrapper.config.5.gz man/man5/xorg.conf.5.gz man/man5/xorg.conf.d.5.gz +%%UDEV%%share/X11/xorg.conf.d/10-quirks.conf share/aclocal/xorg-server.m4 @dir etc/X11/xorg.conf.d Index: x11-servers/xorg-vfbserver/Makefile =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- x11-servers/xorg-vfbserver/Makefile=09(revision 436260) +++ x11-servers/xorg-vfbserver/Makefile=09(working copy) @@ -2,7 +2,6 @@ # $FreeBSD$ =20 PORTNAME=3D=09xorg-vfbserver -PORTVERSION=3D=091.19.1 PORTEPOCH=3D=091 =20 COMMENT=3D=09X virtual framebuffer server from X.Org @@ -11,14 +10,9 @@ =20 MASTERDIR=3D=09${.CURDIR}/../xorg-server DESCR=3D=09=09${.CURDIR}/pkg-descr -DISTINFO_FILE=3D=09${.CURDIR}/distinfo -PATCHDIR=3D=09${.CURDIR}/files =20 SLAVE_PORT=3D=09yes -OPTIONS_EXCLUDE=3DDEVD HAL SUID =20 -USE_XORG=3D=09xfont2 - CONFIGURE_ARGS+=3D--enable-xvfb --disable-dmx --disable-xephyr --disab= le-xnest \ =09=09--disable-xwayland =20 Index: x11-servers/xorg-vfbserver/distinfo =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- x11-servers/xorg-vfbserver/distinfo=09(revision 436260) +++ x11-servers/xorg-vfbserver/distinfo=09(nonexistent) @@ -1,3 +0,0 @@ -TIMESTAMP =3D 1484389062 -SHA256 (xorg/xserver/xorg-server-1.19.1.tar.bz2) =3D 79ae2cf39d3f6c4a9= 1201d8dad549d1d774b3420073c5a70d390040aa965a7fb -SIZE (xorg/xserver/xorg-server-1.19.1.tar.bz2) =3D 6041792 Property changes on: x11-servers/xorg-vfbserver/distinfo ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: x11-servers/xwayland/Makefile =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- x11-servers/xwayland/Makefile=09(revision 436260) +++ x11-servers/xwayland/Makefile=09(working copy) @@ -1,7 +1,6 @@ # $FreeBSD$ =20 PORTNAME=3D=09xwayland -PORTVERSION=3D=091.19.1 =20 COMMENT=3D=09X Clients under Wayland =20 @@ -13,18 +12,13 @@ =20 MASTERDIR=3D=09${.CURDIR}/../xorg-server DESCR=3D=09=09${.CURDIR}/pkg-descr -DISTINFO_FILE=3D=09${.CURDIR}/distinfo -PATCHDIR=3D=09${.CURDIR}/files =20 SLAVE_PORT=3D=09yes -OPTIONS_EXCLUDE=3DDEVD HAL SUID - -USE_XORG=3D=09x11 xext xfont2 +USE_XORG=3D=09x11 xext USE_GL+=3D=09egl gbm =20 -CONFIGURE_ARGS+=3D=09--disable-docs --disable-devel-docs \ -=09=09=09--enable-xwayland --disable-xorg --disable-xvfb --disable-xne= st \ -=09=09=09--disable-xquartz --disable-xwin +CONFIGURE_ARGS+=3D--disable-dmx --disable-xephyr --disable-xnest --dis= able-xvfb \ +=09=09--enable-xwayland=20 =20 PLIST_FILES=3D=09bin/Xwayland =20 Index: x11-servers/xwayland/distinfo =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- x11-servers/xwayland/distinfo=09(revision 436260) +++ x11-servers/xwayland/distinfo=09(nonexistent) @@ -1,3 +0,0 @@ -TIMESTAMP =3D 1484388904 -SHA256 (xorg/xserver/xorg-server-1.19.1.tar.bz2) =3D 79ae2cf39d3f6c4a9= 1201d8dad549d1d774b3420073c5a70d390040aa965a7fb -SIZE (xorg/xserver/xorg-server-1.19.1.tar.bz2) =3D 6041792 Property changes on: x11-servers/xwayland/distinfo ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property --nextPart1921716.mvUtxT9krT-- From owner-freebsd-x11@freebsd.org Thu Mar 16 22:11:43 2017 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 63075D0F9EF for ; Thu, 16 Mar 2017 22:11:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4CF021CC for ; Thu, 16 Mar 2017 22:11:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 4185CD0F9EE; Thu, 16 Mar 2017 22:11:43 +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 41289D0F9ED for ; Thu, 16 Mar 2017 22:11:43 +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 30F4B1CB for ; Thu, 16 Mar 2017 22:11:43 +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 v2GMBhMr013894 for ; Thu, 16 Mar 2017 22:11:43 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: x11@FreeBSD.org Subject: [Bug 217689] x11-drivers/xf86-video-intel: Panic since latest update Date: Thu, 16 Mar 2017 22:11:43 +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: bacon4000@gmail.com 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: 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.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: Thu, 16 Mar 2017 22:11:43 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D217689 --- Comment #4 from Jason Bacon --- Well, after another round of updates, the problem has gone away. Unfortunately, I did not save a copy of Xorg.0.log from a failed start. I'll attach the text from the last crash in case that helps. No xorg.conf. All packages installed vi pkg from pkg+http://pkg.FreeBSD.org/${ABI}/latest. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-x11@freebsd.org Thu Mar 16 22:13:42 2017 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 9AAA7D0FA69 for ; Thu, 16 Mar 2017 22:13:42 +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 8439F314 for ; Thu, 16 Mar 2017 22:13:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 8396ED0FA68; Thu, 16 Mar 2017 22:13:42 +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 83366D0FA66 for ; Thu, 16 Mar 2017 22:13:42 +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 72FAB313 for ; Thu, 16 Mar 2017 22:13:42 +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 v2GMDgEZ019506 for ; Thu, 16 Mar 2017 22:13:42 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: x11@FreeBSD.org Subject: [Bug 217689] x11-drivers/xf86-video-intel: Panic since latest update Date: Thu, 16 Mar 2017 22:13:42 +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: bacon4000@gmail.com 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: attachments.created 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.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: Thu, 16 Mar 2017 22:13:42 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D217689 --- Comment #5 from Jason Bacon --- Created attachment 180887 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D180887&action= =3Dedit Text from /var/crash --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-x11@freebsd.org Fri Mar 17 02:02:49 2017 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 7A287D0FF5E for ; Fri, 17 Mar 2017 02:02:49 +0000 (UTC) (envelope-from davshao@gmail.com) Received: from mail-qk0-x230.google.com (mail-qk0-x230.google.com [IPv6:2607:f8b0:400d:c09::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3425F1315 for ; Fri, 17 Mar 2017 02:02:49 +0000 (UTC) (envelope-from davshao@gmail.com) Received: by mail-qk0-x230.google.com with SMTP id y76so54645189qkb.0 for ; Thu, 16 Mar 2017 19:02:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=SdpvYBmruHqXnQUG1lpIXZy1KZdAEkvkcHIuKkVk0ng=; b=c5RrCdlygAXo0zrRWMJdgtnvDawfVOBuzz4tuCst3SalOU3Qb4n+C8k7MYQJVnhc+n mWhJbJXeQ3olfwK0ddWDW4l+/7cbldzVPCxh5XM4T431Ye+2pDto/y30HVd5uvKfA1rm SD8AtaRxK94I5HoxUIc/qUhBaQqiaOqnQBTlcT35IXiqPD+gIyf5xmU4+PX+Rz5c5o8r jwV4X6Z7oA/Eegl/NhUmzTaYqWdamDHlA3vM9JfoiPhDmGNwmBcGchyn0KvLkkCVZmTf LXQbmVQwuRv36H4Z1qSX0sWUIL0D0vj/Y+XnAJ8K2+mAwDaBPxFR4iYXOBE83qMtfVtX N0AQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=SdpvYBmruHqXnQUG1lpIXZy1KZdAEkvkcHIuKkVk0ng=; b=gz+WCySkQf39NeiSLRQ1XfCLBFvFbuE8o66cEDqZvhomKpIRfouDHDbvB3b0OnkJe7 cWTsUlbaZyBro9fQxEHGP62LSTg4UvYBL6usv2SFpvmrvlaobVYKNHZ5euq5J/XDgTnX ZtBoPa3PrEwcdW42ZBB4Wc+eIbn2gQcibwFVMHHOR3TYSRdkAoXkUE2xFq8VlIS/498D F3tekrem4Tc0JZkV3G9PCoUcGDAvkx4U4dMjvVjJWkblcYVojoRNIUJLm8PwWpU7lB6h 9ZhXydXcLGbNTboqXlEszMqAnJSBGnqy19vQgtPUFLGgguvN6mdNC2oBw5Z6Jmouk8ay F38w== X-Gm-Message-State: AFeK/H2XCz99FnBr+giUMZstdyCOEiV+fhouBPozvfLmFnMl20hyj5AHvs5GEbPCfKF0Bv9xjOiOTEQzMjIMaA== X-Received: by 10.55.41.215 with SMTP id p84mr10324392qkp.35.1489716168174; Thu, 16 Mar 2017 19:02:48 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.135.129 with HTTP; Thu, 16 Mar 2017 19:02:47 -0700 (PDT) From: David Shao Date: Thu, 16 Mar 2017 19:02:47 -0700 Message-ID: Subject: I assert xf86-video-intel problems due to 2 bugs SIX characters total To: freebsd-x11@freebsd.org Content-Type: text/plain; charset=UTF-8 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, 17 Mar 2017 02:02:49 -0000 My testing using pkgsrc merged with FreeBSD ports patches on FreeBSD 11-release, 11-stable, and 12-current has shown that only 2 bugs, a total of SIX characters, were preventing proper functioning of xf86-video-intel, one of those bugs not even in xf86-video-intel but instead in libdrm. The xf86-video-intel was instantly patched minutes after I submitted a bug report. I also submitted the libdrm bug report: https://bugs.freedesktop.org/show_bug.cgi?id=100077 "libdrm atomic_add_unless() may reverse return value meaning" --- xf86atomic.h.orig 2015-09-22 04:34:51.000000000 +0000 +++ xf86atomic.h @@ -111,7 +111,7 @@ static inline int atomic_add_unless(atom c = atomic_read(v); while (c != unless && (old = atomic_cmpxchg(v, c, c + add)) != c) c = old; - return c == unless; + return c != unless; } I am curious what exactly people are successfully running. Are they even using xf86-video-intel? I am using libdrm 2.4.75, mesa 17.0.1, xorg-server 1.19.2, and xf86-video-intel up through the 2017-02-28 patch for the above bug. For mesa 17.0.1 I am using --enable-glx-tls in full awareness that FreeBSD does not match what Linux's glibc does. For an Intel IvyBridge machine with an i3-3225 CPU, Xorg.0.log has entries similar to: [ 240.791] intel: card at 0:2:0 is claimed by a Device section [ 240.792] (II) intel(0): Using Kernel Mode Setting driver: i915, version 1.6.0 20080730 [ 240.792] (II) intel(0): SNA compiled with assertions enabled ... [ 240.827] (WW) Falling back to old probe method for vesa [ 240.827] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support [ 240.828] (--) intel(0): Integrated Graphics Chipset: Intel(R) HD Graphics 4000 ... [ 240.901] (II) intel(0): SNA initialized with Ivybridge (gen7, gt2) backend [ 240.901] (==) intel(0): Backing store enabled [ 240.901] (==) intel(0): Silken mouse enabled [ 240.902] (II) intel(0): HW Cursor enabled [ 240.902] (II) intel(0): RandR 1.2 enabled, ignore the following RandR disabled message. [ 240.904] (==) intel(0): DPMS enabled [ 240.919] (II) intel(0): [DRI2] Setup complete [ 240.919] (II) intel(0): [DRI2] DRI driver: i965 [ 240.919] (II) intel(0): [DRI2] VDPAU driver: va_gl [ 240.919] (II) intel(0): direct rendering: DRI2 enabled [ 240.919] (II) intel(0): hardware support for Present enabled [ 240.919] InitOutput - xf86Screens[0]->pScreen = 0x803538400 [ 240.919] xf86Screens[0]->pScreen->CreateWindow = 0x805a5a230 [ 240.919] (--) RandR disabled [ 240.926] XFree86VidModeExtensionInitVidModeAddExtension [ 241.156] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer [ 241.156] (II) AIGLX: enabled GLX_ARB_create_context [ 241.156] (II) AIGLX: enabled GLX_ARB_create_context_profile [ 241.156] (II) AIGLX: enabled GLX_EXT_create_context_es{,2}_profile [ 241.156] (II) AIGLX: enabled GLX_INTEL_swap_event etc. So SNA with dri2. For Firefox 52, I use: LD_PRELOAD=/usr/pkg/lib/libGL.so firefox & In about:config I set layers.acceleration.force-enabled true If you try and follow this, know how to edit the local prefs.js! Then in about:support I obtain: Graphics Features Compositing OpenGL Asynchronous Pan/Zoom none WebGL Renderer Intel Open Source Technology Center -- Mesa DRI Intel(R) Ivybridge Desktop WebGL2 Renderer Intel Open Source Technology Center -- Mesa DRI Intel(R) Ivybridge Desktop Hardware H264 Decoding No Audio Backend oss GPU #1 Active Yes Description Intel Open Source Technology Center -- Mesa DRI Intel(R) Ivybridge Desktop Vendor ID Intel Open Source Technology Center Device ID Mesa DRI Intel(R) Ivybridge Desktop Driver Version 3.0 Mesa 17.0.1 Diagnostics AzureCanvasAccelerated 0 AzureCanvasBackend skia AzureContentBackend skia AzureFallbackCanvasBackend none CairoUseXRender 0 Decision Log HW_COMPOSITING blocked by default: Acceleration blocked by platform force_enabled by user: Force-enabled by pref OPENGL_COMPOSITING force_enabled by user: Force-enabled by pref I am then able to go to sites such as https://www.chromeexperiments.com/webgl to view the webgl demos. Again before trying these demos know how to edit prefs.js! Now for the sake of full disclosure, on the IvyBridge machine running FreeBSD 12-current, after a while there have been lockup problems with WebGL Water http://madebyevan.com/webgl-water/ (Same pkgsrc code on NetBSD current lower tier Radeon card on another amd cpu machine very smoothly runs webgl-water.) To summarize, applications such as glxgears and Firefox with webgl and hardware acceleration enabled work for me with the ONE CHARACTER patch to libdrm in atomic_add_unless, using xf86-video-intel. I'm writing this right now in the same Firefox 52 on FreeBSD xxxxxx.xxx 12.0-CURRENT FreeBSD 12.0-CURRENT #2 r314974+16bf7dd2d06(svn_head): Wed Mar 15 20:52:59 PDT 2017 xxxxxx@xxxxxx.xxx:/usr/obj/usr/src/sys/GENERIC amd64 From owner-freebsd-x11@freebsd.org Fri Mar 17 02:18:28 2017 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 8BD30D0F3AC for ; Fri, 17 Mar 2017 02:18:28 +0000 (UTC) (envelope-from henry.hu.sh@gmail.com) Received: from mail-qk0-x22c.google.com (mail-qk0-x22c.google.com [IPv6:2607:f8b0:400d:c09::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3B91D18DD for ; Fri, 17 Mar 2017 02:18:28 +0000 (UTC) (envelope-from henry.hu.sh@gmail.com) Received: by mail-qk0-x22c.google.com with SMTP id p64so54813417qke.1 for ; Thu, 16 Mar 2017 19:18:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=i6DayZGI+q8XOMlMC9mkVdJHMPWq31mc9J1NO/2r4WQ=; b=moUhjTvwucMjod2vgJcbdxup2ZJqIiuA918BneMT5hqqV2gvKkHmpLv/uguwIjgiq4 KG7MMU0IFZtNJc2vMCfKIAcSick5t5CLwrGO25K90YFgte6ZDryd0JUz98cviTX9g+Gz fWzZQPLnwgMgF95oFit/oRDvBWnP/qqfRj7jBKgfSJA1y8GaUCDNfkBEf6qHMKOR0K4A iQhMTehK2kvuDjagZPfMhrAoU1Rg7hdt1M6/9hGvvnoDemf2J5lmHoDicrUWhut9WV17 Qy+BMfbSAE+c3zvBSHitOOMuWPKns2eKmexOVatpW/Tcs6Ch2VcH8br8LXu/QSmxEBA1 BLTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=i6DayZGI+q8XOMlMC9mkVdJHMPWq31mc9J1NO/2r4WQ=; b=jQm6qEUlekUWjQs0rXYFHSko6PgoWH89ie0EjMm8QtVqIxPsZPmCheXeL3sRdyWNG0 3CUQiXlwEwQrh9wlrBqxpynBiWUoOplEBDxStQn//t3iWqbL7j8/yhCRZjseS6uEJei8 dKK4HzQSyw7nRAW1ihS9RWX4dHOmFUTpVwkQ7C61lRiOe9WX7Smx9wsc56/0hy9tOskG BcKsIpujcTSmNPekSHWYDjmbZ4B5mfU17Whgir2krTK5khB9JnnR8hjZ5wiNdzNZCJhO 3qyCkJDj8zUPIOaNB/5F5C2cVms9UQVgmSyJ6apzqpF8b438A2WhIyj7hrjJa5xcK+8i mNxQ== X-Gm-Message-State: AFeK/H1jDUlSVX1/AX7MjsTTdQVgHYmsZgQPMWrBxceLMyVlm7d1+5tn9/QVk4wOjb9UrcgjAAXowtWY6H2O8w== X-Received: by 10.55.140.134 with SMTP id o128mr7910906qkd.283.1489717106972; Thu, 16 Mar 2017 19:18:26 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.101.209 with HTTP; Thu, 16 Mar 2017 19:17:46 -0700 (PDT) In-Reply-To: References: From: Henry Hu Date: Thu, 16 Mar 2017 22:17:46 -0400 Message-ID: Subject: Re: I assert xf86-video-intel problems due to 2 bugs SIX characters total To: David Shao Cc: "freebsd-x11@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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, 17 Mar 2017 02:18:28 -0000 On Thu, Mar 16, 2017 at 10:02 PM, David Shao wrote: > My testing using pkgsrc merged with FreeBSD ports patches on > FreeBSD 11-release, 11-stable, and 12-current has shown that only > 2 bugs, a total of SIX characters, were preventing proper functioning > of xf86-video-intel, one of those bugs not even in xf86-video-intel but > instead in libdrm. The xf86-video-intel was instantly patched minutes > after I submitted a bug report. I also submitted the libdrm bug report: > > https://bugs.freedesktop.org/show_bug.cgi?id=100077 > > "libdrm atomic_add_unless() may reverse return value meaning" > > --- xf86atomic.h.orig 2015-09-22 04:34:51.000000000 +0000 > +++ xf86atomic.h > @@ -111,7 +111,7 @@ static inline int atomic_add_unless(atom > c = atomic_read(v); > while (c != unless && (old = atomic_cmpxchg(v, c, c + add)) != c) > c = old; > - return c == unless; > + return c != unless; > } > > I am curious what exactly people are successfully running. Are they > even using xf86-video-intel? > I remember that you have sent this before to this list. As people said, there might be a difference between DragonFlyBSD and FreeBSD. I've been using xf86-video-intel for a long time, and I also has hw compositing enabled. It is very stable and there is no glitch. > > I am using libdrm 2.4.75, mesa 17.0.1, xorg-server 1.19.2, and > xf86-video-intel up through the 2017-02-28 patch for the above bug. > For mesa 17.0.1 I am using --enable-glx-tls in full awareness that > FreeBSD does not match what Linux's glibc does. > > For an Intel IvyBridge machine with an i3-3225 CPU, Xorg.0.log has > entries similar to: > > [ 240.791] intel: card at 0:2:0 is claimed by a Device section > [ 240.792] (II) intel(0): Using Kernel Mode Setting driver: i915, > version 1.6.0 20080730 > [ 240.792] (II) intel(0): SNA compiled with assertions enabled > ... > [ 240.827] (WW) Falling back to old probe method for vesa > [ 240.827] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card > support > [ 240.828] (--) intel(0): Integrated Graphics Chipset: Intel(R) HD > Graphics 4000 > ... > [ 240.901] (II) intel(0): SNA initialized with Ivybridge (gen7, gt2) > backend > [ 240.901] (==) intel(0): Backing store enabled > [ 240.901] (==) intel(0): Silken mouse enabled > [ 240.902] (II) intel(0): HW Cursor enabled > [ 240.902] (II) intel(0): RandR 1.2 enabled, ignore the following > RandR disabled message. > [ 240.904] (==) intel(0): DPMS enabled > [ 240.919] (II) intel(0): [DRI2] Setup complete > [ 240.919] (II) intel(0): [DRI2] DRI driver: i965 > [ 240.919] (II) intel(0): [DRI2] VDPAU driver: va_gl > [ 240.919] (II) intel(0): direct rendering: DRI2 enabled > [ 240.919] (II) intel(0): hardware support for Present enabled > [ 240.919] InitOutput - xf86Screens[0]->pScreen = 0x803538400 > [ 240.919] xf86Screens[0]->pScreen->CreateWindow = 0x805a5a230 > [ 240.919] (--) RandR disabled > [ 240.926] XFree86VidModeExtensionInitVidModeAddExtension > [ 241.156] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer > [ 241.156] (II) AIGLX: enabled GLX_ARB_create_context > [ 241.156] (II) AIGLX: enabled GLX_ARB_create_context_profile > [ 241.156] (II) AIGLX: enabled GLX_EXT_create_context_es{,2}_profile > [ 241.156] (II) AIGLX: enabled GLX_INTEL_swap_event > > etc. So SNA with dri2. > > For Firefox 52, I use: > > LD_PRELOAD=/usr/pkg/lib/libGL.so firefox & > > In about:config I set > layers.acceleration.force-enabled true > > If you try and follow this, know how to edit the local prefs.js! > > Then in about:support I obtain: > > Graphics > Features > Compositing OpenGL > Asynchronous Pan/Zoom none > WebGL Renderer Intel Open Source Technology Center -- Mesa DRI > Intel(R) Ivybridge Desktop > WebGL2 Renderer Intel Open Source Technology Center -- Mesa DRI > Intel(R) Ivybridge Desktop > Hardware H264 Decoding No > Audio Backend oss > GPU #1 > Active Yes > Description Intel Open Source Technology Center -- Mesa DRI > Intel(R) Ivybridge Desktop > Vendor ID Intel Open Source Technology Center > Device ID Mesa DRI Intel(R) Ivybridge Desktop > Driver Version 3.0 Mesa 17.0.1 > Diagnostics > AzureCanvasAccelerated 0 > AzureCanvasBackend skia > AzureContentBackend skia > AzureFallbackCanvasBackend none > CairoUseXRender 0 > Decision Log > HW_COMPOSITING > blocked by default: Acceleration blocked by platform > force_enabled by user: Force-enabled by pref > OPENGL_COMPOSITING > force_enabled by user: Force-enabled by pref > > I am then able to go to sites such as > > https://www.chromeexperiments.com/webgl > > to view the webgl demos. Again before trying these demos > know how to edit prefs.js! > > Now for the sake of full disclosure, on the IvyBridge machine > running FreeBSD 12-current, after a while there have been > lockup problems with WebGL Water > > http://madebyevan.com/webgl-water/ > > (Same pkgsrc code on NetBSD current lower tier Radeon card > on another amd cpu machine very smoothly runs webgl-water.) > > To summarize, applications such as glxgears and Firefox with > webgl and hardware acceleration enabled work for me with the > ONE CHARACTER patch to libdrm in atomic_add_unless, using > xf86-video-intel. I'm writing this right now in the same Firefox 52 on > > FreeBSD xxxxxx.xxx 12.0-CURRENT FreeBSD 12.0-CURRENT > #2 r314974+16bf7dd2d06(svn_head): Wed Mar 15 20:52:59 PDT 2017 > xxxxxx@xxxxxx.xxx:/usr/obj/usr/src/sys/GENERIC amd64 > _______________________________________________ > freebsd-x11@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-x11 > To unsubscribe, send any mail to "freebsd-x11-unsubscribe@freebsd.org" > -- Cheers, Henry From owner-freebsd-x11@freebsd.org Fri Mar 17 03:51:31 2017 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 64A21D0E20C for ; Fri, 17 Mar 2017 03:51:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4AE301D0A for ; Fri, 17 Mar 2017 03:51:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 4A3E7D0E20B; Fri, 17 Mar 2017 03:51:31 +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 49E91D0E20A for ; Fri, 17 Mar 2017 03:51:31 +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 335281D09 for ; Fri, 17 Mar 2017 03:51:31 +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 v2H3pU4S078631 for ; Fri, 17 Mar 2017 03:51:31 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: x11@FreeBSD.org Subject: [Bug 213732] lang/beignet: crashes with some OpenCL apps Date: Fri, 17 Mar 2017 03:51:30 +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: needs-qa X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: xiuli.pan@intel.com 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: cc 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.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, 17 Mar 2017 03:51:31 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D213732 Xiuli Pan changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |xiuli.pan@intel.com --- Comment #3 from Xiuli Pan --- Hi, I am Xiuli form the Beignet team and I have seen some patch to our mail-list and found there are some bugs here. These bugs seems to be some conflict about the llvm version. LLVM has a man= gle change in LLVM39, if you get some binary build with LLVM39 and have some lo= wer verison CLANG when runing. There maybe some bugs like this. So could you provide the clang -v output to check the LLVM version. Thanks Xiuli --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-x11@freebsd.org Fri Mar 17 05:12:24 2017 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 08D54D10483 for ; Fri, 17 Mar 2017 05:12:24 +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 E67D61F42 for ; Fri, 17 Mar 2017 05:12:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id E5D59D10482; Fri, 17 Mar 2017 05:12:23 +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 E57EFD10481 for ; Fri, 17 Mar 2017 05:12:23 +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 D51041F40 for ; Fri, 17 Mar 2017 05:12:23 +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 v2H5CN1d065461 for ; Fri, 17 Mar 2017 05:12:23 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: x11@FreeBSD.org Subject: [Bug 217635] lang/beignet: crash in get_program_global_data() after 1.3.0 update Date: Fri, 17 Mar 2017 05:12:24 +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: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: xiuli.pan@intel.com 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: cc 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.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, 17 Mar 2017 05:12:24 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D217635 Xiuli Pan changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |xiuli.pan@intel.com --- Comment #6 from Xiuli Pan --- Hi, I have seen the patch you sent to beignet mail-list. I could not reproduce = the problem, could you provide the llvm version, libdrm version and build optio= ns of the Beignet. You can try to post beignet bugs to our Bugzilla https://bugs.freedesktop.org/enter_bug.cgi?product=3DBeignet Thanks Xiuli --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-x11@freebsd.org Fri Mar 17 08:10:12 2017 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 22FACD0F24F for ; Fri, 17 Mar 2017 08:10:12 +0000 (UTC) (envelope-from portscout@FreeBSD.org) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 106E31237 for ; Fri, 17 Mar 2017 08:10:12 +0000 (UTC) (envelope-from portscout@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id 0FE1FD0F24E; Fri, 17 Mar 2017 08:10:12 +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 0F958D0F24D for ; Fri, 17 Mar 2017 08:10:12 +0000 (UTC) (envelope-from portscout@FreeBSD.org) Received: from portscout.ysv.freebsd.org (portscout.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:6]) (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 0311E1236 for ; Fri, 17 Mar 2017 08:10:12 +0000 (UTC) (envelope-from portscout@FreeBSD.org) Received: from portscout.ysv.freebsd.org ([127.0.1.123]) by portscout.ysv.freebsd.org (8.15.2/8.15.2) with ESMTP id v2H8ABIF035800 for ; Fri, 17 Mar 2017 08:10:11 GMT (envelope-from portscout@FreeBSD.org) Received: (from portscout@localhost) by portscout.ysv.freebsd.org (8.15.2/8.15.2/Submit) id v2H8ABbt035799; Fri, 17 Mar 2017 08:10:11 GMT (envelope-from portscout@FreeBSD.org) Message-Id: <201703170810.v2H8ABbt035799@portscout.ysv.freebsd.org> X-Authentication-Warning: portscout.ysv.freebsd.org: portscout set sender to portscout@FreeBSD.org using -f Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain MIME-Version: 1.0 Date: Fri, 17 Mar 2017 08:10:11 +0000 From: portscout@FreeBSD.org To: x11@freebsd.org Subject: FreeBSD ports you maintain which are out of date X-Mailer: portscout/0.8.1 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, 17 Mar 2017 08:10:12 -0000 Dear port maintainer, The portscout new distfile checker has detected that one or more of your ports appears to be out of date. Please take the opportunity to check each of the ports listed below, and if possible and appropriate, submit/commit an update. If any ports have already been updated, you can safely ignore the entry. You will not be e-mailed again for any of the port/version combinations below. Full details can be found at the following URL: http://portscout.freebsd.org/x11@freebsd.org.html Port | Current version | New version ------------------------------------------------+-----------------+------------ x11-servers/xorg-nestserver | 1.19.1 | 1.19.3 ------------------------------------------------+-----------------+------------ If any of the above results are invalid, please check the following page for details on how to improve portscout's detection and selection of distfiles on a per-port basis: http://portscout.freebsd.org/info/portscout-portconfig.txt Thanks. From owner-freebsd-x11@freebsd.org Fri Mar 17 12:11:23 2017 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 7933FD0F7BF for ; Fri, 17 Mar 2017 12:11:23 +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 62DA51009 for ; Fri, 17 Mar 2017 12:11:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 5F28CD0F7BE; Fri, 17 Mar 2017 12:11:23 +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 5ECA9D0F7BD for ; Fri, 17 Mar 2017 12:11:23 +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 4EA371008 for ; Fri, 17 Mar 2017 12:11:23 +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 v2HCBNgf040549 for ; Fri, 17 Mar 2017 12:11:23 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: x11@FreeBSD.org Subject: [Bug 213732] lang/beignet: crashes with some OpenCL apps Date: Fri, 17 Mar 2017 12:11:23 +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: needs-qa X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jbeich@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: 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.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, 17 Mar 2017 12:11:23 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D213732 --- Comment #4 from Jan Beich (mail not working) --- (In reply to Xiuli Pan from comment #3) > These bugs seems to be some conflict about the llvm version. LLVM has a m= angle > change in LLVM39, if you get some binary build with LLVM39 and have some = lower > verison CLANG when runing. There maybe some bugs like this. Thank you for the hint. Beignet works fine after a small fix[1] but I haven= 't tested much. [1] https://lists.freedesktop.org/archives/beignet/2017-March/008702.html > So could you provide the clang -v output to check the LLVM version. FreeBSD has one Clang version in base and many more suffixed in ports/packa= ges. lang/beignet port passes -DLLVM_CONFIG_EXECUTABLE=3D/usr/local/bin/llvm-con= fig39 which ends up building some (but not all) files with clang39. However, even forcing to build everything with clang39 doesn't help. $ clang -v FreeBSD clang version 4.0.0 (tags/RELEASE_400/final 297347) (based on LLVM 4.0.0) Target: x86_64-unknown-freebsd12.0 Thread model: posix InstalledDir: /usr/bin $ clang39 -v clang version 3.9.1 (tags/RELEASE_391/final) Target: x86_64-unknown-freebsd12.0 Thread model: posix InstalledDir: /usr/local/llvm39/bin --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-x11@freebsd.org Fri Mar 17 12:44:25 2017 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 CC76AD104C8 for ; Fri, 17 Mar 2017 12:44:25 +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 B627514BD for ; Fri, 17 Mar 2017 12:44:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id B276ED104C7; Fri, 17 Mar 2017 12:44:25 +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 B21CFD104C6 for ; Fri, 17 Mar 2017 12:44:25 +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 A1FB514BC for ; Fri, 17 Mar 2017 12:44:25 +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 v2HCiP7l030067 for ; Fri, 17 Mar 2017 12:44:25 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: x11@FreeBSD.org Subject: [Bug 213732] lang/beignet: crashes with some OpenCL apps Date: Fri, 17 Mar 2017 12:44:25 +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: needs-qa X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: xiuli.pan@intel.com 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: 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.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, 17 Mar 2017 12:44:25 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D213732 --- Comment #5 from Xiuli Pan --- (In reply to Jan Beich (mail not working) from comment #4) OK, it seems you have already root cause it, I will review you patch then. Thanks Xiuli --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-x11@freebsd.org Fri Mar 17 14:35:14 2017 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 0594FD0F387 for ; Fri, 17 Mar 2017 14:35:14 +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 E2ECE14FD for ; Fri, 17 Mar 2017 14:35:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id E248FD0F386; Fri, 17 Mar 2017 14:35:13 +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 E1E7BD0F384 for ; Fri, 17 Mar 2017 14:35:13 +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 B855514F4 for ; Fri, 17 Mar 2017 14:35:13 +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 v2HEZDNP021143 for ; Fri, 17 Mar 2017 14:35:13 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: x11@FreeBSD.org Subject: [Bug 217635] lang/beignet: crash in get_program_global_data() after 1.3.0 update Date: Fri, 17 Mar 2017 14:35:13 +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: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jbeich@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: 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.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, 17 Mar 2017 14:35:14 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D217635 --- Comment #7 from Jan Beich (mail not working) --- (In reply to Xiuli Pan from comment #6) > I have seen the patch you sent to beignet mail-list. I could not > reproduce the problem, could you provide the llvm version, libdrm > version and build options of the Beignet. LLVM 3.9.1, libdrm 2.4.75, Mesa 13.0.5 and 17.0.1, ocl-icd 2.2.11, Beignet 1.3.0 or 1.3.1 + -DENABLE_OPENCL_20=3Doff (default on i386). Only -DLLVM_CONFIG_EXECUTABLE=3D/usr/local/bin/llvm-config39 is explicitly passe= d in lang/beignet port but the framework does more which you can figure out from build logs (head-amd64 is what I'm using). https://svnweb.freebsd.org/ports/head/graphics/libdrm/files/ https://svnweb.freebsd.org/ports/head/graphics/libGL/files/ https://svnweb.freebsd.org/ports/head/lang/beignet/files/ http://beefy6.nyi.freebsd.org/data/latest-per-pkg/beignet/1.3.0/103amd64-de= fault.log http://beefy5.nyi.freebsd.org/data/latest-per-pkg/beignet/1.3.0/103i386-def= ault.log http://beefy9.nyi.freebsd.org/data/latest-per-pkg/beignet/1.3.0/110amd64-de= fault.log http://beefy10.nyi.freebsd.org/data/latest-per-pkg/beignet/1.3.0/110i386-de= fault.log http://beefy11.nyi.freebsd.org/data/latest-per-pkg/beignet/1.3.0/head-i386-= default.log (IPv6-only) http://beefy12.nyi.freebsd.org/data/latest-per-pkg/beignet/1.3.0/head-amd64= -default.log (IPv6-only) > You can try to post beignet bugs to our Bugzilla > https://bugs.freedesktop.org/enter_bug.cgi?product=3DBeignet Sure, next time. I wonder if our libdrm package is a bit broken or this is = just another case of using unitialized value. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-x11@freebsd.org Fri Mar 17 17:23:30 2017 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 98CAFD10827 for ; Fri, 17 Mar 2017 17:23:30 +0000 (UTC) (envelope-from jakub_lach@mailplus.pl) Received: from mbob.nabble.com (mbob.nabble.com [162.253.133.15]) by mx1.freebsd.org (Postfix) with ESMTP id 890C816DF for ; Fri, 17 Mar 2017 17:23:29 +0000 (UTC) (envelope-from jakub_lach@mailplus.pl) Received: from static.162.255.23.37.macminivault.com (unknown [162.255.23.37]) by mbob.nabble.com (Postfix) with ESMTP id 34D913F0A5FB for ; Fri, 17 Mar 2017 09:59:05 -0700 (PDT) Date: Fri, 17 Mar 2017 10:23:29 -0700 (MST) From: Jakub Lach To: freebsd-x11@freebsd.org Message-ID: <1489771409365-6174359.post@n6.nabble.com> In-Reply-To: <20161213154354.54a76e36@kalimero.tijl.coosemans.org> References: <1481636962.12224.0@smtp.gmail.com> <20161213154354.54a76e36@kalimero.tijl.coosemans.org> Subject: Re: Linux 3D Games/Ports do not work anymore with Mesa-Drivers MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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, 17 Mar 2017 17:23:30 -0000 Hello, With DEFAULT_VERSIONS+=linux=c7_64 there is the same problem, yet glxinfo, glxinfo64, glxgears while complaining, still work. E.g. Couldn't dlopen libudev.so.1 or libudev.so.0, driver detection may be broken. 5231 frames in 5.0 seconds = 1046.127 FPS <...> Though I didn't find single game which would too. -- View this message in context: http://freebsd.1045724.x6.nabble.com/Linux-3D-Games-Ports-do-not-work-anymore-with-Mesa-Drivers-tp6151635p6174359.html Sent from the freebsd-x11 mailing list archive at Nabble.com. From owner-freebsd-x11@freebsd.org Fri Mar 17 19:38:45 2017 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 B7DEAD10833 for ; Fri, 17 Mar 2017 19:38:45 +0000 (UTC) (envelope-from dacohen@gmail.com) Received: from mail-it0-x22a.google.com (mail-it0-x22a.google.com [IPv6:2607:f8b0:4001:c0b::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 854A81E39 for ; Fri, 17 Mar 2017 19:38:45 +0000 (UTC) (envelope-from dacohen@gmail.com) Received: by mail-it0-x22a.google.com with SMTP id m27so39625811iti.1 for ; Fri, 17 Mar 2017 12:38:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=VjjM9hWHBC+NlcBz8YrF0PnubD2aksBHw+DSKFaCMh8=; b=iGLRnjr2IM1jiRGI0ZnKwg01hC4QZb4d1ECHDG4/wkFaOL64gsFhhhP6+Igb8xP3v7 sbtk+n44xrxDt2OgYQNcq5H18vjcv3xoai7n4q8WiNYzCZlZKZJpwOY4FDoxoK2rnIXm Z0wWCRrQLRDN5MqkKMiba1WJlqt8k5F9H0MtiNICfVOlmwi6dpNydb28T1tIYneBk5X1 DuaRp7328AuUfHjyANMGK+MmzcTcklj5OTtK65kBISO5wvbnBNPBXKv2SAjGAzh569i1 l4f+aL9/GW6iabnQ6wszVrOlGtba5cJ0KDB/ezLfN3mmbH9GmHz16pW7pBVrI/LFjKEx LSTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=VjjM9hWHBC+NlcBz8YrF0PnubD2aksBHw+DSKFaCMh8=; b=gbqhmAP+tbIdb1KO/8X7s7Iz+IGZvFawXbQaWKvAiFutW7j/0m5PR2g0tNZxwmYFNX 2zE/pZT9zSfP6JlnfTQ62w+MIwk8/AUN39E/K6FG5+WC9BDO5zAJaCGbEyvTzCyAH/01 XVAiV6fuj1+B6kMCTYmpOGfnRGSqvNxZMRFOt6gSkAiUQ4zYm4bQXUxHKvkKRQ73H3Gj Hq4wfy4CvXMocyjeq9hnvpWpiUCykHL+U23nwOnJDS6GV66Woqn7CcmCjt1b79xSc0eT +x5SsQwrDyttosNEuAqmaK6Rzjp98VCHIlvkES18WcoGWjRvMKgbzKQ1Dqx1yjTgtkhB 4l+w== X-Gm-Message-State: AFeK/H1Rd/YSFVpa62G8bQqoOQtpW16UHqX08wp2YozTkxTj7QvvXH0zPf3KwuSAIqHzBym4p1GtwdwzWcA/nA== X-Received: by 10.36.111.9 with SMTP id x9mr4472697itb.102.1489779524873; Fri, 17 Mar 2017 12:38:44 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.164.138 with HTTP; Fri, 17 Mar 2017 12:38:44 -0700 (PDT) From: David Cohen Date: Fri, 17 Mar 2017 12:38:44 -0700 Message-ID: Subject: no screens found problem To: freebsd-x11@freebsd.org Content-Type: text/plain; charset=UTF-8 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, 17 Mar 2017 19:38:45 -0000 Hi, I'm currently unable to start graphical environment on freebsd 11.0-RELEASE-p8. Whenever I startx, it gets an error saying "no screens found". I've a RX470 video card using a monitor through HDMI port. Anyone seen this issue? Br, David From owner-freebsd-x11@freebsd.org Fri Mar 17 21:42:40 2017 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 0837DD103D5 for ; Fri, 17 Mar 2017 21:42:40 +0000 (UTC) (envelope-from bsd-lists@bsdforge.com) Received: from udns.ultimatedns.net (static-24-113-41-81.wavecable.com [24.113.41.81]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DD6B01BAE for ; Fri, 17 Mar 2017 21:42:39 +0000 (UTC) (envelope-from bsd-lists@bsdforge.com) Received: from ultimatedns.net (localhost [127.0.0.1]) by udns.ultimatedns.net (8.14.9/8.14.9) with ESMTP id v2HLgxZC027693 for ; Fri, 17 Mar 2017 14:43:05 -0700 (PDT) (envelope-from bsd-lists@bsdforge.com) To: In-Reply-To: References: From: "Chris H" Subject: Re: no screens found problem Date: Fri, 17 Mar 2017 14:43:05 -0700 Content-Type: text/plain; charset=UTF-8; format=fixed MIME-Version: 1.0 Message-id: <737cbc6c734b0edad14c3405207f47df@ultimatedns.net> Content-Transfer-Encoding: 8bit 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, 17 Mar 2017 21:42:40 -0000 On Fri, 17 Mar 2017 12:38:44 -0700 David Cohen wrote > Hi, > > I'm currently unable to start graphical environment on freebsd > 11.0-RELEASE-p8. Whenever I startx, it gets an error saying "no > screens found". > > I've a RX470 video card using a monitor through HDMI port. > > Anyone seen this issue? Many ppl have seen this issue. It's often a part of getting Xorg setup with new hardware. But in order for anyone to provide you with some help. You're going to need to help them, so they can help you. :-) IOW you haven't given us enough information. The following information would help greatly: the output of uname -a the output of your Xorg.0.log and maybe the output of svn info /usr/ports --Chris > > Br, David From owner-freebsd-x11@freebsd.org Fri Mar 17 22:25:27 2017 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 588E2D10458 for ; Fri, 17 Mar 2017 22:25:27 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-ot0-x229.google.com (mail-ot0-x229.google.com [IPv6:2607:f8b0:4003:c0f::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1C7CA18EA for ; Fri, 17 Mar 2017 22:25:27 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: by mail-ot0-x229.google.com with SMTP id o24so104358525otb.1 for ; Fri, 17 Mar 2017 15:25:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=BaOLqDSa3nrENoK6OKqYg/PNW1lFxOeG76MSuReW0jo=; b=IrnNrmhDwjYNs08fE4gd6eWW8qWuyT1YHxb7CAqTIyXHCcm32ghvFjDvnWrpDL0Dl0 UTm4NzAKuiKDiiz/3Ec2+klTaOKy2spJsQc+PhIYrG+jj/bc+Nze653jUQcTKlP26M/X SsCFam5IZ/jqJYB2CraFtcRAkeRT0SEERns9mcXyGzd9lCa5Cy0ZcUjmkP63JjfK6HU6 7ypNUytzljz+JtmXSInT20LNgJnXtgN7yu8lmy0f9ST5sKXlOkE7lf0Upzyts8PTuXga xkSdiTQXRgleJuVmTpDpZCCj0tukgN89NO5Tr2Az28EVlO7FRvfh809Jyy/07xVuvqcl lmUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=BaOLqDSa3nrENoK6OKqYg/PNW1lFxOeG76MSuReW0jo=; b=MwRLdFcQqoDrkrmZWKAhJEbPtEL03akEAwc/DYcohkn+hgOywYv6RVzVt/OG8BlrhM L+laDg/FpcpT/KnacZB9o3W+evwnRrT5GQFOubWR4sOT2E7lZaWH7/ogmijm+T6t0kUD ioAy4drgIWP2vLVuSewBo5091+MI7VWD7wVISbDksvnzTtoH3fT9fbU4FeRZZE2PnZP8 Ya13svywnyYo6jJDGgj0csl/lLYsOvy8JQYrV2S+CF6n3rCVTPquGJ1jGrbRxziENXn5 3wOVGLRVARrkDCreYaytUdUidtAAqm0fbbkQNqpspftYoDGEglWAfsUE4vpxRoRwRcfu R/qQ== X-Gm-Message-State: AFeK/H2EYhn5l9ILiws/7C1IK+qZatdZjiHC+EOtEPgFv+fzJwIRP1N1p9nsqHp4fBxBI82HyYgL/BVKETA1xA== X-Received: by 10.157.12.40 with SMTP id 37mr8334491otr.92.1489789526275; Fri, 17 Mar 2017 15:25:26 -0700 (PDT) MIME-Version: 1.0 Sender: kob6558@gmail.com Received: by 10.74.39.18 with HTTP; Fri, 17 Mar 2017 15:25:25 -0700 (PDT) In-Reply-To: <737cbc6c734b0edad14c3405207f47df@ultimatedns.net> References: <737cbc6c734b0edad14c3405207f47df@ultimatedns.net> From: Kevin Oberman Date: Fri, 17 Mar 2017 15:25:25 -0700 X-Google-Sender-Auth: 91oTE11Nkoirtl2cA3V63fvhxTo Message-ID: Subject: Re: no screens found problem To: Chris H Cc: "freebsd-x11@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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, 17 Mar 2017 22:25:27 -0000 On Fri, Mar 17, 2017 at 2:43 PM, Chris H wrote: > On Fri, 17 Mar 2017 12:38:44 -0700 David Cohen wrote > > > Hi, > > > > I'm currently unable to start graphical environment on freebsd > > 11.0-RELEASE-p8. Whenever I startx, it gets an error saying "no > > screens found". > > > > I've a RX470 video card using a monitor through HDMI port. > > > > Anyone seen this issue? > Many ppl have seen this issue. It's often a part of getting > Xorg setup with new hardware. But in order for anyone to > provide you with some help. You're going to need to help > them, so they can help you. :-) > IOW you haven't given us enough information. > The following information would help greatly: > the output of uname -a > the output of your Xorg.0.log > and maybe the output of svn info /usr/ports > > --Chris > > > > Br, David > The lines for the video card in pclconf -lv might also be useful. % pciconf -lv | grep -A 4 vga should do the trick. -- Kevin Oberman, Part time kid herder and retired Network Engineer E-mail: rkoberman@gmail.com PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683 From owner-freebsd-x11@freebsd.org Sat Mar 18 01:13:28 2017 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 7FF31D10B13 for ; Sat, 18 Mar 2017 01:13:28 +0000 (UTC) (envelope-from bsdrdd@yandex.com) Received: from forward13j.cmail.yandex.net (forward13j.cmail.yandex.net [IPv6:2a02:6b8:0:1630::b3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Yandex CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3F0ADB10 for ; Sat, 18 Mar 2017 01:13:28 +0000 (UTC) (envelope-from bsdrdd@yandex.com) Received: from mxback4h.mail.yandex.net (mxback4h.mail.yandex.net [IPv6:2a02:6b8:0:f05::10d]) by forward13j.cmail.yandex.net (Yandex) with ESMTP id C56FA22659 for ; Sat, 18 Mar 2017 04:13:24 +0300 (MSK) Received: from web43g.yandex.ru (web43g.yandex.ru [95.108.252.213]) by mxback4h.mail.yandex.net (nwsmtp/Yandex) with ESMTP id G1wZobY8HU-DOJWafDX; Sat, 18 Mar 2017 04:13:24 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1489799604; bh=6L7Uhm2soEbgnkbh8POJTcV7AB69byxP+UMzaUHFd6s=; h=From:To:Subject:Message-Id:Date; b=hjfgGIp2dZR7T7SF3ACdTeOe46Ys4sS0xeOOQPzvuagH3xG96c8aK9cIU/h8kEF12 8MQe9sWMXgaduZF4PfVsPMgAA/9QUodyaDdf+bpct1XW98KyZUqh/V8bcXZY7aNgKr jmdDcLpXCUJ9slwIKEwHN9QZUmiCYcpU8+4N++N8= Authentication-Results: mxback4h.mail.yandex.net; dkim=pass header.i=@yandex.com Received: by web43g.yandex.ru with HTTP; Sat, 18 Mar 2017 04:13:24 +0300 From: J O Envelope-From: bsdrdd@yandex.ru To: freebsd-x11@freebsd.org Subject: Porting Vulkan to FreeBSD Message-Id: <499361489799604@web43g.yandex.ru> X-Mailer: Yamail [ http://yandex.ru ] 5.0 Date: Sat, 18 Mar 2017 09:13:24 +0800 MIME-Version: 1.0 Content-Type: text/plain X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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: Sat, 18 Mar 2017 01:13:28 -0000 From owner-freebsd-x11@freebsd.org Sat Mar 18 20:45:43 2017 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 C2F6CD12CA4 for ; Sat, 18 Mar 2017 20:45:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id ACA6F10D8 for ; Sat, 18 Mar 2017 20:45:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id A913FD12CA3; Sat, 18 Mar 2017 20:45:43 +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 A70FDD12CA2 for ; Sat, 18 Mar 2017 20:45:43 +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 88E6110D7 for ; Sat, 18 Mar 2017 20:45:43 +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 v2IKjgNp041080 for ; Sat, 18 Mar 2017 20:45:43 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: x11@FreeBSD.org Subject: [Bug 217102] graphics/libGL error: Version 7 or imageFromFds image extension not found Date: Sat, 18 Mar 2017 20:45:43 +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: holindho@saunalahti.fi X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: x11@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc attachments.created 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.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: Sat, 18 Mar 2017 20:45:43 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D217102 holindho@saunalahti.fi changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |holindho@saunalahti.fi --- Comment #3 from holindho@saunalahti.fi --- Created attachment 180940 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D180940&action= =3Dedit disable dri3 in mesa ports --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-x11@freebsd.org Sat Mar 18 20:49:54 2017 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 99DDDD12D0A for ; Sat, 18 Mar 2017 20:49:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 83E011156 for ; Sat, 18 Mar 2017 20:49:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 8066ED12D09; Sat, 18 Mar 2017 20:49:54 +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 7E63ED12D08 for ; Sat, 18 Mar 2017 20:49:54 +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 689031155 for ; Sat, 18 Mar 2017 20:49:54 +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 v2IKnsdP046639 for ; Sat, 18 Mar 2017 20:49:54 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: x11@FreeBSD.org Subject: [Bug 217102] graphics/libGL error: Version 7 or imageFromFds image extension not found Date: Sat, 18 Mar 2017 20:49:54 +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: holindho@saunalahti.fi 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.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: Sat, 18 Mar 2017 20:49:54 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D217102 --- Comment #4 from holindho@saunalahti.fi --- I hit the same problem and fixed it using the attached patch as I didn't wa= nt to have xorg.conf around. With the patch applied, I rebuilt all ports that = come from mesa (dri, gbm, libglapi, libGL, libEGL, libgles2). Without the patch I got the errors described by the initial reporter. Despi= te the errors, glxinfo showed the correct renderer info (JUNIPER for my 5770),= but OpenGL apps did not work correctly. With the patch no errors, no xorg.conf = and everything seems to work. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-x11@freebsd.org Sat Mar 18 20:54:04 2017 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 13508D12EE5 for ; Sat, 18 Mar 2017 20:54:04 +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 F11D9148F for ; Sat, 18 Mar 2017 20:54:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id F0678D12EE4; Sat, 18 Mar 2017 20:54:03 +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 EE4FFD12EE2 for ; Sat, 18 Mar 2017 20:54:03 +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 D8A19148D for ; Sat, 18 Mar 2017 20:54:03 +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 v2IKs3If059544 for ; Sat, 18 Mar 2017 20:54:03 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: x11@FreeBSD.org Subject: [Bug 217102] graphics/libGL error: Version 7 or imageFromFds image extension not found Date: Sat, 18 Mar 2017 20:54:04 +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: holindho@saunalahti.fi 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.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: Sat, 18 Mar 2017 20:54:04 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D217102 --- Comment #5 from holindho@saunalahti.fi --- If drm-next testers are too lazy to enable dri3 by hand, how about adding i= t as a non-default option to the mesa ports? --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-x11@freebsd.org Sat Mar 18 21:29:18 2017 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 E8A67D0854F for ; Sat, 18 Mar 2017 21:29:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id D2A9A10E2 for ; Sat, 18 Mar 2017 21:29:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id D20E6D0854E; Sat, 18 Mar 2017 21:29:18 +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 D1B31D0854C for ; Sat, 18 Mar 2017 21:29:18 +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 C188F10E1 for ; Sat, 18 Mar 2017 21:29:18 +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 v2ILTHPM051144 for ; Sat, 18 Mar 2017 21:29:18 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: x11@FreeBSD.org Subject: [Bug 217102] graphics/libGL error: Version 7 or imageFromFds image extension not found Date: Sat, 18 Mar 2017 21:29:18 +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: rezny@freebsd.org 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.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: Sat, 18 Mar 2017 21:29:19 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D217102 --- Comment #6 from Matthew Rezny --- (In reply to holindho from comment #4) Again, the error only means that DRI3 init failed and it will continue on w= ith DRI2, so the output of glxinfo should be the same. I could easily make DRI3 an option if need be. I've tried a couple DEs and = half a dozen games without problems, but maybe not any of the applications you a= re using. Which OpenGL applications are working incorrectly and how? Please be specif= ic (port versions, logs, etc). --=20 You are receiving this mail because: You are the assignee for the bug.=