Skip to contentSkip to conversation

New: wine 1.3.19 and 3Dmark2001SE Draghotic demo upset kernel 2.6.38.4

Bug 36745 [email protected] 1 participant 23 messages May 1, 2011 – Jun 30, 2011

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=36745

Summary: wine 1.3.19 and 3Dmark2001SE Draghotic demo upset
kernel 2.6.38.4
Product: Mesa
Version: git
Platform: x86 (IA32)
OS/Version: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/Gallium/r300
AssignedTo: [email protected]
ReportedBy: [email protected]

After installing my Slackware (+ self-compiled X stack) on this new machine with rv350 AGP card inside, I run few usual tests, and found that two demo scenes from 3Dmark2001SE build 330 (Dragothic low/high detail) renders incorrectly.

hardware:
GPU
r300: DRM version: 2.8.0, Name: ATI RV350, ID: 0x4152, GB: 1, Z: 1
r300: GART size: 61 MB, VRAM size: 128 MB
r300: AA compression: NO, Z compression: NO, HiZ: NO

cpu:
Intel(R) Pentium(R) 4 CPU 1.80GHz

256Mb system memory

Software:

drm - ba11501bb9f5bd98110dfe1385b4501c0a9a643a ("configure: version bump for 2.4.25 release")

mesa - fb8786bda320fef12219bf71ea83d703be6aa48f ("st/mesa: remove set-but-unused variables")

xserver - 1.9 branch at 90955857b20d0f5431f1c87f76adf1b89ec3f661 ("xfree86:
loader: fix memory leaks in LoaderListDirs")

xf86-video-ati - 903e90c31cf0319be9297529aa7b8daa1756cf63 ("EXA/Xv: used cached bo tiling flags for accel setup on 6xx+")

kernel - 2.6.38.4 mainline

wine - wine-1.3.19

Messages on console looks like:
fixme:d3d:state_clipping Clipping disabled, but ARB_depth_clamp isn't supported.
fixme:d3d:state_clipping Clipping disabled, but ARB_depth_clamp isn't supported.
radeon: The kernel rejected CS, see dmesg for more information.

(one about missing ARB_depth_clamp probably harmless, i saw it long ago with nvfx/nv40 gallium driver and older wine version)

in dmesg:
[drm:r100_cs_track_check] *ERROR* [drm] color buffer 0 (46 3455865856 46 768) [drm:radeon_cs_ioctl] *ERROR* Invalid command stream ! [drm:r100_cs_track_check] *ERROR* [drm] Buffer too small for color buffer 0 (need 88604718 have 28672) !

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#1 lore raw

[Bug 36745] wine 1.3.19 and 3Dmark2001SE Draghotic demo upset kernel 2.6.38.4

https://bugs.freedesktop.org/show_bug.cgi?id=36745

--- Comment #1 from Andrew Randrianasulu <[email protected]> 2011-05-01 09:20:27 PDT --- Created an attachment (id=46223)
--> (https://bugs.freedesktop.org/attachment.cgi?id=46223)
glxinfo

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#2 lore raw

[Bug 36745] wine 1.3.19 and 3Dmark2001SE Draghotic demo upset kernel 2.6.38.4

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=36745

--- Comment #2 from Andrew Randrianasulu <[email protected]> 2011-05-01 09:21:19 PDT --- Created an attachment (id=46224)
--> (https://bugs.freedesktop.org/attachment.cgi?id=46224)
X log

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#3 lore raw

[Bug 36745] wine 1.3.19 and 3Dmark2001SE Draghotic demo upset kernel 2.6.38.4

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=36745

--- Comment #3 from Andrew Randrianasulu <[email protected]> 2011-05-01 09:25:06 PDT --- Created an attachment (id=46225)
--> (https://bugs.freedesktop.org/attachment.cgi?id=46225)
last 350 lines from /var/log/messages

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#4 lore raw

[Bug 36745] wine 1.3.19 and 3Dmark2001SE Draghotic demo upset kernel 2.6.38.4

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=36745

--- Comment #4 from Andrew Randrianasulu <[email protected]> 2011-05-01 09:34:03 PDT --- Currently I use zram module, it may interfere with ttm/drm memory management, but for me "Buffer too small for color buffer 0" sounds like buffer in VRAM ... but I can unload it, or disable color tiling/pageflip for testing, if needed. This machine much faster (compared to celeron-400), but I ran this test for first time on it, so I can't say if it was regression or not.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#5 lore raw

[Bug 36745] wine 1.3.19 and 3Dmark2001SE Draghotic demo upset kernel 2.6.38.4

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=36745

--- Comment #5 from Andrew Randrianasulu <[email protected]> 2011-05-01 12:03:48 PDT --- Disabling colortiling and/or pageflips has no effect on this bug. Also changing texture mode in 3Dmark itself from default "compressed" to 32-bit does nothing.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#6 lore raw

[Bug 36745] wine 1.3.19 and 3Dmark2001SE Dragothic demo upset kernel 2.6.38.4

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=36745

Andrew Randrianasulu <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

            Summary|wine 1.3.19 and             |wine 1.3.19 and
                   |3Dmark2001SE Draghotic demo |3Dmark2001SE Dragothic demo
                   |upset kernel 2.6.38.4       |upset kernel 2.6.38.4
Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#7 lore raw

[Bug 36745] wine 1.3.19 and 3Dmark2001SE Dragothic demo upset kernel 2.6.38.4

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=36745

--- Comment #6 from Andrew Randrianasulu <[email protected]> 2011-05-02 00:58:53 PDT --- Bug still here with 2.6.39-rc5+ (3fd9952)

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#8 lore raw

[Bug 36745] wine 1.3.19 and 3Dmark2001SE Dragothic demo upset kernel 2.6.38.4

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=36745

--- Comment #7 from Andrew Randrianasulu <[email protected]> 2011-05-02 19:21:56 PDT --- Created an attachment (id=46266)
--> (https://bugs.freedesktop.org/attachment.cgi?id=46266)
dmesg from 2.6.39-rc5+ with additional debug in r300.c

I've just added some DRM_ERROR in function r300_packet3_check, like this:

    case PACKET3_3D_DRAW_INDX_2:
        track->vap_vf_cntl = radeon_get_ib_value(p, idx);
        r = r100_cs_track_check(p->rdev, track);
        if (r) {
            DRM_ERROR("Error from packet3_draw_indx_2!\n");
            return r;
        }
        break;

because r100_cs_track_check clearly reported wrong track->cb[i].cpp

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#9 lore raw

[Bug 36745] wine 1.3.19 and 3Dmark2001SE Dragothic demo upset kernel 2.6.38.4

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=36745

--- Comment #8 from Andrew Randrianasulu <[email protected]> 2011-05-02 19:54:07 PDT --- Created an attachment (id=46268)
--> (https://bugs.freedesktop.org/attachment.cgi?id=46268)
stderr log with export RADEON_DEBUG=draw, bz2 compressed

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#10 lore raw

[Bug 36745] wine 1.3.19 and 3Dmark2001SE Dragothic demo upset kernel 2.6.38.4

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=36745

--- Comment #9 from Michel Dänzer <[email protected]> 2011-05-03 01:37:50 PDT --- Can you print track->num_arrays when this happens? I suspect track->arrays[] may be overflowing and clobbering track->cb[].

Signature · 7 lines
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
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#11 lore raw

[Bug 36745] wine 1.3.19 and 3Dmark2001SE Dragothic demo upset kernel 2.6.38.4

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=36745

Andrew Randrianasulu <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

  Attachment #46266|0                           |1

is obsolete| |

--- Comment #10 from Andrew Randrianasulu <[email protected]> 2011-05-03 04:08:42 PDT --- Created an attachment (id=46284)
--> (https://bugs.freedesktop.org/attachment.cgi?id=46284)
more debug in dmesg

I've added DRM_ERROR("[drm] num_arrays, %u\n", track->num_arrays); into r100_cs_track_check(), but it prints just "3"

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#12 lore raw

[Bug 36745] wine 1.3.19 and 3Dmark2001SE Dragothic demo upset kernel 2.6.38.4

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=36745

--- Comment #11 from Andrew Randrianasulu <[email protected]> 2011-05-04 12:40:23 PDT --- Hm, just tested 2.6.37 - it is free from this bug!

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#13 lore raw

[Bug 36745] wine 1.3.19 and 3Dmark2001SE Dragothic demo upset kernel 2.6.38.4

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=36745

--- Comment #12 from Alex Deucher <[email protected]> 2011-05-04 14:20:39 PDT --- (In reply to comment #11)

Quoted 1 line

Hm, just tested 2.6.37 - it is free from this bug!

Can you bisect?

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#14 lore raw

[Bug 36745] wine 1.3.19 and 3Dmark2001SE Dragothic demo upset kernel 2.6.38.4

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=36745

--- Comment #13 from Andrew Randrianasulu <[email protected]> 2011-05-05 12:05:16 PDT --- (In reply to comment #12)

Quoted 4 lines

(In reply to comment #11)

Quoted 1 line

Hm, just tested 2.6.37 - it is free from this bug!

Can you bisect?

Incomplete log:

guest@slax:~/src/linux-bisect$ git bisect log
git bisect start
# good: [3c0eee3fe6a3a1c745379547c7e7c904aa64f6d5] Linux 2.6.37
git bisect good 3c0eee3fe6a3a1c745379547c7e7c904aa64f6d5
# bad: [521cb40b0c44418a4fd36dc633f575813d59a43d] Linux 2.6.38
git bisect bad 521cb40b0c44418a4fd36dc633f575813d59a43d
# good: [5943a268002fce97885f2ca08827ff1b0312068c] Merge branch
'timers-for-linus' of
git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
git bisect good 5943a268002fce97885f2ca08827ff1b0312068c
# good: [7d209c8110ecd49db46da786437485e8ef67f414] alpha: kill off alpha_do_IRQ
git bisect good 7d209c8110ecd49db46da786437485e8ef67f414
# good: [78d2978874e4e10e97dfd4fd79db45bdc0748550] CRED: Fix kernel panic upon
security_file_alloc() failure.
git bisect good 78d2978874e4e10e97dfd4fd79db45bdc0748550
# bad: [c486da34390846b430896a407b47f0cea3a4189c] sysctl: ipv6: use correct net
in ipv6_sysctl_rtcache_flush
git bisect bad c486da34390846b430896a407b47f0cea3a4189c
# skip: [68c3d4b26623e92656588061405d9dbdf97c0706] Merge branch
'hwmon-for-linus' of
git://git.kernel.org/pub/scm/linux/kernel/git/groeck/staging
git bisect skip 68c3d4b26623e92656588061405d9dbdf97c0706

[skip because X was unstartable with this kernel - hang]

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#15 lore raw

[Bug 36745] wine 1.3.19 and 3Dmark2001SE Dragothic demo upset kernel 2.6.38.4

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=36745

--- Comment #14 from Andrew Randrianasulu <[email protected]> 2011-05-06 03:48:44 PDT ---

guest@slax:~/src/linux-bisect$ git bisect bad
501834349e872ed4115eea3beef65ca9eeb5528e is the first bad commit
commit 501834349e872ed4115eea3beef65ca9eeb5528e
Author: Marek OlЕЎГЎk <[email protected]>
Date:   Mon Feb 14 01:01:09 2011 +0100

drm/radeon/kms: fix tracking of BLENDCNTL, COLOR_CHANNEL_MASK, and GB_Z on
r300

Also move ZB_DEPTHCLEARVALUE to the list of safe regs.

:040000 040000 63bb0565c7887abb72f93967caea0606d028df09
c3a86a556f8c4ee1313bdc12e1f86cb44bacb742 M drivers

Signature · 7 lines
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
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#16 lore raw

[Bug 36745] wine 1.3.19 and 3Dmark2001SE Dragothic demo upset kernel 2.6.38.4

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=36745

--- Comment #15 from Marek Olšák <[email protected]> 2011-05-14 19:07:14 PDT --- Andrew,

could you please make an OpenGL trace file using apitrace?

Get it here:
https://github.com/apitrace/apitrace

Compile it using cmake, then run something like:

TRACE_FILE=/home/..user../3dmark.trace LD_PRELOAD=/path-to-apitrace/glxtrace.so ./executable

where executable is 3Dmark2001SE. Then send the 3dmark.trace file to me.

That will capture all the 3D commands and I can replay it here.

Signature · 7 lines
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
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#17 lore raw

[Bug 36745] wine 1.3.19 and 3Dmark2001SE Dragothic demo upset kernel 2.6.38.4

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=36745

--- Comment #16 from Andrew Randrianasulu <[email protected]> 2011-05-16 19:28:03 PDT --- (In reply to comment #15)

Quoted 7 lines

Andrew,

could you please make an OpenGL trace file using apitrace?

Get it here:
https://github.com/apitrace/apitrace

Quoted 8 lines

Compile it using cmake, then run something like:

TRACE_FILE=/home/..user../3dmark.trace LD_PRELOAD=/path-to-apitrace/glxtrace.so ./executable

where executable is 3Dmark2001SE. Then send the 3dmark.trace file to me.

That will capture all the 3D commands and I can replay it here.

file is 37M big (bz2 compressed)

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#18 lore raw

[Bug 36745] wine 1.3.19 and 3Dmark2001SE Dragothic demo upset kernel 2.6.38.4

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=36745

--- Comment #17 from Andrew Randrianasulu <[email protected]> 2011-05-16 20:23:42 PDT --- (In reply to comment #16)

Quoted 10 lines

(In reply to comment #15)

Quoted 9 lines

Andrew,

could you please make an OpenGL trace file using apitrace?

Get it here:
https://github.com/apitrace/apitrace

Compile it using cmake, then run something like:

Quoted 8 lines
Quoted 6 lines

TRACE_FILE=/home/..user../3dmark.trace LD_PRELOAD=/path-to-apitrace/glxtrace.so ./executable

where executable is 3Dmark2001SE. Then send the 3dmark.trace file to me.

That will capture all the 3D commands and I can replay it here.

file is 37M big (bz2 compressed)

https://rapidshare.com/files/1581552170/3dmark.trace.gz

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#19 lore raw

[Bug 36745] wine 1.3.19 and 3Dmark2001SE Dragothic demo upset kernel 2.6.38.4

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=36745

--- Comment #18 from Marek Olšák <[email protected]> 2011-06-10 07:47:02 PDT --- Thanks for the trace.

The fix is here:
http://lists.freedesktop.org/archives/dri-devel/2011-June/011985.html

(In reply to comment #9)

Quoted 2 lines

Can you print track->num_arrays when this happens? I suspect track->arrays[] may be overflowing and clobbering track->cb[].

You were right.

Signature · 7 lines
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
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#20 lore raw

[Bug 36745] wine 1.3.19 and 3Dmark2001SE Dragothic demo upset kernel 2.6.38.4

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=36745

--- Comment #19 from Andrew Randrianasulu <[email protected]> 2011-06-10 11:17:39 PDT --- (In reply to comment #18)

Quoted 11 lines

Thanks for the trace.

The fix is here:
http://lists.freedesktop.org/archives/dri-devel/2011-June/011985.html

(In reply to comment #9)

Quoted 2 lines

Can you print track->num_arrays when this happens? I suspect track->arrays[] may be overflowing and clobbering track->cb[].

You were right.

Yes, confired fixed. I'll wait until fix land into mainline (Linus's 2.6 master
- actually 3.0.0-rc at the moment .... should one rename all git trees too? Heh.) and hopefully will mark this closed (after re-testing).

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#21 lore raw

[Bug 36745] wine 1.3.19 and 3Dmark2001SE Dragothic demo upset kernel 2.6.38.4

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=36745

Andrew Randrianasulu <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #20 from Andrew Randrianasulu <[email protected]> 2011-06-14 23:31:33 PDT --- Fixed in mainline kernel (3.0.0-rc3+)

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#22 lore raw

[Bug 36745] wine 1.3.19 and 3Dmark2001SE Dragothic demo upset kernel 2.6.38.4

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=36745

--- Comment #21 from Florian Mickler <[email protected]> 2011-06-30 03:33:05 PDT --- A patch referencing this bug report has been merged in Linux v3.0-rc4:

commit a27bb4b209dd6c327fa4e7185f2487f9508a58db

Author: Marek Olšák <[email protected]>
Date:   Fri Jun 10 14:41:26 2011 +0000

drm/radeon/kms: do bounds checking for 3D_LOAD_VBPNTR and bump array limit

Signature · 7 lines
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
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel