From owner-freebsd-x11@FreeBSD.ORG Thu May 17 17:06:10 2012 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 9F81E106566C for ; Thu, 17 May 2012 17:06:10 +0000 (UTC) (envelope-from kwm@rainbow-runner.nl) Received: from fep19.mx.upcmail.net (fep19.mx.upcmail.net [62.179.121.39]) by mx1.freebsd.org (Postfix) with ESMTP id 03B808FC0A for ; Thu, 17 May 2012 17:06:09 +0000 (UTC) Received: from edge02.upcmail.net ([192.168.13.237]) by viefep19-int.chello.at (InterMail vM.8.01.05.05 201-2260-151-110-20120111) with ESMTP id <20120517170603.ZEGM22594.viefep19-int.chello.at@edge02.upcmail.net>; Thu, 17 May 2012 19:06:03 +0200 Received: from [127.0.0.1] ([178.84.137.57]) by edge02.upcmail.net with edge id B5601j01b1EUzH602560Rb; Thu, 17 May 2012 19:06:03 +0200 X-SourceIP: 178.84.137.57 Message-ID: <4FB52FF6.9040803@rainbow-runner.nl> Date: Thu, 17 May 2012 19:05:58 +0200 From: Koop Mast User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: Konstantin Belousov References: <20120512213950.GZ2358@deviant.kiev.zoral.com.ua> <20120517112315.GR2358@deviant.kiev.zoral.com.ua> In-Reply-To: <20120517112315.GR2358@deviant.kiev.zoral.com.ua> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 120517-0, 17-05-2012), Outbound message X-Antivirus-Status: Clean Cc: x11@freebsd.org Subject: Re: Intel GPU driver import 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, 17 May 2012 17:06:10 -0000 On 17-5-2012 13:23, Konstantin Belousov wrote: > On Sun, May 13, 2012 at 12:39:50AM +0300, Konstantin Belousov wrote: >> With r235375, all required VM support for new Intel GPU driver was >> committed into HEAD. There are still some things to improve and >> change, but now the all.14.9.patch does not touch anything outside agp >> or drm. This allows to start the process of importing the new Intel >> GPU driver into HEAD. >> >> I am writing this as initial head-up and to discuss some questions, >> for which I do have answers but would prefer to have additional >> feedback from people doing Xorg work. >> >> The patch as-is just replaces the Intel DRI1 bits with DRI2 >> driver. Patch added most of the KMS infrastructure into DRM >> core. Also, patch completely changed the locking model used by Intel >> driver. I made absolutely minimal efforts needed to keep other DRI1 >> drivers compilable. Despite that, I got several surpising reports that >> Radeon DRI1 still works. >> >> That said, for import I can (first choice) just apply the patch, >> replacing the Intel driver with new one. Or (second choice) I may >> create another directory, say sys/dev/drm2, and import _only_ Intel >> driver together with updated DRM core, there. >> >> The positive points to the second approach is that we still have older >> kernel drivers around. Also, I have more freedom in changing the DRM >> core, without fearing breakage in the DRI1 land. Since I do not really >> want to deal with Gen2-3 hardware, and VGA console does not work with >> new driver (yet), there are definite advantages. >> >> On the other hand, driver automatic loading will not work with >> dev/drm2 approach. New driver have to use different module name to >> co-exist with dri1 driver, so ddx driver cannot load new driver by old >> name. As result, users need to manually kldload new driver before >> starting Xorg. >> >> My own preference is to implement second choice and put the driver >> into dev/drm2. > The commit candidate of the Intel driver patch is available at > http://people.freebsd.org/~kib/drm/all.15.0.patch > > The driver module is named i915kms, the drm core is drmn (not drm2). > You need to explicitely kldload i915kms before Xorg server start. > > Unless some surprising news pop up, I plan to commit the agp rewrite during > the weekend, and the driver itself some days later. I updated the xf86-video-intel driver in xorg-dev to support the situation with this new patch, it now only supports the 15.0 patch or current after this is committed. For people trying the 15.0 patch with regular ports a patch is available here: http://people.freebsd.org/~kwm/intel-video-i915kms.diff -Koop