Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Sep 2009 11:45:44 -0500
From:      Robert Noland <rnoland@FreeBSD.org>
To:        Richard Kolkovich <sarumont@sigil.org>
Cc:        freebsd-x11@freebsd.org
Subject:   Re: HD4550 DRI issues
Message-ID:  <1253897144.2065.150.camel@balrog.2hip.net>
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>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-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 <rnoland@FreeBSD.org>
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--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1253897144.2065.150.camel>