[Bug 36435] [r600g] GPU lockup CP stall

2011-04-20 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=36435

--- Comment #3 from ojab  2011-04-20 19:05:50 PDT ---
Unfortunately, no. Just happens suddenly.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


[Bug 36236] Problems with lights in Trine game from www.humblebundle.com

2011-04-20 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=36236

--- Comment #32 from Eric Anholt  2011-04-20 18:06:59 PDT 
---
http://lists.freedesktop.org/archives/mesa-dev/2011-April/006946.html may help.
 It didn't fix things yet on my driver.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


[Bug 36435] [r600g] GPU lockup CP stall

2011-04-20 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=36435

--- Comment #2 from Alex Deucher  2011-04-20 12:21:33 PDT 
---
Is there some app that triggers this?

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


[Bug 36435] [r600g] GPU lockup CP stall

2011-04-20 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=36435

--- Comment #1 from ojab  2011-04-20 12:09:30 PDT ---
Created an attachment (id=45873)
 --> (https://bugs.freedesktop.org/attachment.cgi?id=45873)
dmesg log with previous 10+sec before gpu reset

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


[Bug 36435] New: [r600g] GPU lockup CP stall

2011-04-20 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=36435

   Summary: [r600g] GPU lockup CP stall
   Product: Mesa
   Version: git
  Platform: x86-64 (AMD64)
OS/Version: Linux (All)
Status: NEW
  Severity: normal
  Priority: medium
 Component: Drivers/Gallium/r600
AssignedTo: dri-devel at lists.freedesktop.org
ReportedBy: ojab at ojab.ru


Created an attachment (id=45872)
 --> (https://bugs.freedesktop.org/attachment.cgi?id=45872)
dmesg log

Sometimes I have errors like "GPU lockup CP stall for more than 1msec", you
can find dmesg output in the attached file. I'm already have drm.debug=15,
dmesg output for 10 sec prior to debug will be in the following comment (I
already have a plenty of those). This has happened since I have this system, so
cannot bisect.
Really don't know what additional info is needed in such cases, please ask if
anything else is needed for investigation/fix.

RADEON(0): Chipset: "ATI Radeon HD 3300 Graphics" (ChipID = 0x9614)
linux-2.6 master git (2.6.39-rc4-00089-g2f666bc)
OpenGL renderer string: Gallium 0.4 on AMD RS780
OpenGL version string: 2.1 Mesa 7.11-devel (git-f41e1db)
xf86-video-ati-6.14.99 (git-903e90c)

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


[Bug 36371] r200: piglit readPixSanity failure

2011-04-20 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=36371

Andrei Slavoiu  changed:

   What|Removed |Added

 CC||ansla80 at yahoo.com

--- Comment #6 from Andrei Slavoiu  2011-04-20 12:02:41 
PDT ---
I get the same error with r600g, so it's probably not driver specific:

X Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)
  Major opcode of failed request:  137 (DRI2)
  Minor opcode of failed request:  8 (DRI2SwapBuffers)
  Resource id in failed request:  0x56b
  Serial number of failed request:  1281
  Current serial number in output stream:  1281

My version of mesa:

OpenGL renderer string: Gallium 0.4 on AMD RV635
OpenGL version string: 2.1 Mesa 7.11-devel (git-bb78f6a)

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


No subject

2011-04-20 Thread
Linux Cg bug or Trine Linux version bug.

Windows Trine version (from humble bundle) with WINE works perfectly.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


2.6.39-rc1 nouveau(?) regression (bisected)

2011-04-20 Thread Kyle Spaans
On Tue, Apr 19, 2011 at 11:47:47PM +0200, Marcin Slusarz wrote:
> Thanks. It helped a bit.
> I'll send two patches in response to this message, one of which fixes this 
> bug.

Those patches fixed my system. Thanks!


[Bug 36236] Problems with lights in Trine game from www.humblebundle.com

2011-04-20 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=36236

--- Comment #31 from Sven Arvidsson  2011-04-20 09:58:52 PDT ---
I just wanted to say thanks to Christoph for figuring this out, and another
thanks to Turo for working on it (Considering how rare it is for game
developers to care about the open drivers, and how swamped you must be with
support issues for the bundle this is doubly appreciated!)

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


[Bug 36236] Problems with lights in Trine game from www.humblebundle.com

2011-04-20 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=36236

Mathieu Belanger  changed:

   What|Removed |Added

 CC||b747xx at gmail.com

--- Comment #30 from Mathieu Belanger  2011-04-20 09:47:49 
PDT ---
For r600, this:

File r600_shader.c

The loop at line 697 can be removed to see if this fix it. I will try this
evening of nobody test it.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


[Bug 36236] Problems with lights in Trine game from www.humblebundle.com

2011-04-20 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=36236

--- Comment #29 from Sven Arvidsson  2011-04-20 09:19:26 PDT ---
Cool! The same fix works for r300g! (Commenting out the loop starting at line
472 in r300_fs.c) :]

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


[Bug 36236] Problems with lights in Trine game from www.humblebundle.com

2011-04-20 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=36236

--- Comment #28 from Christoph Bumiller  
2011-04-20 09:08:51 PDT ---
Now it become easy to fix, it seems that
TGSI_PROPERTY_FS_COLOR0_WRITES_ALL_CBUFS is set when it shouldn't be, the game
looks fine with llvmpipe if I make it ignore this property.

The nv50 and nvc0 drivers never cared about it and just assumed (had to,
actually, the assumption was added when
TGSI_PROPERTY_FS_COLOR0_WRITES_ALL_CBUFS didn't exist yet) that if multiple
colour values are written, the render targets are supposed to receive separate
values and not just colour 0.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


[Bug 36236] Problems with lights in Trine game from www.humblebundle.com

2011-04-20 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=36236

--- Comment #27 from Sven Arvidsson  2011-04-20 08:48:55 PDT ---
(In reply to comment #26)
> That's what g-buffer 1 is supposed to look like. So at least rendertarget 1 is
> filled correctly. What about the other two?

This would be deferredSample2.xyz and deferredSample3.xyz? If so, on my system
it looks just the same as with deferredSample1.xyz

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


[Bug 36318] r600g segfaults

2011-04-20 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=36318

Marek Ol??k  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||DUPLICATE

--- Comment #5 from Marek Ol??k  2011-04-20 08:43:10 PDT 
---


*** This bug has been marked as a duplicate of bug 36282 ***

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


[Bug 36403] [r300g] glean vertattrib regression

2011-04-20 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=36403

Marek Ol??k  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||DUPLICATE

--- Comment #4 from Marek Ol??k  2011-04-20 08:43:01 PDT 
---


*** This bug has been marked as a duplicate of bug 36282 ***

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


2.6.39-rc1 nouveau(?) regression (bisected)

2011-04-20 Thread Ben Skeggs
On Tue, 2011-04-19 at 23:47 +0200, Marcin Slusarz wrote:
> On Mon, Apr 18, 2011 at 01:27:10PM -0700, Linus Torvalds wrote:
> > On Mon, Apr 18, 2011 at 1:02 PM, Marcin Slusarz
> >  wrote:
> > >
> > > It's some nasty corruption:
> > 
> > Looks like something wrote 0x to free'd memory.
> > 
> > Enabling DEBUG_PAGEALLOC *might* show where it happens.
> > 
> > >
> > > [6.523867] 
> > > =
> > > [6.523916] BUG sysfs_dir_cache: Poison overwritten
> > > [6.523949] 
> > > -
> > > [6.523950]
> > > [6.524016] INFO: 0x8801bb47df4c-0x8801bb47df4f. First byte 
> > > 0xff instead of 0x6b
> > > [6.524061] INFO: Slab 0xea00060f7b58 objects=22 used=21 
> > > fp=0x8801bb47df18 flags=0x80c1
> > > [6.524110] INFO: Object 0x8801bb47df18 @offset=3864 fp=0x 
> > >  (null)
> > > [6.524111]
> > > [6.524170] Bytes b4 0x8801bb47df08:  00 00 00 00 00 00 00 00 5a 
> > > 5a 5a 5a 5a 5a 5a 5a 
> > > [6.524516]   Object 0x8801bb47df18:  6b 6b 6b 6b 6b 6b 6b 6b 6b 
> > > 6b 6b 6b 6b 6b 6b 6b 
> > > [6.524862]   Object 0x8801bb47df28:  6b 6b 6b 6b 6b 6b 6b 6b 6b 
> > > 6b 6b 6b 6b 6b 6b 6b 
> > > [6.525208]   Object 0x8801bb47df38:  6b 6b 6b 6b 6b 6b 6b 6b 6b 
> > > 6b 6b 6b 6b 6b 6b 6b 
> > > [6.525556]   Object 0x8801bb47df48:  6b 6b 6b 6b ff ff ff ff 6b 
> > > 6b 6b 6b 6b 6b 6b 6b 
> > 
> > So here the 0x is pretty obvious.
> > 
> > > and in another boot:
> > >
> > > [6.704786] BUG: unable to handle kernel paging request at 
> > > bc70b058
> > 
> > Here it is less obvious, but it was _probably_ a regular kernel
> > pointer of the type 0x8801bc70b058 before the high bits were
> > overwritten by a 0x.
> > 
> > So then sysfs_refresh_inode() follows that pointer, and crashes.
> > 
> > Just a guess, obviously, but it looks rather likely.
> 
> Thanks. It helped a bit.
> I'll send two patches in response to this message, one of which fixes this 
> bug.
Nice catch.  I'll push these to the nouveau tree now, and get them to
Dave with some additional fixes.

Ben.
> 
> Marcin
> 




[Bug 36236] Problems with lights in Trine game from www.humblebundle.com

2011-04-20 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=36236

--- Comment #26 from Turo Lamminen  2011-04-20 
06:03:32 PDT ---
(In reply to comment #23)
> changed return lerp(half3(FOG_COLOR.xyz), result, deferredSample3.z);
> to return deferredSample1.xyz;
> 
> And the game becomes a 2D game
That's what g-buffer 1 is supposed to look like. So at least rendertarget 1 is
filled correctly. What about the other two?

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


[Bug 36421] New: RV710: GPU lockup running portal2 in wine.

2011-04-20 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=36421

   Summary: RV710: GPU lockup running portal2 in wine.
   Product: Mesa
   Version: git
  Platform: x86-64 (AMD64)
OS/Version: Linux (All)
Status: NEW
  Severity: normal
  Priority: medium
 Component: Drivers/Gallium/r600
AssignedTo: dri-devel at lists.freedesktop.org
ReportedBy: NightNord at gmail.com


Created an attachment (id=45860)
 --> (https://bugs.freedesktop.org/attachment.cgi?id=45860)
kernel traces for GPU lockup

OpenGL renderer string: Gallium 0.4 on AMD RV710
OpenGL version string: 2.1 Mesa 7.11-devel (git-c98fa6b)

After finishing loading any level game shows black screen (like monitor goes
off), than screen goes back to live filled with some flickering garbage.
netconsole on other hosts reports GPU lockup traces from kernel. Leaving game
in this state for a while leads to complete kernel hangup.

I failed to reproduce this on any other non-native 3d-application (read: game),
neither on any native (still, I don't have access to much of them).

Changing various in-game settings to lowest possible doesn't help, nor
switching dxlevel (they seems to disable this feature).

Attaching traces log from netconsole. I may also attach wine output, as it
contains information about GL calls, but maybe it will be better to post wine
bug for this?

If there is any way to get some error-state (like one from intel cards in
similar bugs here) or opengl calls trace - I'll happily provide them.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


[Bug 36236] Problems with lights in Trine game from www.humblebundle.com

2011-04-20 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=36236

--- Comment #25 from Sven Arvidsson  2011-04-20 05:08:39 PDT ---
(In reply to comment #24)
> Installed Windows version with WINE 1.3.14
> everything works perfect, no graphical bugs at all.

I doubt this is relevant at all, the Windows versions seems to use HLSL which
Wine translates to GLSL...

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


[Bug 36236] Problems with lights in Trine game from www.humblebundle.com

2011-04-20 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=36236

--- Comment #24 from imamdxl8805 at gmail.com 2011-04-20 04:51:27 PDT ---
Installed Windows version with WINE 1.3.14
everything works perfect, no graphical bugs at all.

Tested On:

Ubuntu 10.10
Mesa 7.10.2 (no GL_ATI_draw_buffers)
Mesa 7.11-devel (git-f41e1db) (has GL_ATI_draw_buffers)
Linux 2.6.36-02063604-generic
Intel GMA 4500 256MB



[Bug 36236] Problems with lights in Trine game from www.humblebundle.com

2011-04-20 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=36236

--- Comment #23 from imamdxl8805 at gmail.com 2011-04-20 03:54:46 PDT ---
Created an attachment (id=45858)
 --> (https://bugs.freedesktop.org/attachment.cgi?id=45858)
Output1 after modifing data/shader/cg/deferred_light_pixel.cg

in file data/shader/cg/deferred_light_pixel.cg

changed return lerp(half3(FOG_COLOR.xyz), result, deferredSample3.z);
to return deferredSample1.xyz;

And the game becomes a 2D game

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


[Bug 36236] Problems with lights in Trine game from www.humblebundle.com

2011-04-20 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=36236

--- Comment #22 from imamdxl8805 at gmail.com 2011-04-20 03:54:04 PDT ---
Created an attachment (id=45857)
 --> (https://bugs.freedesktop.org/attachment.cgi?id=45857)
Output after modifing data/shader/cg/deferred_light_pixel.cg

in file data/shader/cg/deferred_light_pixel.cg

changed return lerp(half3(FOG_COLOR.xyz), result, deferredSample3.z);
to return deferredSample1.xyz;

And the game becomes a 2D game

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


[Bug 36236] Problems with lights in Trine game from www.humblebundle.com

2011-04-20 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=36236

--- Comment #21 from Turo Lamminen  2011-04-20 
02:59:12 PDT ---
Try this: 
Modify data/shader/cg/deferred_light_pixel.cg

On about line 75 in function getAmbientSample change this:

return lerp(half3(FOG_COLOR.xyz), result, deferredSample3.z);

to this:
return deferredSample1.xyz;

This dumps g-buffer 1 to screen. Likewise for other buffers.
g-buffers are as follows:
1 color. Should look pretty normal except for being completely fullbright
2 normals. Should be red-green-yellowish
3. light parameters. Should be mostly blue

If you want to see how this should look on a working driver you need to disable
lights. Easiest way to do this is to change function getPointlightSample around
line 460. Change

return result;

to

return half3(0.0);

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


[Bug 36332] Missing rendering in Unity dash

2011-04-20 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=36332

Pavel Rojtberg  changed:

   What|Removed |Added

 AssignedTo|dri-devel at lists.freedesktop |maraeo at gmail.com
   |.org|

--- Comment #6 from Pavel Rojtberg  2011-04-20 02:49:45 
PDT ---
there is now a workaround in this commit:
http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/natty/nux/natty/revision/26


// jaytaoko: This is a hack for what looks like a bug (#726033) in the radeon
opensource driver
// on R300/400/500. Rather than passing a null region to glScissor, we give the
clip area a 1 pixel width.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


[git pull] drm fixes (radeon + nouveau)

2011-04-20 Thread Dave Airlie

Hi Linus,

Couple of radeon fixes and a few nouveau fixes, one for a memory 
corruption due to how the notifier was allocated.

Dave.

The following changes since commit 2582b6efceb43dce63b4a1090d289934067a972d:

  Revert "i915: restore only the mode of this driver on lastclose" (2011-04-13 
09:20:24 +1000)

are available in the git repository at:
  ssh://master.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6.git drm-fixes

Alex Deucher (4):
  drm/radeon/kms: fix bad shift in atom iio table parser
  drm/radeon/kms: add connectors even if i2c fails
  drm/radeon/kms: adjust evergreen display watermark setup
  drm/radeon/kms: pll tweaks for r7xx

Ben Skeggs (4):
  drm/nouveau: split ramin_lock into two locks, one hardirq safe
  drm/nouveau: fix nv30 pcie boards
  drm/nouveau: populate ttm_alloced with false, when it's not
  drm/nouveau: fix pinning of notifier block

Dave Airlie (1):
  Merge remote branch 'nouveau/drm-nouveau-fixes' of 
/ssd/git/drm-nouveau-next into drm-fixes

Marcin Slusarz (2):
  drm/nouveau: fix notifier memory corruption bug
  drm/nouveau: fix allocation of notifier object

 drivers/gpu/drm/nouveau/nouveau_dma.c  |2 +-
 drivers/gpu/drm/nouveau/nouveau_drv.h  |3 +
 drivers/gpu/drm/nouveau/nouveau_fbcon.c|4 +-
 drivers/gpu/drm/nouveau/nouveau_mem.c  |2 +-
 drivers/gpu/drm/nouveau/nouveau_notifier.c |   11 ++-
 drivers/gpu/drm/nouveau/nouveau_object.c   |   10 ++-
 drivers/gpu/drm/nouveau/nouveau_sgdma.c|5 +-
 drivers/gpu/drm/nouveau/nouveau_state.c|1 +
 drivers/gpu/drm/nouveau/nv50_instmem.c |   10 ++-
 drivers/gpu/drm/nouveau/nv50_vm.c  |5 +-
 drivers/gpu/drm/nouveau/nvc0_vm.c  |5 +-
 drivers/gpu/drm/radeon/atom.c  |6 +-
 drivers/gpu/drm/radeon/atombios_crtc.c |6 +--
 drivers/gpu/drm/radeon/evergreen.c |   89 ++--
 drivers/gpu/drm/radeon/radeon_connectors.c |   29 -
 drivers/gpu/drm/radeon/radeon_i2c.c|6 ++
 16 files changed, 102 insertions(+), 92 deletions(-)


[PATCH 2/2] drm/nouveau: fix allocation of notifier object

2011-04-20 Thread Marcin Slusarz
Commit 73412c3854c877e5f37ad944ee8977addde4d35a ("drm/nouveau: allocate
kernel's notifier object at end of block") intended to align end of
notifier block to page boundary, but start of block was miscalculated
to be off by -16 bytes. Fix it.

Signed-off-by: Marcin Slusarz 
Cc: Ben Skeggs 
---
 drivers/gpu/drm/nouveau/nouveau_dma.c |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/gpu/drm/nouveau/nouveau_dma.c 
b/drivers/gpu/drm/nouveau/nouveau_dma.c
index ce38e97..568caed 100644
--- a/drivers/gpu/drm/nouveau/nouveau_dma.c
+++ b/drivers/gpu/drm/nouveau/nouveau_dma.c
@@ -83,7 +83,7 @@ nouveau_dma_init(struct nouveau_channel *chan)
return ret;

/* NV_MEMORY_TO_MEMORY_FORMAT requires a notifier object */
-   ret = nouveau_notifier_alloc(chan, NvNotify0, 32, 0xfd0, 0x1000,
+   ret = nouveau_notifier_alloc(chan, NvNotify0, 32, 0xfe0, 0x1000,
 >m2mf_ntfy);
if (ret)
return ret;
-- 
1.7.4.1



[PATCH 1/2] drm/nouveau: fix notifier memory corruption bug

2011-04-20 Thread Marcin Slusarz
nouveau_bo_wr32 expects offset to be in words, but we pass value in bytes,
so after commit 73412c3854c877e5f37ad944ee8977addde4d35a ("drm/nouveau: allocate
kernel's notifier object at end of block") we started to overwrite some memory
after notifier buffer object (previously m2mf_ntfy was always 0, so it didn't
matter it was a value in bytes).

Reported-by: Dominik Brodowski 
Reported-by: Nigel Cunningham 
Signed-off-by: Marcin Slusarz 
Cc: Ben Skeggs 
Cc: Pekka Paalanen 
Cc: stable at kernel.org[2.6.38]
---
 drivers/gpu/drm/nouveau/nouveau_fbcon.c |4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/nouveau/nouveau_fbcon.c 
b/drivers/gpu/drm/nouveau/nouveau_fbcon.c
index 889c445..39aee6d 100644
--- a/drivers/gpu/drm/nouveau/nouveau_fbcon.c
+++ b/drivers/gpu/drm/nouveau/nouveau_fbcon.c
@@ -181,13 +181,13 @@ nouveau_fbcon_sync(struct fb_info *info)
OUT_RING  (chan, 0);
}

-   nouveau_bo_wr32(chan->notifier_bo, chan->m2mf_ntfy + 3, 0x);
+   nouveau_bo_wr32(chan->notifier_bo, chan->m2mf_ntfy/4 + 3, 0x);
FIRE_RING(chan);
mutex_unlock(>mutex);

ret = -EBUSY;
for (i = 0; i < 10; i++) {
-   if (!nouveau_bo_rd32(chan->notifier_bo, chan->m2mf_ntfy + 3)) {
+   if (!nouveau_bo_rd32(chan->notifier_bo, chan->m2mf_ntfy/4 + 3)) 
{
ret = 0;
break;
}
-- 
1.7.4.1



2.6.39-rc1 nouveau(?) regression (bisected)

2011-04-20 Thread Marcin Slusarz
On Mon, Apr 18, 2011 at 01:27:10PM -0700, Linus Torvalds wrote:
> On Mon, Apr 18, 2011 at 1:02 PM, Marcin Slusarz
>  wrote:
> >
> > It's some nasty corruption:
> 
> Looks like something wrote 0x to free'd memory.
> 
> Enabling DEBUG_PAGEALLOC *might* show where it happens.
> 
> >
> > [ ? ?6.523867] 
> > =
> > [ ? ?6.523916] BUG sysfs_dir_cache: Poison overwritten
> > [ ? ?6.523949] 
> > -
> > [ ? ?6.523950]
> > [ ? ?6.524016] INFO: 0x8801bb47df4c-0x8801bb47df4f. First byte 0xff 
> > instead of 0x6b
> > [ ? ?6.524061] INFO: Slab 0xea00060f7b58 objects=22 used=21 
> > fp=0x8801bb47df18 flags=0x80c1
> > [ ? ?6.524110] INFO: Object 0x8801bb47df18 @offset=3864 fp=0x ? ? ? ? 
> > ?(null)
> > [ ? ?6.524111]
> > [ ? ?6.524170] Bytes b4 0x8801bb47df08: ?00 00 00 00 00 00 00 00 5a 5a 
> > 5a 5a 5a 5a 5a 5a 
> > [ ? ?6.524516] ? Object 0x8801bb47df18: ?6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 
> > 6b 6b 6b 6b 6b 6b 
> > [ ? ?6.524862] ? Object 0x8801bb47df28: ?6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 
> > 6b 6b 6b 6b 6b 6b 
> > [ ? ?6.525208] ? Object 0x8801bb47df38: ?6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 
> > 6b 6b 6b 6b 6b 6b 
> > [ ? ?6.525556] ? Object 0x8801bb47df48: ?6b 6b 6b 6b ff ff ff ff 6b 6b 
> > 6b 6b 6b 6b 6b 6b 
> 
> So here the 0x is pretty obvious.
> 
> > and in another boot:
> >
> > [ ? ?6.704786] BUG: unable to handle kernel paging request at 
> > bc70b058
> 
> Here it is less obvious, but it was _probably_ a regular kernel
> pointer of the type 0x8801bc70b058 before the high bits were
> overwritten by a 0x.
> 
> So then sysfs_refresh_inode() follows that pointer, and crashes.
> 
> Just a guess, obviously, but it looks rather likely.

Thanks. It helped a bit.
I'll send two patches in response to this message, one of which fixes this bug.

Marcin



[Bug 36403] [r300g] glean vertattrib regression

2011-04-20 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=36403

--- Comment #3 from Marek Ol??k  2011-04-19 23:43:39 PDT 
---
Tried the scons build and it works too.

$ LIBGL_DRIVERS_PATH=[snip]/mesa/build/linux-x86-debug/gallium/targets/dri-r300
bin/glean -r results -t vertattrib --quick -o
[snip]
vertattrib:  PASS rgba8, db, z24, s8, win+pmap, id 33
0 GL_NV_vertex_program functions tested
36 GL_ARB_vertex_program/shader functions tested
36 OpenGL 2.0 functions tested

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


[Bug 36403] [r300g] glean vertattrib regression

2011-04-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=36403

--- Comment #3 from Marek Olšák mar...@gmail.com 2011-04-19 23:43:39 PDT ---
Tried the scons build and it works too.

$ LIBGL_DRIVERS_PATH=[snip]/mesa/build/linux-x86-debug/gallium/targets/dri-r300
bin/glean -r results -t vertattrib --quick -o
[snip]
vertattrib:  PASS rgba8, db, z24, s8, win+pmap, id 33
0 GL_NV_vertex_program functions tested
36 GL_ARB_vertex_program/shader functions tested
36 OpenGL 2.0 functions tested

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


[Bug 36332] Missing rendering in Unity dash

2011-04-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=36332

Pavel Rojtberg pa...@rojtberg.net changed:

   What|Removed |Added

 AssignedTo|dri-devel@lists.freedesktop |mar...@gmail.com
   |.org|

--- Comment #6 from Pavel Rojtberg pa...@rojtberg.net 2011-04-20 02:49:45 PDT 
---
there is now a workaround in this commit:
http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/natty/nux/natty/revision/26


// jaytaoko: This is a hack for what looks like a bug (#726033) in the radeon
opensource driver
// on R300/400/500. Rather than passing a null region to glScissor, we give the
clip area a 1 pixel width.

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


[Bug 36236] Problems with lights in Trine game from www.humblebundle.com

2011-04-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=36236

--- Comment #21 from Turo Lamminen t...@alternativegames.net 2011-04-20 
02:59:12 PDT ---
Try this: 
Modify data/shader/cg/deferred_light_pixel.cg

On about line 75 in function getAmbientSample change this:

return lerp(half3(FOG_COLOR.xyz), result, deferredSample3.z);

to this:
return deferredSample1.xyz;

This dumps g-buffer 1 to screen. Likewise for other buffers.
g-buffers are as follows:
1 color. Should look pretty normal except for being completely fullbright
2 normals. Should be red-green-yellowish
3. light parameters. Should be mostly blue

If you want to see how this should look on a working driver you need to disable
lights. Easiest way to do this is to change function getPointlightSample around
line 460. Change

return result;

to

return half3(0.0);

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


[Bug 36236] Problems with lights in Trine game from www.humblebundle.com

2011-04-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=36236

--- Comment #22 from imamdxl8...@gmail.com 2011-04-20 03:54:04 PDT ---
Created an attachment (id=45857)
 -- (https://bugs.freedesktop.org/attachment.cgi?id=45857)
Output after modifing data/shader/cg/deferred_light_pixel.cg

in file data/shader/cg/deferred_light_pixel.cg

changed return lerp(half3(FOG_COLOR.xyz), result, deferredSample3.z);
to return deferredSample1.xyz;

And the game becomes a 2D game

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


[Bug 36236] Problems with lights in Trine game from www.humblebundle.com

2011-04-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=36236

--- Comment #23 from imamdxl8...@gmail.com 2011-04-20 03:54:46 PDT ---
Created an attachment (id=45858)
 -- (https://bugs.freedesktop.org/attachment.cgi?id=45858)
Output1 after modifing data/shader/cg/deferred_light_pixel.cg

in file data/shader/cg/deferred_light_pixel.cg

changed return lerp(half3(FOG_COLOR.xyz), result, deferredSample3.z);
to return deferredSample1.xyz;

And the game becomes a 2D game

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


[Bug 36236] Problems with lights in Trine game from www.humblebundle.com

2011-04-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=36236

--- Comment #24 from imamdxl8...@gmail.com 2011-04-20 04:51:27 PDT ---
Installed Windows version with WINE 1.3.14
everything works perfect, no graphical bugs at all.

Tested On:

Ubuntu 10.10
Mesa 7.10.2 (no GL_ATI_draw_buffers)
Mesa 7.11-devel (git-f41e1db) (has GL_ATI_draw_buffers)
Linux 2.6.36-02063604-generic
Intel GMA 4500 256MB

From the result, It seems that it is not a driver bug, rather than it is nVidia
Linux Cg bug or Trine Linux version bug.

Windows Trine version (from humble bundle) with WINE works perfectly.

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


[Bug 36236] Problems with lights in Trine game from www.humblebundle.com

2011-04-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=36236

--- Comment #25 from Sven Arvidsson s...@whiz.se 2011-04-20 05:08:39 PDT ---
(In reply to comment #24)
 Installed Windows version with WINE 1.3.14
 everything works perfect, no graphical bugs at all.

I doubt this is relevant at all, the Windows versions seems to use HLSL which
Wine translates to GLSL...

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


[Bug 36236] Problems with lights in Trine game from www.humblebundle.com

2011-04-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=36236

--- Comment #26 from Turo Lamminen t...@alternativegames.net 2011-04-20 
06:03:32 PDT ---
(In reply to comment #23)
 changed return lerp(half3(FOG_COLOR.xyz), result, deferredSample3.z);
 to return deferredSample1.xyz;
 
 And the game becomes a 2D game
That's what g-buffer 1 is supposed to look like. So at least rendertarget 1 is
filled correctly. What about the other two?

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


[Bug 36403] [r300g] glean vertattrib regression

2011-04-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=36403

Marek Olšák mar...@gmail.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||DUPLICATE

--- Comment #4 from Marek Olšák mar...@gmail.com 2011-04-20 08:43:01 PDT ---


*** This bug has been marked as a duplicate of bug 36282 ***

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


[Bug 36318] r600g segfaults

2011-04-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=36318

Marek Olšák mar...@gmail.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||DUPLICATE

--- Comment #5 from Marek Olšák mar...@gmail.com 2011-04-20 08:43:10 PDT ---


*** This bug has been marked as a duplicate of bug 36282 ***

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


[Bug 36236] Problems with lights in Trine game from www.humblebundle.com

2011-04-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=36236

--- Comment #27 from Sven Arvidsson s...@whiz.se 2011-04-20 08:48:55 PDT ---
(In reply to comment #26)
 That's what g-buffer 1 is supposed to look like. So at least rendertarget 1 is
 filled correctly. What about the other two?

This would be deferredSample2.xyz and deferredSample3.xyz? If so, on my system
it looks just the same as with deferredSample1.xyz

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


[Bug 36236] Problems with lights in Trine game from www.humblebundle.com

2011-04-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=36236

--- Comment #28 from Christoph Bumiller e0425...@student.tuwien.ac.at 
2011-04-20 09:08:51 PDT ---
Now it become easy to fix, it seems that
TGSI_PROPERTY_FS_COLOR0_WRITES_ALL_CBUFS is set when it shouldn't be, the game
looks fine with llvmpipe if I make it ignore this property.

The nv50 and nvc0 drivers never cared about it and just assumed (had to,
actually, the assumption was added when
TGSI_PROPERTY_FS_COLOR0_WRITES_ALL_CBUFS didn't exist yet) that if multiple
colour values are written, the render targets are supposed to receive separate
values and not just colour 0.

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


[Bug 36236] Problems with lights in Trine game from www.humblebundle.com

2011-04-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=36236

--- Comment #29 from Sven Arvidsson s...@whiz.se 2011-04-20 09:19:26 PDT ---
Cool! The same fix works for r300g! (Commenting out the loop starting at line
472 in r300_fs.c) :]

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


Re: 2.6.39-rc1 nouveau(?) regression (bisected)

2011-04-20 Thread Kyle Spaans
On Tue, Apr 19, 2011 at 11:47:47PM +0200, Marcin Slusarz wrote:
 Thanks. It helped a bit.
 I'll send two patches in response to this message, one of which fixes this 
 bug.

Those patches fixed my system. Thanks!
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 36236] Problems with lights in Trine game from www.humblebundle.com

2011-04-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=36236

--- Comment #31 from Sven Arvidsson s...@whiz.se 2011-04-20 09:58:52 PDT ---
I just wanted to say thanks to Christoph for figuring this out, and another
thanks to Turo for working on it (Considering how rare it is for game
developers to care about the open drivers, and how swamped you must be with
support issues for the bundle this is doubly appreciated!)

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


[Bug 36371] r200: piglit readPixSanity failure

2011-04-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=36371

Andrei Slavoiu ansl...@yahoo.com changed:

   What|Removed |Added

 CC||ansl...@yahoo.com

--- Comment #6 from Andrei Slavoiu ansl...@yahoo.com 2011-04-20 12:02:41 PDT 
---
I get the same error with r600g, so it's probably not driver specific:

X Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)
  Major opcode of failed request:  137 (DRI2)
  Minor opcode of failed request:  8 (DRI2SwapBuffers)
  Resource id in failed request:  0x56b
  Serial number of failed request:  1281
  Current serial number in output stream:  1281

My version of mesa:

OpenGL renderer string: Gallium 0.4 on AMD RV635
OpenGL version string: 2.1 Mesa 7.11-devel (git-bb78f6a)

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


[Bug 36435] New: [r600g] GPU lockup CP stall

2011-04-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=36435

   Summary: [r600g] GPU lockup CP stall
   Product: Mesa
   Version: git
  Platform: x86-64 (AMD64)
OS/Version: Linux (All)
Status: NEW
  Severity: normal
  Priority: medium
 Component: Drivers/Gallium/r600
AssignedTo: dri-devel@lists.freedesktop.org
ReportedBy: o...@ojab.ru


Created an attachment (id=45872)
 -- (https://bugs.freedesktop.org/attachment.cgi?id=45872)
dmesg log

Sometimes I have errors like GPU lockup CP stall for more than 1msec, you
can find dmesg output in the attached file. I'm already have drm.debug=15,
dmesg output for 10 sec prior to debug will be in the following comment (I
already have a plenty of those). This has happened since I have this system, so
cannot bisect.
Really don't know what additional info is needed in such cases, please ask if
anything else is needed for investigation/fix.

RADEON(0): Chipset: ATI Radeon HD 3300 Graphics (ChipID = 0x9614)
linux-2.6 master git (2.6.39-rc4-00089-g2f666bc)
OpenGL renderer string: Gallium 0.4 on AMD RS780
OpenGL version string: 2.1 Mesa 7.11-devel (git-f41e1db)
xf86-video-ati-6.14.99 (git-903e90c)

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


[Bug 36435] [r600g] GPU lockup CP stall

2011-04-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=36435

--- Comment #2 from Alex Deucher ag...@yahoo.com 2011-04-20 12:21:33 PDT ---
Is there some app that triggers this?

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


[Bug 36236] Problems with lights in Trine game from www.humblebundle.com

2011-04-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=36236

--- Comment #32 from Eric Anholt e...@anholt.net 2011-04-20 18:06:59 PDT ---
http://lists.freedesktop.org/archives/mesa-dev/2011-April/006946.html may help.
 It didn't fix things yet on my driver.

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


[Bug 36435] [r600g] GPU lockup CP stall

2011-04-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=36435

--- Comment #3 from ojab o...@ojab.ru 2011-04-20 19:05:50 PDT ---
Unfortunately, no. Just happens suddenly.

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