From owner-freebsd-x11@freebsd.org Fri Oct 5 20:21:43 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 151CC10B58F1; Fri, 5 Oct 2018 20:21:43 +0000 (UTC) (envelope-from theron.tarigo@gmail.com) Received: from mail-qk1-x743.google.com (mail-qk1-x743.google.com [IPv6:2607:f8b0:4864:20::743]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A53288F49F; Fri, 5 Oct 2018 20:21:42 +0000 (UTC) (envelope-from theron.tarigo@gmail.com) Received: by mail-qk1-x743.google.com with SMTP id a85-v6so8756270qkg.3; Fri, 05 Oct 2018 13:21:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:references:from:cc:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=HdttR7Y7rHOLGVeSQlekzHDjwkuwncR1+gHe/t02fPU=; b=AeMNXkVneiTHedRIyeChXvcT+46nmhtbPnW7VdcG/HSEAgf233+KG61wDLjAjSqgH/ wofW3pI1Idz3PnYLvzg+ShHW2GqwCufKr3/hOtYUR7/rJE+5HwBcOrVZ83gHr0GxKy4l atWlDdBlGW+QtCy/TtRP5uuv749d+lg/mkRLtmICHLykjfJ7eaRaLZWLG1Uc+84B7rQX 1y0OTS7YuJVLRgpoMlAID27xLJk3tSB2v0vmjEC/mjDrNZp2V+PzVf2P0v7YWKuorCgR kKAzcQBuqaeT6VMr1ni/JskdqH05rF3wY+ddgryb2T0Kjq9zxKz5ouxdQq40MF+ft7hb 0z6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:references:from:cc:message-id :date:user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=HdttR7Y7rHOLGVeSQlekzHDjwkuwncR1+gHe/t02fPU=; b=FPKCpDyQabySCH602KgHgx5QeaYdhG0gXoZvLxNbeUrx6IWAGTpp4IRBkuk8xAgxTa ukZQKT1/xB+CNmJQOuD1Bx2nZ3T8vmjZ4KCb22vnPY2ZewPeq13UXWhXZ1ojvH3qyrLi vbg2916SaCXK9kzJH/diHeMgQf9tUjiFCKcGFM4B2D8Z1IOwjaQ98HDnW19tCbv6FqXb Z8lTwUPIdW95raXFTw/zc1IMEKcGE/WYjXwPTy0v87ikkCcxDkK1fFFluBgpei8jHmP0 qylZGXEl4lEFQjAwyzWoEzqawkXUrrEHq8WPXDzKy2ilFVES5wkCFb/tZAc0fZaq35nL soZg== X-Gm-Message-State: ABuFfojzh/bjKkfP9+hg9e0ccpB6WoRbXBzilpAK7tAMZRPXeQoTUVtN LI3rj1ILmOXkGJbOPiBFOUssLz6B X-Google-Smtp-Source: ACcGV62saeK2qntskPxV8OfcZVY9SsAmWz0e7F2Lb8mjQ8I5Lrqmf/kWJTkIlWUpdROGR/DfhRYdnw== X-Received: by 2002:a37:ba47:: with SMTP id k68-v6mr10522311qkf.298.1538770902128; Fri, 05 Oct 2018 13:21:42 -0700 (PDT) Received: from [168.122.209.170] (dhcp-wifi-8021x-168-122-209-170.bu.edu. [168.122.209.170]) by smtp.gmail.com with ESMTPSA id 35-v6sm5248885qtr.91.2018.10.05.13.21.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 05 Oct 2018 13:21:41 -0700 (PDT) Sender: Theron Tarigo Subject: Re: linux-c7 and opengl apps? To: FreeBSD Current References: From: Theron Cc: x11-list freebsd Message-ID: Date: Fri, 5 Oct 2018 16:21:40 -0400 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: 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.27 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, 05 Oct 2018 20:21:43 -0000 On 10/3/18 5:36 AM, Johannes Lundberg wrote: > Hi > > Have anyone successfully run opengl apps with linux-c7? > > Linux opengl apps works great with linux-c6 on gpu < kabylake but > linux-c6-dri does not include support for kabylake gpus. > Linux glxinfo in c7 show support for hardware rendering on kabylake but any > attempt to run an opengl app results in application seg fault or other > crash (I believe this is also the case with skylake gpus on linux-c7). > > Is there any way to run gdb on linux apps/core dumps? > > /Johannes > _______________________________________________ On an Intel Skylake graphics system it has never worked: % /compat/linux/opt/VirtualGL/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 Running any Linux OpenGL app which attempts to do actual rendering results in an indefinite freeze of the console: graphical output is frozen, and system does not respond to keyboard (Ctrl-Alt-Del or Ctrl-Alt-F1).  However, the system continues to run (tested with ssh).  Sometimes, after several minutes, the console recovers, the OpenGL user segfaults, and the system returns to normal (until the next attempt to use an OpenGL Linux app). This problem has existed forever.  I am not sure it is actually a fault in Linux emulation, as these very same symptoms ("failed to retrieve device information" message, console freeze) existed back in FreeBSDDesktop/freebsd-base-graphics days when attempting to run purely FreeBSD OpenGL apps.  At the time the workaround was a patch to Mesa's GPU detection; the underlying kernel problem wasn't addressed. Where would I begin to investigate the problem, in order to fix it and/or to decide who's bug it is?  Unless there is something simpler to try, I may have to dig up those old Mesa patches and see whether a non-Linux binary can be made to trigger the same symptom. By design, is it considered acceptable that any member of the "video" group has permission to destroy functionality of the graphics subsystem?  Is this a bug in the general case, or an accepted technical limitation? Copying to x11@. Theron