/srv/irclogs.ubuntu.com/2009/06/09/#ubuntu-kernel.txt

power885can anybody help in kernel programming am just newbie to linux03:54
power885hello anybody der??03:55
power885hello anybody der??03:55
power885is der anybody to help me in kernel programming03:57
dholbachhiya - can somebody tell me if I should report http://paste.ubuntu.com/191481 - or is that a known bug and being worked on already?08:52
dholbachI just get a very quiet rustling sound instead of music on karmic08:53
amitkdholbach: best to report the bug08:53
dholbach(same using 'aplay' too)08:53
dholbachubuntu-bug audio? or ubuntu-bug alsa?08:53
dholbachwhat was it again?08:53
amitkalsa08:53
dholbachgracias08:54
dholbacherm no08:54
dholbachthere's "no package alsa"08:54
amitkalsa-base08:54
amitksorry08:54
dholbachah yes, looking much better08:54
sorenErr... I'm quite sure, it's "sound"08:55
sorenPerhaps it's not implemented yet?08:56
amitksoren: that was a proposal at UDS08:56
sorenAh, ok. Sorry :)08:57
amitkfunctionality-based bug filing or some such thing08:57
sorenhttps://wiki.ubuntu.com/DesktopTeam/Specs/Karmic/SymptomBasedBugReporting08:58
sorenI just saw it mentioned so many times I thought it was here already :)08:58
amitkright09:00
dholbachthanks amitk - reported, bug 38509409:01
ubot3Malone bug 385094 in alsa-driver "[karmic] very quiet rustling sound instead of music" [Undecided,New] https://launchpad.net/bugs/38509409:01
=== NCommander is now known as ApportRetracerPo
=== ApportRetracerPo is now known as NCommander
apw*ANNOUCE* today is a kernel team bug day ... https://wiki.ubuntu.com/KernelTeam/BugDay/2009060910:01
=== alex_jon1 is now known as alex_joni
=== smb changed the topic of #ubuntu-kernel to: Karmic Kernel Plan: 2.6.31 -- Kernel Team Bug Day https://wiki.ubuntu.com/KernelTeam/BugDay/20090609
* apw wonders when dtchen choses to have his wake time10:07
apwTheMuso, you still in the wake land?10:08
TheMusoapw: indeed10:09
TheMusoapw: its 7:10PM here.10:09
apwjust wading through some old bugs, for the bug day and stubled across10:10
apwthe bug regarding muting PCM leading to crackles when sound is played10:10
apwwhich is believed to be pulse audio related10:10
apwand wondered if you had any background on it, and/or advice as to how to10:10
apwgo about moving it forward10:11
TheMusoI think dtchen may know more than me with that, I am not sure whats going on at this time, without checking the bug again.10:11
apwTheMuso, the bug i have i don't think anything is going on :)  but i can sync with dtchen happily10:12
TheMusook10:13
apwsmb, i have found a bug which was fixed by a stable update, this is in intrepid we interested in updating the changlog that far back?10:46
smbHm, I do not think there will be much attention to that now. Lets restrict that to the Jaunty kernel. 10:48
apwsmb, fair, ack10:50
apwsmb, any idea if the bug list is live in any sense?  seems to never update for me11:40
apwmakes working with it very laborious11:43
apwi wonder if we could get tags added to them, and remove them as we go11:44
amitkapw: leanne's list? It's live more me, updates take a few minutes to be seen though.11:45
apwyeah leans list11:45
apwamitk, none of them have changed opn your list for me11:45
amitkapw: coz I haven't worked on any yet :)11:45
apwie your bit looks unchanged here11:46
apwso you have no idea then!11:46
apwif it was broke this time i mean11:46
amitkapw: it did work on previous bug days11:46
amitkaah, point.11:46
apwyeah it did indeed.  not so well today11:46
apwpoop, its obviously worked at least a bit as its got stuff some people did yesterday updated in it11:47
apwahh its part updated.  hrm11:47
apwand that happened in the last 20 mins i recon11:48
apwstrnage.  i do note edge is SLOOOO today so perhaps its slowing the updates too11:48
cjwatsonthere's some firmware in the main kernel packages in karmic that needs to be delivered to d-i. There's already a separate linux-firmware source package, though, that squats the obvious package names for this (nic-firmware, scsi-firmware). What would you guys like to do about this?11:55
cjwatson(this is bug 384861, regarding bnx2)11:57
ubot3Malone bug 384861 in debian-installer "Broadcom NetXtreme II (BCM5708) not detected by installer [karmic]" [Undecided,New] https://launchpad.net/bugs/38486111:57
cjwatsonor maybe it ought to just deliver the firmware in the nic-modules package along with the bnx2 module itself; I suppose there's no real reason to keep it separate11:57
KeybukII: Checking ABI for generic...11:59
KeybukEE: Previous or current ABI file missing!11:59
Keybuk    /build/buildd/linux-2.6.30/debian/abi/2.6.30-8.10~boot2/amd64/generic11:59
Keybukmake: *** [abi-check-generic] Error 111:59
* Keybuk explodes11:59
Keybukhow the hell do I avoid this?11:59
Keybukapw: around?12:01
cjwatsonmkdir -p debian/abi/2.6.30-8.10~boot2 && touch debian/abi/2.6.30-8.10~boot2/ignore # ?12:02
Keybukcjwatson: I don't want to ignore it, I want to know how to get what should be in that directory12:02
apwKeybuk, yep here12:02
apwrun getabi's12:03
Keybukapw: how do I make the debian/abi/2.6.30-8.9 for your upload?12:03
Keybukapw: where is that?12:03
apwdebian/scripts/misc/getabis 2.6.30 8.912:03
apwthough if you have changed it in any way which changes the ABI you will still need to either ignore it12:03
apwor up the ABI number too12:03
* Keybuk only mucked around with static functions12:04
apwthough i thought the current tree _has_ the ABIs in it already12:04
KeybukI went from the source p ackage12:04
apwthen you won't have them, as you can't know them before the upload12:06
apwso they get committed with the startnewrelease commit in the git tree12:06
apwbasically your 'error' is making a new changelog stanza12:07
apwif you update the top one and add your ~boot2 you won't hit the issue i beleive12:07
apwnot ideal, but ok for debugging12:07
apwKeybuk, am i making sense?12:08
Keybukyup12:08
Keybukthat makes sense12:08
Keybukthanks :)12:08
apwphew, np12:08
sorenWhat's the maximum limit of the size of the initramfs?12:09
Keybukthere isn't one12:12
Keybukthough there's a multiplicative speed penalty for putting anything inside it12:12
Keybukso the smaller the better12:12
amitkogasawara: why do we have already 'incomplete' bugs on the list today? I can't set it to "really incomplete"...12:13
apwyeah my understanding of initramfs was it being better than initrd12:13
apwas it could grow to ram size12:13
apwamitk, those are for review, if they are open without response they go Won't Fix, is on the intro page12:14
apwwoh, if i reload three times on web page it is the same twice and different once... out of sync web me thinks12:15
apwamitk, or did i miss understand12:15
amitkapw: I missed the Incomplete-> Won't Fix 12:16
cjwatsonsoren: there are some architecture-dependent limits on the size of the objects that bootloaders can load12:22
cjwatsonfrex yaboot has difficulty netbooting anything over 6MB12:22
cjwatson(IIRC)12:22
sorenHmm... I just seem to remember reading about the "protocol" the boot loaders employ putting some limits on the sizes of the kernel and ramdisk.12:28
* soren goes to find that again12:28
apwi have cirtainly had trouble with yaboot i the past with 60MB initrds and similar12:29
sorenAFAIUI the bootloader puts the kernel and ramdisk at specific adresses, and then starts running the kernel. Otherwise, how will the kernel know where to look for the initrd?12:29
Keybuksoren: you're confusing initrd and initramfs12:36
Keybuksoren: the initramfs is simply concatenated onto the end of the kernel image12:36
sorenAh. There's a specific address where you put a pointer to the ramdisk along with the size of it.12:36
Keybuksoren: again, you're confusing initrd and initramfs12:36
sorenKeybuk: Oh.12:36
sorenKeybuk: I thought the difference was just the format.12:37
Keybukno12:37
apwKeybuk, do you mean in /boot or by the boot laoder12:37
Keybukthe format is one difference12:37
Keybukanother difference is the way they are loaded12:37
Keybukand yet another difference is when in the kernel the code inside is actualyl used12:37
apwit is possible to embed initramfs in the kernel, but also to have it in the initrd bucket12:37
Keybukapw: you can do both12:37
Keybukapw: the bootloader puts it after the kernel image in memory12:37
Keybukso it appears identically to the kernel whether it was directly added in /boot or put after it by the bootloader12:38
sorenKeybuk: ..but how does the bootloader know whether it's an initrd or an initramfs?12:38
apwthough it uses the normal initrd style mechanism to tell the kernel about it12:38
apwif its a separate image12:38
apwand we have to use the magics in the initrd to tell if its initrd or initramfs format12:38
Keybukoh, that might be a bootloader thing ;)12:38
KeybukI could certainly be wrong12:38
Keybukthough, that being said12:39
Keybuk"how big can I make the initramfs" is the kind of question that makes me nervous12:39
sorenOk, so even though we're using an initramfs, we do still use the ramdisk_image and ramdisk_size fields as described in Documentation/x86/i386/boot.txt?12:39
sorenKeybuk: Heh :)12:39
Keybuksoren: I don't think so, no12:39
sorenOh.12:39
Keybuksoren: initramfs is unpacked into a tmpfs12:39
Keybuknot a ramfs12:39
sorenSure, sure.12:39
sorenThat I understand.12:40
Keybuk(how many ways can the name be wrong? :p)12:40
Keybukerr, I think it's a tmpfs anyway, I should check that12:40
apwi beive we do use the same pointers for a non-builtin initrd image12:40
sorenI'm just unsure how the bootloader tells the kernel where to find the initrd.img thing.12:40
apwthe bootloader just has the instruction to load and tell me where you loaded this blob for either format12:40
sorenapw: And that's those two fields?12:40
* soren crosses fingers12:40
apwi believe it is yes12:41
sorenOh, good.12:41
soren:)12:41
sorenI was about to lose it :)12:41
apwheh ... if you look at the source for INITRD you can see the bit where it looks at those two bits12:41
apwand uses them to map some space into the kernel to reference it, then it checks for initrd and initramfs format contents and unpacks it as appropriate12:41
sorenKeybuk: I'm trying to overcome some annoying limitations on EC2 by stuffing some extra modules in the initramfs and exporting them to "real" system by way of a tmpfs.12:42
sorenKeybuk: I'm not going to slow down booting on your Mini 9 :)12:42
apwthe problem is we rm -rf the initramfs before we switch to normal root12:42
sorenapw: Not a problem.12:43
apwthough Keybuk did i see you do something funky sharing the initramfs onto /dev/ and the like to save space?12:43
Keybukapw: yes12:43
apw^5 cool idea12:43
sorenI'm doing pretty much the same thing here.12:43
Keybukwhich is why I'm suddenly curious as to whether it's a tmpfs or a ramfs ;)12:44
sorenWhat's the difference?12:44
Keybukramfs is backed by ram12:44
Keybuktmpfs is backed by virtual memory12:44
sorenSo is tmpfs, surely?12:44
sorenOh.12:44
sorenGotcha.12:44
apwramfs is a block device into which you can put any filesystem, and tmpfs is a real filesystem type whihc uses ram to back itself12:45
apw(i think)12:45
Keybukapw: no, you're confusing ramdisk and ramfs there ;)12:45
Keybukramfs is a real filesystem that uses ram12:45
apwheh ... easy to do12:45
Keybukit's basically non-swappable tmpfs 12:45
apwmakes sense12:45
* apw goes back to his _fun_ bug day list12:46
* Keybuk is just proving to himself that initramfs is really not a ramfs but a tmpfs12:46
apwits deffo a tmpfs as you reused it didn't you?12:49
Keybukit shows up as "rootfs" ;)12:49
KeybukI just assumed it was a tmpfs because that's what all the documentation and comments say12:50
Keybukjust proving to myself from the code that it's not ramfs12:50
Keybukcause that would make my idea not-so-great12:50
apwif you are reusing it for the /dev/ mount too that is reported as tmpfs12:50
Keybukcurrent karmic doesn't reuse them12:51
Keybukthey're separate mounts12:51
KeybukWhat is rootfs?12:51
Keybuk---------------12:51
KeybukRootfs is a special instance of ramfs (or tmpfs, if that's enabled), which is12:51
Keybukalways present in 2.6 systems.  You can't unmount rootfs for approximately the12:51
Keybuksame reason you can't kill the init process; rather than having special code12:51
Keybukto check for and handle an empty list, it's smaller and simpler for the kernel12:51
Keybukto just make sure certain lists can't become empty.12:51
KeybukMost systems just mount another filesystem over rootfs and ignore it.  The12:51
Keybukamount of space an empty instance of ramfs takes up is tiny.12:51
sorenKeybuk: What's the idea?12:52
Keybuksoren: we have several virtual filesystems12:53
Keybuk/dev, /dev/shm, /var/run, /var/lock12:53
Keybukand probably /tmp12:53
Keybukthey're all instances of tmpfs, just with different mount options12:53
Keybukso each one uses up resource to exist12:53
Keybukand we also have the initramfs/rootfs hanging around forever because it was built-in to the kernel12:53
Keybukwe save memory, time and money by just re-using it12:54
Keybukso instead of mounting a new tmpfs at each of them12:54
Keybukwe just bind-mount sub-directories of the rootfs onto the real filesystem12:54
Keybukso (initramfs)/dev is exactly equal to (root)/dev12:54
sorenAh.12:54
Keybuk(initramfs)/var/run is exactly equal to (root)/var/run12:54
Keybuketc.12:54
sorenYeah, that would be neat.12:54
Keybukeach of the bind mounts can still have different options of course12:54
Keybukit means we don't need things like /dev/.initramfs for a start12:54
Keybukbut also saves a massive amount of time on boot (bind mounts are a single syscall to set up each)12:55
cjwatsonKeybuk: that would mean they'd share a maximum size rather than having independent maximum sizes, wouldn't it? (I don't think that's important for /dev /dev/shm /var/run /var/lock but it might be relevant for /tmp)13:50
Keybukno, that's a mount option13:50
cjwatsonneat13:57
Kanohi apw , how about adding 2 commits with very simple changes from wireless-git15:30
Kanohttp://git.kernel.org/?p=linux/kernel/git/linville/wireless-testing.git;a=commit;h=3d563f6e2fdac4544f0de25af6ff299f4e29f10a15:31
Kanohttp://git.kernel.org/?p=linux/kernel/git/linville/wireless-testing.git;a=commit;h=b82882e12934ec192a6b21264da087f00ade0b3915:31
Kanoyou only need to remove the additional "ath/", then it applies15:32
Kanoneeds a new firmware too15:33
apwi would imaging we'll get that when the merge window opens15:35
apwwe'll need a bug i recon to handle the firmware so we can track the licence15:35
Kanohttp://article.gmane.org/gmane.linux.kernel.wireless.general/3360515:36
Kanoi think it will be in 2.6.31 too, so maybe add the firmware already15:36
cjwatsonKano: (#ubuntu-devel) the purpose of unionfs-fuse is not speed; it's purely a stopgap measure until we get proper VFS-level union mounts, so I'm not interested in any properties of its speed other than "is it minimally usable" right now15:37
cjwatsonKano: the kernel team is fed up having to twiddle aufs* into applying against the current kernel and I don't really blame them considering that a real upstream solution is in sight15:38
Kanocjwatson: i prepared the patch, it works, what big thing do you need to do?15:38
cjwatsonit's a pain to continue maintaining it. It will not be necessary once we have mount --union.15:39
amitkKano: it will break again when 2.6.31 starts15:40
Kanoit is not that hard as you say. it was a bit tricky to fix the aufs patch for module mode as u had already some additional exports15:40
Kanobut the driver itself you can cp 1:1 from a git tree15:41
cjwatsonmount --union is much cooler anyway15:41
Kanois it fast?15:41
amitknot hard != automatic15:41
Kanoamitk: you could automate it15:42
mjg59Kano: --union is done entirely in the VFS, so yes, it's fast15:42
Kanothe only tricky part are the additional expoerts15:42
Kanothe rest can be of course automated15:42
Kanothe exports will not change usually15:42
mjg59There's no benefit in adding functionality to a kernel that's never going to be part of a release15:43
Kanook, waiting for a live image with mount --union then15:44
=== pace_t_zulu_ is now known as pace_t_zulu
=== pgraner_ is now known as pgraner-afk
Keybukdamnit16:23
Keybukfoiled again!16:24
visskywho do jobs as embeded linux?16:24
manjoapw, I have a draft version of the design/implementation its in no way complete but you can look at it and let me know if I am going in the right direction ... https://blueprints.edge.launchpad.net/ubuntu/+spec/kernel-karmic-suspend-resume16:35
Kanocjwatson: do you use kvm?16:36
CarlFK1vissky: I got hired to do embedded linux, but personally I don't think running on x86 2g ram 60g hd qualifies as embedded 16:43
visskyI love arm!16:44
amitkvissky: you might find more people on #ubuntu-arm or #ubuntu-mobile16:47
visskymaybe!16:48
maxbKarmic ABI 8 kernel seems to break my software raid19:00
maxbInstead of bind<sda2> and bind<sdb2>, I get bind<dm-3>19:00
maxband then it breaks and drops to an initramfs shell19:01
Keybukapw: my attempts to make populate_rootfs() async have been so far thwarted by something re-synchronising the world just after calling it19:50
apwthats a royal pain19:50
apwi can see its prolly needed pretty soon 19:51
apws/see/imagine/19:51
apwdo you know if its syncing on it, or on something else entirly19:51
Keybukjust everything19:51
Keybukneed to track it down, but I think something is just calling async_synchronise_full()19:52
apwunhelpful for sure, you should instrument that with a WARN_ON(1);19:52
Keybukheh19:53
Keybukthere's few enough that grep should be ok19:53
macomjg59, have there been any acpi/pmutils/etc-related changes in the last few days?21:29
mjg59maco: I'm not active in Ubuntu any more21:38
macomjg59, ok. i just remember that you know all about acpi, so i thought maybe you'd be someone that would notice such changes21:42
macoany idea who the current ubuntu acpi know-it-all is?21:42
mjg59Pitti, at a guess21:44
* cwillu pokes apw22:39
cwilluEXT4-fs warning (device sda1): dx_probe: dx entry: limit != root limit22:42
cwilluEXT4-fs warning (device sda1): dx_probe: Corrupt dir inode 8962051, running e2fsck is recommended22:42
cwilluthe latest post-suspend bugs :)22:42
cwillure: bug #38080722:42
ubot3Malone bug 380807 in linux "[karmic, intel] Laptop locks up moments after resuming from suspend" [Medium,In progress] https://launchpad.net/bugs/38080722:42

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