From owner-freebsd-x11@FreeBSD.ORG Fri Sep 25 16:45:52 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 E172B1065742 for ; Fri, 25 Sep 2009 16:45:52 +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 84B7F8FC19 for ; Fri, 25 Sep 2009 16:45:52 +0000 (UTC) Received: from [192.168.1.4] (adsl-241-169-177.bna.bellsouth.net [74.241.169.177]) (authenticated bits=0) by gizmo.2hip.net (8.14.3/8.14.3) with ESMTP id n8PGjoB0026946 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Fri, 25 Sep 2009 12:45:50 -0400 (EDT) (envelope-from rnoland@FreeBSD.org) From: Robert Noland To: Richard Kolkovich In-Reply-To: <20090925143910.GD61689@divination.portal.sigil.org> References: <20090923210626.GC46493@magus.portal.sigil.org> <1253741283.2031.334.camel@balrog.2hip.net> <20090924145417.GA2539@magus.portal.sigil.org> <1253812603.2031.1528.camel@balrog.2hip.net> <1253814434.2031.1561.camel@balrog.2hip.net> <20090924181427.GD2539@magus.portal.sigil.org> <20090925143910.GD61689@divination.portal.sigil.org> Content-Type: multipart/mixed; boundary="=-gVYWabbd1DfC/xhdXodT" Organization: FreeBSD Date: Fri, 25 Sep 2009 11:45:44 -0500 Message-Id: <1253897144.2065.150.camel@balrog.2hip.net> Mime-Version: 1.0 X-Mailer: Evolution 2.26.3 FreeBSD GNOME Team Port X-Spam-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_PBL, 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@freebsd.org Subject: Re: HD4550 DRI issues 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: Fri, 25 Sep 2009 16:45:53 -0000 --=-gVYWabbd1DfC/xhdXodT Content-Type: text/plain Content-Transfer-Encoding: 7bit On Fri, 2009-09-25 at 09:39 -0500, Richard Kolkovich wrote: > On Thu, Sep 24, 2009 at 01:14:27PM -0500, Richard Kolkovich wrote: > > On Thu, Sep 24, 2009 at 12:47:14PM -0500, Robert Noland wrote: > > > > > > You may actually need -CURRENT for this patch... I'm not certain that > > > the d_mmap2 stuff is in RC1. > > > > > > > Haha...yeah. I just replied with my compile errors on RC1. It doesn't look like the d_mmap2 > > patches (from http://svn.freebsd.org/viewvc/base?view=revision&revision=196615) apply cleanly to > > RC1. I'll grab a copy of -CURRENT and hope my 8-RC1 userland plays well with the -CURRENT kernel... > > Same results with a -CURRENT kernel (with your patch). I've attached the xorg log. Let me know if > you think it would matter if I tried a -CURRENT userland, too. Could you also apply this debugging patch. It should print the kernel perspective of things at allocation time to dmesg. robert. -- Robert Noland FreeBSD --=-gVYWabbd1DfC/xhdXodT Content-Disposition: attachment; filename="drm_scatter-debug.patch" Content-Type: text/x-patch; name="drm_scatter-debug.patch"; charset="us-ascii" Content-Transfer-Encoding: 7bit Index: sys/dev/drm/drm_scatter.c =================================================================== --- sys/dev/drm/drm_scatter.c (revision 197153) +++ sys/dev/drm/drm_scatter.c (working copy) @@ -114,11 +114,10 @@ drm_sg_alloc(struct drm_device *dev, struct drm_sc entry->dmah = dmah; entry->handle = (unsigned long)dmah->vaddr; - - DRM_DEBUG("sg alloc handle = %08lx\n", entry->handle); + entry->virtual = dmah->vaddr; - entry->virtual = (void *)entry->handle; - request->handle = entry->handle; + DRM_INFO("SG handle=%08lx, kva=%p, contents=%08lx\n", entry->handle, + entry->virtual, *(unsigned long *)entry->virtual); DRM_LOCK(); if (dev->sg) { @@ -129,6 +128,8 @@ drm_sg_alloc(struct drm_device *dev, struct drm_sc dev->sg = entry; DRM_UNLOCK(); + request->handle = entry->handle; + return 0; } --=-gVYWabbd1DfC/xhdXodT--