From owner-freebsd-x11@freebsd.org Fri May 18 19:30:37 2018 Return-Path: Delivered-To: freebsd-x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3BEA2ED6D29 for ; Fri, 18 May 2018 19:30:37 +0000 (UTC) (envelope-from theron.tarigo@gmail.com) Received: from mail-qk0-x22d.google.com (mail-qk0-x22d.google.com [IPv6:2607:f8b0:400d:c09::22d]) (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 C32D9858DE for ; Fri, 18 May 2018 19:30:36 +0000 (UTC) (envelope-from theron.tarigo@gmail.com) Received: by mail-qk0-x22d.google.com with SMTP id c137-v6so7346920qkg.2 for ; Fri, 18 May 2018 12:30:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=qH58aXSaoAIGbUDQR0KKCKYGfxilXxnrUcvJok8EFbU=; b=RrbVxgYoMpe3H0j8rvnkH09nKzUPAgYgluV1x2IEKKY/Mon5iWkQt+03C2NyPwQ1+I aBBS0JTjMIZiEU3YEzbEQwQUcmWCx4fKTg7CcGsc2oeaqe5Ln6kD22nrkEhauz5A3xvc 5YCZgoczOUEG2+jNM1ug9mpcANzY8zaRDDNRhsBEwJuOHmF+cjE33zswDUdPTippQYF5 bj4O5jlDpG6NIFstZhQRCJi/6kBi8BoIyJQWP7NOuXSkAZY2thpMZtM7f5NdHWAJnMVm Diu81+fQzbPlg5nCPEDttFj+25ITt6j1P566NvTfTY4DZAvAtQykA6jwsxsLCgQUhA5e cjDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:to:from:subject:message-id:date :user-agent:mime-version:content-transfer-encoding:content-language; bh=qH58aXSaoAIGbUDQR0KKCKYGfxilXxnrUcvJok8EFbU=; b=dxqmQh3DDPIRn4GZLTgnZ3ptKcWTcxLRWMu+ad0ePSG43/vogUnXBmeRsUoANtacuq Zjooy9WXZ6LesbZafVtWyXlko2YMN/mS35JnGXv5PvNEts5cghZVtWMaPCRCz0GnM7nY IYam0rhpsJDkCxCWEacnbjcKNCTFGKacn/6gw3d9RyQJbz6iYFg7ITWYGN76MmkE0X5k Aop2xVZccl7kQZFvWwTeLTyLsxTz3mspFUt+zwCL7ziHf+1u4Nqi1bU+KPh3Wq2BFrfw qkX6ADW31tQ03jZb6roBhbZCxGRmZeBnW4yRNRUemM5rBsnXGXrs1dVzUq/KGOFCNWbQ vW0Q== X-Gm-Message-State: ALKqPwcEL97W9ITN3L/qmhHxnyaZ8abi7pKL0QqV+EJuyNGd+FvB5FgL EK/owiJp4lJisCtcVJ03Hxd4fCsn X-Google-Smtp-Source: AB8JxZpAvzci79/LWqX6DMXD8cwvNIISHVKeO6IVnprD5lhA5i598bJnWMaTG4MXcHV+8oG2ctgRsA== X-Received: by 2002:a37:2ad9:: with SMTP id q86-v6mr9920986qkq.180.1526671836030; Fri, 18 May 2018 12:30:36 -0700 (PDT) Received: from [10.0.0.163] (c-65-96-175-209.hsd1.ma.comcast.net. [65.96.175.209]) by smtp.gmail.com with ESMTPSA id u24-v6sm6337883qku.18.2018.05.18.12.30.35 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 May 2018 12:30:35 -0700 (PDT) Sender: Theron Tarigo To: x11-list freebsd From: Theron Subject: drm-stable-kmod, OpenGL, and Linux binary compat Message-ID: Date: Fri, 18 May 2018 15:30:34 -0400 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.26 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, 18 May 2018 19:30:37 -0000 I am running 12-CURRENT with drm-stable-kmod on Intel.  Xorg and OpenGL work very well.  Linux compatibility layer also works for command line programs and for the simple Xorg apps (xclock, xeyes, xev, ...).  However, OpenGL from Linux binaries is broken: % /compat/linux/usr/bin/glxinfo | grep OpenGL libGL error: MESA-LOADER: failed to retrieve device information libGL error: Version 4 or later of flush extension not found libGL error: failed to load driver: i915 libGL error: MESA-LOADER: failed to retrieve device information OpenGL vendor string: Intel Open Source Technology Center OpenGL renderer string: Mesa DRI Unknown Intel Chipset OpenGL version string: 1.3 Mesa 17.0.1 OpenGL extensions: Whereas the expected output would agree with non-Linux glxinfo: % glxinfo | grep OpenGL OpenGL vendor string: Intel Open Source Technology Center OpenGL renderer string: Mesa DRI Intel(R) HD Graphics 530 (Skylake GT2) OpenGL core profile version string: 4.5 (Core Profile) Mesa 18.0.2 OpenGL core profile shading language version string: 4.50 OpenGL core profile context flags: (none) OpenGL core profile profile mask: core profile OpenGL core profile extensions: OpenGL version string: 3.0 Mesa 18.0.2 Running /compat/linux/usr/bin/glxgears freezes the graphical output of the system instantaneously, requiring reboot.  Strangely, these symptoms are identical to those of a problem last year which was related to FreeBSDDesktop/freebsd-base-graphics and ports/graphics/libdrm being in disagreement over the /dev/dri/card0 device numbers. Has anyone else encountered this?  It seems to be a bug in drm-stable-kmod itself that a userspace program can cause a complete lockup of the system's graphical output, but since this is only happening with linux compat, I am not sure. Theron