From owner-svn-src-head@freebsd.org Thu Feb 1 11:16:02 2018 Return-Path: Delivered-To: svn-src-head@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 1EFBAEE1AFE; Thu, 1 Feb 2018 11:16:02 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [88.99.82.50]) (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 A884484C84; Thu, 1 Feb 2018 11:16:01 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2016.home.selasky.org (unknown [62.141.128.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 96895260227; Thu, 1 Feb 2018 12:15:59 +0100 (CET) Subject: Re: svn commit: r328436 - head/sys/compat/linuxkpi/common/src From: Hans Petter Selasky To: Jan Beich Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org References: <201801261049.w0QAn2Xt089656@repo.freebsd.org> Message-ID: <4d1d778d-a0e0-0d3a-b37e-19fba10ae86f@selasky.org> Date: Thu, 1 Feb 2018 12:13:06 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Feb 2018 11:16:02 -0000 On 02/01/18 12:04, Hans Petter Selasky wrote: > On 02/01/18 11:25, Jan Beich wrote: >> Hans Petter Selasky writes: >> >>> Author: hselasky >>> Date: Fri Jan 26 10:49:02 2018 >>> New Revision: 328436 >>> URL: https://svnweb.freebsd.org/changeset/base/328436 >>> >>> Log: >>>    Decouple Linux files from the belonging character device right >>> after open >>>    in the LinuxKPI. This is done by calling finit() just before >>> returning a magic >>>    value of ENXIO in the "linux_dev_fdopen" function. >> >> This breaks DRI3 (uses DMABUF) on drm-next-kmod (Linux 4.9 atm) e.g., >> >> $ LIBGL_DRI3_ENABLE=1 LIBGL_DEBUG=verbose MESA_DEBUG=context glxgears >> libGL: screen 0 does not appear to be DRI3 capable >> libGL error: Connection closed during DRI3 initialization failure >> XIO:  fatal IO error 35 (Resource temporarily unavailable) on X server >> ":0" >>        after 22 requests (22 known processed) with 0 events remaining. >> > > Hi, > > I'll have a look. It might be an issue in libdrm, because it uses some > out-of date methods to enumerate the device nodes, like the major and > minor numbers. > > Did you recompile drm-next-kmod after recompiling the LinuxKPI? > > --HPS > Hi, I'm still running: freebsd-base-graphics git@github.com:FreeBSDDesktop/freebsd-base-graphics.git With r328436 applied on top and glxgears work: > env LIBGL_DRI3_ENABLE=1 LIBGL_DEBUG=verbose MESA_DEBUG=context glxgears > libGL: OpenDriver: trying /usr/local/lib/dri/i965_dri.so > libGL: Can't open configuration file /home/hans/.drirc: No such file or directory. > libGL: Using DRI2 for screen 0 > libGL: Can't open configuration file /home/hans/.drirc: No such file or directory. > Running synchronized to the vertical refresh. The framerate should be > approximately the same as the monitor refresh rate. > 302 frames in 5.0 seconds = 60.252 FPS Can you do a ktrace and see where it stops? --HPS