From owner-freebsd-x11@FreeBSD.ORG Sun Sep 7 18:49:09 2014 Return-Path: Delivered-To: freebsd-x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9D66E8FB; Sun, 7 Sep 2014 18:49:09 +0000 (UTC) Received: from mail-we0-x22c.google.com (mail-we0-x22c.google.com [IPv6:2a00:1450:400c:c03::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 12ABF1D17; Sun, 7 Sep 2014 18:49:08 +0000 (UTC) Received: by mail-we0-f172.google.com with SMTP id w62so1486731wes.3 for ; Sun, 07 Sep 2014 11:49:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=ppXl+gnWG0FrOgwTUe6TEo3HxxpkvQm95CQLnlFvUbg=; b=lQVeUBDZgdRtKPekaSIyjAAzg5xH3IlzSCuF3FkU2LEgWpc6fnpFbZ0bd7xFnvuiq+ kkIYJrcqRrYwte0tMSYwG7KXp3FfB77OL+5nlS765QOIFulTWEWt6qZBqJucynB2Y/g0 nVPhsui4W097NzbWofONCWeJgAKxFWZGKobtbGvOrW0GECDWV01U+usVDXMmrh9nbi/W R08qEMY4u3FlvZDTmBv0Qa6rZCY0NCBQZzuZLHqyfCmwZPRPyOdK5VCDcOqhCTA/tuoe eoeJoPsZJRhXUH7/1qf+N3n5b3NMMNjIWM6wXuNJpOWyHXRgtwpIEbesWU51eo7RW/Sp NAiA== MIME-Version: 1.0 X-Received: by 10.180.97.101 with SMTP id dz5mr17139727wib.52.1410115747052; Sun, 07 Sep 2014 11:49:07 -0700 (PDT) Received: by 10.194.8.10 with HTTP; Sun, 7 Sep 2014 11:49:07 -0700 (PDT) In-Reply-To: <540C1CA8.603@FreeBSD.org> References: <540C1CA8.603@FreeBSD.org> Date: Sun, 7 Sep 2014 20:49:07 +0200 Message-ID: Subject: Re: [CFT] i915: add HW context support (for Mesa 9.2+) From: =?UTF-8?Q?Mika=C3=ABl_Urankar?= To: =?UTF-8?B?SmVhbi1Tw6liYXN0aWVuIFDDqWRyb24=?= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-x11@freebsd.org X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Sep 2014 18:49:09 -0000 2014-09-07 10:51 GMT+02:00 Jean-S=C3=A9bastien P=C3=A9dron : > Hello! > > Mesa 9.2+ requires "hardware context support" [1] in the i915 driver to > work on Intel GPUs found in Sandy Bridge and later. Our driver lacks > this feature, that's why we're stuck with Mesa 9.1 in the ports tree. > > If you have one of those GPUs and you try Mesa 10.2 for instance > (available from the xorg-dev's experimental branch [2]), it will > complain with the following message: > > # glxinfo > name of display: :0.0 > Gen6+ requires Kernel 3.6 or later. > Assertion failed: (ctx->Version > 0), (...) > Abort (core dumped) > > I prepared a patch to add this feature to our i915 driver; the goal is > to have it in 10.1-RELEASE: > https://wiki.freebsd.org/Graphics/Add%20HW%20context%20support%20to%20i91= 5 > > The article above explains how to test the patch. We're interested in > success/failure reports for any GPU, not just Intel ones. So please test > it! :) > > Thank you! > > [1] > https://bwidawsk.net/blog/index.php/2013/01/i915-hardware-contexts-and-so= me-bits-about-batchbuffers/ > [2] https://wiki.freebsd.org/Graphics#experimental Hi! Thanks for your work! I've tested on an AMD GPU (V4800) and it (still) works! I don't think it's related to your work but I faced the following issue: I needed to manually kldload radeonkms and various firmwares, libdrm didn't automagically load them (I've compiled the packages with these flags: WITH_GALLIUM=3Dyes WITH_NEW_MESA=3Dyes), is it a known issue? I failed to get X working on a Intel Haswell Graphics 4xxx, is it supposed to work? If needed, logs of my system are at [1] [1] http://mikael.urankar.free.fr/FreeBSD/CFT_drm_context/