nv / nouveau driver livelock with 9600GT on latest X11 with recent (<7 days) 8-CURRENT

Robert Noland rnoland at FreeBSD.org
Wed Feb 25 23:48:09 PST 2009


On Wed, 2009-02-25 at 23:43 -0800, Garrett Cooper wrote:
> Hi guys,
>     This is primarily a note, but it appears that nv / nouveau
> livelock with the latest X11 and 8-CURRENT. I have yet to try PC-BSD
> to see if the issue exists with that version (based off 7.1-RC1), and
> the card is brand new. The issue with livelocking didn't occur with my
> 8800GTS however.

Is this on amd64?

Previously when compiling on freebsd amd64 we'd end up at xi86
block (line 1315) which would define mem_barrier and write_mem_barrier
to be NOP's. Instead they should be valid, as per the linux amd64 setup.

This stops the hangs experienced by many when using the nv driver
which would hang due to out of order dma requests as noticed in
http://bugs.freedesktop.org/show_bug.cgi?id=3168

Signed-off-by: Benjamin Close <Benjamin.Close at clearchain.com>
---
 hw/xfree86/common/compiler.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/hw/xfree86/common/compiler.h b/hw/xfree86/common/compiler.h
index 2601693..afb44ad 100644
--- a/hw/xfree86/common/compiler.h
+++ b/hw/xfree86/common/compiler.h
@@ -461,7 +461,7 @@ extern _X_EXPORT unsigned int inb(unsigned long
port);
 extern _X_EXPORT unsigned int inw(unsigned long port);
 extern _X_EXPORT unsigned int inl(unsigned long port);
  
-#   elif defined(linux) && defined(__amd64__)
+#   elif (defined(linux) || defined(__FreeBSD__)) && defined(__amd64__)
  
 #    include <inttypes.h>
 
-- 
1.6.0.2

_______________________________________________
xorg-devel mailing list
xorg-devel at lists.x.org
http://lists.x.org/mailman/listinfo/xorg-devel

robert.

>     I'll be glad to provide more info on request.
> Thanks!
> -Garrett
> 
> Nvidia components installed:
> - nvidia-driver-180.29 (currently disabled, restored nvidia provided
> X11 libs to the X.org provided libs).
> - xf86-video-nouveau-0.0.10.20090129
> - xf86-video-nv-2.1.12_1
> - xorg-apps-7.4_1
> - xorg-cf-files-1.0.2_3
> - xorg-drivers-7.4
> - xorg-fonts-100dpi-7.4
> - xorg-fonts-7.4
> - xorg-fonts-75dpi-7.4
> - xorg-fonts-cyrillic-7.4
> - xorg-fonts-miscbitmaps-7.4
> - xorg-fonts-truetype-7.4
> - xorg-fonts-type1-7.4
> - xorg-libraries-7.4
> - xorg-server-1.5.3_5,1
> 
> [gcooper at orangebox /usr/home/gcooper]$ uname -a
> FreeBSD orangebox.gateway.2wire.net 8.0-CURRENT FreeBSD 8.0-CURRENT
> #1: Sun Feb 22 07:26:00 PST 2009
> root at orangebox.gateway.2wire.net:/usr/obj/usr/src/sys/ORANGEBOX  i386
-- 
Robert Noland <rnoland at FreeBSD.org>
FreeBSD
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-x11/attachments/20090226/9703db2e/attachment.pgp


More information about the freebsd-x11 mailing list