/srv/irclogs.ubuntu.com/2009/04/17/#ubuntu-x.txt

brycemichaellarabel: btw I think you need a s/Intel/Canonical/ in the second to the last paragraph on http://www.phoronix.com/scan.php?page=article&item=ubuntu_netbook_performance&num=800:03
bryce"As of this week, Intel is looking at fixing some of the performance problems when using EXA with Intel graphics by enabling the greedy migration heuristic by default."00:03
michaellarabeloops, yeah. Fixing now.00:07
jbarnesbryce: btw I wonder how the perf would look with my exa pixmap management patch (the one I added to freedesktop 20739)02:18
ubottuFreedesktop bug 20739 in Driver/intel "[i945] X crashes in fbBlt() when using Sun Java Plugin 6 + firefox3.0 on Asus EEEPC 1000" [Critical,New] http://bugzilla.freedesktop.org/show_bug.cgi?id=2073902:18
brycejbarnes: I set up a ppa for it - https://edge.launchpad.net/~bryceharrington/+archive/blue02:19
jbarnescool02:19
brycejbarnes: not sure why manoj has not responded on that bug... he was in a dither about it when he first filed it, but strangely went silent the past week02:20
bryceman, I wish we had an automated phoronix set up that I could just point at a ppa or a patch, and have it automatically give results02:21
jbarnesthat would be cool02:22
pwnguinMatthew Garrett is currently: angry02:42
brycepwnguin: ??02:53
pwnguin"Seriously Intel. Sort it the fuck out."02:54
pwnguinhttp://mjg59.livejournal.com/110535.html02:54
* bryce shudders at memories of psb support02:57
superm1i've got a set of patches to fix that radeon mesa bug too now. just need to narrow it down and see if they're all necessary, or if I can fix it with just one04:46
superm1(bug 341898)04:46
ubottuLaunchpad bug 341898 in mesa "MythTV Frontend does not work with RADEON DRI" [High,Confirmed] https://launchpad.net/bugs/34189804:46
superm1tjaalton, bryce the patch got a basic look over from arlied in #dri-devel, so i'd like to squeeze this in if we could.  were you guys gonna make any changes to the other applied patches regarding the intel issue?  05:14
superm1or were you saving those for SRUs instead05:15
superm1er s/arlied/airlied/05:15
tjaaltonsuperm1: I'd need to read the backlog first :) but yes, I'd be ok with that patch05:28
tjaaltonand editing .git/config should be enough to allow pushing05:28
superm1yeah finally got it pushed earlier05:29
tjaaltonchange the url to ssh+git://foo-guest@05:29
superm1i just ended up doing ssh://foo-guest@, didn't realize ssh+git:// was a protocol05:29
tjaaltonah, both should work05:29
tjaaltonjust noticed that I had that05:30
superm1so are you guys doing any other intel deltas to mesa that should go in this same upload, or just treat them mutually exclusive?05:30
tjaaltonI'm not sure, bryce?05:30
tjaaltonit probably doesn't matter if there's one more upload05:30
superm1okay.05:31
superm1so hopefully i don't need to touch mesa for a long time now, debugging these has been very difficult :)05:32
tjaaltonhere's hoping ;)05:42
bryce_superm1, tjaalton: I'd also be okay with dropping 103 in mesa08:14
tjaaltonbryce_: cool08:14
tjaaltonI think I'll ask my boss (and wife) if there's a chance to get to the UDS..08:15
bryce_what it gains is not something that was available in intrepid, thus is not a regression.  And if it eliminates even just some of the freezes, it's a win08:16
tjaaltonyeah08:16
bryce_tjaalton: that would be great if you can come!  Did you get on the sponsorship list?08:16
tjaaltonbryce_: no, but I think my boss could send me.. that way I wouldn't have to spend my holidays to get there08:17
bryce_ah good08:18
tjaaltonwe are moving in two weeks, so we should be settled a month from now08:18
tjaalton+down08:20
tjaaltonthe specs are just too interesting to miss ;)08:23
bryce_:-)08:24
bryce_yeah I got some presentations to write08:24
bryce_oh hell what is the cat up to08:24
bryce_brb08:24
tjaalton:)08:24
bryce_left the cupboard where we keep the TP open08:28
bryce_apparently toilet paper roll wrappers make a nice crinkley sound when you sink your claws into them...08:28
bryce_anyway, I got sick of debugging the freeze bugs blindly.  I'm going to package up cworth's tools tomorrow and stick them in a ppa.  We already have the 2.6.30-rc2 kernel so the hard part's done08:30
tjaaltonheh08:31
tjaaltonyep, it's really frustrating..08:32
Mirvmy i965 is btw GMA X3100 (mobile GM965), if interested. indeed with the max texture size jaunty seems now rock stable even on heavy duty (like compiling and installing ubuntu in virtualbox at the same time, while spinning the cube and browsing the web)11:09
Mirvagain I missed some words, "with the max texture size patch disabled" I meant11:09
bryce_what's the max texture size in your case?11:30
tjaaltonread the second comment too :)11:35
cwilluare i815's running xaa by default?  (i.e., with an empty xorg.conf, they're running xaa?)14:55
jcristaucwillu: probably yeah15:27
brycetjaalton: btw what's the status on the mesa upload with 103 disabled?17:16
tjaaltonbryce: it was discussed on #u-d a couple of hours ago, but I don't know how it ended :)19:01
tjaaltonjust got back19:01
tjaaltonbbiab ->19:01
brycetjaalton: ok I've committed the change and will upload it at this time19:12
tjaaltonbryce: great, thanks19:18
tjaaltonbryce: I wonder if it's patch 104 giving you the trouble?19:18
tjaaltonbut not Mirv or me19:18
brycetjaalton: jesse also pointed me at https://bugs.freedesktop.org/show_bug.cgi?id=2070419:18
ubottuFreedesktop bug 20704 in Server/general "memory leak: Keep resizing glxgears window with compiz will make X hang" [Major,Reopened]19:18
tjaaltonit _shoudln't_ matter if exa is used, but who knows19:18
tjaaltonoh19:19
tjaaltonsounds like fun, I'll try it..19:20
tjaaltonheh, I could use my laptop as an instrument19:22
tjaaltonthere's this high pitch squeak with glxgears running, and the pitch changes with the size of the window19:23
tjaaltonthe larger it is, the lower the pitch19:23
jbarnesouch sounds like one of your input gains might be turned up too high?19:24
brycehehe19:24
tjaaltonit's not coming from the speaker :)19:24
jbarnesooh19:24
tjaaltonwith nice tremolo19:25
tjaaltonactually more like a vibrato :)19:25
tjaaltonit's leaking memory, but not that much19:26
tjaaltonplugged the charger and now the sound is gone :(19:28
tjaaltonI need a new battery19:29
brycebuzzing battery doesn't sound good19:30
tjaaltonyeah, it's broken alright19:30
tjaaltonwhen I log in I get a popup saying that the charge is 48% and that it means the battery is likely broken19:31
tjaaltonit's been acting weird for some weeks now19:31
mdzhowdy folks19:34
bryceheya mdz19:35
jbarnesooh "installation complete" on my shiny new jaunty install19:36
mdzbryce: I'm now on my affected laptop19:36
mdzbryce,jbarnes: I saw mvo's comment on the bug that PCI ID 8086:2a02 may be a common thread19:41
mdzthat matches what I have as well19:42
mdzI'm not sure if that just means "GM965" or if it's more specific19:42
mdzit looks like there are only two PCI IDs with that name19:42
jcristau#define PCI_CHIP_I965_GM        0x2A0219:43
jbarnesyeah 2a02 is 965GM19:44
mdzbryce: would my time be better spent testing rolling back that mesa patch, or on trying to find a reproducer?19:44
jbarnesI'd say reproduce first, otherwise you won't know if the rollback works19:45
seb128I'm using 00:02.0 0300: 8086:2a02 (rev 0c) and I've no hang freeze and speed issue19:47
jbarnesseb128: with or without the mesa patch?19:47
seb128and I'm using this box full time with compiz one19:47
seb128stock jaunty19:47
seb128no xorg.conf change (out of virtual for multi screen)19:48
brycemdz: yes, start by verifying you have the issue19:50
brycevs. having seb's luck19:50
mvoseb128: and you switch workspaces a lot :)19:51
mvoseb128: rev c as well, just like the bug reporter ...19:51
seb128mvo: yes, I've my mailed full screen on one screen and IRC on an another screen, I think I switched several time by minute all day long19:51
seb128mailed -> mailer19:51
seb128I always switch using the keyboard shortcuts if that makes any difference19:52
brycefor me, it reproduced mostly with doing alt-tab19:52
mdz-miniI've been aqble to recproduce the bug with only a minute or so of tinkering19:53
mdz-miniwell, a freeze anyway19:53
rickspencer3mdz-mini: do you have steps?19:55
brycemdz-mini: wow, excellent19:55
mvomdz-mini: on your t61?19:55
brycemdz-mini: check that you can ssh into the machine and check your syslog to rule out just a kernel bug19:56
mdz-minimvo, yes19:56
mdz-minibryce, yes I can19:56
bryceok good, so chances are high you've got this issue19:56
mdz-minirickspencer3, I played a movie on workspace #4 then switched from workspace 1 to 5 and back many times19:56
* rickspencer3 tries19:57
jbarnesah a movie19:57
rickspencer3mdz-mini: what format moving?19:57
rickspencer3movie I mean19:57
mdz-minirickspencer3, happened to be an mp4, but this happened with DVD as well19:57
mdz-miniI used totem19:57
mdz-minitotem-xine19:57
rickspencer3k19:57
mdz-miniI have a shell on the machine19:58
mdz-mininothing in dmesg19:58
mdz-mininothing in Xorg.0.log19:58
mdz-miniX server backtrace:19:59
mdz-mini#0  0x00007f2522cdbcd7 in ioctl () from /lib/libc.so.619:59
mdz-mini#1  0x00007f2520c493bd in drm_intel_gem_bo_start_gtt_access () from /usr/lib/libdrm_intel.so.119:59
mdz-mini#2  0x00007f251003a241 in intelFinish () from /usr/lib/dri/i965_dri.so19:59
mdz-mini#3  0x00007f2521948ac6 in __glXDisp_SwapBuffers (cl=0xac8d530, pc=<value optimized out>) at ../../glx/glxcmds.c:142519:59
mdz-mini#4  0x00007f252194bde2 in __glXDispatch (client=0xac8e120) at ../../glx/glxext.c:52319:59
mdz-mini#5  0x000000000044e304 in Dispatch () at ../../dix/dispatch.c:43719:59
mdz-mini#6  0x0000000000433d8d in main (argc=10, argv=0x7fff2d101828, envp=<value optimized out>) at ../../dix/main.c:39719:59
bryceis that after trying to kill X or sysrq or something?19:59
mdz-minino20:00
mdz-minihaven't touched it20:00
brycehmm, anyway, drm_intel_gem_bo_start_gtt_access has been associated with the freeze bug, so that's not unexpected20:00
brycehttps://bugs.edge.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/32784420:00
ubottuUbuntu bug 327844 in xserver-xorg-video-intel "[G45] X freezes about 1-5 min after switching compiz on" [High,Triaged]20:00
brycealthough this is one of those cases where the symptoms aren't an exact match for the "traditional" bug20:01
mdz-minithis is one I'm confident I can reproduce20:01
=== rickspencer3 is now known as rickspencer3-afk
rickspencer3-afkI'm running two movies now, and can't freeze my 'puer20:02
rickspencer3-afkI'm going to run rotate forever for a while20:02
mvohm, different pci id for this one: 8086:2e22 20:02
jbarneshm I still don't see it even with movies20:06
mdz-ministrace shows it looping with:20:07
mdz-miniioctl(12, 0x400c645f, 0x7fff2d1015b0)   = ? ERESTARTSYS (To be restarted)20:07
mdz-mini--- SIGALRM (Alarm clock) @ 0 (0) ---20:07
bryceoh speaking of strace20:07
brycethere's another insta-freeze bug if you run 'strace alarm-clock'20:07
brycebut it goes away if you pkill alarm-clock20:07
brycesupposedly, ditto strace firefox, although I couldn't reproduce that one20:08
mdz-minirebooting, will try again with more debug symbols20:09
mdz-minibryce, /topic in this channel is stale ;-)20:09
brycehehe20:09
mdz-miniI happen to be using an external lcd display20:09
=== bryce changed the topic of #ubuntu-x to: Ubuntu 9.04 Coming Soon! | https://wiki.ubuntu.com/X
mdz-minisignificantly larger pixel-wise than the built-in one20:10
mdz-miniso working the gpu a bit harder I suppose20:10
brycemdz-mini: mirrored or extended?20:10
mdz-minibryce, I turn off the buil-in20:11
mdz-minibuilt-in20:11
bryceok20:11
jbarneswhat resolution is the external monitor?20:11
mdz-miniI'm going to try to reproduce on the built-in display to see if that's a factor20:11
mdz-minijbarnes, 1920x120020:11
brycewell, patch 103 involves desktop size, so it could fit our theory20:11
=== rickspencer3-afk is now known as rickspencer3
jbarnesI was also thinking of the infamous pipe underrun20:12
jbarnesthe debugging for that has unfortunately been removed (it was incompatible with kernel interrupt handling)20:13
brycehumm20:23
mdz-miniafter a cold boot, I'm having trouble reproducing20:23
brycetjaalton, superm1: I'm seeing something funky in the mesa git tree20:23
jbarnesI'm spinning a patch for pipe underrun debugging now20:23
tjaaltonbryce: shoot20:23
jbarnesbryce: what do you see?20:24
brycetjaalton, superm1: when I do a debuild from in the git tree, I get different results than if I do a debuild off of apt-get source mesa20:24
bryce .gitattributes         |    4 ++++20:24
bryce debian/changelog       |    8 ++++++++20:24
bryce debian/patches/series  |    2 +-20:24
bryce progs/demos/extfuncs.h |   15 +++++++++++++++20:24
bryce progs/glsl/readtex.h   |   26 --------------------------20:24
bryce 5 files changed, 28 insertions(+), 27 deletions(-)20:24
brycethe .gitattributes progs/demos/extfuncs.h and progs/glsl/readtex.h are mystery changes20:24
bryceI can't see evidence of them in recent git changes though20:25
tjaaltonfrom a debdiff?20:25
bryceI decided to do my mesa patch off of the apt-get source mesa, so our upload is clean20:26
brycethe extfuncs.h change seems to be adding some glVertexAttrib1fv_func variables20:27
brycethe readtex.h change appears to be deleting that header entirely20:27
brycegit says my tree is clean though...20:28
tjaaltonbut where is that diffstat from?20:28
jcristaureadtex.h doesn't exist in git afaict. and never has20:28
brycetjaalton: I did an apt-get source mesa, which gave me a 0ubuntu2 dsc20:28
jbarnesstuff in progs/demos shouldn't matter, they're just test programs20:29
brycetjaalton: I committed my changes to disable patch 103, then did a debuild -S to produce a 0ubuntu320:29
brycethen I debdiff'd those two and got the above20:29
brycejbarnes: yeah I know, this is totally innocuous, however it worries me that there is any discrepancy at all20:29
jbarnesyeah it's a bit weird20:29
brycejbarnes: likely it's just my crappy git skillz20:29
jcristauprogs/demos/extfuncs.h is in the tarball but not in git afaict20:30
tjaaltonjcristau: hmm, seems to be in my copy20:30
tjaaltonof the git tree20:31
jcristautjaalton: hrm.20:31
tjaaltonbut not known by git20:31
tjaaltonso this might be due to _my_ sucky git fu :)20:31
brycetjaalton: btw there was also a patch 05 (not in series though)20:31
tjaaltonbryce: that I can't see :)20:32
bryceok, that one probably was me then :-)20:32
jcristaui usually do 'git clean -dnx' to see if my working copy has changes wrt git20:32
tjaaltonhehe20:32
tjaaltonWould remove lib/20:32
tjaaltonWould remove patches/20:32
tjaaltonWould remove progs/demos/extfuncs.h20:32
tjaaltonWould remove progs/glsl/readtex.c20:32
tjaaltonWould remove progs/glsl/readtex.h20:32
tjaaltonWould remove src/glx/x11/depend20:32
tjaaltonwtf20:32
bryceoops :-)20:33
brycegit clean -dnx  looks clean in my copy20:33
jbarnesstill haven't seen it on my 96520:33
superm1i try to always look at git status before i do a commit and git diff just to make sure i'm only committing what i want to20:33
brycenever heard of git clean before20:33
jbarnesmdz-mini: any luck reproducing?20:34
* bryce appends to "git commands and options to know"20:34
tjaaltonsuperm1: did you upload 0u2 based on 0u1 or the git tree?20:34
tjaaltonI suspect the former20:35
mdz-minijbarnes, not since the cold boot. still trying20:35
superm1tjaalton, i apt-get source'd mesa, added my patches, and then added the same patches to the git tree20:35
superm1so yeah the former; was that wrong to do?20:35
tjaaltonsuperm1: well, more work for you :) (but it confirmed that it's my tree that's buggy)20:35
superm1i also generally do a debdiff between dsc's for packages i've not worked with before to make sure their build systems and/or vcs' aren't injecting new stuff that i dont expect in the debdiff20:37
mdz-miniis there any reason to suspect it's related to suspent/resume?20:38
mdz-minithat would explain why it occurs infrequently for some20:38
brycethe apr 3rd freeze has not been definitively associated with suspend/resume20:39
brycehowever there have definitely been reports about X freeze issues relating to resume20:39
tjaaltonmine dies if I've booted attached to the dock20:39
mdz-miniit seems to need to be in a certain state, but I'm not sure how to get it there20:40
mdz-miniwhen I woke it up after being suspended all day, it was easy20:40
brycemdz-mini: if jesse's right, it might be a memory issue20:40
bryceso either a memory region has to fill, or has to get filled with the right combination of stuff20:41
mdz-minijbarnes, is there an easy way to get the X server to allocate lots of chunks of memory?20:41
tjaaltonI have four gigs, so it could well be hard for me to reproduce20:41
jbarnessuspend/resume could definitely change global chip state that we don't restore20:41
jcristautjaalton: boot with mem=1G? :)20:41
tjaaltonbtw; 20:50 < agd5f> r6xx/r7xx 3D driver pushed20:41
jbarnesmdz-mini: running lots of GL apps pounds the memory manager pretty hard20:41
jbarnesor stuff like openarena or other big apps20:41
tjaaltonjcristau: good idea, and actually only 3G is available anyway :)20:42
tjaaltonit has leaked 200meg so far, in 2h20:43
tjaaltonthere, no swap20:44
jbarnesoops suspend/resume failed... seems to have crashed my X server (had a video playing)20:45
brycetjaalton: sweet20:45
mdz-miniok I just reproduced again20:45
bryceok, I'm going to go snag some lunch, then work on the freeze debug tool packaging.  be back shortly20:46
jbarnesah no wait X is up, but hung20:46
jbarnesyep in start_gtt20:46
jbarnesright after resuming20:46
rickspencer3So I just ran the rotate forever script with 100ms sleep with three movies running on three desktops20:46
mdz-minidifferent stack trace20:46
rickspencer325 minutes later, the system is working fine20:47
mdz-minijbarnes, we have a different bug# for that20:47
mdz-miniI think20:47
mdz-minifor a freeze directly after resume20:47
mdz-minilatest stack trace20:48
mdz-minihttp://pastebin.ubuntu.com/153009/20:48
Mirvwe would almost need a table about who is trying what on which chipset and which driver20:48
Mirvbut at least I can fairly surely say the ~bug359392 packages from PPA work as well as did my own build without the max texture patch. used for 10 hours and now having the rotate script running20:49
tjaaltonMirv: do you have plenty of RAM?20:50
Mirvtjaalton: 2 gigs20:50
tjaaltonpretty standard these days I guess20:50
mdz-minijbarnes, what sort of info might I be able to get from it while it's hung?  do you want a login?20:50
jbarnesreg dump20:51
jbarnesor if you have the kernel package & gpu tools package you could get a batchbuffer dump20:51
mdz-minijbarnes, regdump: http://pastebin.com/f38c68b8820:51
jbarnesmdz-mini: so did you have to suspend/resume to reproduce it?  or just plug in the external monitor?20:52
mdz-minijbarnes, when I had trouble reproducing, I tried suspend/resume a few times, then launching more apps, then adding some glxgears instances20:53
jbarnesok so at least one suspend/resume was required...20:53
mdz-minithe setup when it finally froze was video + browser + 2xglxgears + terminal all on separate desktops20:54
mdz-miniafter a few suspend/resume cycles20:54
mdz-mininot sure which elements were essential20:55
mdz-miniif I could get it unwedged it would be interesting to try again with the same instance of the server20:56
* rickspencer3 tries suspend/resume then repro20:56
=== rickspencer3 is now known as rickspencer3-afk
mdz-minijbarnes, bryce is it more useful for me to keep trying to distill this down to a simpler reproducer or to try to analyze the frozen state?20:57
jbarnesthe register dumps didn't have anything interesting that I could see20:59
jbarnesw/o the kernel patches I'm not sure there's much else we can grab unless dmesg has an oops or something20:59
mdz-minino such luck21:00
jbarnesif you can reproduce it fairly easily (maybe try a few more times) then you could start bisecting21:01
mdz-minii915_wait_irq                                      /usr/X11R6/bin/X :0 -br -audit 0 -auth /var/lib/gdm/:0.Xauth -nolisten tcp vt721:01
mdz-mini(wchan)21:01
jbarnesyeah it's just waiting for some rendering to finish21:01
jbarnescool mine hung in suspend this time21:01
jbarnestotally wedged21:02
jbarnesug21:02
Mirvwith the PPA mesa, I'm (i965 2a02, 2GB RAM) now running successfully rotate-forever with Flight Gear, full screen looping video, firefox and two glxgears while doing suspend-resume-cycles. I guess I could try with mem=1G and see if I get it to hang.21:03
mdz-miniMirv, I think we're talking graphics memory here rather than main memory21:04
Mirvmdz-mini: well, I guess intel allocates it from the main memory relative to its size, as it does not have own integrated memory usually21:06
jbarnesyeah gem allocates from main memory21:06
jbarnesand swaps stuff in and out of the graphics mapping21:06
brycemdz-mini: boiling down the steps to reproduce would be the most helpful21:07
mdz-minibryce, ok, I'll start working on a script21:07
Mirvbryce: did you btw have a) amd64 b) less than 2GB of RAM? and 2a02?21:07
brycemdz-mini: at some point I'll want you to also put on the 2.6.30-rc2 kernel and verify you can still reproduce it there, since the debug tools have to be run on that kernel21:07
bryceLinux salisbury 2.6.28-11-generic #41-Ubuntu SMP Wed Apr 8 04:38:53 UTC 2009 i686 GNU/Linux21:08
bryceMemTotal:        1534756 kB21:08
bryce00:02.0 VGA compatible controller [0300]: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller [8086:2a02] (rev 0c)21:09
bryceSubsystem: Dell Device [1028:01f3]21:09
mdz-minijbarnes, doesn't it allocate a fixed chunk regardless of how much main memroy there is? or am I confused?21:09
jbarnesmdz-mini: no not anymore... with GEM it's all dynamic21:09
mdz-minifun21:10
brycejbarnes: btw fyi, gpu tools which don't need to be run as root, we can add to apport (our automatic bug reporting script)21:11
jbarnescool21:11
Mirvbryce: ok, I was just guessing if somehow dropping 103 only helped amd64 users, but I've yet to check if tjaalton is also running amd6421:11
jbarnesI'd guess the big ones need root though, since they access debugfs files21:11
brycejbarnes: intel_reg_dump unfortunately appears to need root, which is why we aren't including captures of that for all bug reports (tho would be nice if we could)21:11
tjaaltonMirv: 32bit21:12
Mirvtjaalton: ok, not a factor then. less than 2GB memory?21:12
tjaaltonMirv: no, 321:13
jbarnesmdz-mini: another thing to check would be to see if you're still getting gfx interrupts after the hang21:13
jbarnesgrep i915 /proc/interrupts21:13
Mirvtjaalton: ok, some magic then might be in having less than 2GB memory, but otherwise there is nothing in common21:13
tjaaltonMirv: I'll boot with mem=1G so we'll see what happens21:16
mdz-minijbarnes, will check that next time21:24
jbarnesI might just have seen it too21:31
jbarnesI was idle though after a resume21:31
jbarnesno more interrupts21:31
jbarnesI wonder if pci=nomsi will help21:31
jbarnesalso the render clock gating reg looks busted21:32
brycemdz-mini: also at some point you'll want to test the mesa upload I just did, to see if your freeze is one that is fixed by dropping this patch 10321:37
bryceI think it's still in the approval queue atm21:37
mdz-minihasn't frozen yet but it rendering very slow21:38
mdz-minicame back to normal after a while21:39
jbarnesmdz-mini: your last reg dump was from after the hang right?21:39
mdz-minijbarnes, correct21:39
brycemdz-mini: does the slowness increase over time or is it constantly slow?21:39
mdz-minibryce, it gow slow and then nirmal again21:39
mdz-minigot21:39
mdz-minijbarnes, I ran the reg dumper twice, that was the second run in cast that matters21:40
jbarnesok21:40
jbarnesshouldn't matter21:40
mdz-minithis mini 9 keyboard is awful21:40
* bryce is curious if the mini 12 kbd is better21:43
mdz-miniI wonder if the vt switch on suspend/resume is a factor21:45
mdz-minihmmm21:45
jbarnesmdz-mini: could be... if you can reproduce it across vt switch rather than suspend/resume it would mean the bug probably isn't due to lost chip state21:45
mdz-miniI ran my repro script for 10 minutes without a crash21:46
mdz-minithen suspended and resumed21:46
mdz-miniran it again21:46
mdz-miniand it crashed after 10 seconds21:46
mdz-minibacktrace the same as last time21:47
mdz-minino i915 interrupts21:47
mdz-minijbarnes, anything else I should look at?  next I'll reboot and try with a vt switch21:48
jbarnesdoes grep i915 /proc/interrupt show that it's MSI21:48
mdz-mini2295:     449673     415505   PCI-MSI-edge      i915@pci:0000:00:02.021:48
jbarnesok yeah try with vt switch21:48
seb128mdz-mini: what do you do exactly to trigger it?21:50
mdz-miniseb128, I'll post the script21:50
seb128I've tried with video playing, glxgear, workspace switching, alt-tab, suspend resume, no such issue there21:50
seb128same PCI-MSI-edge on my config21:51
seb128mdz-mini: thanks21:51
mdz-miniit just start some apps and switches workspaces21:51
mdz-ministarts21:51
seb128ok, I guess there is something else than the video chipset needed there21:51
seb128I've been using this box full day for the week and never ran into the issue, so I don't think those actions will trigger it now21:52
mdz-minijbarnes, vt switch did not seem to trigger it, tried twice21:54
mdz-minisuspend/resume seemed to do it21:55
jbarnesok21:55
jbarnescare to try pci=nomsi21:55
jbarnesbtw what was the irq count on the last hagn?21:55
jbarneshgn?21:55
jbarneshang21:55
mdz-mini2295:      52909      53155   PCI-MSI-edge      i915@pci:0000:00:02.021:55
mdz-miniI'm going to add a suspend to the script, confirm that works after a warm boot, then if it's reliable i'll try nomsi21:56
jbarnessounds good21:56
mdz-minino joy22:10
jbarnesnomsi didn't help?22:11
mdz-minino, reproducer isn't reliable enough yet to test22:11
jbarnesyuck22:11
jbarnesI'm putting together a kernel patch to give us some additional debug info too22:11
mdz-miniok22:12
brycebtw, the 2.6.30-rc2 kernel is at http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.30-rc2/22:13
jbarneshas anyone been able to reproduce with a more recent kernel?22:13
bryce(I'd love to chunk that into a proper ppa if anyone has a clue on how to do that)22:13
mdz-minibryce, what's stopping you from just uploading it?22:19
mdz-miniI'm completely failing to reproduce anymore22:20
tjaaltonno source package for mailine builds22:20
tjaalton+n22:20
mdz-minihmm, ask the kernel team. surely they generate one and just don't publish it yet22:21
bryceheisenfreeze22:22
brycereproducibility is inversely proportionate to the availability of means to debug22:23
* albert23 has the compiz freeze with 2.6.30-rc222:28
albert23intel_reg_dump: http://paste.ubuntu.com/153058/22:29
albert23intel_gpu_dump that is22:29
mdz-minijust got it again22:30
mdz-miniafter some random number of tries with the script22:30
brycehrm, this intel-gpu-tools package appears to need libdrm 2.4.6... >just< newer than we have in jaunty22:31
brycejbarnes: is this going to work if I force it to build against libdrm 2.4.5 or do I really truly need .6?22:32
jbarnesbryce: just make sure you skip 2.4.7 and go to 2.4.922:32
bryceerm, the problem is more one of packaging for use with jaunty...22:34
bryceeither I need to get the tool to build against the libdrm we have, or I need to package up a newer libdrm as well22:34
jbarnesI'm not sure what it requires22:34
jcristaugetting the packages from sid would probably work, if this is for debugging?22:34
brycejcristau: sort of; I'm trying to get this packaged for other ubuntu-ers to use22:35
jcristauthen maybe putting the sid packages into a ppa?22:36
bryceyeah maybe22:36
brycejcristau: do you have intel-gpu-tools already packaged?22:36
jcristaunot yet22:37
bryceguess I should have asked that before I started...22:37
jcristauwas considering replying to cworth to ask for a tarball release actually :)22:37
bryceyeah that'd be nice22:37
tjaaltonI can't seem to be able to exhaust the RAM even without swap and mem=1G22:37
jcristauanyway, week end now. good luck with the debugging.22:38
brycecya jcristau22:39
bryceok, guess I'll snag the debian libdrm into the ppa, then toss intel-gpu-tools in there and cross my fingers that it builds22:39
tjaaltonso now dustin has the same laptop as I do, and he's seeing the freezes..22:40
mdz-minibryce, script emailed22:41
mdz-mininot reliable but it's the best I have so far22:41
bryceok thanks22:42
mdz-minirickspencer3 just called saying the script reproduced the problem for him, first time22:49
jbarnesI just posted a patch to the launchpad page that might dump some additional info22:51
jbarnes(assuming we're getting an error interrupt)22:52
mdz-miniI'll see if we can get a module built for our stock kernelwith the patch22:53
jbarnesI hope it patches in ok... upstream has kms while 2.6.28 doesn't22:54
albert23jbarnes: Did you see my intel_gpu_dump for the freeze? http://paste.ubuntu.com/153058/22:54
jbarnesalbert23: yeah was checking it out with anholt22:54
albert23jbarnes: do you need anything else from the debugfs?22:56
jbarnesalbert23: yeah the other files would be good to have too22:56
jbarnesi915_gem_active 22:56
jbarnesthere are quite a few, but many are probably empty22:57
albert23jbarnes: and some seem to be locked22:57
brycemdz-mini: sweet22:57
mdz-minibryce, where can I get intel_gpu_dump?22:58
brycehttps://edge.launchpad.net/~ubuntu-x-swat/+archive/x-freeze-test22:58
brycemdz-mini: unfortunately it has a deps on a newer libdrm, so am working on that presently22:58
brycemeantime you can snag it from debian22:59
mdz-minibryce, how about a atatic amd64 binary?22:59
mdz-ministatic, even22:59
bryceI can't build it in my regular build environment due to the libdrm dep, but am hoping the ppa can do it22:59
bryceok, theoretically the tools are there now -- https://edge.launchpad.net/~ubuntu-x-swat/+archive/x-freeze-test/23:02
brycebut we'll have to wait for ppa to get them all built23:02
brycenext... sussing out kernel source packages...23:03
mdz-mininxvl says the repro script locked his system up tight (no ssh)23:05
jbarnesmdz-mini: can you send me the script?  jbarnes@virtuousgeek.org23:06
mdz-minijbarnes, it's attached to the bug, but sure, I'll send a copy23:08
jbarnesoh I didn't see it, I'll grab it from there23:08
mdz-minisent23:08
mdz-miniit needs to run under compiz, requires that wmctrl is installed, and needs a 1x6 workspace layout23:09
albert23jbarnes: I have added the files to the LP bug23:10
jbarnesalbert23: cool thanks23:10
brycealbert23: ooh good idea23:10
brycejbarnes: maybe you can adapt that into something that could be included in intel-gpu-tools23:10
jbarnesyeah cworth and anholt are rapidly improving the tools23:11
jbarnesI think the reg dumper will move there soon too23:11
brycejbarnes: it is rather ubuntu-centric at the moment but could probably be adapted without too much work23:11
brycesweet23:11
jbarnesone day we'll even get chip reset right I hope, which will make these types of hangs a little less fatal23:11
jbarnesugg... "make install" from a kernel tree still doesn't build an initramfs for me, nor does it update grub23:14
brycejbarnes: shall I also stick your -intel underrun patch into this PPA, or would you prefer to keep this separate from the regular testing?23:14
jbarnesbetter keep that one out23:14
bryceok23:15
mdz-minialbert23, your stack trace matches (one of) mine23:19
jbarnesgeez I can't even login now23:25
jbarnesafter updating to the latest bits23:25
mdz-minijbarnes, ??23:26
jbarneshangs the machine while playing the login sound23:26
mdz-miniare you using ext4 or anyything crazy like that?23:26
jbarnesnope23:27
jbarnesthat's with my test kernel though23:28
jbarnesI could very well have broken something23:28
mdz-minijbarnes, I've noticed that when it's wedged, sometimes I can do a clean reboot, sometimes it hangs up on the way down and only responds to sysrx23:30
mdz-minisysrq even23:30
jbarnesaha!23:32
mdz-minirickspencer3 reports that repro.sh froze his system without a suspend/resume23:33
jbarnes[drm:i915_driver_irq_handler] *ERROR* render error detected, EIR: 0x0000000123:33
jbarnes[drm:i915_driver_irq_handler] *ERROR* instruction error: 0x0000000123:33
mdz-minijbarnes, is that your new debug?23:33
jbarnesyeah23:33
mdz-miniwoo23:33
bryceinstruction 1 eh?23:33
jbarnesthat's the instruction error reg23:33
jbarnesnow to lookup what that means :)23:33
jbarnesoh well that's not very useful it gave me a reserved value23:34
brycereserved value?23:34
jbarnesthe low 3 bits indicate the ring the instruction came from23:35
jbarnesvalues of 1-7 are marked "reserved"23:35
jbarnescould be a doc error of course23:36
* jbarnes updates his patch to get more info23:36
jbarnesfwiw netconsole helped out here23:36
jbarnesthe machine hard hung but I got quite a few messages anyway (even though my ssh sessions were dead)23:37
mdz-minii have always been able to ssh in, though there are some reports similar to yours23:37
bryceyay!  finally intel-gpu-tools has built debs:  https://edge.launchpad.net/~ubuntu-x-swat/+archive/x-freeze-test23:50
brycejbarnes: also, I've stuck the underrun patch here:  https://edge.launchpad.net/~bryceharrington/+archive/green23:50
brycejbarnes: I'm not certain that the underrun patch is appropriate for 311895 or not; if not, if you could suggest a better bug it would be useful for, I'll update the name23:51
jbarnesbryce: well it sounds like that bug already has output from when the debug code was in23:54
jbarnesso we know it's an underrun23:54
bryceright... is there a more appropriate bug to use this patch with?23:54
jbarnesbryce: have you ever seen the type of jitter underruns cause?23:56
* jbarnes digs up a video23:56
mdzbryce: so I can't use intel-gpu-tools without upgrading libdrm2, which is part of the stack that we're inspecting right?23:56
brycemdz, correct - also need 2.6.30-rc223:57
jbarnesanything that looks like this https://bugs.freedesktop.org/attachment.cgi?id=24795 is like to be underrun related23:57
mdzI'd rather not change out any components when I have it in a reproducible state23:57
jbarnesso if you get a report that sounds like that, the debug patch will confirm it23:57
brycejbarnes: ok I see.  23:57
brycemdz, alright23:58
bryceI'm going to slap these tools on my laptop and have a go at it23:58

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!