/srv/irclogs.ubuntu.com/2009/12/21/#ubuntu-kernel.txt

cooloneyhughhalf: i am back to home now with a winery machine, sorry for the confusing email from my iphone, heh10:23
cooloneyikepanhc: did you got the winery machine?10:23
apwKeybuk, i see we 'randomly' broke 18s today10:40
Keybukyeah, those minis must love the cold10:40
apwheheh ... yeah leave the heating off and we'll hit the target10:41
apw6.71 to X ready ... now thats encouraging10:42
Keybukwork for this week is to get the new mountall in10:42
Keybukthat'll mean we can use devtmpfs10:42
Keybukthat might save a lot of mknod() leather10:43
Keybukand then will be able to profile udev's rules to see what's taking the time10:43
Keybukwhilst also being much more ready to drop plymouth in10:43
apwKeybuk, i assume the exec of upstart is the gap between the end of wait-for-root and the start of mountall10:43
Keybukapw: most of the gap is cleaning up the initramfs actually10:43
apwyeah that sounds awsome ... those mknods are sync i think10:43
apwKeybuk, hrm, is there any reason for that to be sync?10:44
apwof course fixing that means looking in busybox ... gah10:44
Keybukprobably not, but then in actual numbers it takes about 0.05s on my testing10:44
Keybukklibc not busybox10:44
Keybukpart of the gap between wait-for-root is also the time it takes to mount the ext4 root10:45
apwahh fair enough ... hard to profile that gap for sure10:45
apwKeybuk, so do you think plymouth will slot in this week or is that a later thing10:46
KeybukI think I'll put Plymouth in in the new year10:47
Keybukwill see how things work out timing wise10:48
* apw notes that apparmor is showing up twice in userspace still10:48
apwas waht looks like an upstart job, and as D37apparmor10:48
apwS3710:48
Keybukyeah10:48
apwthat seems unlikely to be right10:48
Keybuklots of fruit to hit with the shotgun yet :p10:49
apwbah no jj to hastle 10:50
KeybukI like the fact that Phoronix can't read bootcharts11:00
Keybukthey've published 9.10 and 10.04 Alpha 1 charts11:00
apwKeybuk, where are those11:00
Keybukit makes it look like we dropped from 59s to 24s11:00
Keybukhttp://www.phoronix.com/scan.php?page=article&item=ubuntu_lucid_short&num=111:00
apwthey also think our kernel is 2.6.31 based11:02
Keybukyeah, Phoronix's reporting is always ... comical a best11:04
Keybukwavingly inaccurate at worst11:04
apwit puts their output in context for sure11:04
* apw reads their previous article, on performance in 10.04 being terrible11:06
apwwhere the first test they say we consume 2x the CPU, while ignoring the fact we also averaged 2x the frame rate11:07
Keybukyeah, they have their test suite, and they're sticking with it11:07
Keybuk"omgz! Ubuntu takes twice as long to do twice as much" etc.11:08
apwKeybuk, what standard-version does one have to be at to get the new upstart understanding dh_initcall |11:11
Keybukno idea11:11
apwKeybuk, ok this double apparmor thing is cause networking needs some of apparmor to secure the network, and the main startup is still in sysv init11:16
Keybuksure, that's a bug11:16
apwsounds like upstartification of apparmor might save some duplicated effort11:16
Keybukthe main startup needs to be moved to upstart too ;)11:16
apwheh11:16
mihuHi. I need to recompile one single kernel module of my currently running kernel. I think I tried the most straight-forward way: "apt-get source linux-source-2.6.31" (which will apply linux_2.6.31-16.53.diff.gz), "cd linux-2.6.31", "cp /boot/config-2.6.31-16-generic .config", "make drivers/media/video/mxb.ko". Unfortunately, insmod'ing the new module fails with "-1 Invalid module format", dmesg says "no symbol version for module_layout". An12:56
apwmihu you should only need the headers installed to compile the module13:01
apw/lib/modules/2.6.31-17-generic/build is your 'source' for a make13:02
apwit has the config etc and all the headers etc your module should need13:03
mihuapw: Ok, I understand. But I want to rebuild the module from the official source tree. Is it possible to do that without copying the source code around?13:04
mihuI can understand that "apt-get source linux-source-2.6.31" and copying the .config around does not produce the correct environment for recompiling a kernel module, although this disappoints me a little bit.13:07
apwmihu, which thing did you get, you say linux-source up there13:08
apwapt-get source linux-2.6.31....-generic ought to13:08
mihuapw: Yes, plain "linux-2.6.31" (no "generic") because it said "Linux kernel source for version 2.6.31 with Ubuntu patches". "aptitude search linux-source" does not show any package with generic, unfortunately.13:10
mihuapw: Just "linux-source", "linux-source-2.6", "linux-source-2.6.31".13:10
apwyep but you can ask for the source for the binary packages, and thats the right way to get the source package for making a kernel13:11
mihuapw: Ok, I understand. If I do "apt-get source linux-image-2.6.31-16-generic" then I get the same source tree, so the problem persists.13:16
* apw downloads it13:17
mihuapw: Thanks for helping me out. Actually you can try the same steps as above, even if you don't have the hardware.13:18
* apw is going to compare it to the tree that the source package was built from13:19
mihuapw: Now I tried "make drivers/media/video/mxb.ko" in "/lib/modules/2.6.31-16-generic/build", but this does not get far. "make[1]: *** No rule to make target `kernel/bounds.c', needed by `kernel/bounds.s'.  Stop"13:24
apwyeah that is mixing two use models13:29
apwmihu, ok i don't quite understand what apt-get source thinks it is doing as for me it gets the latest source regardless of what i think i am asking for13:33
apwcan you configmr the version in the top of devian/changlog matches uname -r13:35
alex_joniafaik apt-get source is not quite right in this case, it will get the latest sources for 2.6.3113:38
alex_joniyou probably want apt-get install linux-source or linux-headers13:38
alex_jonifor the specific package name13:38
apwthe easiest way to get the exact source for the version is to get the source from our kernel git repository13:39
apwwhich has tags for each version13:39
apwi am puzzled by apt-get source's behaviour, i am assuming its a archive limitation13:40
mihuapw: Sorry, which file do you mean? "debian/changelog" Where should I look for it?13:40
apwtop line, does that version number match your uname -r13:40
mihualex_joni: Thanks for your help. That's fine with me. All I want to do is to recompile "drivers/media/mxb.ko" against my currently running kernel.13:40
apwi am suspecting it does not, this is from the apt-get source linux-image-xxx-generic13:41
apwi think you said you have a -16 binary installed, and i suspect your source will be the -17.54 from -proposed13:41
mihuapw: It says (2.6.31-16.53), while uname -r is "2.6.31-16-generic".13:41
alex_jonithen use modinfo on the fresh compiled module13:42
apwthen that may well be the right version hrm13:42
alex_joniand see what it says13:42
mihualex_joni: "modinfo drivers/media/video/mxb.ko" looks sane, but the file is huge (212kB) in comparision to the original file which is about 22kB. 13:43
mihuapw: I think the version is alright. It's just that somehow the build does not produce loadable modules. This puzzles me.13:43
apwits like not stripped, images are first makde debug13:43
alex_joniyup13:43
mihuapw: Ok, it's build with debug turned on, I understand.13:44
apwhttp://www.cyberciti.biz/tips/build-linux-kernel-module-against-installed-kernel-source-tree.html13:44
apwthat web page details how to get a module build, as an external module13:44
apwso you could try pulling mbx.c out of the tree you have there and building it in that way13:45
* apw has to admit he normally just builds the whole kernel13:45
apwand right now he has a pre-release installed and can't get launchpad to give him the right source to do a test ... arrrg13:46
mihuapw: Thanks for the link. I tried pulling out mxb.c and could produce a working kernel module. Now you say, so then do this instead. But I have a usability problem. I want to modify various other modules as well afterwards and I don't like the idea of copying source files around just to compile them. Ideally I want to compile them from the source tree I grabbed, so I can diff them easily later on.13:48
mihuOk, I think I found something. The original "mxb.ko" has "vermagic:       2.6.31-16-generic SMP mod_unload modversions 586". My new "mxb.ko" has "vermagic:       2.6.31.4 SMP mod_unload modversions 586". The "Makefile" indeed says "EXTRAVERSION = .4", while Debian/Changelog says (2.6.31-16.53). I'm confused.13:52
mihuHm. /lib/modules/2.6.31-16-generic/build/Makefile says "EXTRAVERSION = .4" as well.13:54
mihuOk, I give up. I copied the source for my kernel module to a separate directory. Once I tried " make -C /tmp/linux-2.6.31/  M=`pwd`modules", the other time I did "make -C /usr/src/linux-headers-`uname -r` M=`pwd` modules". The former did not produce a correct module, while the latter did. The problem is in the run of "modpost". For the former, the file "mxb.mod.c" will look differently and the ____versions[] array does not contain any of t15:02
mattimihu: .. any of t..?15:04
mihu... any of the unresolved symbol names that this module requires.15:04
matti:)15:05
mihuI am now checking Module.symvers...15:05
mihuOk, success. The goal is to recompile one single kernel module from the currently running kernel. "apt-get source linux-source-2.6.31" , "cd linux-2.6.31", "cp /boot/config-2.6.31-16-generic .config". Then you can do "make -C /usr/src/linux-headers-`uname -r` M=`pwd` drivers/media/video/mxb.ko" to compile one single kernel module.15:13
matti:)15:13
apwshame he is gone, that makes sense now, as EXTRAVERSION gets overridden in the debian build system16:06
apwjjohansen, i uploaded the -ec2 kernel you tested for me last week16:10
apwand i'll be spinning another one 'soon' for testing.  will let you know when its done16:10
jjohansensweet, and will do16:10
* apw sighs at the sheer size of the 2.6.32.2 update. i am so glad we don't have to SRU them at this stage16:14
tjaaltonapw: get this one too, otherwise r600+ fails to boot http://marc.info/?l=dri-devel&m=126137027403059&w=216:19
apwtjaalton, with kms or always?16:20
tjaaltonapw: kms, but it's on by default now..16:20
apwtjaalton, indeed just interested in just how bad16:20
apwtjaalton, unfortuanate he says 2.6.32.2 in it given it didn't make .2 ... do we know why it didn't get sucked up?16:22
tjaaltonapw: this was post .32.216:22
tjaaltonjust an oversight I guess16:22
apwthanks for the pointer ... i'll add it to my list16:23
apwtjaalton, how is radeon KMS shaping up ?16:24
tjaaltonwhat about the four I sent to the list? some or all of them might already be in .216:24
tjaaltonI'm not sure, tormod should be better suited to answer that :)16:24
tjaaltonI lack the hw16:24
tjaaltonbut there have been some bugs reported16:25
apwtjaalton, what was the subject on those four?16:26
tjaalton[git pull] drm fixes (fwd)16:26
tjaaltonoh, nine commits not four16:27
apwahh a git pull ... must get that fixed so patchworks shows git pull requests16:27
tjaaltonwhat about nouveau? the debian kernel team wants to pull it for squeeze and asked debian-x@ for comments if it's a good idea or not (no replies so far, though)16:32
Sarvattis "drm/i915: remove render reclock support" in that by any chance? :D16:34
tjaaltonno, they were mainly for radeon16:35
rtgtjaalton, I think nouveau is going to have to be an LBM package. the required DRM changes are reported to be extensive.16:37
tjaaltonrtg: only four changes to the core16:38
tjaalton*commits16:38
apwyeah there is a possibility we can get it in, its on my list to build this branch up16:38
apwhope to get to it tommorrow am16:38
rtgtjaalton, apw: how about sending the commits on the k-t list as well?16:39
tjaaltonrtg: nouveau? is forwaring them like that radeon one ok?16:40
tjaalton+d16:40
apwrtg i have a branch someone sent me to look at16:40
apwi've just had a sec to, hoping to get to it next16:40
rtgtjaalton - I was just interested in the commit IDs, maybe gitweb URLs.16:42
apwrtg i'll find that branch and send you a copy16:43
rtgthinks16:43
rtgthanks*16:43
tjaaltonthe branch(es) has/have probably changed since, but the emails have a list of commits16:48
=== Jeeves__ is now known as Jeeves
=== Jeeves is now known as Jeeves_
lcrahey, folks. when 2.6.33-rc is going to be packaged for lucid? any chance to get it off some ppa in advance?20:56
joaopintolcra, check the topic, 2.6.32 will be the version for lucid21:08
lcrajoaopinto: so this is final? to effort is going to be put to package it even for experimentation?21:08
lcrano*21:09
joaopintolcra, afaik yes, it's final21:09
joaopintoI believe there is a ppa with the latest kernel, if you really want to experiment21:09
joaopintolcra, https://wiki.ubuntu.com/KernelTeam/MainlineBuilds21:11
lcraany particular feature backports possible for kernel in lucid? i'd personaly like to have write barrier support on md raid1021:11

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