/srv/irclogs.ubuntu.com/2012/09/14/#ubuntu-kernel.txt

infinityIs there a plan for a new kernel upload built against the latest binutils?00:42
infinityogasawara: ^?00:42
ogasawarainfinity: indeed we should, I'll prep an upload right now.00:45
infinityogasawara: Thanks.  I was going to do a d-i upload, and then realised that would end up baking in the broken kernel, so figured I'd hold off. :P00:45
ogasawarainfinity: I've got it ready to upload, I just want my quick test build to finish since it's got a single patch in it.  eta 10min.00:55
infinityogasawara: Check.  Does that single patch cause an ABI bump too?00:55
infinityogasawara: (Not that I mind if it does, just curious)00:56
ogasawarainfinity: nope, it shouldn't00:56
infinityKay, if it's not an ABI bump, care to skip the -proposed thing, and just upload straight to release?00:56
infinityDoesn't really buy us anything to artificially delay the fix if there won't be package skew or anything.00:56
ogasawarainfinity: I can00:56
infinityDanke.00:57
infinityOf all the Leanns I know, you are definitely somewhere in the top ten.00:58
infinity*nod*00:58
ogasawarainfinity: I demand to be #1!  screw the top 10.01:04
infinityThere are so many inappropriate ways to read the second half of that.01:05
infinityWell, only one way, really.01:05
infinityBut it's inappropriate, regardless.01:06
ogasawarainfinity: ok, uploaded.01:09
infinity\o/01:09
ogasawarainfinity: I'll try and keep an eye on it, but I'll be drinkin with the other managers too, so not sure how reliable I'll be01:11
infinityogasawara: Meh, s'all good.  I'll poke it from time to time, and re-upload d-i laterish, or in the morning.01:12
infinityogasawara: It can't actually be much more broken on x86 than it currently is, so not much to keep an eye on. :P01:12
ogasawarainfinity: ack01:12
infinityogasawara: Don't you enjoy that warm fuzzy feeling you get when the kernel has regressed so hard that you could upload emacs, call it linux, and it would still work just as well?01:13
infinityogasawara: In other words, go drink.  And give my manager a hard time.01:13
ogasawarainfinity: heh, will do :)01:14
=== cheako911 is now known as cheako
=== doko_ is now known as doko
=== henrix_ is now known as henrix
=== lool- is now known as lool
=== Kiall is now known as zz_Kiall
=== zz_Kiall is now known as Kiall
* henrix -> lunch11:36
dokortg, I'm having difficulties to reproduce #1049650. even with the binutils that you did check with, I always see the same offset12:05
dokortg, I'm having difficulties to reproduce #1049650. even with the binutils that you did check with, I always see the same offset12:11
rtgdoko, the binutils you uploaded yesterday still has the problem.12:11
dokortg, yes, however even using the 2.22.90.20120816-2ubuntu1 one, which you do report success with, apparently has the problem. see the comment in the report12:12
rtgdoko, getting there ....12:12
dokortg: was the chroot you did use for testing up to date?12:14
rtgdoko, well, that is odd.12:14
rtgdoko, pretty much. lemme try again12:14
dokoI was trying to provide some object files for the issue, but can't seem to build the correct ones12:15
rtgdoko, up to date chroot:12:29
rtgrtg@salmon:~/ubuntu/ubuntu-quantal$ readelf -s ./debian/build/build-generic/arch/x86/boot/setup.elf|grep video_card12:29
rtg   147: 00002f3c     0 NOTYPE  GLOBAL DEFAULT  ABS video_cards12:29
rtg   148: 00003650     0 NOTYPE  GLOBAL DEFAULT  ABS video_cards_end12:29
dokortg, with the old binutils?12:30
rtg(quantal-amd64)rtg@salmon:~/ubuntu/ubuntu-quantal$ dpkg -l|grep binutils12:31
rtgii  binutils                             2.22.90.20120913-1ubuntu1 12:31
rtgdoko, makes me wonder if the kernel ogasawara uploaded last night built correctly. guess I can check that out quick enough.12:32
dokortg: yes, the amd64 build log shows the correct version12:33
rtgdoko, correct, but did the kernel get linked correctly ? will it boot, etc.12:34
rtgdoko, ogasawara: downloaded new kernel. seems to work.12:50
rtglemme build on gomeisa again. its got a virgin chroot.12:50
dokoI'm currently building on osageorange12:51
doko$ readelf -s debian/build/build-generic/arch/x86/boot/setup.elf | grep video_cards13:00
doko   138: 00003660     0 NOTYPE  GLOBAL DEFAULT   12 video_cards13:00
doko   151: 00003660     0 NOTYPE  GLOBAL DEFAULT   12 video_cards_end13:00
dokothis is what I get on osageorange13:00
dokortg: ^^^13:00
rtgdoko, I don't think thats gonna work too well13:00
dokortg: which gcc-4.7 package did you use for the build on salmon?13:02
rtgdoko, what is salmon? a buildd ? looks like the amd64 kernel built on allspice last night.13:03
doko<rtg> (quantal-amd64)rtg@salmon:13:03
rtgdoko, oh, it a local SandyBridge server that I have. duh. forgot.13:04
rtgdoko (quantal-amd64)rtg@salmon:~/ubuntu/ubuntu-quantal$ dpkg -l|grep gcc13:05
rtgii  gcc                                  4:4.7.0-5ubuntu1                                          amd64        GNU C compiler13:05
rtgii  gcc-4.7                              4.7.1-8ubuntu1                                            amd64        GNU C compiler13:05
dokostrange13:05
dokortg: I would like to understand why I get different results (osageorange non working), and the buildd (working, as you tested)13:06
brendandcking - is the mailing list for you and the other people working on fwts 'fwts-team@lists.launchpad.net'?13:06
ckingbrendand, try fwts-devel instead of fwts-team13:06
rtgdoko, while the buildd kernel is working, the linker issue may be different on that machine. without being able to look at setup.elf we can't say for sure.13:07
brendandcking - is it private?13:07
ckingnope13:07
dokortg: maybe add a readelf -s to the build?13:07
rtgdoko, yeah, perhaps. lemme mess with your chnistrap package again first.13:08
dokortg: it's just odd that the buildd kernel works, while I still see the issue on osageorange13:10
rtgdoko, we don't _know_ that the buildd kernel linked correctly. that fact that it works on my laptop is inconclusive.13:11
dokoahh, so how can we tell? 13:12
rtgdoko, lemme do a local sbuild with some debug. that shold be about as clkose to the buildds as I can get.13:12
dokortg: after you did that, could you (with the same binutils version) rebuild with cpp-4.7 and gcc-4.7 4.7.1-7ubuntu1? I'm starting to think it's not a binutils issue after all13:13
danttihi, is there someone I could poke to get this changed before Quantal? https://bugs.launchpad.net/ubuntu/+source/linux/+bug/100309013:15
ubot2Launchpad bug 1003090 in linux "Please enable HID_BATTERY_STRENGTH (on xorg-edgers and quantal kernel packages)" [Medium,Triaged]13:15
doko$ readelf -s debian/build/build-generic/arch/x86/boot/setup.elf|grep video_cards13:17
doko   160: 000041a4     0 NOTYPE  GLOBAL DEFAULT   12 video_cards13:17
doko   173: 000041f8     0 NOTYPE  GLOBAL DEFAULT   12 video_cards_end13:17
rtgdoko, so that looks right. different gcc-4.7 ?13:17
dokortg: -7ubuntu113:18
rtgdoko, so you're thinking -8ubuntu1 might be broken ?13:19
dokortg: yes, and not binutils. maybe you did test with the old compiler yesterday?13:20
rtgdoko: dunno,13:20
rtgdoko, so, the archive reaper has already cleaned out -7ubuntu1. Do you have those packages stashed somewhere ?13:22
dokortg: you can get the older ones by the publishing history13:23
=== henrix is now known as henrix_
=== henrix_ is now known as henrix
=== henrix is now known as henrix_
=== henrix_ is now known as henrix
rtgdoko, ah, thats good to know13:23
rtgdoko, egads, there are a lot of .deb files there. Is there a handy way to install the ones I need ?13:25
hallynstgraber: looking at the "Release Meeting 2012-09-14" email, I don't see the netns bug in the "Summary of bugs working on by team".  Do you have the bug# handy?13:25
dokortg: you only need cpp-4.7 and gcc-4.7. install using dpkg --force-depends13:26
rtgdoko, ok, gimme a bit.13:27
doko<jakub> doko: from quick look at the kernel, I'd say the kernel is buggy13:32
stgraberhallyn: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/102147113:32
ubot2Launchpad bug 1021471 in linux "clone() hang when creating new network namespace (dmesg show unregister_netdevice: waiting for lo to become free. Usage count = 2)" [High,Triaged]13:32
doko<jakub> doko: I'd say used attribute is a must in the #define __videocard struct card_info __attribute__((section(".videocards")))13:32
doko<jakub> doko: because when it declares static __videocard var = { ... }; then the compiler has all rights to just nuke those as unused13:32
dokortg: ^^^13:32
hallynstgraber: thanks13:37
hallynogasawara: ^ bug 1021471 wasn't on the list of quantal bugs the kernel team is looking at?13:38
ubot2Launchpad bug 1021471 in linux "clone() hang when creating new network namespace (dmesg show unregister_netdevice: waiting for lo to become free. Usage count = 2)" [High,Triaged] https://launchpad.net/bugs/102147113:38
ogasawarahallyn: that should have been on the list, I seemed to have missed getting it on there13:39
ogasawarahallyn: and it should be getting worked by cooloney13:39
hallynogasawara: phew :)  thanks13:40
rtgdoko, ack13:40
rtgdoko, this seems to be somewhat random. I just built with binutils 2.22.90.20120913-1ubuntu1, cpp-4.7  4.7.1-8ubuntu1, and gcc-4.7 4.7.1-8ubuntu1.13:45
rtgreadelf -s /home/rtg/ukb/quantal/amd64/master-next/ubuntu-quantal/debian/build/build-generic/arch/x86/boot/setup.elf|grep video_card13:45
rtg   147: 00002f3b     0 NOTYPE  GLOBAL DEFAULT  ABS video_cards13:45
rtg   148: 00003650     0 NOTYPE  GLOBAL DEFAULT  ABS video_cards_end13:45
rtglemme try an sbuild13:46
dokostrange13:48
dokortg: and wondering why the Ndx column sometimes has ABS, sometimes 1213:48
ppisatiseems like i'm finally back...13:59
ckingwelcome back ppisati13:59
=== henrix` is now known as henrix_
=== henrix_ is now known as henrix
ppisati:)14:01
dokortg: adding the used attributes on osageorange:14:02
doko$ readelf -s debian/build/build-generic/arch/x86/boot/setup.elf | grep video_cards14:02
doko   159: 000041a8     0 NOTYPE  GLOBAL DEFAULT   12 video_cards14:02
doko   172: 000041fc     0 NOTYPE  GLOBAL DEFAULT   12 video_cards_end14:02
=== henrix is now known as henrix_
=== henrix_ is now known as henrix
rtgdoko, I'm wondering why video_cards is treated special in the kernel ? how are you applying the used attribute ?14:05
doko--- arch/x86/boot/video.h.orig  2012-09-14 14:06:49.005979707 +000014:07
doko+++ arch/x86/boot/video.h       2012-09-14 13:43:47.116013331 +000014:07
doko@@ -80,7 +80,7 @@14:07
doko        u16 xmode_n;            /* Size of unprobed mode range */14:07
doko };14:07
doko 14:07
doko-#define __videocard struct card_info __attribute__((section(".videocards")))14:07
doko+#define __videocard struct card_info __attribute__((used, section(".videocards")))14:07
doko extern struct card_info video_cards[], video_cards_end[];14:07
doko 14:07
doko int mode_defined(u16 mode);    /* video.c */14:07
sforsheedoko, your readelf output still doesn't really look right, that array should be bigger14:08
rtgit should be 3650-2f3b14:09
dokosforshee, maybe, however I'm trying to reproduce the values which rtg does get. currently I can't14:11
jsalisburyrtg, cjwatson took a look at bug 1047092 and re-assigned to linux-firmware.  Looks like a packaging fix is needed?  Anyone specific you think I should ping about this?14:11
ubot2Launchpad bug 1047092 in linux-firmware "Mini.iso doesn't load wireless drivers" [Medium,Triaged] https://launchpad.net/bugs/104709214:11
* ppisati is shuffling cables around...14:11
=== Kiall is now known as zz_Kiall
rtgdoko, ogasawara: my sbuild produced an empty video_cards section, which is also likely what happened on the buildd14:15
ogasawarajsalisbury: I'm prepping a patch for that bug right now14:16
jsalisburyogasawara, cool, thanks14:16
ogasawarajsalisbury: rather I have the patch, just kicking off a test build to confirm the fw shows up in the udeb14:16
jsalisburyogasawara, ok14:16
ogasawarajsalisbury: I've told cjwatson on ubuntu-devel I'll upload shortly14:17
=== zz_Kiall is now known as Kiall
jsalisburyogasawara, ahh, I see that now :-)14:18
rtgogasawara, you're also adding zd1201 as well ?14:19
ogasawarartg: I did14:19
ogasawarartg: added zd1201.fw and zd1211/*14:20
doko<rtg> readelf -s /home/rtg/ukb/quantal/amd64/master-next/ubuntu-quantal/debian/build/build-generic/arch/x86/boot/setup.elf|grep video_card14:20
doko<rtg>    147: 00002f3b     0 NOTYPE  GLOBAL DEFAULT  ABS video_cards14:20
doko<rtg>    148: 00003650     0 NOTYPE  GLOBAL DEFAULT  ABS video_cards_end14:20
rtgdoko, that looks right. is that with the 'used' attribute ?14:20
dokortg: could you tar up the boot dir for this build and put it somewhere? it also would be good to get the preprocessed source files for this dir14:21
rtgoh, nm. I pasted that.14:21
dokoright14:21
rtgdoko, what is the boot dir for a build ?14:22
rtgdoko, do you mean the full build directory ?14:23
dokortg: debian/build/build-generic/arch/x86/boot/  *.o and setup.elf14:25
=== Kiall is now known as zz_Kiall
sforsheedoko, actually looking closer I think your output looks correct and rtg's is too big. There should be 3 card_info structs linked in the section, and they aren't all that big.14:31
rtgsforshee, hmm, I never thought to check the size. if what you're saying is true, then what fills the 715H in my case ?14:34
sforsheertg, no idea14:34
sforsheertg, doko's section is 84 bytes, or 28 bytes per struct, which is about right if pointers and ints are 32 bits14:35
rtgsforshee, this is amd6414:35
sforsheertg, right, that's the only part that doesn't make sense14:35
sforsheertg, but that still wouldn't account for that much of a difference14:36
dokortg: this code is built with -m3214:36
sforsheertg, and I get the same results in an amd64 chroot14:36
rtgdoko, hmm, so we add 'used' to the attribute definition and call it good ?14:37
=== zz_Kiall is now known as Kiall
dokofor the kernel, maybe. however I would like to followup upstream. currently I can't get the .o file built by hand. maybe I'm missing something14:38
sforsheertg, I think it makes sense to add __used to the definition of __videocard. Otherwise the variable does look unused within the file.14:38
dokosforshee, rtg: if I look at the verbose build log, then this vesa-mode.o is built with -o arch/x86/boot/.tmp_video-vesa.o however I can nowhere see where it's moved to the final name/place14:40
dokoand: $ gcc -m32 -c -Os -march=i386 -mregparm=3 -fno-strict-aliasing -fomit-frame-pointer -ffreestanding -fno-toplevel-reorder -fno-stack-protector video-vesa.i14:40
doko$ nm video-vesa.o         U boot_params14:40
doko00000000 T vesa_store_edid14:40
doko00000000 b vginfo14:40
dokowhat am I missing?14:41
rtgdoko, chinstrap.canonical.com:~rtg/boot.tgz14:41
sforsheedoko, scripts/Makefile.build does the move to the final name14:42
sforsheedoko, see cmd_modversions14:43
dokosforshee, what I'm looking for is a video-vesa.i, and the command to build the video-vesa.o14:43
dokosforshee, hmm, even in verbose mode, parts of rule_cc_o_c are hidden :-/14:48
sforsheedoko, yep14:50
dokosforshee, could you help with this?14:50
sforsheedoko, sure, what do you need?14:50
dokoa video-vesa.i, and the command to build the video-vesa.o14:51
dokobecause I get something different with the commands I did paste14:51
argescking, hey14:51
ckingarges, hiya14:51
dokosforshee, hmm, I'm missing the ld -r call maybe14:55
dokortg, I'm surprised that it works with your tarball, because:15:02
doko$ nm video-vesa.o 15:02
doko         U boot_params15:02
doko00000000 T vesa_store_edid15:02
doko00000000 b vginfo15:02
rtgsforshee, doko: I'm inclined to upload with this 'used' attribute patch so we can get a working kernel in the archive.15:07
dokortg, I can't say that adding the attribute would be wrong15:08
sforsheertg, I think we send it upstream as well, because to me it just looks correct15:08
rtgsforshee, doko: agreed15:08
dokoafter the kernel is built, I'd like to revert the binutils change, after testing that I get the same result with the used attribute15:09
sforsheedoko, are you actually seeing the command to build video-vesa.i in your verbose build?15:10
dokosforshee, yes, I saved that and added -save-temps15:10
sforsheedoko, I'm not seeing it. I thought it was just a debugging feature anyway.15:13
dokosforshee, so we now have three section sizes. 0 without the used attribute, 84 with the attribute, and rtg's even bigger one. however the bigger one is only seen by rtg, correct?15:13
sforsheedoko, I've never seen the bigger one15:13
rtgdoko, as far as I know that is correct.15:14
dokosforshee, I set KBUILD_VERBOSE=1 in the env15:14
sforsheedoko, I have that too, just not seeing any .i files generated when I run build-generic15:14
dokosforshee, you have to explicitly add -save-temps15:15
sforsheedoko, ack15:15
rtghmm, grub 2.0 sure looks different.15:19
dokortg, am I needed for the grub issue too? ;)15:23
rtgdoko, no, I was just noticing menu differences.15:23
sforsheedoko, in my experimentation .tmp_video-vesa.o doesn't have the __ksymtab section, so I think it just gets renamed to video-vesa.o15:24
dokoahh, ok15:24
dokosforshee, rtg: was -fno-toplevel-reorder recently added to build this file?15:37
rtgdoko,  no change to scripts/Makefile.build since Jan 2415:39
dokobecause with gcc-4.6 -fno-toplevel-reorder, the symbol is emitted, but not with gcc-4.7. but I don't see a behaviour change on the branch15:40
sforsheedoko, that option has been in arch/x86/boot/Makefile since at least 3.315:40
sforsheedoko, is what you're looking for how you can generate video-vesa.i? Because I'm not getting one even with -save-temps.15:42
dokosforshee, well, let's stop with it for now.15:44
sforsheedoko, okay15:44
rtgdoko, ogasawara, sforshee: Uploading linux_3.5.0-14.18_source.changes: done.15:46
ogasawarartg: ack15:46
dokoahh, and at least 4.7.0 -fno-toplevel-reorder had this symbol emitted too. so this did change on the branch15:48
rtgdoko, so that option was removed in 4.7.1 ? The description says, "When this option is used, unreferenced static variables are not removed."15:54
dokortg: no, actually this might be the root cause.15:56
dokoand it works in gcc-snapshot. so I'll have to look when this did change. I see the same behaviour in Debian, so it's not caused by any Linaro change15:58
kirklandcking: hey!  is there an easy way to tell if my i7 has the rdrand instruction?16:04
kirklandcking: anything in /proc/cpuinfo or the like?16:04
kirklandcking: I'm guessing "not", as I tried to run your rdrand test, and I got :-)  Illegal instruction (core dumped)16:05
kirklandcking: http://smackerelofopinion.blogspot.com/2012/08/simple-performance-test-of-rdrand.html fwiw16:05
ckingkirkland, see http://software.intel.com/en-us/articles/intel-digital-random-number-generator-drng-software-implementation-guide - rdrand_check_support()16:09
ckingkirkland, or grep "rdrand" in /proc/cpuinfi ;-)16:19
cking* /proc/cpuinfo16:19
=== Kiall is now known as zz_Kiall
ckingkirkland, I've updated the code to test rdrand CPU features.16:42
ckingoops, nope, failed16:43
* ppisati -> gym workout16:45
ckingkirkland, fixed now16:46
rtgdoko, when you have figured out root cause, please add your explanation to bug #1049650 for _why_ 'used' is a required attribute so that when I punt this patch upstream I can point to something factual.16:49
ubot2Launchpad bug 1049650 in linux "Regression: "Undefined video mode" with 3.5.0-14.16" [Medium,Fix released] https://launchpad.net/bugs/104965016:49
kirklandcking: neat, thanks16:56
dilekschecking for video_cards... so this is good? http://nopaste.snit.ch/16616017:08
* cking spots a jump in page hits on the blog17:09
* rtg -> lunch17:30
dilekshttps://bugs.launchpad.net/ubuntu/+source/linux/+bug/1049650/comments/417:30
ubot2Launchpad bug 1049650 in linux "Regression: "Undefined video mode" with 3.5.0-14.16" [Medium,Fix released]17:30
dileksok, than precise gcc-4.6 is not affected17:30
* cking --> EOD17:58
=== cmagina_ is now known as cmagina_away
* henrix -> EOD18:13
=== henrix is now known as henrix_
infinityrtg: You seem to have left some debug code in your kernel upload that broke !x86.18:57
rtginfinity, damn, I didn't think about that.18:58
infinity+$(build_cd) readelf -s `find . -name setup.elf` | grep video_card18:58
infinityAt the very least, I didn't check the rest of the diff.18:58
infinityBut it chokes there, for obvious reasons.18:58
rtginfinity, I left there on purpose so we could see the section sizes, but they won't exists for !x618:58
rtginfinity, ok, I'll fix and re-upload18:59
infinityDanke.18:59
* ogasawara lunch19:02
rtginfinity, ogasawara: Uploading linux_3.5.0-14.19.dsc: done. (sigh)20:24
ogasawarartg: ack20:25
rtgogasawara, I'm not gonna bother with the LTS upload until there is a substantive change20:27
infinityrtg: Thanks.20:27
ogasawarartg: yah, sounds good20:27
* rtg drifts away for the weekend...20:29
=== yofel_ is now known as yofel
=== cmagina_away is now known as cmagina_
geofftIs there a recommended way to recompile a single kernel module with different Kconfig options?21:46
geofftpreferably without recompiling the entire kernel?21:47
geofftI'm trying to make sense of debian/rules.d but not having much luck :)21:47
geofftLooks like you can play some dirty tricks that start with `fakeroot debian/rules config-prepare-check-generic`22:35
geofftI'd be happier if I somehow got a .deb out of this process, but I do have the .ko I want.22:35
=== cmagina is now known as cmagina_away

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