From owner-svn-src-all@freebsd.org Thu Feb 1 11:21:06 2018 Return-Path: Delivered-To: svn-src-all@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 9DCEFEE279A; Thu, 1 Feb 2018 11:21:06 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FDDF85004; Thu, 1 Feb 2018 11:21:06 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 1354) id 406621D904; Thu, 1 Feb 2018 11:21:06 +0000 (UTC) From: Jan Beich To: Hans Petter Selasky Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r328436 - head/sys/compat/linuxkpi/common/src References: <201801261049.w0QAn2Xt089656@repo.freebsd.org> Date: Thu, 01 Feb 2018 12:20:59 +0100 In-Reply-To: (Hans Petter Selasky's message of "Thu, 1 Feb 2018 12:04:32 +0100") Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Feb 2018 11:21:06 -0000 Hans Petter Selasky writes: > 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? Yes, recompiled. However, this commit in particular doesn't touch any kernel headers for recompilation to be necessary. I also confirm reverting the commit works around the issue.