/srv/irclogs.ubuntu.com/2011/02/04/#ubuntu-kernel.txt

=== sconklin is now known as sconklin-gone
=== kamal is now known as kamal-away
* abogani waves all07:30
aboganiWhy "Bug Watch Updater" changes priorities? Is it a bot, isn't it? Which rules it follows for that type of changes?07:32
RAOFIt's refreshing the Launchpad status of upstream bugs.  So, those bugs have had their priorities changed upstream, and this is being reflected in Launchpad.07:36
persiaGood day.  I decided to work on a kernel today, and I'm a bit lost in terms of git and quilt and stuff, and hoped someone could help me understand what commands would let me manipulate the code.07:43
persiaI've run git clone on a linux-2.6 tree and a separate git clone on a tree that appears to contain some quilt patches.07:43
persiaI'd like to regress the linux-2.6 tree to the commit that is listed as the last time the quilt series was rebased, apply the quilt series, and move forward through the linux-2.6 revision history to try to get to current.07:44
aboganiRAOF: Thanks!07:48
RAOFpersia: That should be relatively straightforward.07:52
aboganipersia: Why don't you reset the tree to current and so apply the quilt series?07:52
persiaRAOF, I'd think so, but after reading about git branch and git checkout and remote branches, I'm left a bit confused as to the mechanism.07:53
RAOFYeah.  git can do that :)07:53
persiaabogani, Because the git history of the quilt series identifies a specific revision against which it was based and I want to test a build from that before I add more patches, so I can distinguish between issues with moving the patches forward and issues with the patches themselves.07:54
RAOFSo, my instinct would be to checkout the branch you want to apply the patches to, then “git reset --hard $REVISION_SHA” to go back to where the patches want to be applied to.07:55
RAOFThen, apply and commit the applied patches one at a time.07:55
persiaAnd checking out the branch is something like `git checkout -b origin/mybranch` (where "origin/mybranch" is shown from `git branch -r`)?07:55
RAOFChecking out is more “git checkout -b nameI'dLikeMyBranchToHave origin/TheNameOfTheRemoteBranchItShouldBeBasedOn”07:56
persiaOK.  That makes sense.07:57
RAOF*Sometimes* you can omit the -b and the local branch name, and git will strip the “origin/” bit off as the local branch name.07:57
RAOFI've not worked out when this behaviour occurs.07:57
persiaNext, the git manual said that commiting things was a multistep process, but I got a bit confused about the details.  Is there something better than 1) apply the patch, 2) iterate over the output of lsdiff on the patch and run git add for each, 3) compare git diff --cache to the patch to make sure it took, 4) git commit ?07:58
persiaIn this case I can't omit that: it just created a new branch that didn't seem to have any differences in the output of git log07:58
RAOFI think the “git apply” command is what you're after.07:59
aboganigit quiltimport07:59
RAOFabogani: Oh, really?  Even better!08:00
persiaIndeed.  The manpage of git-quiltimport seems much more straightforward than the manpage for git-apply08:00
persiaNext question is about going back to the start when I do something wrong.  From directory content inspection, it appears that git creates a new HEAD with a checksum and my identity from git clone.  Is there an easy way to get back to this, even after doing things like git revert --hard?08:02
persiaErr, git reset08:03
RAOFgit reset --hard doesn't *remove* any commits, so if you still know the SHA of the commit you want you can get it out.08:03
RAOFThere's probably a method for iterating over all the heads in the repository, too.08:04
persiaSo I should record the SHA of the last commit in git log before starting, and then I ought to be able to get back to it (with history)?08:04
RAOFYes.08:04
RAOFIt's quite hard to actually kill commits, and each commit has a reference to its parent.08:04
persiaSo applying a given commit inherently applies all it's parents?08:05
RAOFThat depends on what you mean by ‘apply’.08:05
RAOFIf you get *exactly* that commit into your tree, then you've also got all of its parents.08:05
persiaI tend to conceptualise VCSs as funny ways to interact with something akin to quilt, if that helps understand the semantics of "apply" as used above.08:06
RAOFgit *also* makes it easy to apply the *contents* of that commit as a diff to your current tree.  In that case, a *new* commit with just the contents of the old one is created.08:06
persiaAh, I perceive the difference.08:06
RAOFYeah.  The quilt model is insufficient for describing how git (or bzr, for that matter) actually works, because a commit is inseparably diff+a bunch of metadata.08:07
persiaSo, with reset, I'd end up back to the original point where the quilt series is supposed to apply, then with quiltimport I'd apply the patch series, and then I'd want to iterate over the set of outstanding bits of work to apply the contents of each to the tree?08:07
persiaIndeed, and most of my experience with VCSs is learning how to work around the metadata :)  Not entirely best practice, but perhaps I'll learn some day.08:08
aboganipersia: Which quilt series are you talking about?08:09
RAOFActually, in on reflection I think that what I suggested won't be any better than trying to apply the existing quilt series on top of trunk.08:09
RAOFWhat *would* be better is applying the quilt series and then merging it into trunk.08:10
aboganiAgreed. The best thing is drop "quilt form" as soon as possible.08:11
RAOFAnd, since git is stupid and thinks merges are symetrical, that would replace “git pull --rebase” with “git merge $BRANCH_TO_MERGE_INTO”08:11
RAOFThat way git will do some of the conflict resolution for you.08:11
persiaHmm...08:11
persiaSo, given a git tree, would it make sense to create two branches: one based on the reset, and the other based on an -rc3 merge, and separately apply the quilt series to each to achive my testing goals?08:12
RAOFNo, I don't think so.08:13
rigvedhi everyone...i'm interested in kernel programming...can anyone guide as to where should i start08:13
RAOFYou would create one branch - one based on the reset, with the quilt patches applied.08:13
persiaAnd I'd build off that, and go test08:13
RAOFOh.  You would then merge that into rc3, and resolve any conflicts.08:14
RAOFWhich, I guess, would create a new branch based on rc3, with the patches applied.  I just wouldn't think of it like that :)08:14
persiaUm. except there's outstanding stuff in the tree that needed changes to merge into -rc3 (and those change commits are in the tree, but ahead of the quilt application point)08:14
RAOFI guess it comes down to: what do you *want* to test?08:15
abogani:-)08:15
RAOFDo you want to test the patches on the most recent kernel, or do you want to test the patches on the kernel they specify?08:16
persiaI want to test two things: a) something that kinda looks like the code that the author of the quilt series was working on; b) the results of applying the same quilt series to a branch that recently was merged against -rc3; and c) the results of merging the Ubuntu sauce on top of that combination.08:17
persiaErr, three things.08:17
RAOFOk.  Well, the first thing to do in all those cases is to start with the commit the author was working on, and apply the patch series.08:18
RAOFOnce you've tested that branch, you can merge it into the branch that was recently merged against -rc3, and test that; then merge in the ubuntu sauce.08:19
persiaSo git reset, git quiltimport, (twiddle, build, test), git merge, (twiddle, build, test), git remote add, git merge, (twiddle, build, test) ?08:21
RAOFYes.08:21
RAOFExactl.08:21
RAOFgit should help a little with the twiddle phase, and “git status” will list conflicted files as “both modified”08:22
RAOFOh, yes.  git also doesn't automatically detect when you've reconciled a conflict, so you'll need to “git add” the reconciled file.08:23
persiaExcellent.  I think that lets me fiddle the code enough to make progress.  Monday, I can learn about kernel packaging :)08:28
=== smb` is now known as smb
* persia grumbles about SHA mismatches for commits at almost the same time and with the same message, and clearly the same thing, except something odd happened.09:07
* apw realises xchat isn't running :)09:35
smbProductivity increased by at least 100% :)09:36
apwsmb, heh i wouldn't call preparing for a release meeting productive, depressing more like09:41
smbapw, Ok, not really productive in the usual sense. But I would think not being interrupted by mumble or irc could half the time needed, thus half the pain. :)09:43
apwheh some of that of course09:46
* cking can get some emails and docs written at last ;-)09:51
* smb stares scared on the amount of potential upstream stable changes that missed xen shadow files09:52
apwsmb, that xen split is a nightmare09:54
smbapw, o_O (indeed)09:54
apwi was quite serious when i said we should consider turnign it back into an overlay09:57
smbapw, I just go ahead and start to sync up the auto-generated patches for stable releases to xen files from the tarball. Not that those all will have some impact, but I we really want no differences there to the original files09:57
smbIf that is done, we can think of the second step of folding them back09:57
apwsmb, you got an amd64 box you could boot test a kernel on?10:14
smbapw, As long as 64bit is the only requirement, sure. I "guess" Natty? (not sure I have an install already, but I could at least do Natty kernel on Maverick)10:16
apwyep natty on maverick is fine, just want to know it boots ok ... still building, will shout when its ready10:16
smbok, booting up the test box meanwhile10:17
apwsmb, couldn't be bothered to hump a second laptop with me10:17
smbapw, Understandable10:18
* smb even found a natty install... with kernel 2.6.37... I guess that needs a slight update10:19
evdveldehi all, do you need to patch the Linux kernel to use Mobile IPv6?10:39
apwevdvelde, not sure i know the answer to that off the top of my head10:41
evdveldeapw: thanks for the honesty :) been googling for it, but last posts about it are from 2008, with a patch to the kernel... 10:42
apwevdvelde, if you have a link to the patch i may be able to tell if its in already10:45
evdveldeapw: i found the patch again: ftp://ftp.linux-ipv6.org/pub/usagi/patch/mipv6/umip-0.4/kernel/patch/10:49
apwsmb, could you boot test the amd64  -2.29 kernels here http://people.canonical.com/~apw/master-next-natty/ ... thanks10:53
apwsmb, well 32 bit is good at least11:01
apwUbuntu 2.6.38-2.29masternext201102041001-generic 2.6.38-rc311:01
pgranerapw, ping11:02
apwpgraner, hiya11:02
apwi've emailed you the update for the meeting today11:03
smbapw, I think I probably should have started that dist-upgrade... 11:03
smbI mean not11:03
apwshouldn't ?11:03
smbyeah11:03
apwperhaps ... no worries11:03
pgranerapw, can you send me the meeting invite, for some reason it dropped of the Ubuntu Engineering Cal11:03
apwpgraner, sure11:03
pgranerapw, thanks11:04
apwyou should get an invite shortly11:05
apwpgraner, but it is at 16:00 UTC11:06
=== _LibertyZero is now known as LibertyZero
pgranerapw, got it11:12
apwpgraner, cool.  is your laptop a 64 bit install ?11:13
pgranerapw, yep11:23
=== diwic is now known as diwic_afk
=== sconklin-gone is now known as sconklin
=== herton is now known as herton_lunch
=== kshadeslayer is now known as shadeslayer
smosersmb, i'll get to your xen image question today15:09
smbcheers. Sadly I realized that with the laptop approach I currently use, I won't be able to do anything beyond a t1.micro anyway. But for the future I hope to set up a more capable environment. :)15:11
JFogoing to be 'nearby' for a bit. I am finally starting up my python focused time every week. Just ping me here and I'll check periodically, but I am mostly going to be buried in a book. :)15:14
=== herton_lunch is now known as herton
=== bjf[afk] is now known as bjf
ohsixapw: posted the cgroup-bin suspend bug https://bugs.launchpad.net/ubuntu/+source/libcgroup/+bug/71318716:44
ubot2Launchpad bug 713187 in libcgroup "cgroup-bin default configuration breaks suspend" [Undecided,New]16:44
=== diwic_afk is now known as diwic
bjfJFo, i'm now starting to look at the arsenal issue18:21
JFobjf, ok, I think I have broken/fixed it further :)18:21
JFoso there is another update to that one in the kernel-arsenal18:21
=== sforshee is now known as sforshee-lunch
* tgardner --> lunch18:52
* cking --> beer time18:59
=== sforshee-lunch is now known as sforshee
=== Edgan_ is now known as Edgan
poelzicould someone check this bugfix in please: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/70639420:04
ubot2Launchpad bug 706394 in linux "kernel should have CONFIG_CFQ_GROUP_IOSCHED" [Undecided,Incomplete]20:04
tgardnerpoelzi, looking...20:06
poelzii really would like that blk cgroups is enabled the next ubuntu kernel. it is so powerfull when used correctly :-)20:07
jjohansenrebooting20:29
tgardnersconklin, linux-meta-mvl-dove 2.6.32.214.15 did not get pocket copied whereas the kernel _did_ get copied.20:45
sconklinok, it'll probably be Monday if pitti's already gone20:46
sconklinI'll try now20:46
sconklintgardner: he's gone for the weekend20:47
tgardnersconklin, ok. I'll have fsl-imx51 kernels to annoy him with on Monday anyways.20:48
bjfJFo, ping20:59
doctormoMy System76 compal based computer is currently running Ubuntu 10.10 but with the kernel 2.6.32 from lucid. This is because the newer kernel can not see pci memory for some reason which system76 have been unable to reproduce on their test machines. There is a report that this bug is still present in the natty alpha2 kernel.21:12
doctormoI'm at a bit of a loss of what I can do. The bug is highly severe, but lost in the noise and lacking a fix.21:13
bjfdoctormo, don't know what to tell you, you are saying that somewhere between 2.6.32 and 2.6.35 the kernel broke for your system21:22
ohsixit should be noted that the alternate init systems can use sysvinit type scripts as a lowest common denominator21:22
ohsixso you can work from there and specialize if the package can take advantage of it21:23
bjfdoctormo, and the issue still exists even in natty21:23
ohsixoops, sorry, wrong window21:23
doctormobjf: Yes21:23
jjohansendoctormo: have you tried upstream kernels21:24
jjohansendoctormo: basically you could try say a .33 and .34 based kernel and see if either of those are good21:24
doctormojjohansen: I could, but I'd like to try kernels in a ppa or some other easy to install and remove form.21:25
jjohansendoctormo: and then knowing that we could work to a bisection point to find which patch caused the problem21:25
bjfdoctormo, jjohansen is correct, it could be a difference between the ubuntu kernel and a stock upstream kernel21:25
bjfdoctormo, that would help with bisecting the problem21:26
jjohansendoctormo: we do publish an upstream kernel in deb form21:26
jjohansendoctormo: https://wiki.ubuntu.com/Kernel/MainlineBuilds?action=show&redirect=KernelMainlineBuilds21:27
jjohansenyou should be able to pick a .33 and .34 from the archive21:28
jjohanseneg. http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.33.7-maverick/21:29
jjohansensudo dpkg -i to install21:29
jjohansendpkg -r to remove21:30
jjohansendoctormo: just knowing whether it shows up in one of these is going to help isolate the bug21:30
jjohansendoctormo: have you opened a bug in ll yet so that this can be tracked?21:31
doctormojjohansen: That wiki page says the mainline is a ppa, but it doesn't look like a ppa, it looks like a repository21:31
doctormoBut it gives no instruction on how to install the repository.21:32
jjohansendoctormo: hrmm, I've never used it as a ppa I just grabs .debs from it21:33
jjohansennor would you want to in your case, as you don't want the latest21:33
jjohansenyou want to install specific older kernels for testing21:33
bjfdoctormo, those are in an account with "ppa" as part of the name, it's not a true ppa21:34
doctormoIt's not a ppa at all, perhaps renaming the thing would avoid future confusion?21:35
bjfdoctormo, it probably would but we're stuck with the name21:39
doctormobjf: Why are you stuck with the name?21:54
bjfdoctormo, we just are21:54
doctormobjf: No, seriously, I do community for work for ubuntu, what will happen if you change the name?21:55
bjfthe kernel team is used to it, it can't be a true ppa it has to be just an account with web access21:56
bjfwe have a bunch of automated scripts that build various kernels and put them there21:56
bjfit's just not going to change21:57
doctormobjf: Based on convention, you're going to continue to confuse?21:59
doctormoI'm going to report it as a bug with the community team, it's bad to have this sort of thing.21:59
bjfgood luck with that22:03
doctormobjf: *shrug* conventions like this need fixing.22:06
=== bjf is now known as bjf[afk]
vanhoof /whois doctormo 22:32
=== elmo is now known as elmo_away

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