From owner-freebsd-x11@freebsd.org Fri May 18 19:45:57 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 C5577ED95B4 for ; Fri, 18 May 2018 19:45:57 +0000 (UTC) (envelope-from andrnils@gmail.com) Received: from mail-lf0-x230.google.com (mail-lf0-x230.google.com [IPv6:2a00:1450:4010:c07::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 32F0386761 for ; Fri, 18 May 2018 19:45:57 +0000 (UTC) (envelope-from andrnils@gmail.com) Received: by mail-lf0-x230.google.com with SMTP id w202-v6so15553147lff.12 for ; Fri, 18 May 2018 12:45:57 -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=XHEuuWaxHae4R2K/BC8JXEXrphxDQ2PZhGHY0S7xKps=; b=fd9S6bForXUq24GnQEnA81POaUo2O/IvArRCeoSPJ/LJRVx3RsHwyxAHhP8IIm7E40 TCwFKz+4zl7DmHL5DlSCDnCXPUXENTJJKP6Vs+Sdmv3PGAXg8+UDA17Pe4Rp8Usg/yRR MZxBNbtRcqWuWop3gunr0edYuhTZWBfQ2qBqzy1/jTV8HQZSbeYsYF2IEoTbpo0I+ud4 WYccoejYQRIzWqozInoQ9wvWLzhjkUN51OMMlx0oZFqKYDztuyK/URCpVZaVv79ZmIVV 6PUCnDtsq2SvalcxQHPLXDI0dYts7qHj8p+ZnqCCvlFCvWmdPE2PRiN9P7qvqW1eBQQ4 v8lg== 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=XHEuuWaxHae4R2K/BC8JXEXrphxDQ2PZhGHY0S7xKps=; b=HZMIQdoVHCVpiRDFm+i48G0WfJevgRL2DSfA1nYLJr/gTTKLg6uQpcpsjAGs7pNKy+ z5Z9W/SI5+lKnuhtVguGMzo8JPPXFI6fCsi6cZngm8BMP8E2Z0cnBGdxWz2ojRyZAfy4 SQILwCP5iwOfDXduKxRpxjEj9Pf0EO067eFhRg1LdhAbpcT7OXH22ow731QUXCcTDj5D mEtuqTn9tynFM6YZFZ1H+gcq7SIwodp06GwRgxM2cjRqXSSGvIsb6rYYlfQtmhwLdIw+ o8Li/kCS8v2RzzDTQgIJXq8pvijp2dffNBh102klLHjHm9ebJ/8//XmDSYILbt8GueIX CZeQ== X-Gm-Message-State: ALKqPwfpoDGYaOrcYkyITYTxzzzbWdrz9CI+HrF6es4WRgrMETWG5YDx g18YSzcX0BZwluuPLjMzphXc3SL5os/yRsZpLko= X-Google-Smtp-Source: AB8JxZozlzHIRPmzTGL34Zqxuc9+SyoMX21/S7O7Typ4mlyjhnMsNNCWB4yX5fnqBMJn4wRAdLcCijTwO/J16kDYF58= X-Received: by 2002:a19:f48:: with SMTP id e69-v6mr2776725lfi.33.1526672755681; Fri, 18 May 2018 12:45:55 -0700 (PDT) MIME-Version: 1.0 Received: by 10.46.131.76 with HTTP; Fri, 18 May 2018 12:45:55 -0700 (PDT) In-Reply-To: References: From: Andreas Nilsson Date: Fri, 18 May 2018 21:45:55 +0200 Message-ID: Subject: Re: drm-stable-kmod, OpenGL, and Linux binary compat To: Theron Cc: x11-list freebsd Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.26 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:45:58 -0000 On Fri, May 18, 2018 at 9:30 PM, Theron wrote: > 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 > _______________________________________________ > 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" > Hello, that seems strange, works for me: $ /compat/linux/usr/bin/glxinfo | grep OpenGL OpenGL vendor string: Intel Open Source Technology Center OpenGL renderer string: Mesa DRI Intel(R) HD Graphics 520 (Skylake GT2) OpenGL core profile version string: 4.5 (Core Profile) Mesa 17.0.1 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 17.0.1 OpenGL shading language version string: 1.30 OpenGL context flags: (none) OpenGL extensions: OpenGL ES profile version string: OpenGL ES 3.2 Mesa 17.0.1 OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20 OpenGL ES profile extensions: 21:42:15 0 andrnils@yoga:~ glxgears works as well. Best regards Andreas