From owner-freebsd-x11@FreeBSD.ORG Thu Jul 7 22:48:05 2011 Return-Path: Delivered-To: x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9B298106566C for ; Thu, 7 Jul 2011 22:48:05 +0000 (UTC) (envelope-from geo.liaskos@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id 59D1F8FC0C for ; Thu, 7 Jul 2011 22:48:05 +0000 (UTC) Received: by qwc9 with SMTP id 9so923403qwc.13 for ; Thu, 07 Jul 2011 15:48:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=1GsInpFSCY5X1dl4fXawdtUkwJqNb90v92cuJCnE1is=; b=Hx3hxX5Kjw6HWpnUZ1VuLc3pK/mjcu0fdl/VsxpGnOy1ZSsEyPaPQ+lib5nD0XWGmP 0YkTCNwkPJoGcmli/varILAhZ6BipDJFs+Gpo6qgu4JQceevk1AYVCtfoowiwPXWoSjR 43Lg6Ek4G7NJIAdRYuDJw0CiTK+VpKpULZEuk= MIME-Version: 1.0 Received: by 10.224.47.139 with SMTP id n11mr1123229qaf.209.1310077328866; Thu, 07 Jul 2011 15:22:08 -0700 (PDT) Received: by 10.229.236.130 with HTTP; Thu, 7 Jul 2011 15:22:08 -0700 (PDT) In-Reply-To: <20110630162315.GV48734@deviant.kiev.zoral.com.ua> References: <20110630162315.GV48734@deviant.kiev.zoral.com.ua> Date: Fri, 8 Jul 2011 01:22:08 +0300 Message-ID: From: George Liaskos To: Kostik Belousov Content-Type: text/plain; charset=UTF-8 Cc: x11@freebsd.org Subject: Re: Intel GPU kernel driver X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jul 2011 22:48:05 -0000 On Thu, Jun 30, 2011 at 7:23 PM, Kostik Belousov wrote: > [Please remove current@ when replying.] > > I created the first code drop for the ongoing GEM/KMS project. Please > note that this is not an end-user release, and even _not_ a call for > testing. The project is not finished yet, and I expect quite more > efforts from me even after the scheduled project end, and from ports/x11 > people, before the driver and usermode infrastructure will be ready for > the general public consumption. > > That said, the patch is only of use for you now if you want to review, > debug or otherwise help the project. The driver is known to be unstable, > some parts are missing, some (esp. VM changes) are under the discussion > and propably will be changed. > > If you have fix or useful bug analisys or suggestions for improvements, > you are welcome. I will not answer to the support requests for this > code now, please do not waste your time asking for it. > > The pointers to the patches, useful hints for debugging and bug > reporting, and some notes are at the http://wiki.freebsd.org/Intel_GPU. > I will maintain this page further. > > Current patch is ~50KLOC, it took quite an efforts to bring the code to > the state where there is something to debug. Thanks for everybody who > waited for it, and please be patient while the further work is done. > Hello Kostik, I am trying to get my gm45 [0x2a428086] working with your patches and i found a bug. A call to agp_gen5_get_gtt_total_entries returns ENXIO, what i found is that in my case (gcc1 & AGP_G4x_GCC1_SIZE_MASK) == 0xb00. I did a cross check with Linux and there isn't such a valid value defined but the Linux code does not error on default case, it continues with our agp_i965_get_gtt_total_entries() equivalent. After this change, X starts but the image has artifacts. It's progress :) Thank you for your work! xorg log: http://pastebin.com/a0zak5LY