/srv/irclogs.ubuntu.com/2008/12/16/#ubuntu-kernel.txt

tjaaltonlinux-libc-dev conflicts with libdrm-dev now? (they both have drm.h)06:02
tjaaltonbug 30838706:08
apwnow why would libdrm-dev carry headers from the kernel10:08
apwbug #30838710:08
apwbah10:09
tjaaltonapw: being changed as we speak10:09
apwso we are removing them from libdrm-dev?  were they simply carrying them because our linux-libc-dev was short some headers?10:10
tjaaltonupstream moved them into the kernel10:10
apwits my fault they are in there now, i fixed our package to track upstream form, carrying all userspace headers from the kernel in one place10:11
apwhow would i have detected this in advance, so i could have warned the right people10:11
tjaaltonwell, it's fine now :)10:11
apwheheh yeah happy its sorted, just wondering if there are any others10:12
tjaaltonbut it's just difficult to know which API .28 has, and should libdrm be updated or what10:12
apwwe did it as a result of another package carrying some out of date headers which we should be exporting10:12
tjaaltonand what happens when we want to get 2.4.2 which the upcoming intel driver requires10:12
apwso they were aware of the change, having triggered it, but we missed drm10:12
apwthe headers have to match whats in the kernel, thats the point of them10:13
apwhaving newer drm headers doesn't make the kernel have the updated interface10:13
tjaaltonbut in order to get the new intel driver we need newer drm headers in the kernel10:13
apwthats why they have to come with the kernel in the first place, yes10:13
apwby which i assume you mean you need an updated driver in the kernel?10:14
tjaaltonprobably that too10:14
apwright so thats a different problem, wanting a backport of a driver potentially10:15
apwand whether that is possible at the level you want10:15
apwif this is jaunty and the driver is mainlined then we should get it when we update our baseline10:15
apwon the next -rc or .28 itself10:15
* abogani waves10:16
tjaaltonall I know is that the next intel X driver will require libdrm 2.4.2 and probably newer headers as well10:16
aboganiIs there change to have Ubuntu Build Kernel infrastructure (aka debian/* excluding packaging files) under git *separately* from kernel?10:16
apwabogani, what would that do for you?10:17
aboganiapw: I would want offer the same features (ABI consistency check for example) of the main kernels in community kernel as rt as well. 10:18
apwoh i see you want to add it to other kernels, hmmm10:19
smb_tpI don't see that we would put it seperately10:19
aboganiManually tracking (of your changes) is painful.10:19
smb_tpBut wouldn't it be possible to do a automated check for changes in that subdir?10:20
apwabogani, why is it hard to track the changes in there?  can you not just take logs for that directory alone?10:20
aboganiI can only see the date of the last commit in debian/ with git log (ignoring changelog etc)10:20
tjaaltonapw: so, I need to upload a new libdrm-dev without the headers, and you need to add a Replaces for linux-libc-dev :)10:21
aboganiapw: No. script and Makefile are -generic/server oriented. So for do it works on -rt i must do same changes. Every times that you change debian/* files i must rebase my commit (for example getabi script).10:22
aboganis/commit/commits10:22
apwoh we do, yeeks, what do i need to add10:22
apwcan we fold your changes into our abi scripts without breaking them perhaps?10:23
apwi wonder if the filter thing could help here, there is a git filter for making new repositories out of old ones, taking say just one subdir10:24
aboganiapw: I'll check it surely.10:24
smb_tphm, getabi source would be different hosts and specific to whether it is -ports or -rt or ...10:24
apwtjaalton, ok so what specifically are we replacing10:25
smb_tpabogani, Did we recently add or change something specifically that you missed?10:25
aboganismb: rules and rules.d/* are heavily changed.10:26
tjaaltonapw: the current libdrm-dev, which is 2.4.1-0ubuntu710:27
apwhmm we did clean things up a bit10:27
tjaaltonlool: is this correct now ^^10:27
apwso just that version or <= that version?10:27
tjaaltonapw: right, <= that version10:27
apwReplaces: libc6-dev (<< 2.3.2.ds1-6), libc6.1-dev (<< 2.3.2.ds1-6), dvb-dev (<< 1.0.1-6), linux-kernel-headers, libdrm-dev (<= 2.4.1-0ubuntu7)10:28
apwas simple as that?10:28
smb_tpabogani, And perhaps, would it work for you to take "git log debian", take a start point, use this for git format-patch and re-import those. Maybe this could get automated10:28
loolNot really, it should be << next version10:28
tjaaltonlool: what's the difference?10:28
loolIt's cleaner for forks of Ubuntu, backports and the like10:28
apwso is the next version ubuntu8 ?10:28
tjaaltonlool: ok, so you wanted to have just the upstream version there?10:28
loolThe former way is asserting something about version ubuntu7 and older which isn't really specific to that version, while asserting about ubuntu8 is pretty clear10:29
looltjaalton: An upstream version would have been ideal, but you don't have an upstream version just now so we'll live without10:29
apwits cirtainly clearer that the change is in ubuntu8 if that is the one mentioned10:29
tjaaltonapw: yes, << ubuntu810:29
aboganismb_tp:  Oh it is very quick and dirty! :-) I'll do some tests, thanks for suggestion.10:30
apwso: Replaces: libc6-dev (<< 2.3.2.ds1-6), libc6.1-dev (<< 2.3.2.ds1-6), dvb-dev (<< 1.0.1-6), linux-kernel-headers, libdrm-dev (<< 2.4.1-0ubuntu8)10:30
loolapw: BTW, I looked at the control file and it's cluttered by these very old and useless versions you see10:30
loolapw: Say 2.3.2.ds1-6, that's before *dapper*, we can happily drop these IMO10:31
apwabogani, if you recorded just the HEAD you last updated to you could do that with a git log <oldhead>.. debian10:31
* lool adds to kernel package cleanup wiki page10:31
apwthat sounds reasonable, i won't do that in this change tho.  that should be a separate pass over the file10:31
loolYes10:31
loolGeez why is the session below BootPerformance10:32
apwwe do not support updates to N from anything other than N-1 do we?10:32
loolapw: We do for LTS10:32
loolapw: LTS to LTS10:32
apwso from a kernel point of view we need to keep things 10:32
loolSo you should support upgrades from version of last release and version of last LTS10:32
apwback to and including the LTS N-110:33
loolapw: Last LTS is hardy10:33
loolOh right, your sentence was cut, yeah10:33
apwyeah i have a keyboard with a central return key, and i've just come back from using my latop for a week so i am hitting it instead of h sometimes, very anoying10:33
tjaaltonhttp://users.tkk.fi/~tjaalton/dpkg/drm.diff10:34
loolYou want to support upgrades from CURRENT-1 and LTS in your dev tree and LTS-1 in your LTS tree10:34
loolLTS-1 isn't very clear, but you get the rules anyway10:34
apwtjaalton, there should be an LP#NNNN in there yes?10:34
looltjaalton: Uh no10:35
looltjaalton: /usr/include/xf86drm.h is still to be kept in libdrm10:35
loolSee email thread I forwarded10:35
apwlool yes, we can drop the lts-1 when we cut lts+110:35
apwlts+1 normal cycle10:35
tjaaltonlool: ah :)10:35
loolapw, tjaalton: did you compare the list of headers you're moving?10:36
loolI mean, I'd like one of you two to make sure that we're not losing any and that they change in a sane manner10:36
apwi didn't check as i was unaware they were in libdrm-dev10:37
tjaaltonI'd like to see the list in l-l-d10:37
apwthat was somewhat unexpected10:37
tjaaltonok see it now10:38
tjaaltonlibdrm-dev has /u/i/intel_bufmgr.h, which I can't find in l-l-d10:38
loolNot sure that is clear, but not only should linux-libc-dev Replace the libdrm package, it should actually ship these headers!  :-)10:38
apwthat package should ship all of the headers the kernel contains and exports, thats its function10:39
apwand as of now, that is exactly what it contains10:39
apwwhere are the other ones coming from?10:40
loolapw: The problem is that libdrm's drm is usually more recent than the kernel's drm10:41
apwbut drm is provided by the kernel right?10:41
loolI guess this situation is slowly being fixed upstream, but in practice with this move this means we're going to regress the libdrm headers10:41
loolapw: The ABI yes, the API used to be provided by libdrm by pure accident for years10:42
loolOr because it made life easier for them I don't know10:42
apwthe files we export define the interface in the kernel so don't they have to match to be meaningful10:43
tjaaltonnewer version: http://users.tkk.fi/~tjaalton/dpkg/drm.diff10:43
apwi would expect the lib to export its own headers for its incoming interface, not use the kernel ones for that side10:43
loolapw: To be meaningful, everything should match since forever, but because we had the two trees and are moving over, I'd like the delta to be reviewed to understand what might regress10:44
apwie i could expect there to be two headers one for users from the library, and one for the library from the kernel10:44
apwif the library is capable of handling a missmatch then it can10:44
apwyep a check they match seems reasonable10:44
apwif i can figure out how to get the two to compare10:44
loolapw: For instance, some xorg stuff might have been built with libdrm's headers and make assumption about the drm which weren't true but we might only discover by a rebuild10:45
apwyep, worth worrying about for sure10:45
loolOr imagine macros which would only be provided by libdrm's version of the headers because it's slightly more recent, some packages might fail to build without the macros etc.10:46
apwtjaalton, still missing a LP reference in that changelog entry need that to close the bug automatically10:46
tjaaltonapw: oh right10:48
apwnormally a LP #NNNNN in that text part10:48
tjaaltonfixed10:48
tjaaltonyes I've done that a couple of times ;)10:49
apwok so before any of this lot gets uploaded we need to confirm the headers are compatible10:51
apwin case we need to revert the kernel carrying the drm headers instead10:51
apwit'll probabally get unresolvable dependancy wise if we are not careful if we have to revert later10:52
tjaaltonshould I try to build the intel driver with these?10:54
tjaalton2.4.1 was release five weeks ago10:54
tjaalton*releaseD10:54
loolI think the intel and ati drivers would be the most interesting ones10:55
loolGiven that they moved the most in terms of kernel API usage in the last months10:55
loolapw, tjaalton: perhaps you can consider using a ppa with new linux, libdrm, intel and ati?10:56
apwfirst i am going to get the two sets of headers and find out if they are different or not10:58
tjaaltonI could just upload the new libdrm to my ppa, followed by intel & ati10:59
looltjaalton: Yeah10:59
apwthese headers are pretty different11:05
apwand there are some worrying comments in there on the changed parts11:05
apwwho owns libdrm11:06
tjaaltonwas that a question?11:07
loolI think these guys are http://dri.freedesktop.org/wiki/11:08
apwi really meant who owns the package we ship11:09
tjaaltonthe x team11:09
tjaaltonbryce is likely asleep, but that's why I'm here :)11:09
loolapw: (xorg team == tjaalton + bryce :-)11:10
apwthe package seems to be a merge from debian and yet debian linux-libc-dev exports the drm headers, why don't they get this problem11:10
loolWe inherit from Debian though which has a bunch more, most active probably jcristau11:10
loolapw: You just found out why I raised this problem in september :-)11:11
tjaaltonapw: only the experimental version ships those headers11:11
loolExactly11:11
apwoh poop11:11
apwsooooo .... we have two options 1) revert exporting the drm headers in our linux-libc-dev package, or 2) work out how we fix it properly11:12
loolapw: What types of discrepancies are we talking about here?11:12
apwwith alphsa2 on thursday we need to decide now i guess11:12
loolAs you pointed out, it's all the same in-kernel drm ABI in both cases anyway11:12
apwmostly its benign looking, but there is a bit about changing size_t to like unsigned long 'so the header can be used in the xserver'11:13
apwthat sounds pretty worrying11:13
loolIf that's a kernel ABI it's pretty clear we should align to whatever type is used there11:14
apwa lot of the rest of the changes seem to be due to picking up the raw headers and making them work, like __iomem, however the kernel export strips all that11:15
loolIs this something Ubuntu specific?11:15
loolI mean, is this stripping an extra step we take or is it done by the upstream installation process?11:16
apwthe stripping of __user etc is a deliberate step the standard kernel header builder takes11:17
apwit also strips the _KERNEL_ sections too11:17
apwso they are 'clean' of kernel crap in theory11:17
apwtjaalton, so, what direction is the experimental stuff going in debian?  any feel for their resolution11:18
tjaaltonapw: libdrm hasn't seen any changes yet, so I guess jcristau doesn't know about the change either11:19
apwok sooo, that sounds like a mess in the making, but not something we can resolve in days11:21
apwso it seems prudent to not change drm, but perhaps to remove the drm headers from the kernel package pending understanding the longer term resolution11:22
loolHmm I wonder whether it's an issue to have a kernel with a version supposedly containing these headers but without the headers11:22
loolI poked jcristau11:23
loolI guess we should move the discussion to a place where he sits, perhaps #ubuntu-x or #ubuntu-devel11:23
apwlool, pick one (channel(11:24
apwthe kernel has exported a bunch of headers for some time, we have not packaged them11:24
apwthat was now out of step with upstream and was affecting another project which wanted them11:25
tjaaltonlool: he's in india right now :)11:25
looltjaalton: k he was around a couple of hours ago11:25
apwso it seemed reasonable to move to including them, perhaps that is not true for drm11:25
apwat this point in time11:25
loolI think it's sensible to stop shipping them until post-alpha211:26
tjaaltonapw: yeah, I checked some of them, and apt-file showed that they were only shipped in linux-headers11:26
loolAnd work on a plan for just after alpha 2 :)11:26
* lool lunch bbl &11:26
apwi'll propose eliding drm in the headers for -alpha2, tjaalton sounds like you are in the frame for prodding a longer term fix11:28
tjaaltonapw: sure11:28
loolIn the ubuntu-hardy tree there was a debian/binary-custom.d dir with per arch or flavour patchsets; in ubuntu-intrepid and ubuntu-intrepid-lpia I don't see this dir; I can't find these patches in ubuntu-intrepid-lpia; does someone know about this dir and/or the lpia patches?12:46
loolamitk is on holiday today12:46
smb_tplool custom build have been removed from the kernel tree. So you will not find them after that. special flavours and lpia have their own tree. About specific patches I cannot say something sure. 12:49
loolsmb_tp: Who would I be able to speak to for lpia matters when amitk isn't around?12:50
loolGeez I think this is really serious12:50
loolAFAICS all 13 lpia patches are simply ... not there12:51
loolNot committed and not present as patches12:51
smb_tplool, currently there would be none directly. Let me take a look...12:52
loolOne of the patch I'm looking at is half merged12:52
loolsmb_tp: If you'd like to take a look, grab ubuntu-hardy and ubuntu-intrepid-lpia12:53
loolsmb_tp: debian/binary-custom.d/lpia/patchset/* are the patches I'm looking at12:53
loolHmm some patches have been merged upstream, just not the first ones I looked at12:54
loolsmb_tp: I was checking this because of https://bugs.edge.launchpad.net/ubuntu/+source/linux/+bug/28066912:55
smb_tplool, The hardy half I got here. Let me update the intrepid part. I few patches look like they might have gone upstream. 12:55
loolSome parts of 0018-sdio_crown_beach are questionable, but some went missing; consider the marvell quirk for instance12:56
lool0016-poulsbo_ide is the patch for LP 280669; that one went missing as well12:57
loolIf I look at 0013-poulsbo_pci_ids, some ids have been added under a different names, some others not13:01
loolHmm where's the lpia config for jaunty?13:01
loolBlah and other patches in lpiacompat/13:03
smb_tplool, I not highly convinced how much from the hardy lpia really was used. All the netbooks I know of used the netbook kernel of the mid team. And to get things back into order is current work in progress13:09
loolsmb_tp: I don't think we're looking at this from the same angle13:10
loolsmb_tp: I have a real life issue with the current intrepid and jaunty kernels, all arches13:10
loolAnd I would guess hardy i386 kernel would have the same issue13:11
smb_tplool, So what is the issue?13:11
loolWhich is that a 4 GB drive with two 2 GB parts appears as ony one 2 GB part13:11
loolThat's bug ##280669:13:11
loolThis report is public13:11
lool(EPASTE)13:11
loolThis general issue brought to light that some of the poulsbo patches which we were putting in the hardy lpia build went missing in intrepid and jaunty13:12
loolWe can argue whether these patches would best be kept on i386 or lpia (my opinion is that it doesn't make sense to use Debian architectures only to carry patches), but we need the patches somewhere in all cases at least for supporting the hardware13:13
smb_tpI did not follow lpia issues closely but I had the impression there had been moves to rather use the vesa driver. 13:14
loolThat's orthogonal: we didn't get a video driver for intrepid's kernel in time (we have it now though) so I moved xorg and all to using vesa for this pci id by default13:15
loolsmb_tp: for the record, the psb drm lives in hardy-lum below ubuntu/media/drm-poulsbo13:26
smb_tplool, Yes, right. This is split up13:28
smb_tplool, There is also a intrepid-lpia tree in amits personal tree. This is older but seems to include the patches from hardy. So, we ahve to ask amit why those differences are there13:34
loolsmb_tp: I think the patches were lost when he rebased against a new intrepid tree13:35
smb_tpOr he is somewhat in the middle of doing so13:35
loolsmb_tp: We definitely used the tree without the patches for intrepid and I can tell you the intrepid i386 and lpia kernel behave the same and show only half of the disk13:46
loolWhile the hardy OEM image works fine13:46
smb_tplool, I know that the hardy-lpia part has been a little neglected and maybe the intrepid tree also did not catch all changes. But we are working on that. The exact state of that progress I will have to find out13:52
rtgapw: did you ever get back to bug #297750 ?14:09
apwrtg i think thats the one you patched, and then i tried the kernel and found the black list was missing, and i posted another debdiff for14:11
* apw checks what happened to that second patch14:12
rtgapw: right, but I asked for a more general version of the patch so that the oversight didn't happen again.14:12
apwahhh, then i've not got 14:12
apwback to it yet.  will look now, _if_ my computer gives me any computrons14:13
rtgpour caffeine on it?14:13
apwi _wish_ that worked14:13
rtgwell, I need some.14:13
apwme too ... will sort that out next14:13
loolsmb_tp: Thanks14:23
Keybukjet lag and kernel signals14:32
Keybuknot a good combination14:32
apwrtg, i've just dropped a debdiff for that module-init-tools thing onto the mailing list15:39
elmargolHi there is a rumor arround that ubuntu is going to have a vanilla kernel option in the future. Is this true?16:00
rtgelmargol: apw has been assigned that task.16:00
silvergtihello16:01
ogrartg, silvergti is the guy with 8111b cards in his thin clients16:01
apwelmargol, indeed that is the plan, hoping to get to that sometime this week and get some samples up16:01
silvergtity for the intro ogra :)16:01
elmargolapw: does this mean we can install 2.6.28 on intrepid too?16:01
apwit may well do.  though they would be generic kernels, so if you needed any ubuntu'isms they won't be included16:02
apwtjaalton, in preparing the patch to remove the drm headers from the kernel package, it has been suggested that assuming we are meant to be moving to the virgin headers that we migth be better off using dpkg-diverts in the libdrm-dev package to overide the headers which are functionally different (which is not all of them)16:05
silvergtihi rtg, can u give some help? 16:05
rtgsilvergti: with regard to r8169 on Gutsy?16:06
silvergtir8111b/8111c Ltsp Ubuntu 8.1016:08
elmargolDo you think it is safe to use the ubuntu .config and just compile the lastest kernel using make and make install?16:08
apwelmargol, well that won't likely attach the kernel correctly in the bootloader iirc but it should not affect your other kernels16:09
silvergtirtg  r8111b/8111c Ltsp Ubuntu 8.1016:18
rtgsilvergti: so? what about 'em ?16:20
ogrartg, it doesnt seem to pick up an IP via dhcp 16:20
rtgogra: well, the LP report is gonna need more info then that.16:21
ogra(using netboot and ipconfig -d eth0 from initramfs/busybox)16:21
ogrartg, right, thats why i pointed silvergti here so you can tel him what he needs to collect for debugging16:22
ogra*tell16:22
ograi see bug 208012 that might be the right place to attach more info16:23
rtgthere is all kinds of standard info for those kinds of bugs. ogasawara has templates somewhere.16:23
ogra(and being still open but confirmed for the same device)16:23
* ogra wonders why this channel has no bugbot16:24
ograhttps://bugs.launchpad.net/ubuntu/+bug/20801216:24
silvergtibut i think this is not exactly the same nic16:25
silvergtioh... sorry, it is16:25
ogasawarasilvergti: in bug 208012 it would be good if you could attach debugging information that is outlined at https://wiki.ubuntu.com/KernelTeamBugPolicies16:38
ograthe minimal info at least (though being stuck in busybox might make transferring it a manually copy task)16:44
ogra(thin clients that dont get to their rootfs are a bit tricky) 16:45
silvergtiyes, it wont be easy :P16:46
ograbut it will help to nail it down properly :)16:47
silvergti:)16:49
silvergtitheres no lspci on thin client17:02
ograsilvergti, do you have a possibility to boot the client off a USB CDRom or something ? 17:05
ograso you could run a livecd to get the right tools17:05
ograinitramfs is really a tricky place to collect debugging info17:06
silvergtino :( don't have any usb cdrom17:06
ogrado you have a usb key ? 17:07
silvergtiwait... this thin was an embedded O.S.17:07
ograwell, that wont get you the ubuntu info ... 17:08
ograthough lspci should help a bit 17:08
silvergtiyep, just to get lspci17:08
ograbut if you have a usb key and the client cn boot off USB, you can create a live usb key on the server with the usb-creator tool from an ubuntu iso17:08
ograthat wuld get you all data at once17:09
silvergtino usb pen... left mine at home... 17:18
silvergtilol17:18
silvergtitomorrow i will bring it17:18
tjaaltonapw: I read what was discussed on #u-d.. and I agree with lool, diverts are ugly and should be avoided if at all possible :)17:58
apwok i have posted my patch to our kernel list, and primed rtg on it17:59
apwwhether we can actually get the kernel rebuilt in time for -alpha2 is unknonw right now18:00
tjaaltonwell, I'll build a couple of drivers on my ppa against the slimmed-down libdrm-dev then ;)18:01
apwi suspect major explosion from what i've seen of the headers we have18:02
tjaaltonapw: yep, failed: https://edge.launchpad.net/~tjaalton/+archive/+build/81527518:36
iulianIs there any meeting scheduled for today?18:37
apwtjaalton, thought it would18:38
apwiulian, what sort of meeting?18:38
apwtjaalton, if you are on the kernel email list then reply and say that divert are vile, if not i'll do it later18:38
iulianapw: The weekly ones, in #ubuntu-meeting.18:39
apwyeah there was18:39
tjaaltonapw: airlied said that they'll release libdrm 2.4.2 when the intel headers won't conflict anymore. so perhaps the optimal solution for now would be to drop it from the linux-libc-dev and sort this out once there are new upstream releases available18:39
tjaaltonapw: yes, will do18:39
apwit occurs at 17:00 UTC which was 1:39 ago18:40
apwtjaalton, that fits with my feelings too, and my patch does exactly that18:40
iulianapw: Ahh, OK, thanks.18:40
apwso if you get kernel emails then replyin saying both that diverts suck, and upstream is saying wait for 2.4.2 and things will be good.  would help push the conversation alon18:41
tjaaltonapw: yep, sure18:47
apwtjaalton, thanks18:48
tjaaltonhuh, now building ati on my ppa fails because it wants to install an older linux-libc-dev18:59
zackrhey, so what's the magic to compile a new kernel on ubuntu mobile? fakeroot make-kpkg --initrd kernel_image kernel_headers exits with debian/ruleset/misc/checks.mk:36 "Error. I do not know where the kernel image goes to [kimagedest undefined] ..."20:05
NCommanderI thought make-kpkg was obsolete20:27
=== asac_ is now known as asac
=== lamont` is now known as lamont

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