From owner-freebsd-x11@FreeBSD.ORG Thu Oct 2 20:29:06 2008 Return-Path: Delivered-To: freebsd-x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B9F491065686 for ; Thu, 2 Oct 2008 20:29:06 +0000 (UTC) (envelope-from sziszi@bsd.hu) Received: from mail.rubicom.hu (mail.rubicom.hu [89.147.80.28]) by mx1.freebsd.org (Postfix) with ESMTP id 3F4C88FC22 for ; Thu, 2 Oct 2008 20:29:06 +0000 (UTC) (envelope-from sziszi@bsd.hu) Received: from localhost ([127.0.0.1] helo=mail.rubicom.hu) by mail.rubicom.hu with smtp (Exim 4.63) (envelope-from ) id 1KlUnH-0006nC-Tq for freebsd-x11@freebsd.org; Thu, 02 Oct 2008 22:29:03 +0200 Received: from ip5993549e.rubicom.hu ([89.147.84.158] helo=baranyfelhocske.buza.adamsfamily.xx) by mail.rubicom.hu with esmtp (Exim 4.63) (envelope-from ) id 1KlUnH-0006mu-Fn for freebsd-x11@freebsd.org; Thu, 02 Oct 2008 22:29:03 +0200 Received: from baranyfelhocske.buza.adamsfamily.xx (localhost [127.0.0.1]) by baranyfelhocske.buza.adamsfamily.xx (8.14.3/8.14.3) with ESMTP id m92KT3g7003469 for ; Thu, 2 Oct 2008 22:29:03 +0200 (CEST) (envelope-from sziszi@bsd.hu) Received: (from sziszi@localhost) by baranyfelhocske.buza.adamsfamily.xx (8.14.3/8.14.3/Submit) id m92KT35m003468 for freebsd-x11@freebsd.org; Thu, 2 Oct 2008 22:29:03 +0200 (CEST) (envelope-from sziszi@bsd.hu) X-Authentication-Warning: baranyfelhocske.buza.adamsfamily.xx: sziszi set sender to sziszi@bsd.hu using -f Date: Thu, 2 Oct 2008 22:29:03 +0200 From: Szilveszter Adam To: freebsd-x11@freebsd.org Message-ID: <20081002202903.GB1831@baranyfelhocske.buza.adamsfamily.xx> References: <48DD9ECD.40309@ahhyes.net> <1222524191.1662.3.camel@wombat.2hip.net> <20080927165901.GA1508@baranyfelhocske.buza.adamsfamily.xx> <1222916611.1684.35.camel@wombat.2hip.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1222916611.1684.35.camel@wombat.2hip.net> User-Agent: Mutt/1.5.18 (2008-05-17) Subject: Re: DRI not working 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, 02 Oct 2008 20:29:06 -0000 Hello Robert, Sorry for only getting back to you now; I compiled up a kernel with your patch in the morning but then had to rush off to work. Patch applied cleanly to my recent -CURRENT sources. On Wed, Oct 01, 2008 at 11:03:31PM -0400, Robert Noland wrote: > Ok, can you guys give this patch a try? I think the memory failures are > un-related and we probably need to try and figure that out separately. > This patch should be rejecting the second head during the probe phase, > so drm should not report *anything* about it. That's quite correct, drm is now not attaching to vgapci1. dmesg after patch (may wrap): vgapci0: port 0x1800-0x1807 mem 0xe0000000-0xe7ffffff,0xd0000000-0xd007ffff irq 11 at device 2.0 on pci0 agp0: on vgapci0 agp0: detected 8060k stolen memory agp0: aperture size is 128M drm0: on vgapci0 vgapci0: child drm0 requested pci_enable_busmaster info: [drm] AGP at 0xe0000000 128MB info: [drm] Initialized i915 1.6.0 20080312 vgapci1: mem 0xe8000000-0xefffffff,0xd0080000-0xd00fffff at device 2.1 on pci0 So, no trace of drm attaching in the second case. Unfortunately, this is about all the patch changed :-( the intel(4) driver still thinks that this card is not even capable of hw-accelerated 2d. > One of you said something about X also reporting both heads? If that is > true and remains so with this patch, could you send me X logs? I'll try > and get someone to look into the Intel 2d driver and see what is going > on with it. No, looking at the log only the primary one is used now, so that's ok. The problem spot seems to be this: (II) [drm] DRM interface version 1.2 (II) [drm] DRM open master succeeded. (II) intel(0): [drm] Using the DRM lock SAREA also for drawables. (II) intel(0): [drm] framebuffer mapped by ddx driver (II) intel(0): [drm] added 1 reserved context for kernel (II) intel(0): X context handle = 0x1 (II) intel(0): [drm] installed DRM signal handler (**) intel(0): Framebuffer compression enabled (**) intel(0): Tiling enabled (==) intel(0): Write-combining range (0xd0000000,0x80000) was already clear (==) intel(0): VideoRam: 131072 KB (II) intel(0): Attempting memory allocation with tiled buffers. (WW) intel(0): xf86AllocateGARTMemory: allocation of 10 pages failed (Cannot allocate memory) <= THIS (WW) intel(0): xf86AllocateGARTMemory: allocation of 4 pages failed (Cannot allocate memory) <= THIS TOO (WW) intel(0): Disabling HW cursor because the cursor memory allocation failed. (II) intel(0): Tiled allocation successful. (--) intel(0): DRI is disabled because it needs HW cursor, 2D accel and AGPGART. Any ideas? The full log is available. -- Regards: Szilveszter ADAM Budapest Hungary