[Nouveau] [Bug 27928] Nouveau / Mesa sometimes gets libraries overwritten

2010-05-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=27928

--- Comment #1 from Alex Buell alex.bu...@munted.org.uk 2010-05-02 03:15:23 
PDT ---
This morning, libXxf86vm.so.1.0.0 was corrupted; there was this in the logs:

May  2 00:26:25 lithium kernel: [drm] nouveau :01:00.0: Allocating FIFO
number 3
May  2 00:26:25 lithium kernel: [drm] nouveau :01:00.0:
nouveau_channel_alloc: initialised FIFO 3
May  2 00:26:25 lithium kernel: [drm] nouveau :01:00.0:
nouveau_channel_free: freeing fifo 3
May  2 00:26:25 lithium kernel: [drm] nouveau :01:00.0: Allocating FIFO
number 3
May  2 00:26:25 lithium kernel: [drm] nouveau :01:00.0:
nouveau_channel_alloc: initialised FIFO 3
May  2 00:26:25 lithium kernel: [drm] nouveau :01:00.0:
nouveau_channel_free: freeing fifo 3

Killing gnome-screensaver, and recompiling libXxf86vm and gnome-screensaver
restored proper action. 

This is getting very strange indeed. Any ideas?

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
Nouveau mailing list
Nouveau@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/nouveau


[Nouveau] [Bug 27574] BUG: unable to handle kernel NULL pointer dereference at 0000000000000028

2010-05-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=27574

--- Comment #9 from Alexander alex.vi...@gmail.com 2010-05-02 14:50:54 PDT ---
I still can't reproduce exactly this bug with proposed debugging but I have
following error or something like this after which system or just X completely
freeze and doesn't respond


May  3 00:37:40 loki kernel: [47292.941614] video LNXVIDEO:01: Restoring
backlight state
May  3 00:37:40 loki kernel: [47293.171676] [TTM] mem-mem_type 2
May  3 00:37:40 loki kernel: [47293.185220] [drm] nouveau :01:00.0:
PFIFO_DMA_PUSHER - Ch 2
May  3 00:37:40 loki kernel: [47293.186640] [drm] nouveau :01:00.0:
PFIFO_CACHE_ERROR - Ch 2/0 Mthd 0x Data 0x0f00
May  3 00:37:40 loki kernel: [47293.186651] [drm] nouveau :01:00.0:
PFIFO_DMA_PUSHER - Ch 2

it happens on resume from ram also

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
Nouveau mailing list
Nouveau@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/nouveau


[Nouveau] nv50 dxt / s3tc

2010-05-02 Thread Xavier Chantry
flightgear now dies with :
Mesa warning: external dxt library not available: texstore_rgba_dxt3
util/u_format_s3tc.c:66:util_format_dxt3_rgba_fetch_stub: Assertion `0' failed.

I don't really understand what these stubs are about, they were
introduced by following commit :
commit d96e87c3c513f8ed350ae24425edb74b6d6fcc13
Author: José Fonseca jfons...@vmware.com
Date:   Wed Apr 7 20:47:38 2010 +0100

util: Use stubs for the dynamically loaded S3TC functions.

Loosely based on Luca Barbieri's commit
52e9b990a192a9329006d5f7dd2ac222effea5a5.

Looking at llvm and r300 code and trying to guess, I came up with the
following patch that allows flightgear to start again. But I don't
really understand that stuff so it could be wrong.
nvfx is probably affected as well.


diff --git a/src/gallium/drivers/nouveau/nouveau_screen.c
b/src/gallium/drivers/nouveau/nouveau_screen.c
index 233a91a..a91b00b 100644
--- a/src/gallium/drivers/nouveau/nouveau_screen.c
+++ b/src/gallium/drivers/nouveau/nouveau_screen.c
@@ -5,6 +5,7 @@
 #include util/u_memory.h
 #include util/u_inlines.h
 #include util/u_format.h
+#include util/u_format_s3tc.h

 #include stdio.h
 #include errno.h
@@ -248,6 +249,8 @@ nouveau_screen_init(struct nouveau_screen *screen,
struct nouveau_device *dev)
pscreen-fence_signalled = nouveau_screen_fence_signalled;
pscreen-fence_finish = nouveau_screen_fence_finish;

+   util_format_s3tc_init();
+
return 0;
 }

diff --git a/src/gallium/drivers/nv50/nv50_screen.c
b/src/gallium/drivers/nv50/nv50_screen.c
index 2dd1042..0d74c90 100644
--- a/src/gallium/drivers/nv50/nv50_screen.c
+++ b/src/gallium/drivers/nv50/nv50_screen.c
@@ -20,6 +20,7 @@
  * SOFTWARE.
  */

+#include util/u_format_s3tc.h
 #include pipe/p_screen.h

 #include nv50_context.h
@@ -72,10 +73,6 @@ nv50_screen_is_format_supported(struct pipe_screen *pscreen,
case PIPE_FORMAT_A8_UNORM:
case PIPE_FORMAT_I8_UNORM:
case PIPE_FORMAT_L8A8_UNORM:
-   case PIPE_FORMAT_DXT1_RGB:
-   case PIPE_FORMAT_DXT1_RGBA:
-   case PIPE_FORMAT_DXT3_RGBA:
-   case PIPE_FORMAT_DXT5_RGBA:
case PIPE_FORMAT_S8_USCALED_Z24_UNORM:
case PIPE_FORMAT_Z24_UNORM_S8_USCALED:
case PIPE_FORMAT_Z32_FLOAT:
@@ -85,6 +82,11 @@ nv50_screen_is_format_supported(struct pipe_screen *pscreen,
case PIPE_FORMAT_R16G16_SNORM:
case PIPE_FORMAT_R16G16_UNORM:
return TRUE;
+   case PIPE_FORMAT_DXT1_RGB:
+   case PIPE_FORMAT_DXT1_RGBA:
+   case PIPE_FORMAT_DXT3_RGBA:
+   case PIPE_FORMAT_DXT5_RGBA:
+   return util_format_s3tc_enabled;
default:
break;
}
___
Nouveau mailing list
Nouveau@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/nouveau