/srv/irclogs.ubuntu.com/2015/02/25/#ubuntu-kernel.txt

mssbrgreposting in case no one saw this (ping apw): out of curiousity, if the idea for those mainline builds is to have a virgin upstream build, then what are the patches for?04:49
mssbrgalso, are the patch files supposed to be applied to the tree from kernel.org or the Ubuntu tree? seems the first patch file is changing the debian.master directory which does not exist in the kernel.org tree05:19
mssbrgand if I'm indeed supposed to apply the patches to the ubuntu tree, for my case where I'm using the 3.17.8 ppa build, there is no v3.17.8 tag in the vivid tree to checkout to :/ 05:23
apwinfinity, a source package is bigger than the entire output we are making them for, and at least at the start we didn't have the space for that08:35
apwinfinity, though yes, why that anchient poc08:35
mjg59apw: Are you pointing people at an Ubuntu git mirror?08:36
apwmjg59, for the mainline builds, no, they are pure linus08:36
apwi guess i get to try and add some wording to every build, hmmm08:37
mjg59apw: Hm. That's dubious.08:37
mjg59Pointing to repositories outside your control isn't usually considered sufficient for GPLv208:37
mjg59Just keeping a mirror of Linus on kernel.ubuntu.com/git should be fine, though08:38
apwmjg59, $DEITY i should just stop producing them08:38
mjg59Heh08:38
apwmjg59, i'll look at sorting a mirror out, we may have one already08:38
apwand get some more docs in there08:39
mjg59I mean, the alternative is for you to just fall back to written offer and provide source on request08:39
mjg59And then manually put the packages together whenever someone asks for it :p08:39
apwmssbrg, the patches apply in theory at least to the virgin commit listed in the COMMIT file, from a linus clone08:39
apwthat is how the binary builder which made the binaries, makes them08:40
apwbah some of these are so old they don't even have the commit file, thats ... annoying08:41
apwtime for some heavy surgery me thinks08:42
apwmssbrg, you'd need to give me the exact version you are looking at to follow along08:43
apwmjg59, oh good we do have a virgin tree already, so i can just refer to that in a README perhaps08:46
mjg59apw: Yeah, a pointer to that and a hash should be fine08:56
apwmjg59, i will make it so09:17
=== Odd_Blok1 is now known as Odd_Bloke
jhenkehi folks, it seems today's kernel update introduced a regression for people using the 2015 Dell XPS: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/142544509:31
ubot5Launchpad bug 1425445 in linux (Ubuntu) "Regression: 3.16.0-31-generic breaks touchpad on Dell XPS13 (2015)" [Undecided,Confirmed]09:31
smbhenrix, Sounds like ^this may require the patch that Seth posted recently for Vivid09:37
smbHID: i2c-hid: Limit reads to wMaxInputLength bytes for input events09:37
apwmjg59, how does http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.0-rc1-vivid/README sound09:40
mjg59apw: Looks good to me10:14
apwmjg59, great thanks, i've pushed that to them all, and will rebuild a few which are missing patches10:14
henrixsmb: i'll have a look in a sec10:48
smbhenrix, ok, thanks. I also sent some reply to our ml to make us not forget10:49
henrixsmb: ack, thanks10:49
mssbrgapw: I'm looking at this version: http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.17.8-vivid/14:38
apwmssbrg, ok there now is a README in there which should help you get the source you want14:42
mssbrgThats so helpful, thanks apw! Part of my misunderstanding was that I didn't know that "virgin" referred to an actual tree in ubuntu's repos and not the one from kernel.org15:09
apwmssbrg, np, i've shoved those into all of the builds15:09
SuudySo, the latest Ubuntu ABI change for 14.04 moves from 3.13.0-45 to 3.13.0-46.  Unfortunately, this change breaks my MVFS driver (for Clearcase).  It looks like they have the 3.19 version of dcache.h sucked into a 3.13.0 kernel.  I see the raw 3.13.0 version of dcache unchanged until 3.19, but certainly such a change to a key data structure (dentry) would trigger a much larger change.19:50
SuudyIs there a way to detect this sub-version (e.g. -46)?19:50
infinitybjf: ^19:50
bjfapw, ^ we have a define for that don't we? ... /me goes looking for it19:53
SuudyI know the fix for the driver, I just need a way to tell the difference between 3.13.0-45 and 3.13.0-4619:58
infinitySo, this has an elegant(ish) autoconf solution to the problem: http://launchpadlibrarian.net/197087396/openafs_1.6.1-1%2Bubuntu0.4_1.6.1-1%2Bubuntu0.5.diff.gz20:00
infinityBut yeah, if you're looking for a kernel version check, that's tougher, as it's all 3.13.11, with extraversion bumped.20:00
infinity(Thanks, Greg)20:00
bjfi'm sure we put something in for out of tree drivers detecting the abi ... i just can't find it ... still looking20:01
infinityYou did.20:01
infinityI just forget where. :P20:01
infinityAnd if we backported it.20:01
SuudyIs that extraversion then Ubuntu specific?  I suppose an ifdef check to see if that extraversion is there, then do further checks.20:02
apwbjf, we do indeed have an ABI specific define20:03
apwSuudy, bjf, UTS_UBUNTU_RELEASE_ABI20:03
infinityThat said, relying on a version check will be fragile.20:04
bjfapw, yeah20:04
infinityapw: Oh, it's autogenerated at build time, no wonder I can't find it in a diff.  Derp.20:04
SuudyAnd what I'm most confused about is how 3.13.0-46 changed dcache.h so significantly.  Yet looking at the raw 3.13 dache.h (http://lxr.free-electrons.com/source/include/linux/dcache.h?v=3.13) it is the same as 3.13.0-4520:04
Suudyinfinity:  Thanks for the autoconf solution.  Sadly, the MVFS driver is Makefile based.  And I'm not sure how to replicate the functionality of AC_CHECK_LINUX_STRUCT20:06
infinityThen yeah, you might be stuck with a version check.20:07
bjfSuudy, it was a backport of: http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=946e51f2bf37f1656916eb75bd0742ba33983c2820:09
SuudyI guess I'm a bit confused then.  So when the version says 3.13.0-46, it really means 3.13.11 with a bunch of later changes merged in?20:11
SuudyOr is this for a pending (if ever) version of 3.13.12?20:12
infinitySuudy: It's 3.13.11-ckt1520:12
bjfSuudy, it is 3.13.0 with all stable releases applied up to ^ what infinity just said20:12
infinitySuudy: 3.13.11 is dead upstream, we're the new maintainers, however for political reasons, we don't maintain it on kernel.org (not our choice).20:13
SuudyAh!  Well, I learned something new.  I'd never heard of 'ckt' before.  Now it makes sense.20:13
bjfSuudy, if you look at our git repo for trusty it's easier to understand (i think)20:13
SuudyAnd no wonder the folk on #kernel-newbies told me to talk to Canonical or IBM.  Makes sense now.20:14
infinityAnyhow, it looks like this is about the only useful define you're going to find:20:14
infinityinclude/generated/utsrelease.h:#define UTS_UBUNTU_RELEASE_ABI 4620:14
SuudyThanks for the clarification!20:14
infinityWhich is... Kinda useless for differentiating between upstream and Ubuntu, since you can't include it unconditionally...20:16
infinityAnd it's not uapi exported.20:16
infinityapw: Dude.20:16
infinityapw: How are people supposed to use this header? :)20:16
infinityOh, I guess it doesn't need to be uapi.20:17
infinityBut still.  Not sure how one's meant to use it for code that's meant to work on !ubuntu as well.20:17
SuudyWell, since this change would be Ubuntu specific, I just forked off the source and made Ubuntu specific changes.20:18
infinitySuudy: Okay, well, in the forking world, easy enough, as above.20:18
SuudyAnd this driver source only checks for < 3.6.  So any other changes (such as in 3.19) would be broken anyhow.20:19
SuudyAgain, thanks for the help!  Greatly appreciated.20:20
apwinfinity, you'd use it in a define which is different depending on whether the underlying define is present21:04
apwinfinity, and there is no point in us supplying that as you need to do something depending on whther that was present21:10
apw#ifdef UTS_UBUNTU_RELEASE_ABI21:10
apw#define UBUNTU_VERSION(a, b, c) (((a) * 10000) + ((b) * 100) + (c))21:11
apw#else21:11
apw#define UBUNTU_VERSIONS(a, b, c) 021:11
apw#endif21:11
apwstylee21:11
cyberkryptionanyone tell me what the three numbers after the hash in uname-a mean?21:16
apwcyberkryption, paste an example ...21:18
apwcyberkryption, as the default there is only one number there 21:19
cyberkryptionok i am building arm kernel for a raspberry pi and have kernel modules that wont load. pi kernel uname -a is Linux raspberrypi 3.18.7-v7+ #755 SMP PREEMPT Mon Feb 23 19:52:56 GMT 2015 armv7l GNU/Linux my compiled kernel is Linux kali 3.18.7-v7+ #758 SMP PREEMPT Mon Feb 23 19:52:56 GMT 2015 armv7l GNU/Linux21:20
cyberkryptioni want to know the difeerence between #755 and #758 it looks to be some sort of kernel subversion21:21
mjg59That's the buld number21:21
mjg59build number21:21
mjg59The first build from a kernel tree will be #121:22
mjg59Every subsequent build from the same source tree will increment it21:22
mjg59It's ignored for module versions21:22
cyberkryptionok so my pi kernel is three builds from my kali ie 755 vs 75821:23
cyberkryptioncould the difference be accounted for by difference source tree kernel branches/21:23
ogra_no, it just means that one of them was built 3 times more often from the same tree21:24
cyberkryptionproblem no kernel modules get loaded as part of boot process, if i try manual insmod i get uio: disagrees about version of symbol module_layout21:28
cyberkryptionon googling this pointed me to some module or kernel differences21:28
cyberkryptionbut i have done modinfo on the modules that fail to load and they are identical21:29
cyberkryptionso i wanted to know the significance of the hash in uname -a21:29
cyberkryptionis there a better way to pull a running config than zcat /proc/config.gz21:29
cyberkryptiondoes this mean that the symbols in the modules are in different position in the compiled modules to where the kernel expects it to be?21:30
cyberkryptiontherefore it wont load?21:30
cyberkryptionok solved it, it has to wth the fact that the modules.symers was not used in the kernel compilation process21:50
infinityapw: My point is that to get that ifdef working, you need to include a header that isn't included from any other standard header, which is a fail.23:07
infinityapw: You can't know it's Ubuntu without that header, so you can't conditionally include it, and you can't unconditionally include it, since it's not in !ubuntu kernels.23:08
apwinfinity, that include file is a completely standard header that the other kernel version defines are in 23:19
apwinfinity, it is the one with the normal kernel base version in23:19
apwinfinity, or at least that is the intent, if it is not it is broken23:21
infinityapw: Oh, is UTS_RELEASE an upstream define?  In that case, never mind my whining.23:23
apwinfinity, UTS_RELEASE is what is included in the uname -a output23:27
infinityapw: Check.23:37

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