From owner-freebsd-x11@FreeBSD.ORG Mon Dec 21 16:24:50 2009 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 1D9CF1065670; Mon, 21 Dec 2009 16:24:50 +0000 (UTC) (envelope-from rnoland@FreeBSD.org) Received: from gizmo.2hip.net (gizmo.2hip.net [64.74.207.195]) by mx1.freebsd.org (Postfix) with ESMTP id E8B228FC23; Mon, 21 Dec 2009 16:24:49 +0000 (UTC) Received: from [192.168.1.4] (adsl-156-16-112.bna.bellsouth.net [70.156.16.112]) (authenticated bits=0) by gizmo.2hip.net (8.14.3/8.14.3) with ESMTP id nBLGOhH9059921 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Mon, 21 Dec 2009 11:24:44 -0500 (EST) (envelope-from rnoland@FreeBSD.org) From: Robert Noland To: Steve Polyack In-Reply-To: <4B2F9E41.909@comcast.net> References: <4B213D8F.6080906@comcast.net> <1260474623.2281.8.camel@balrog.2hip.net> <4B215405.2080502@comcast.net> <1260476369.2281.16.camel@balrog.2hip.net> <1260556637.2281.19.camel@balrog.2hip.net> <4B2647C6.6080101@comcast.net> <4B2F9E41.909@comcast.net> Content-Type: text/plain Organization: FreeBSD Date: Mon, 21 Dec 2009 10:24:38 -0600 Message-Id: <1261412678.2302.10.camel@balrog.2hip.net> Mime-Version: 1.0 X-Mailer: Evolution 2.26.3 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.9 required=5.0 tests=AWL,BAYES_00,RDNS_DYNAMIC, SPF_SOFTFAIL autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on gizmo.2hip.net Cc: freebsd-x11 , John Baldwin Subject: Re: PCI Radeon 9250 - DRI/DRM in 8.0-RELEASE 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: Mon, 21 Dec 2009 16:24:50 -0000 On Mon, 2009-12-21 at 11:11 -0500, Steve Polyack wrote: > Robert, > The drm_mmap patch > (http://people.freebsd.org/~rnoland/drm_mmap_fix.patch) that you > provided seems to have solved my issues: > > OpenGL vendor string: Tungsten Graphics, Inc. > OpenGL renderer string: Mesa DRI R200 20060602 x86/MMX/SSE2 TCL > OpenGL version string: 1.3 Mesa 7.4.4 > > (II) [drm] DRM interface version 1.2 > (II) [drm] DRM open master succeeded. > (II) RADEON(0): [drm] Using the DRM lock SAREA also for drawables. > (II) RADEON(0): [drm] framebuffer handle = 0x30000000 > (II) RADEON(0): [drm] added 1 reserved context for kernel > (II) RADEON(0): X context handle = 0x1 > (II) RADEON(0): [drm] installed DRM signal handler > (II) RADEON(0): [pci] 8192 kB allocated with handle 0xe964c000 > (II) RADEON(0): [pci] ring handle = 0x40000000 > (II) RADEON(0): [pci] Ring mapped at 0x28a7d000 > (II) RADEON(0): [pci] Ring contents 0x00000000 > (II) RADEON(0): [pci] ring read ptr handle = 0x50000000 > (II) RADEON(0): [pci] Ring read ptr mapped at 0x286ff000 > (II) RADEON(0): [pci] Ring read ptr contents 0x00000000 > (II) RADEON(0): [pci] vertex/indirect buffers handle = 0x60000000 > (II) RADEON(0): [pci] Vertex/indirect buffers mapped at 0x30c00000 > (II) RADEON(0): [pci] Vertex/indirect buffers contents 0x00000000 > (II) RADEON(0): [pci] GART texture map handle = 0x70000000 > (II) RADEON(0): [pci] GART Texture map mapped at 0x30e00000 > (II) RADEON(0): [drm] register handle = 0x10000000 > (II) RADEON(0): [dri] Visual configs initialized > (II) RADEON(0): RADEONRestoreMemMapRegisters() : > (II) RADEON(0): MC_FB_LOCATION : 0xefffe000 0x1fff0000 > (II) RADEON(0): MC_AGP_LOCATION : 0xffffffc0 > (==) RADEON(0): Backing store disabled > (II) RADEON(0): [DRI] installation complete > (II) RADEON(0): [drm] Added 32 65536 byte vertex/indirect buffers > (II) RADEON(0): [drm] Mapped 32 vertex/indirect buffers > (II) RADEON(0): [drm] dma control initialized, using IRQ 16 > (II) RADEON(0): [drm] Initialized kernel GART heap manager, 5111808 > (WW) RADEON(0): DRI init changed memory map, adjusting ... > (WW) RADEON(0): MC_FB_LOCATION was: 0xefffe000 is: 0xefffe000 > (WW) RADEON(0): MC_AGP_LOCATION was: 0xffffffc0 is: 0xffffffc0 > (II) RADEON(0): RADEONRestoreMemMapRegisters() : > (II) RADEON(0): MC_FB_LOCATION : 0xefffe000 0xefffe000 > (II) RADEON(0): MC_AGP_LOCATION : 0xffffffc0 > (II) RADEON(0): Direct rendering enabled > (II) RADEON(0): Render acceleration enabled for R200 type cards. > > I'm also getting the "set memattr inconsistently" messages, but I saw > your previous email regarding that and will apply that patch as well > when I get a chance. I'm going to have to remove some local patches from my tree and try to get this fixed. The patch that I posted apparently doesn't resolve the inconsistent mapping. I hadn't realized that the patch that warns about this had made it into the tree. Anyway, I'm glad that this gets things working at least. I still need to test with some other cards, but so far, I think the following have been tested. r6/700 amd64 pci-e r600 i386 pci-e r200 i386 pci (This should be the same code paths for r300 as well) mga amd64 agp It still needs to be checked on intel and nouveau, at least. robert. > Thanks!! > -Steve Polyack > -- Robert Noland FreeBSD