[Bug 656100] Re: [R200] ../../radeon/radeon_cs_gem.c:181: cs_gem_write_reloc: Assertion `boi-space_accounted' failed.

2010-10-10 Thread Uwe Geuder
The problem also affects this card

ATI Technologies Inc Radeon Mobility M7 LW [Radeon Mobility 7500]

which uses /usr/lib/dri/radeon_dri.so

-- 
[R200] ../../radeon/radeon_cs_gem.c:181: cs_gem_write_reloc: Assertion 
`boi-space_accounted' failed.
https://bugs.launchpad.net/bugs/656100
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 656100] Re: [R200] ../../radeon/radeon_cs_gem.c:181: cs_gem_write_reloc: Assertion `boi-space_accounted' failed.

2010-10-09 Thread Uwe Geuder
As already mentioned in
https://bugs.freedesktop.org/show_bug.cgi?id=29367#c5 the patch in
https://bugs.freedesktop.org/show_bug.cgi?id=21374#c5 does not apply to
current mesa. I searched a bit in the git history and it applies cleanly
e. g. to commit 57f55a. However, this commit is 150 commits apart from
today (and that is only counting files named r200 and radeon_common,
there might be others less obvious ones) So I assume that that old patch
is the wrong approach for us today.

So let's start from a different angle.

The assertion does not occur on Maverick. Maverick seems to based on
Mesa 7.7.1 (according to the source naming, I haven't checked the
contents). And 7.7.1 is much newer than the old patch. So the issue was
probably corrected one way or the other.

If we look at the version history of the r200 source in git, we see that
7.7.1 was made in a side branch. The attached screen dump was produced
with the command

$ gitk --all src/mesa/drivers/dri/r200/*
src/mesa/drivers/dri/radeon/radeon_common.?

The side branch ends in gitk row 70 (the currently selected one), which
precedes mesa_7_7_1_rc2, which in turn precedes mesa_7_7_1

So I could guess that one of the changes in the sidebranch actually
fixes the assertion but it has not been applied (or applied incorrectly)
to the trunk which lead towards Maverick. At least nothing has been
visibly merged as we can easily see from gitk.

Now we are only some 70-80 commits away from today. Still that will
require reading some source, and from what I've seen during my
investigations so far I have some doubts whether anybody not familiar
with the code can do it in reasonable time. I'm not sure when I have
time to investigate the source further. I might be very busy the coming
weeks.

Maybe you Tormod could report my findings so far upstream. (I don't have
an account in freedesktop and now it's not the right time for me to get
involved there.)


** Bug watch added: freedesktop.org Bugzilla #21374
   http://bugs.freedesktop.org/show_bug.cgi?id=21374

** Attachment added: gitk screenshot showing the history of r200 related 
source
   
https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/656100/+attachment/1680757/+files/mesa-r200-history.png

-- 
[R200] ../../radeon/radeon_cs_gem.c:181: cs_gem_write_reloc: Assertion 
`boi-space_accounted' failed.
https://bugs.launchpad.net/bugs/656100
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 656100] Re: [R200] ../../radeon/radeon_cs_gem.c:181: cs_gem_write_reloc: Assertion `boi-space_accounted' failed.

2010-10-09 Thread Tormod Volden
It would be very nice if someone with the hardware could follow up on
the upstream bugs though! Regarding that commit from Pauli, it was also
committed to trunk at 4ea694a26b99835d0b5bc814cf024850874a9a83.
Sometimes the version branches are merged onto trunk, but sometimes
trunk commits are cherrypicked to a version branch, so they will have
another commit ID. There has been some discussion (and varying
practices) on how to do this. Ideally a cherrypicked commit will contain
a comment that it has been cherrypicked (from using git cherry-pick -x).

-- 
[R200] ../../radeon/radeon_cs_gem.c:181: cs_gem_write_reloc: Assertion 
`boi-space_accounted' failed.
https://bugs.launchpad.net/bugs/656100
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 656100] Re: [R200] ../../radeon/radeon_cs_gem.c:181: cs_gem_write_reloc: Assertion `boi-space_accounted' failed.

2010-10-08 Thread Daniel Richard G.
Tormod: I've reproduced the bug in the i386 Maverick RC live-CD
environment (with all updates applied). See bug #656709.

-- 
[R200] ../../radeon/radeon_cs_gem.c:181: cs_gem_write_reloc: Assertion 
`boi-space_accounted' failed.
https://bugs.launchpad.net/bugs/656100
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 656100] Re: [R200] ../../radeon/radeon_cs_gem.c:181: cs_gem_write_reloc: Assertion `boi-space_accounted' failed.

2010-10-08 Thread Tormod Volden
Thanks. It looks like it has been reported upstream already, in
https://bugs.freedesktop.org/show_bug.cgi?id=29367

** Bug watch added: freedesktop.org Bugzilla #29367
   http://bugs.freedesktop.org/show_bug.cgi?id=29367

** Also affects: mesa via
   http://bugs.freedesktop.org/show_bug.cgi?id=29367
   Importance: Unknown
   Status: Unknown

-- 
[R200] ../../radeon/radeon_cs_gem.c:181: cs_gem_write_reloc: Assertion 
`boi-space_accounted' failed.
https://bugs.launchpad.net/bugs/656100
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 656100] Re: [R200] ../../radeon/radeon_cs_gem.c:181: cs_gem_write_reloc: Assertion `boi-space_accounted' failed.

2010-10-08 Thread Uwe Geuder
Before reporting upstream, we probably have to try their newest version.  In 
order to get at all started with that code I first built
the Ubuntu source.

The Maverick debian package builds mesa obviously in 9 configurations

mesa-7.9~git20100924/build/osmesa32-static/config.status
mesa-7.9~git20100924/build/swx11+glu/config.status  
mesa-7.9~git20100924/build/osmesa/config.status
mesa-7.9~git20100924/build/osmesa16-static/config.status
mesa-7.9~git20100924/build/osmesa32/config.status
mesa-7.9~git20100924/build/swx11+glu-static/config.status
mesa-7.9~git20100924/build/osmesa16/config.status
mesa-7.9~git20100924/build/dri/config.status
mesa-7.9~git20100924/build/osmesa-static/config.status

I have really no clue what they are all about, so I checked what
glxgears uses from the mesa source package. There are 3 libraries:


/usr/lib/mesa/libGL.so.1.2:Package: libgl1-mesa-glx Source: mesa
/usr/lib/libGLU.so.1.3.070900: Package: libglu1-mesaSource: mesa
/usr/lib/dri/r200_dri.so:  Package: libgl1-mesa-dri Source: mesa

libGL.so.1.2 is built in the dri configuration.
libGLU.so.1.3.070900 is built in the wx11+glu configuration.
r200_dri.so is built in the dri configuration.

So I just guessed that the dri configuration might the relevant one here
and built the newest mesa as follows:

git clone git://anongit.freedesktop.org/mesa/mesa
cd mesa
./autogen.sh '--build=i686-linux-gnu' '--with-driver=dri' 
   '--with-dri-drivers=r200' '--with-egl-displays=x11 drm' 
   '--enable-glx-tls' '--with-state-trackers=egl,glx,dri,vega' 
   '--enable-gles-overlay' '--enable-gles1' '--enable-gles2' 
   '--enable-driglx-direct' '--disable-glu' '--disable-glut' '--disable-glw' 
   '--enable-debug' 'CFLAGS=-Wall -g -O0' 
   '--with-dri-searchpath=/usr/lib/dri:/usr/lib32/dri' 
   'build_alias=i686-linux-gnu' 'LDFLAGS=-Wl,-Bsymbolic-functions' 
   'CPPFLAGS=' 'CXXFLAGS=-g -O0' 
make
cd lib
LIBGL_DRIVERS_PATH=. glxgears
Mesa: Mesa 7.10-devel DEBUG build Oct  8 2010 11:17:51
Mesa warning: couldn't open libtxc_dxtn.so, software DXTn 
compression/decompression unavailable
Running synchronized to the vertical refresh.  The framerate should be
approximately the same as the monitor refresh rate.
253 frames in 5.0 seconds = 50.547 FPS
251 frames in 5.0 seconds = 50.118 FPS
glxgears: ../../radeon/radeon_cs_gem.c:181: cs_gem_write_reloc: Assertion 
`boi-space_accounted' failed.
Aborted

(The assertion is sometimes hit immediately, sometimes first when
resizing the window)

My configuration options were some wild guessing merge of Maverick's
mesa-7.9~git20100924/build/dri/config.status and the instructions given
in https://bugs.freedesktop.org/show_bug.cgi?id=29066, together with the
assumption that gallium is not applicable to r200.

Not sure where the debugging info should be written. There was nothing
in syslog.

This is the call stack:

#0  0x0012e416 in __kernel_vsyscall ()
#1  0x003bb941 in raise () from /lib/libc.so.6
#2  0x003bee42 in abort () from /lib/libc.so.6
#3  0x003b48e8 in __assert_fail () from /lib/libc.so.6
#4  0x00afc158 in ?? () from /lib/libdrm_radeon.so.1
#5  0x00afcd80 in radeon_cs_write_reloc () from /lib/libdrm_radeon.so.1
#6  0x0071de59 in ctx_emit_cs (ctx=0x8072a70, atom=0x806dc30)
at r200_state_init.c:575
#7  0x0074c3d2 in radeon_emit_atom (radeon=0x806d730, atom=0x806dc30)
at radeon_common.c:1032
#8  0x0074c512 in radeonEmitAtoms (radeon=0x806d730, emitAll=0 '\000')
at radeon_common.c:1056
#9  0x0074c708 in radeonEmitState (radeon=0x806d730) at radeon_common.c:1099
#10 0x00726f36 in r200AllocEltsOpenEnded (rmesa=0x806d730, primitive=532, 
min_nr=6) at r200_cmdbuf.c:210
#11 0x0072cb96 in r200AllocElts (rmesa=0x806d730, nr=6) at r200_tcl.c:164
#12 0x0072d65d in tcl_render_tri_fan_verts (ctx=0x8072a70, start=0, count=4, 
flags=54) at ../../../../../src/mesa/tnl_dd/t_dd_dmatmp2.h:380
#13 0x0072e574 in r200EmitPrimitive (ctx=0x8072a70, first=0, last=4, flags=54)
at r200_tcl.c:249
#14 0x0072f0f9 in r200_run_tcl_render (ctx=0x8072a70, stage=0x80c5158)
at r200_tcl.c:562
#15 0x0086a0a1 in _tnl_run_pipeline (ctx=0x8072a70) at tnl/t_pipeline.c:153
---Type return to continue, or q return to quit---
#16 0x0071ba76 in r200WrapRunPipeline (ctx=0x8072a70) at r200_state.c:2460
#17 0x0086b342 in _tnl_draw_prims (ctx=0x8072a70, arrays=0x80b35dc, 
prim=0xb0c0, nr_prims=1, ib=0x0, min_index=0, max_index=3)
at tnl/t_draw.c:478
#18 0x0086b0af in _tnl_vbo_draw_prims (ctx=0x8072a70, arrays=0x80b35dc, 
prim=0xb0c0, nr_prims=1, ib=0x0, index_bounds_valid=1 '\001', 
min_index=0, max_index=3) at tnl/t_draw.c:384
#19 0x0085dce4 in vbo_exec_DrawArrays (mode=6, start=0, count=4)
at vbo/vbo_exec_array.c:526
#20 0x0085f292 in _mesa_DrawArrays (mode=6, first=0, count=4)
at vbo/vbo_exec_array.c:1159
#21 0x008f64a9 in _mesa_meta_Clear (ctx=0x8072a70, buffers=18)
at drivers/common/meta.c:1472
#22 0x0074d10d in radeonUserClear (ctx=0x8072a70, mask=18)
at 

[Bug 656100] Re: [R200] ../../radeon/radeon_cs_gem.c:181: cs_gem_write_reloc: Assertion `boi-space_accounted' failed.

2010-10-08 Thread Uwe Geuder
Oops, my investigations obviously took some time. So I posted #39
without reading #38, which had come in the meantime.

-- 
[R200] ../../radeon/radeon_cs_gem.c:181: cs_gem_write_reloc: Assertion 
`boi-space_accounted' failed.
https://bugs.launchpad.net/bugs/656100
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 656100] Re: [R200] ../../radeon/radeon_cs_gem.c:181: cs_gem_write_reloc: Assertion `boi-space_accounted' failed.

2010-10-08 Thread Tormod Volden
Uwe, that's good sleuthing there, it is nice that you are proficient at
debugging! You can get latest libdrm from the xorg-edgers PPA unless you
want to build it yourself. Maybe you can, together with Andrew, look at
applying Pauli's patch referenced in the upstream bug, or ask if Pauli
can make a fresh one.

-- 
[R200] ../../radeon/radeon_cs_gem.c:181: cs_gem_write_reloc: Assertion 
`boi-space_accounted' failed.
https://bugs.launchpad.net/bugs/656100
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 656100] Re: [R200] ../../radeon/radeon_cs_gem.c:181: cs_gem_write_reloc: Assertion `boi-space_accounted' failed.

2010-10-08 Thread Uwe Geuder
I  built the latest libdrm from

git clone git://anongit.freedesktop.org/git/mesa/drm

with these options:

./autogen.sh \
 '--build=i686-linux-gnu' \
 '--enable-udev' \
 '--enable-libkms' \
 '--enable-vmwgfx-experimental-api' \
 '--enable-nouveau-experimental-api' \
 '--enable-radeon' \
 '--enable-intel' \
 'CFLAGS=-Wall -g -O0' \
 'build_alias=i686-linux-gnu' \
 'LDFLAGS=-Wl,-Bsymbolic-functions' \
 'CPPFLAGS='


Not to surprisingly the same assertion is still hit. Please find the full call 
stack in the attachment.

I have not yet had time to look at the patch.



** Attachment added: full call stack with newest mesa dri and drmlib from git
   
https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/656100/+attachment/1678832/+files/stack.txt

-- 
[R200] ../../radeon/radeon_cs_gem.c:181: cs_gem_write_reloc: Assertion 
`boi-space_accounted' failed.
https://bugs.launchpad.net/bugs/656100
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 656100] Re: [R200] ../../radeon/radeon_cs_gem.c:181: cs_gem_write_reloc: Assertion `boi-space_accounted' failed.

2010-10-07 Thread Tormod Volden
Thanks for your report. Yes, it is probably the same issue as in the
other bug report. Would it be possible for you to try the i386 live CD
to rule out any amd64 specific issues?

** Changed in: mesa (Ubuntu)
   Status: New = Confirmed

-- 
[R200] ../../radeon/radeon_cs_gem.c:181: cs_gem_write_reloc: Assertion 
`boi-space_accounted' failed.
https://bugs.launchpad.net/bugs/656100
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 656100] Re: [R200] ../../radeon/radeon_cs_gem.c:181: cs_gem_write_reloc: Assertion `boi-space_accounted' failed.

2010-10-07 Thread Uwe Geuder
I get the same assertio on i386 with ATI Technologies Inc Radeon RV250
[Mobility FireGL 9000] (rev 02) when trying to start stellar

** Summary changed:

- [R200] ../../radeon/radeon_cs_gem.c:181: cs_gem_write_reloc: Assertion 
`boi-space_accounted' failed.
+ [R200] [RV250] ../../radeon/radeon_cs_gem.c:181: cs_gem_write_reloc: 
Assertion `boi-space_accounted' failed.

** Tags added: apport-collected

-- 
[R200] ../../radeon/radeon_cs_gem.c:181: cs_gem_write_reloc: Assertion 
`boi-space_accounted' failed.
https://bugs.launchpad.net/bugs/656100
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 656100] Re: [R200] ../../radeon/radeon_cs_gem.c:181: cs_gem_write_reloc: Assertion `boi-space_accounted' failed.

2010-10-07 Thread Tormod Volden
Ouch. This can be... interesting. It seems from bug 602267 that this is
solved upstream in the gallium driver, so we can not count on upstream
help to nail this down in the classic driver. Can you also try the mesa
packages from the Radeon gallium PPA, and check whether is fixed with
gallium, or with the newest classic drivers?

-- 
[R200] ../../radeon/radeon_cs_gem.c:181: cs_gem_write_reloc: Assertion 
`boi-space_accounted' failed.
https://bugs.launchpad.net/bugs/656100
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 656100] Re: [R200] ../../radeon/radeon_cs_gem.c:181: cs_gem_write_reloc: Assertion `boi-space_accounted' failed.

2010-10-07 Thread Tormod Volden
Sorry, the Radeon gallium PPA has only Lucid packages at the moment, I
will consider making Maverick packages later. For now maybe you can try
the xorg-edgers PPA which has gallium by default as well? Or try
installing those Lucid packages in Maverick, it might work.

-- 
[R200] ../../radeon/radeon_cs_gem.c:181: cs_gem_write_reloc: Assertion 
`boi-space_accounted' failed.
https://bugs.launchpad.net/bugs/656100
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 656100] Re: [R200] ../../radeon/radeon_cs_gem.c:181: cs_gem_write_reloc: Assertion `boi-space_accounted' failed.

2010-10-07 Thread Uwe Geuder
Sorry, I have no idea what is Gallium or the classic driver. Google lead
me to http://www.x.org/wiki/RadeonFeature.

I'm not sure whether I understand the page, but it appears to me that
Gallium applies only to R300 or higher. (#602267 was on R300). However,
here we are talking about R200.

-- 
[R200] ../../radeon/radeon_cs_gem.c:181: cs_gem_write_reloc: Assertion 
`boi-space_accounted' failed.
https://bugs.launchpad.net/bugs/656100
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 656100] Re: [R200] ../../radeon/radeon_cs_gem.c:181: cs_gem_write_reloc: Assertion `boi-space_accounted' failed.

2010-10-07 Thread Tormod Volden
Uwe, you are absolutely right. I was too much into the other bug report.
We should report this upstream, but first some of you should try the
latest kernel snapshot, and also the latest mesa. I will come back later
with more instructions if needed.

-- 
[R200] ../../radeon/radeon_cs_gem.c:181: cs_gem_write_reloc: Assertion 
`boi-space_accounted' failed.
https://bugs.launchpad.net/bugs/656100
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 656100] Re: [R200] ../../radeon/radeon_cs_gem.c:181: cs_gem_write_reloc: Assertion `boi-space_accounted' failed.

2010-10-07 Thread Daniel Richard G.
Tormod, I'll be happy to do some testing, but for the time being I can
only do so using a live-CD environment. I can do upgrades, pull in PPA
packages and restart X, but using a different kernel might be a bit
tricky.

Please let me know what you have in mind; I'm not a regular user of
newer kernels or bleeding-edge drivers.

-- 
[R200] ../../radeon/radeon_cs_gem.c:181: cs_gem_write_reloc: Assertion 
`boi-space_accounted' failed.
https://bugs.launchpad.net/bugs/656100
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 656100] Re: [R200] ../../radeon/radeon_cs_gem.c:181: cs_gem_write_reloc: Assertion `boi-space_accounted' failed.

2010-10-06 Thread Daniel Richard G.
** Visibility changed to: Public

-- 
[R200] ../../radeon/radeon_cs_gem.c:181: cs_gem_write_reloc: Assertion 
`boi-space_accounted' failed.
https://bugs.launchpad.net/bugs/656100
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs