[PATCH] drm/radeon/kms: Workaround RV410/R420 CP errata (V2)

2010-01-06 Thread Jerome Glisse
From: Corbin Simpson mostawesomed...@gmail.com Long story short, this fixes sporadic hardlocks with my rv410 during times of intense 2D acceleration (Flash on Fx3). V2: Fix indentation and move errata_fini to suspend function so we don't leak scratch register over suspend/resume cycle.

[Bug 25892] segfault in r300_dri.so

2010-01-06 Thread bugzilla-daemon
http://bugs.freedesktop.org/show_bug.cgi?id=25892 --- Comment #4 from Heinrich Fu Jin Wang b824...@uggsrock.com 2010-01-06 04:59:39 PST --- I tried to receive a backtrace from gdb but obviously my computer skills are not sufficient. After reading a couple of howtos on debugging with gdb in

[Bug 25892] segfault in r300_dri.so

2010-01-06 Thread bugzilla-daemon
http://bugs.freedesktop.org/show_bug.cgi?id=25892 --- Comment #5 from Michel Dänzer mic...@daenzer.net 2010-01-06 05:11:02 PST --- (In reply to comment #4) However on calling glxinfo within gdb I still get: Reading symbols from /usr/bin/glxinfo...(no debugging symbols found)...done.

Re: [Intel-gfx] Failure with swiotlb

2010-01-06 Thread Mathieu Taillefumier
On 01/05/2010 04:20 PM, Zhenyu Wang wrote: On 2010.01.04 13:11:56 -0800, Eric Anholt wrote: On Mon, 4 Jan 2010 17:27:45 +0800, Zhenyu Wangzhen...@linux.intel.com wrote: On 2009.12.31 12:33:06 +0800, Zhenyu Wang wrote: On 2009.12.30 10:26:27 +, David Woodhouse wrote: On Wed, 2009-12-30

[Bug 25916] New: floating point texture coordinates inverted

2010-01-06 Thread bugzilla-daemon
http://bugs.freedesktop.org/show_bug.cgi?id=25916 Summary: floating point texture coordinates inverted Product: Mesa Version: git Platform: Other OS/Version: All Status: NEW Severity: normal Priority: medium

[Bug 25916] floating point texture coordinates inverted

2010-01-06 Thread bugzilla-daemon
http://bugs.freedesktop.org/show_bug.cgi?id=25916 --- Comment #1 from Alex Deucher ag...@yahoo.com 2010-01-06 08:48:07 PST --- The swizzles may be wrong for some texture formats. See r600GetTexFormat() in r600_texstate.c. -- Configure bugmail:

[mesa] svga: Fix error: cannot take address of bit-field 'texture_target' in svga_tgsi.h

2010-01-06 Thread Sedat Dilek
Hi, this patch fixes a build-error in mesa GIT master after... commit 251363e8f1287b54dc7734e690daf2ae96728faf (patch) configs: set INTEL_LIBS, INTEL_CFLAGS, etcmaster From my build-log: ... In file included from svga_pipe_fs.c:37: svga_tgsi.h: In function 'svga_fs_key_size': svga_tgsi.h:122:

[PATCH] drm/kms: fix fbdev blanking regression

2010-01-06 Thread Johan Hovold
Commit 731b5a15a3b1474a41c2ca29b4c32b0f21bc852e (drm/kms: properly handle fbdev blanking) breaks console blanking on my laptop (GM45 chipset). Instead of blanking the screen, it is dimmed and then the backlight starts glowing in the lower edges of the screen. The glowing then slowly spreads

Re: [Mesa3d-dev] [mesa] svga: Fix error: cannot take address of bit-field 'texture_target' in svga_tgsi.h

2010-01-06 Thread Brian Paul
Sedat Dilek wrote: Hi, this patch fixes a build-error in mesa GIT master after... commit251363e8f1287b54dc7734e690daf2ae96728faf (patch) configs: set INTEL_LIBS, INTEL_CFLAGS, etcmaster From my build-log: ... In file included from svga_pipe_fs.c:37: svga_tgsi.h: In function

[Bug 25916] floating point texture components reversed

2010-01-06 Thread bugzilla-daemon
http://bugs.freedesktop.org/show_bug.cgi?id=25916 Pierre Ossman pierre-bugzi...@ossman.eu changed: What|Removed |Added Summary|floating point texture |floating point

Re: [PATCH] drm/kms: fix fbdev blanking regression

2010-01-06 Thread James Simmons
Commit 731b5a15a3b1474a41c2ca29b4c32b0f21bc852e (drm/kms: properly handle fbdev blanking) breaks console blanking on my laptop (GM45 chipset). Instead of blanking the screen, it is dimmed and then the backlight starts glowing in the lower edges of the screen. The glowing then slowly spreads

Re: [Mesa3d-dev] [mesa] svga: Fix error: cannot take address of bit-field 'texture_target' in svga_tgsi.h

2010-01-06 Thread Sedat Dilek
OK. That's the next one :-) ... In file included from r300_emit.c:36: r300_state_inlines.h: In function ‘r300_translate_tex_filters’: r300_state_inlines.h:263: error: ‘is_anisotropic’ undeclared (first use in this function) r300_state_inlines.h:263: error: (Each undeclared identifier is reported

[bisected] drm/ksm: fbdev blanking regression in 2.6.33

2010-01-06 Thread Johan Hovold
Hi, Console blanking broke on my laptop with GM45 chipset with 2.6.33. Instead of blanking, the screen was dimmed and the backlight started glowing in the lower edges of the screen. The glowing then slowly spread upwards. Did not look healthy at all. Easily reproduced by issuing setterm -blank

Re: [PATCH] drm/radeon/kms: Workaround RV410/R420 CP errata (V2)

2010-01-06 Thread Corbin Simpson
I will pop my rv410 back in and test when I get back home. Posting from a mobile, pardon my terseness. ~ C. On Jan 6, 2010 2:41 AM, Jerome Glisse jgli...@redhat.com wrote: From: Corbin Simpson mostawesomed...@gmail.com Long story short, this fixes sporadic hardlocks with my rv410 during times

Re: [Mesa3d-dev] [mesa] svga: Fix error: cannot take address of bit-field 'texture_target' in svga_tgsi.h

2010-01-06 Thread Keith Whitwell
This looks like my fault. It would be nice to have the r300 and nvidia drivers building by default (eg on linux-debug builds), even if they don't create full drivers, so that a single build can get greater coverage. Keith On Wed, 2010-01-06 at 09:09 -0800, Sedat Dilek wrote: OK. That's the

Re: [Mesa3d-dev] [mesa] svga: Fix error: cannot take address of bit-field 'texture_target' in svga_tgsi.h

2010-01-06 Thread Brian Paul
r300_translate_tex_filters() was missing the is_anisotropic parameter. I fixed that, but there may be other issues. Looks like some of the r300 code isn't c99. -Brian Sedat Dilek wrote: OK. That's the next one :-) ... In file included from r300_emit.c:36: r300_state_inlines.h: In

[Bug 25916] floating point texture components reversed

2010-01-06 Thread bugzilla-daemon
http://bugs.freedesktop.org/show_bug.cgi?id=25916 Alex Deucher ag...@yahoo.com changed: What|Removed |Added Status|NEW |RESOLVED

Re: [PATCH] drm/radeon/kms: Workaround RV410/R420 CP errata (V2)

2010-01-06 Thread Michel Dänzer
On Wed, 2010-01-06 at 11:41 +0100, Jerome Glisse wrote: From: Corbin Simpson mostawesomed...@gmail.com Long story short, this fixes sporadic hardlocks with my rv410 during times of intense 2D acceleration (Flash on Fx3). V2: Fix indentation and move errata_fini to suspend function so we

[PATCH 1/1] GPU: radeon, fix memory leak

2010-01-06 Thread Jiri Slaby
Stanse found a memory leak in radeon_master_create. master_priv is not freed/assigned on all paths. Fix that. Signed-off-by: Jiri Slaby jsl...@suse.cz --- drivers/gpu/drm/radeon/radeon_cp.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git

Re: [Mesa3d-dev] [mesa] svga: Fix error: cannot take address of bit-field 'texture_target' in svga_tgsi.h

2010-01-06 Thread michal
Brian Paul wrote on 2010-01-06 18:07: Sedat Dilek wrote: Hi, this patch fixes a build-error in mesa GIT master after... commit 251363e8f1287b54dc7734e690daf2ae96728faf (patch) configs: set INTEL_LIBS, INTEL_CFLAGS, etcmaster From my build-log: ... In file included from svga_pipe_fs.c:37:

Re: [PATCH] drm/kms: fix fbdev blanking regression

2010-01-06 Thread James Simmons
Commit 731b5a15a3b1474a41c2ca29b4c32b0f21bc852e (drm/kms: properly handle fbdev blanking) breaks console blanking on my laptop (GM45 chipset). Instead of blanking the screen, it is dimmed and then the backlight starts glowing in the lower edges of the screen. The glowing then

Re: [PATCH] drm/kms: fix fbdev blanking regression

2010-01-06 Thread Johan Hovold
Commit 731b5a15a3b1474a41c2ca29b4c32b0f21bc852e (drm/kms: properly handle fbdev blanking) breaks console blanking on my laptop (GM45 chipset). Instead of blanking the screen, it is dimmed and then the backlight starts glowing in the lower edges of the screen. The glowing then slowly

Re: [Mesa3d-dev] [mesa] svga: Fix error: cannot take address of bit-field 'texture_target' in svga_tgsi.h

2010-01-06 Thread Sedat Dilek
Compile-tested OK. - Sedat - On Wed, Jan 6, 2010 at 6:39 PM, michal mic...@vmware.com wrote: Brian Paul wrote on 2010-01-06 18:07: Sedat Dilek wrote: Hi, this patch fixes a build-error in mesa GIT master after... commit  251363e8f1287b54dc7734e690daf2ae96728faf (patch) configs: set

Re: [Mesa3d-dev] [mesa] svga: Fix error: cannot take address of bit-field 'texture_target' in svga_tgsi.h

2010-01-06 Thread Sedat Dilek
Thanks, your patch fixed the problem. - Sedat - On Wed, Jan 6, 2010 at 6:38 PM, Brian Paul bri...@vmware.com wrote: r300_translate_tex_filters() was missing the is_anisotropic parameter.  I fixed that, but there may be other issues.  Looks like some of the r300 code isn't c99. -Brian

[PATCH 1/2] drm/radeon/kms: Workaround RV410/R420 CP errata (V3)

2010-01-06 Thread Jerome Glisse
From: Corbin Simpson mostawesomed...@gmail.com Long story short, this fixes sporadic hardlocks with my rv410 during times of intense 2D acceleration (Flash on Fx3). V2: Fix indentation and move errata_fini to suspend function so we don't leak scratch register over suspend/resume cycle. V3: Move

[PATCH 2/2] drm/radeon/kms: Schedule host path read cache flush through the ring

2010-01-06 Thread Jerome Glisse
R300 family will hard lockup if host path read cache flush is done through MMIO to HOST_PATH_CNTL. But scheduling same flush through ring seems harmless. This patch remove the hdp_flush callback and add a flush after each fence emission which means a flush after each IB schedule. Thus we should

Re: [PATCH 2/2] drm/radeon/kms: Schedule host path read cache flush through the ring

2010-01-06 Thread Alex Deucher
On Wed, Jan 6, 2010 at 1:29 PM, Jerome Glisse jgli...@redhat.com wrote: R300 family will hard lockup if host path read cache flush is done through MMIO to HOST_PATH_CNTL. But scheduling same flush through ring seems harmless. This patch remove the hdp_flush callback and add a flush after each

Re: [patch for 2.6.32? 1/3] drivers/gpu/drm/i915/i915_dma.c: fix unused var

2010-01-06 Thread Eric Anholt
On Tue, 17 Nov 2009 14:08:52 -0800, a...@linux-foundation.org wrote: From: Andrew Morton a...@linux-foundation.org drivers/gpu/drm/i915/i915_dma.c: In function 'i915_driver_load': drivers/gpu/drm/i915/i915_dma.c:1114: warning: 'll_base' may be used uninitialized in this function Partly

Re: [PATCH 2/2] drm/radeon/kms: Schedule host path read cache flush through the ring

2010-01-06 Thread Jerome Glisse
On Wed, Jan 06, 2010 at 01:57:08PM -0500, Alex Deucher wrote: On Wed, Jan 6, 2010 at 1:29 PM, Jerome Glisse jgli...@redhat.com wrote: R300 family will hard lockup if host path read cache flush is done through MMIO to HOST_PATH_CNTL. But scheduling same flush through ring seems harmless.

Re: [PATCH] drm/radeon/kms: detect sideport enabled on rs690/740/780/880.

2010-01-06 Thread Alex Deucher
2010/1/6 Rafał Miłecki zaj...@gmail.com: 2010/1/5 Alex Deucher alexdeuc...@gmail.com: Updated patch to use bios tables attached. What about reading clock of sideport memory? Standard way? Could we do following? Nope. Sideport mclk is different than the mclk on discrete chips. If you look

Re: [PATCH] drm/radeon/r100.c: check for invalid family

2010-01-06 Thread Dave Airlie
On Wed, Dec 30, 2009 at 11:24 AM, Darren Jenkins darrenrjenk...@gmail.com wrote: If there is an invalid family the fw_name is NULL and causes an NULL pointer dereference. This just adds a check for something unexpected. NAK. This can't happen, only gpus with those families set can call this

Re: [PATCH] drm/radeon/radeon_cp.c: fix resource leak on error

2010-01-06 Thread Dave Airlie
On Wed, Dec 30, 2009 at 11:25 AM, Darren Jenkins darrenrjenk...@gmail.com wrote: If drm_addmap() fails master_priv is leaked. I got a patch from Roel Kluin to fix this already, will push it out soon. Dave. -- This

Re: [PATCH] drm/radeon/radeon_cp.c: check for invalid radeon family

2010-01-06 Thread Dave Airlie
On Wed, Dec 30, 2009 at 11:23 AM, Darren Jenkins darrenrjenk...@gmail.com wrote: If there is an invalid radeon family the fw_name is NULL and causes an NULL pointer dereference. This just adds a check for something unexpected. Same as for last one, unless a developer explicity writes code

Re: [PATCH] drm/radeon: fix a couple of array index errors

2010-01-06 Thread Dave Airlie
On Wed, Dec 30, 2009 at 11:21 AM, Darren Jenkins darrenrjenk...@gmail.com wrote: There are a couple of array overruns, and some associated confusion in the code. This is just a wild guess at what the code should actually look like. Alex can you take a look at this, though I suspect its mostly

[git pull] drm fixes

2010-01-06 Thread Dave Airlie
Hi Linus, Please pull the 'drm-linus' branch from ssh://master.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6.git drm-linus This contains some EDID parser fixups, a patch to make the drm_pci_alloc sane (follow up from Eric to fix Intel driver bug that required this fix), along with some

[Bug 25934] New: Segfaults while parsing a shader shown to work on other platforms

2010-01-06 Thread bugzilla-daemon
http://bugs.freedesktop.org/show_bug.cgi?id=25934 Summary: Segfaults while parsing a shader shown to work on other platforms Product: Mesa Version: git Platform: x86-64 (AMD64) OS/Version: Linux (All) Status: NEW

Re: [PATCH] drm/radeon: fix a couple of array index errors

2010-01-06 Thread Alex Deucher
On Wed, Jan 6, 2010 at 10:55 PM, Dave Airlie airl...@gmail.com wrote: On Wed, Dec 30, 2009 at 11:21 AM, Darren Jenkins darrenrjenk...@gmail.com wrote: There are a couple of array overruns, and some associated confusion in the code. This is just a wild guess at what the code should actually

[PATCH] drm/radeon: mkregtable.c: close a file before exit

2010-01-06 Thread Alexander Beregalov
Signed-off-by: Alexander Beregalov a.berega...@gmail.com --- drivers/gpu/drm/radeon/mkregtable.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/radeon/mkregtable.c b/drivers/gpu/drm/radeon/mkregtable.c index 0d79577..607241c 100644 ---

[Bug 25934] Segfaults while parsing a shader shown to work on other platforms

2010-01-06 Thread bugzilla-daemon
http://bugs.freedesktop.org/show_bug.cgi?id=25934 --- Comment #1 from Lucas Paul reilith...@gmail.com 2010-01-06 23:41:04 PST --- Created an attachment (id=32492) -- (http://bugs.freedesktop.org/attachment.cgi?id=32492) The offending Cg source, extracted from gdb output and with some

[Bug 25934] Segfaults while parsing a shader shown to work on other platforms

2010-01-06 Thread bugzilla-daemon
http://bugs.freedesktop.org/show_bug.cgi?id=25934 --- Comment #2 from Frank Richter re...@gmx.ch 2010-01-06 23:54:19 PST --- Created an attachment (id=32494) -- (http://bugs.freedesktop.org/attachment.cgi?id=32494) Problematic ARB source code -- Configure bugmail:

[Bug 25934] Segfaults while parsing a shader shown to work on other platforms

2010-01-06 Thread bugzilla-daemon
http://bugs.freedesktop.org/show_bug.cgi?id=25934 Frank Richter re...@gmx.ch changed: What|Removed |Added Attachment #32492|0 |1 is obsolete|