/srv/irclogs.ubuntu.com/2008/10/23/#ubuntu-kernel.txt

=== mcasadevall is now known as NCommander
=== RemoteVi1wer is now known as RemoteViewer
=== tjaalton_ is now known as tjaalton
nikolamCould someone comment on this bug? Seems that 2.6.24-21 on amd64 has a problem10:55
nikolamhttps://bugs.launchpad.net/ubuntu/+source/linux/+bug/28741610:55
=== asac__ is now known as asac
amitkrtg: I already suggested splitting lbm into smaller parts but it is too late now. But IMO, we should do it for Jaunty13:22
rtgamitk: LBM isn't subject to SRU policies, so it may not be too late. There might be some package naming policies that get abused, but thats more a matter of getting exceptions granted.13:25
amitkrtg: cjwatson's words, not mine. Let me get him13:26
rtgamitk: there is no hurry. its not something I'm gonna do today.13:27
amitkrtg: lbm is in main and I was assured that that made things complicated13:28
rtgit probably does.13:28
rtghowever, kernel packages are already special  since they get new package names with every ABI.13:29
cjwatsonamitk: so what's this about splitting up lbm?13:30
rtgcjwatson: I suggested splitting out compat-wireless as a way to mitigate regressions from other drivers.13:31
cjwatsonI'm really concerned about messing around with packaging at this point13:32
amitkrtg: I was suggesting even finer grained, separate out ath5k from the rest13:32
cjwatsonI'd rather not13:32
rtgnor would I13:32
rtgbesides, right now compat-wireless is the only thing in LBM13:32
cjwatsonright, and people will probably only have one of those chipsets13:33
amitkcjwatson: given that ath5k users are going to _depend_ on lbm, how else do we ensure that we don't regress lbm during the next 18 months.13:33
rtgwell, LBM has been going through the -proposed cycle, just like other kernel packages.13:34
cjwatsonit's going to suck somewhat for atheros users no matter what we do. A week ago I would have agreed with you, but now? I can't say I'm so sure13:35
amitkrtg: it is a question of QAing all of compat-wireless vs. just ath5k in -proposed13:37
rtgamitk: but ath5k doesn't exist in a vacuum. its intimately intertwined with the rest of the wireless stack.13:38
amitkrest of the stack, yes. Rest of the drivers, no.13:39
rtgamitk: as cjwatson pointed out, you don't have to worry about the rest of the drivers 'cause they won't get loaded anyway..13:39
amitkrtg: so just remove in-kernel ath5k and do a best-effort on LBM?13:41
rtgamitk: thats pretty much my plan.13:41
rtgwe are somewhat subject to upstream progress.13:42
cjwatsonif you guys really think that splitting out a compat-wireless package from lbm is the only sane answer, then I'm willing to defer; you'll need to be really careful about the package structure, though, and it'll need a linux-meta update13:42
amitkrtg: do you forsee alsa or something else coming back into lbm?13:43
rtgcjwatson: I'm open to suggestions. Also, I don't think we need to do this before release. The current LBM is as good as it gets for awhile.13:43
rtgI don't see the need for ALSA at this point13:43
cjwatsonrtg: we're going to have to document what people need to do at release time, and at the moment that's going to involve them installing LBM13:43
cjwatsonrtg: so this is hard to change later - people will have LBM installed already and will upgrade it all at once13:44
cjwatsonI mean, obviously in general I'm in favour of fewer things having to be changed before release now :)13:44
amitkrtg: besides users for whom in-kernel ath5k works now will complain much louder later13:45
cjwatsoncertainly if we're going to disable in-kernel ath5k then I think that needs to be done pre-release; it'll be almost impossible to QA after release13:46
rtgone of the drivering forces for LBM in the past has been because there was no other mechanism to get new HW support. now we have an alternative (ubuntu-next), so those folks that just gotta have support can always use that. Ubuntu-next kind of relieves to need to add a bunch of stuff to LBM.13:46
rtgI plan to upload a kernel today without ath5k support, if everyone is agreed.13:47
cjwatsonack13:47
pgranerrtg: the only that that should be in that kernel is the lack of 5k support13:47
=== shenki_ is now known as shenki
rtgpgraner: can't parse your sentence. the only change?13:48
pgranerrtg: no other changes are allowed at this point, we have approval for just the disabling of ath5k... 13:49
rtgpgraner: right. what'ya think I am? some profligate coder?13:49
pgranerrtg: just checking in the past we have had other things "slip" in due to them being committed in the tree.13:50
rtgamitk: so the mid-team plan is to go with LBM, so my job is to try not to break it with future updates, nor to add any devices that moight hose you up. correct?13:51
rtgpgraner: I'll make sure that doesn't happen this time.13:51
* cjwatson appreciates it :)13:51
pgranerrtg: thanks! love ya... mean it!13:52
rtgeew!13:52
cjwatsonNURSE! BRAIN FLOSS13:52
amitkrtg: yes. But rest of the distro will also depend on lbm now. They might get to you before I do if you break lbm :-p13:52
rtgamitk: I'll just point them at ubuntu-next. its my bandaid for all HW enablement.13:53
cjwatsonso bug 267295 and bug 283316 -> intrepid-updates?13:56
cjwatsonif so, please adjust their milestones13:56
amitkrtg: please refer to bug 284354 when disabling in-kernel ath5k13:58
amitkrtg: madwifi + ath5k racing won't disappear with disabling in-kernel and installing lbm though13:59
cjwatsonuh. I thought you said in #ubuntu-release that it would13:59
amitkcjwatson: on boot ath5k (lbm) will always win. But I am worried about suspend/resume case.14:01
amitkstill thinking about it...14:01
rtgamitk: but its not a race.14:01
* amitk goes off to do a few tests14:02
amitkrtg: what is not a race? suspend/resume?14:02
rtgamitk: the loading sequence. ath5k only gets loaded after madwifi fails.14:03
amitkrtg: so madwifi fails gracefully is what you're saying?14:04
rtgamitk: I guess you could say that. It can't support the RF chip, so it bails out with an error.14:05
rtgamitk: I have ogra checking to make sure madwifi isn't loading when LBM is installed.14:14
rtgI remembered a bug that smb found in modprobe when 2 modules of different names claim the same PCI ID.14:14
* amitk nods14:15
asacrtg: ath9k issue with eventual patch: #27819014:16
smb_tprtg, As long as the driver bails out with an error this might be ok (if the hw isn't left in a strange state)14:16
smb_tprtg, But err, yeah they claim the same id14:17
smb_tprtg, So it is as long as depmod is not changed. Have you heard something from John Masters?14:18
rtgasac: this is a patch against the LBM stuff, right?14:19
amitkrtg: in-kernel module has precedence over lrm?14:19
smb_tpamitk, not ncessarily14:19
rtgamitk: no. its LBM, LRM, then kernel.14:19
smb_tpamitk, with same drivers (names) its defined in the search order of depmod.conf but for different names its random by dir creation order14:20
* amitk swears at a ath5k oops14:23
asacrtg: not sure. i have no big picture about which version are where. a user just pointed me to that patch ... and since i saw that its Linville i thought it might be good crack ;)14:28
rtgasac: its definitely good crack. I'll pick it up the next time I update LBM with a new compat-wireless tree.14:29
rtgI think I'll wait until after release before I go rocking the boat. amitk will have me by the throat if I break his samsung device :)14:30
asacrtg: isnt Q1 5k and this is about 9k?14:30
rtgasac: it sure is :) I'm in an ath5k rut.14:31
asacrtg: yeah. so, taking one step back from 5k, do you think that patch would be applicable for our 9k mainline driver?14:32
asac:)14:32
amitkrtg: just got an oops from ath5k on q1. Trying to get it out to a bug14:32
asacor lbm there too?14:32
rtgasac: probably, but its gonna be an SRU. 14:33
asacrtg: sure. didnt ment to have that in final ;)14:33
asacrtg: its assigned to you ... do youwant me to do anything else? e.g. like adding intrepid?14:34
rtgasac: yep - add the Intrepid so it doesn;t get lost.14:34
asac(sorry to ask now, but otherwise it will just drop from my radar and i wont be able to help remind you :))14:34
asacok done ;)14:34
asachave fun with 5k then14:34
Kanohi, did you see the security update 2.6.27.3?14:42
rtgugh, say it ain't so.14:44
loolHey folks14:47
NCommandero_o;14:47
NCommanderoh14:47
NCommander*ow14:47
loolamitk, rtg: I'd love to fix status/description of the ath5k / Q1U / madwifi / mobile bugs14:47
loolFirst, wifi currently works with madwifi on the Q1U, even if you don't change anything14:48
loolAt least with WPA14:48
amitklool: doesn't for me with WPA214:48
loolamitk reported that it doesn't work with WPA2, but it's better than using lbm (which is not possible to sustain)14:48
loolWe will document ath5k in lbm as an alternative which is easy to install, but we can't install it by default14:49
ogralool, WEP as well14:49
loolSo WPA2 is broken with madwifi on Q1U; do we need to file / track this?  I'm happy to have a bug for it, but we wont do anything about it in intrepid, we will use a newer ath5k which works in all cases in jaunty14:49
loologra: WEP broken?14:49
ograworking14:50
loolOk14:50
loolAnother thing which is broken with madwifi is suspend resumle14:50
ograonly if ath5k is present14:50
amitklool: madwifi future is a don't care. So no point in tracking WPA2 with a bug14:50
loolThere is no race with ath5k whatsoever; the module just plain don't like suspend/resume, even when ath5k isn't around14:50
ograworks fine if you blacklist14:50
loolamitk: Exactly, I think the same14:50
loologra: suspend/resume works for you?  Not for me14:50
ograhmm, let me test again14:51
loolI remove ath5k from module path14:51
* ogra blacklists ath5k14:51
loolrebooted after update-initramfs -u, and wifi would break over suspend/resume14:51
loolremoving and reinserting the ath_* madwifi modules, and it would work again14:51
loolSo on this second madwifi issue, is it worth filing a bug?  Yes I think so14:51
loolWe can help suspend/resume with madwifi for intrepid; it's old style remove the module before suspend, but will work14:52
loolDo we care for jaunty?  No14:52
loolIs this critical?  No14:52
loolConcerning the two ath5k and madwifi getting loaded; I understand why it happens, I think it's not good that we have to do this, but I don't have any magic wand to help it; it will effectively be fixed when a single driver supports all PCI ids and all their hardware14:53
loolI don't expect this will be fixed in intrepid, and intend to close the corresponding bug with "wontfix in intrepid and we don't care in jaunty"14:54
loolFinally, ath5k status in linux/linux-lpia: I didn't see ath5k working, rtg had issues with it and recommended removing it from linux/linux-lpia: I second that; it's high priority for intrepid, not critical I'd say but best to avoid half working wifi IMO; no idea how many affected people with working ath5k or half working14:55
loolWe should recommend lbm or let these people try madwifi IMO14:55
loolDo I miss any issue?14:55
loolOh yes, the madwifi wpasupplicant backend14:55
ogralool, confirming, madwifi now asks for the passphrase after resume ... that used to work earlier 14:55
rtglool: I'm in the process if disabling ath5k in the kernel.14:56
loolThat's completely irrelevant, this backend had issues and wasn't needed with some cards/madwifi versions; it's orthogonal, we can't do anything about it and don't care for either intrepid or jaunty14:56
loolrtg: Thanks; do you have a bug report for that?14:56
loolrtg: If not, copy pasting your test results which you mailed to devel would be fine as a reference point14:56
rtglool: 28435414:56
loolrtg: or just link the thread in the kernel changelog14:56
loolrtg: 284354 is about two drivers for same PCI id getting loaded14:57
loolIt kind of became "Wifi debate on Q1U/mobile/ath5k/madwifi" though   :-/14:57
rtglool: the issues are kind of related, but I'll make it clear in the changelog.14:57
loolrtg: Do you mind not using 284354?  I can open you another bug if you like14:58
loolrtg: Or are you done already with the commits?14:58
rtglool: still in progress. just lemme know when you've a new LP number.14:59
lool(rtg: I intend to wontfix the "two drivers for same PCI id" bug with rationale of my above monologue)14:59
loolrtg: Will open a new bug for you now14:59
loolrtg: 288148 assigned to you for the linux task15:03
loolamitk: Will you do the linux-lpia rebase dance for this bug?15:03
amitklool: yes, I will rebase it. We should have it tomorrow.15:06
amitkI'll wait for rtg to get done with his changes15:07
rtgamitk: I think I'll test build before uploading. I'd hate to get reamed by Steve.15:08
amitkrtg: wise course of action15:10
loolamitk: assigning you to the linux-lpia task then15:10
rtgamitk: I've pushed everything except the final changelog commit.15:11
loolrtg: When I said 'this is completely irrelevant' earlier, I was speaking of the wpasupplicant madwifi backend BTW, not of what you said15:13
rtglool: I assumed that :)15:14
loolrtg: https://bugs.edge.launchpad.net/ubuntu/+source/linux-restricted-modules/+bug/275423 sounds like what you reported in terms of wifi speed of ath5k15:15
loolToo issues in the same bug unfortunately15:15
loolhttps://bugs.edge.launchpad.net/ubuntu/+source/linux-restricted-modules/+bug/275692 is the suspend/resume bug I mentionned earlier15:16
loologra: "15:16
loologra: "I added a line 'SUSPEND_MODULES="ath_pci"' to /etc/pm/config.d/01-modules and now resuming works.15:16
rtglool: almost all ath5k issues are related to ANI failures, suspend/resume notwithstanding.15:16
loolrtg: This one mentions poor network performance which reminded me of your own testing15:17
ogralool, right15:17
ogralool, though we wouldnt use /etc/pm/config.d from a package15:17
loologra: I'm sure you're bored with all the sleep you've got; care to prepare an intrepid fix?15:17
loolYeah of course15:17
ograwher should that sit in ? 15:18
ograwhich package ? 15:18
loologra: Good question15:18
ograeffectively it shuld be in lrm :P15:18
loolI wonder whether it makes sense in lrm15:18
loolamitk, rtg: opinion?15:19
ograbut thats something i dont really like to touch as non kernel guy15:19
ograi can put it in pm-utils as well, but it would be moot for 90% of users15:19
loologra: Could you test it?  In terms of where to install what file with which contents15:20
loolNo, please not in pm-utils15:20
loolWe're going to forget it in there, and it will make suspend/resume slower for everybody15:20
rtglool: I can't figure out what you want an opinion on? adding madwifi to pm-utils for suspend/resume?15:21
loolrtg: Yeah15:21
loolrtg: Adding a hint to modprobe -r ath_pci on suspend/resume in lrm15:21
ogra /usr/lib/pm-utils/defaults would be one place to put it15:21
loologra: I'd have thought /usr/lib/pm-utils/sleep.d/nnmadwifi15:23
loolSUSPEND_MODULES="$SUSPEND_MODULES ath_pci"15:23
loolnn < 50 I'd guess15:24
ograyeah15:24
rtglool: thats the way I've done it in the past.15:24
ograi'D suggest 10 15:24
loolrtg: Someone preparing a lrm upload in the kernel team currently could include this fix?15:24
amitklool: wouldn't that start a precendent of different  packages hacking into pm-utils configs15:25
loolamitk: I think it's the intention of this dir of modules to be extensible in this way15:25
ograamitk, thats what the xxxx.d dirs are for15:25
rtglool: that makes LRM dependent on pm-utils15:26
Kanortg: why dont you blacklist ath_pci for testing?15:26
Kanomy card can connect with both drivers15:26
loolrtg: Why?15:26
loolrtg: lrm just provides a pm-utils extension which is picked up if installed15:26
Kanoand the standard madwifi branch is even worse than ath_pci,because only the madwifi-hal branch or ath5k can use ar200715:27
loolrtg: Or are you suggesting you can fix this in the kernel module directly?15:27
amitklool: ogra: are you guys getting stable wireless connections on the Q1? I am oopsing in 5 minutes today15:27
ograi do15:27
loolamitk: I do, but then I didn't really try high traffic15:27
rtglool: no, I was just considering whether LRM needed to be install time dependent on pm-utils.15:27
loolI did do some ubuntu updates thopugh15:27
loolrtg: I don't think this is needed, no15:28
rtglool: ok15:28
* amitk downloads a new mobile image15:28
Kanortg: ar2007 is for example on eee pc15:28
loolrtg: Ideally, we would fix the relevant layer (kernel module) and have this quirk apply for all possible suspend/resume scenarii, but I'm not competent enough to suggest something lower level than pm-utils15:28
rtgKano: I had no luck with sustained transfers using ath5k. I also talked to Luis and he agreed that 2.6.27 ath5k isn't ready for prime time.15:28
loolpm-utils is what is used on desktops and mobile flavours, it's good enough for us though15:29
Kanortg: but standard madwifi is useless for lots of mobile devices15:29
loolI guess it wont work with echo mem >/sys/power/state though :-/15:29
rtgKano: you're right, which is why we're suggesting LBM with the compat-wireless stack.15:29
loologra: If you have your Q1U booted, can you try the proposed SUSPEND_MODULES and confirm file pathname and contents?15:30
loologra: i'm not 100% sure the files are sourced, they might be exec'ed15:31
loologra: In which case, you need to implement it differently15:31
loolOr in a different place15:31
ogradoing now15:32
loologra: You might want to test what happens when SUSPEND_MODULES is set in the main config15:34
ogralool, i'm pretty sure they need to be executable15:35
ograso #!/bin/sh15:35
loologra: Then what I proposed isn't enough15:36
loologra: I'm not sure how do you keep state on whether ath_pci needs to be reloaded or not15:36
ograneeds an export15:36
ograSUSPEND_MODULES is ok, thats the way to do it15:36
jdonganyone here familiar with how to kick the macbooks into AHCI mode the 'right way'?15:38
jdongthey seem to boot in piix compatibility mode, but if you forcibly talk to it in AHCI it responds15:39
jdongI'm wondering if there's a more correct way to kick it into AHCI mode, as AFAIK no other Intel AHCI controller behaves in this way15:39
ograhmm, the script seems not to work :/15:40
loologra: Make sure your 10something isn't parsed after the system's config where one might have set SUSPEND_MODULES="foo" (overwriting your addition of ath_pci)15:41
mjg59jdong: There is no right way15:41
mjg59And several others will behave in the same way15:41
jdongmjg59: hmm is there any way that we can get macbook users AHCI mode out of the box then?15:41
mjg59Currently? No.15:41
jdongmjg59: it seems like SATA link power management shaves off almost a watt on idle15:41
mjg59Bug Apple15:42
ogralool, it gets reloaded if put in the default file but doesnt attempt a connect15:42
mjg59THeir firmware sets it up to be in piix mode15:42
jdongunderstood.15:42
jdongso there's no way to kick it back to AHCI mode from our side15:42
ogralool, oh, sorry, my fault, there was a popunder from a former try15:42
ograit was waiting on passphrase confirmation15:42
jdongmjg59: thanks for your insight :) I guess I'll just continue rolling my own hacked kernels then15:44
ogralool, i by looking at pm-functions fear we have to resort to /etc unless we want it in the pm-utils package15:45
Kanortg: btw. at least 2/5 pci ids from ath9k are enabled in ath_pci15:46
rtgKano: thats right, I seem to remember a couple of AR5007 chips supported by ath9k.15:53
loologra: Uh?15:53
ogralool, pm-functions only respects /etc/pm/config.d/ or /usr/lib/pm-utils/defaults for setting global vars 15:55
loolamitk: laptop-mode-tools is an example of extending /usr/lib/pm-utils/sleep.d BTW15:56
ograyou can use /usr/lib/pm-utils/sleep.d/XXblah but it will be a rather complex script 15:56
loologra: My problem is mostly with saving the state of whether ath_pci was already loaded or not15:56
ogradoesnt matter 15:56
loologra: I don't think it needs to be large15:57
loologra: Doesn't matter?15:57
ograthe new ath5k from lbm will override it anyway15:57
loologra: I don't want ath_pci to be modprobed if people are using ath5k or nothing15:57
ograno matter if its loaded or not15:57
lool???15:57
ograi just tested that before with rtg 15:57
ograath5k will claim the device and manage it, no matter if ath_pci is loaded15:58
ograwith the lbm one15:58
ograwith the in-kernel one its exactly the other way round15:58
loolI'm not sure you're looking at the same bug that I am15:59
loolI'm speaking of people having lrm installed, using madwifi15:59
loolThese wont get wifi on resume15:59
ograright15:59
ograright15:59
loolI'm looking at providing a pm-utils file to have the module modprobe -red and modprobed on suspend/resume15:59
ograadding ath_pci to SUSPEND_MODULES solves this15:59
ograwe have two options for that, putting a one liner in /etc/pm/config.d/ or a complex script that executes functions on suspend resume into /usr/lib/pm-utils/sleep.d/XXblah16:00
loologra: Will the module be loaded on resume if it wasn't loaded?16:00
ograyes16:01
loolThat's not good16:01
ograoh, wait, you mean if it was never loaded ? 16:01
ograwhy should it be loaded on resume if the kernel didnt load it on boot16:01
loologra: Actually, it wont be reloaded if you use SUSPEND_RESUME16:01
ograSUSPEND_MODULES you mean16:02
lool_rmmod() touches a file saying whether it was modprobe -red successfully or not16:02
loolErr SUSPEND_MODULES right16:02
ograit gets reloaded here 16:02
loologra: Could you offer a /etc/pm/config.d/ file in the bug for the kernel team to add to lrm?16:02
ograbut why shouldnt it have been loaded by the kernel before, i dont understand16:02
loologra: it gets reloaded when it wasn't loaded?16:03
ogrado you have an example when exactly " it wasn't loaded" could happen ? 16:03
loologra: People with lrm installed but not having madwifi hardware16:03
loolatheros hw16:03
loolOr people using lbm's ath5k16:04
ograah, well, modbprobe would surely do the same as on boot16:04
lool(I know the correct module will be used, but we shouldn't load ath_pci nevertheless)16:04
loologra: It wont16:04
ogralooking for the pci id and load or not load it depending on the finding16:04
loolBut pm-utils doesn't look at PCI ids...16:04
ograpm-utils is dumb16:05
ograit calls modprobe16:05
loolYes, not on PCI ids16:05
ograno, it just calls modprobe16:05
loolNot only16:05
ograif there is no atheros HW modprobe will silently die16:05
loolIt also saves whether a modprobe -r failed or not16:05
loolif it succeeded, it will reload the module16:06
ograright16:06
ograstill, if there is no atheros HW it wont do any harm16:06
ograif lbm is there, ath5k will in any case override madwifi16:06
* lool pfff16:06
ograwe shipped lrm for years 16:07
ogramadwifi was always included16:07
ograwhy shoulld it suddenly behave harmful if there is no atheros HW16:07
ograthere are only two intresting scenarios imho16:08
ograath_pci being blacklisted ... lbm being installed16:08
ografor the first i added a fix recently to pm-utils to not probe blacklisted modules16:08
ografor the second it was confirmed today with rtg that lbm overrides madwifi in any case16:09
ograso i dont see any issue here16:09
loolI should have tested myself, would have been quicker: echo "SUSPEND_MODULES=loop" > /etc/pm/config.d/loop16:12
loolSuspend+resume, loop isn't loaded16:12
loolI'll verify it works fine with ath_pci when I'm done reverting to non-lbm16:12
* ogra still doesnt get the issue, modprobe would care 16:14
ogralool, info added to the bug16:21
ograerm ... did i add to the right bug ? 16:22
ograyou closed all tasks16:22
loolOk, verified the proposed fix16:26
loologra: https://bugs.edge.launchpad.net/ubuntu/+source/linux-restricted-modules/+bug/275692 I think I mentionned this earlier16:27
ograah16:28
* ogra copy pastes16:28
loolrtg: So I confirmed the fix; is it you who's preparing the last lrm upload before release?  Could you add a /etc/pm/config.d file as described in this bug and close it?16:28
rtglool: ok, on conf call. will deal afterwards16:29
loolrtg: Thanks16:32
loolrtg: After discussion with cjwatson, we will defer #275692 to a SRU as there's too much work to do before final already16:46
loolrtg: Will repoke you about merging it after final :-)16:46
rtglool: agreed16:48
=== amitk is now known as amitk-afk
=== ogra_ is now known as ogra
=== thegodfather is now known as fabbione
elmowhat's responsible for telling iwl3945 that I'm in the UK and want the full spectrum of wireless channels?22:48
elmoor more relevantly; is it the kernel's problem?22:49
elmo(it's regressed for me in intrepid)22:49

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