/srv/irclogs.ubuntu.com/2009/03/24/#ubuntu-kernel.txt

elwoodhi00:21
elwoodi've a broken usb-port on my pc, the kernel.log is full of "garbage" about it. There is a way to stop the scan for this port? it'a kernel or udev question?00:22
IntuitiveNippleA port or a host controller?00:23
IntuitiveNippleshort of disconnecting it physically, there's no way to disconnect a port from a host... often the ports are shared by multiple host controllers, too.00:23
elwood hub 1-0:1.0: unable to enumerate USB device on port 400:24
elwoodthis is the log, just and always the port 400:24
elwoodwith hal i can drop all the log to /dev/null? this is the first thing that pop-ups in my mind :)00:25
IntuitiveNippleno, the report is from the kernel module.00:26
elwoodok, and i suppose there is no parameter for the module00:26
IntuitiveNipplemaybe try repairing or disconnecting the port?00:26
elwoodso i can remove it physically, this is the way00:27
IntuitiveNipplemaybe not 'remove' it but electrically disconnect it so the hub doesn't try to select it... but that would require some in-depth systems knowledge. There's no way to isolate it from the kernel that I know of.00:27
elwoodIntuitiveNipple, even if i recompile without log info for the kernel?00:28
IntuitiveNippleThat's rather a drastic approach - what if something else happens and there's no reports?00:28
elwooda disaster, well thanks IntuitiveNipple 00:29
IntuitiveNippleYou could add a rule to syslog.conf00:29
elwooduhm00:29
elwooda filter on this warning00:29
IntuitiveNippleno, you can't filter on text, but you can set a rule so it doesn't log messages from particular facilities.priorities00:30
elwoodthis is what i means with "filter", well you make me find a reasonable solution, thanks again IntuitiveNipple 00:30
dandelapw, you there?00:50
IntuitiveNippleHe's probably fast asleep in bed this time of morning01:03
dandeluck... i need a rebuilt copy of the 2.6.25 mainline01:12
dandelthe one that is on the ubuntu mainline section won't boot enough to help with generating a git disection. 01:13
dandeli keep having 2.6.25 stall just after saying done on the section, Begin: Running /scripts/local-premount ...01:14
IntuitiveNippleYou could use break=top to drop into the initrd and poke around01:16
dandeladd that where?01:16
IntuitiveNipplekernel command line01:17
dandelok01:17
* dandel checks01:17
IntuitiveNippleIn the /init script is loads of calls to maybe_break XXXXX and if XXXX matches the command-line's break= it'll stop01:17
IntuitiveNippleOr, use just "break" and it'll stop at top anyhow01:17
IntuitiveNippleYou can break at other places; need to look in the /init script (in the initrd) to decide which ones to use)01:18
dandelit appears that it gets stuck mounting01:19
dandel2.6.24 and 2.6.26 work, but 2.6.25 stalls out01:20
IntuitiveNippleWhat I sometimes do is add "set -x" to the top of the /init script so I can see all the script commands executing... if it pauses/gets stuck the last ones on screen are a bug clue01:20
dandel?01:20
IntuitiveNippleIt causes the shell to write out all commands it is about to execute01:21
dandelwhere do i put that exactly?01:21
IntuitiveNipple2nd or later lines in /init, in the initrd. You'll need to extract and then repackage the initd image01:22
dandel><;01:22
IntuitiveNippleI've got some documentation on how to do that as part of a laret article01:23
IntuitiveNipplehttp://tjworld.net/wiki/Linux/Ubuntu/NetbootPxeLiveCDMultipleReleases#ExtractInitrd01:23
IntuitiveNippleTo extract the image see the section "Extract Initrd" and after changing the script, see "Rebuild Initrd"01:24
dandelok...01:24
dandelok.01:26
dandeladd set -x just after...  #!/bin/sh ?01:27
IntuitiveNippleYes01:27
* dandel boots to see what happens.01:29
dandeloops lol... forgot to add it to grub.01:31
IntuitiveNipple:p01:32
IntuitiveNippledid it spew the commands though?01:32
dandeli'll find out01:33
dandelit's not finding it ><;01:35
IntuitiveNipplewhich 'it' is not finding what 'it' ?01:38
dandelthe custom initrt... found the issue tho01:39
dandelalthough, i wish i could flat out disable system beep on a lot of things01:40
dandelhmm01:40
dandelinteresting01:40
dandelstops at the command... mount -w -t ntfs -o locale=en_US ( ya get the rest )01:41
dandelit appears it's running the mount commands wrong01:42
maxbsmb_tp_: Hi, ubuntu-intrepid-lbm.git doesn't contain the final debian/changelog update and tag for the latest package, did it remain accidently unpushed locally with you, perhaps?08:18
smb_tp_maxb, hi, let me check08:19
smb_tp_maxb, Yeah, sorry. Pushing in a sec08:20
smb_tp_done08:21
maxbthanks :-)08:21
=== smb_tp_ is now known as smb_tp
maxbHmm. my git is claiming there is no tag for this release?08:23
smb_tpmaxb, Too early in the morning to do two steps...08:25
maxbheh08:25
smb_tpNow08:25
maxbI guess that answers my next question: the insertchanges/commit/tag isn't automated anywhere?08:25
smb_tpmaxb, No, has to be done manually. And it has to be pushed separately (it least I had problems doing it in one go)08:26
smb_tpSo This time the tag was created, but I had to "push --tags"08:27
maxbYeah, git's a bit mystical to me. I don't really understand when you do and don't need --tags08:28
smb_tpTo me it looks like a extra thing just for tags. So git fetch --tags just updates the local tags and git push --tags sends them08:29
smb_tpWithout tags it seems only to do the actual contents08:30
maxbthe fetch/push documentation hints that it tries to transfer tags relating to commits that are being transferred. But I have a feeling that's not always worked as claimed for me.08:31
maxbor I've not quite understood the algorithm, anyway08:32
smb_tpSame with me. So I use it in that way that seems to work with my thinking (if I do not forget the steps)08:32
_rubenbugger .. dkms isnt picking up my second make command as specified in dkms.conf :(09:44
IntuitiveNipplesyntax issue?09:49
_rubencould very well be .. but im not seeing it .. lemme pastebin my conf09:53
_rubenhttp://paste.ubuntu.com/136597/ .. i tried both MAKE[1] and MAKE[10] .. as the result of the 2nd make are marked with [10] directives09:55
IntuitiveNipple_ruben: Why not simply use a Makefile and call it once?09:56
IntuitiveNipple_ruben: but, to use MAKE[10] you need a MAKE_MATCH[10] rule too10:01
_rubenIntuitiveNipple: hmm .. didnt think of the MAKE_MATCH directive .. but i can think i can solve it at makefile level indeed10:18
IntuitiveNippleMAKE_MATCH is required if you use MAKE[>0]10:18
_rubenthen there's a bug in the docs:10:20
_rubenhttps://help.ubuntu.com/community/Kernel/DkmsDriverPackage#Configure%20DKMS10:20
_rubenit mentions just a MAKE[1]10:20
IntuitiveNipple_ruben: man dkms10:21
apwIntuitiveNipple, hey ... bug #331415 ... have you a current status on that one, its on our regressions list :)10:27
ubot3Malone bug 331415 in linux "request_firmware() fails on resume from suspend" [Medium,Triaged] https://launchpad.net/bugs/33141510:27
IntuitiveNippleapw: WIP it's a biggie. I'll update it later on10:28
apwIntuitiveNipple, thanks ... be good to sync up on it before the meeting this evening10:29
IntuitiveNippleIt's a time-consumer! every driver has to be examined and figured out... I'm doing a little bit at a time10:31
IntuitiveNippleapw: I think it can loose it's regression-potential since it's always been like that :)10:36
IntuitiveNippleapw: removed tag10:36
apwIntuitiveNipple, thanks for that ... one less to worry about10:37
IntuitiveNippleyeah... I was combing the list yesterday, managed to find a few that moved closer to a resolution10:37
amitkhehe... Linus' 2.6.29 release mail got flagged as SPAM in gmail :)11:02
amitkapw: can you pull the levers on a new mainline build?11:04
amitkapw: or tell me how to11:04
apwamitk, which one you missing.  there is a build in progress right now, so its probabally the one you wanted11:04
amitkapw: 2.6.29 final?11:05
apwi think i saw it doing a .27 and a .28 ...11:05
apwok will check when these finish11:05
apwand i will get the thing running out of cron this week11:05
apwthe triggers are automatic in theory11:05
apwamitk, yeah its just done 27.21, its on 28.9 and will do .29 next i believe11:07
apwso in the next hour or so11:07
amitkcool, thanks apw 11:07
TheMusoc11:08
apwi have been monitoring the builds, and so hand triggering what is meant to be a cron job11:08
apwso its a simple matter of shoving it in cron (or should be)11:08
dandelapw, the bug i'm on is stuck until the 2.6.25 kernel gets fixed on boot ><; (it gets stuck on mounting )11:11
amitkapw: do you do a allmodconfig?11:11
apwnope, they are built using our ubuntu configs11:11
apwmake oldconfig from those11:11
apwwe can override config options where neceessary11:11
apwlike for hardy we reenable some wireless stuff which is in lbm11:13
amitkok11:14
* Kamping_Kaiser gazes at the wall11:17
amitkapw: bug #322311 and bug #338316 marked as 'Won't Fix' for the two arm flavours12:42
ubot3Malone bug 322311 in qcontrol "orion5x armel flavour should provide input-modules" [Undecided,New] https://launchpad.net/bugs/32231112:42
ubot3Malone bug 338316 in linux "Please add a MV78XX0 arm flavour" [Wishlist,Won't fix] https://launchpad.net/bugs/33831612:42
apwamitk, cool12:42
rtgapw, amitk: were there other bug fixes besides VFP for those flavours that we can remove?12:44
apwi don't recall doing any12:46
amitkrtg: I mentioned ce65d39bbcfaa3c0150891122df79f5ab2db550d needed to be reverted12:52
rtgamitk: see 14b2f940288288774f74414a0902d578d29d907612:53
rtgamitk: oops, nm12:54
amitkhehe12:56
rtgamitk: ok, you're right. tehre were 2 VFP patches and I missed the second.12:56
rtgamitk: I'm not familiar with all of the ARM model names. To which flavour does the Feroceon CPU belong? orion5x or mv78xx0 ?12:58
amitkrtg: mv78xx012:59
rtgamitk: thanks12:59
_rubenhttp://paste.ubuntu.com/136726/ .. i forgot skipabi=true on the first run .. do am i missing here? or is a clean+rebuild needed or something?13:27
cooloneybradF, did you boot up with your own rootfs13:53
cooloneybradF, amitk i also boot up my own kernel.13:54
cooloneyas bradF said, we need to download the kernel to 0x0010000013:56
cooloneythat is the entry point of the kernel image13:57
amitkright13:58
cooloneyamitk, how about the kernel command line of your board?14:00
cooloneyi try to mount the rootfs with my own kernel14:00
cooloneyafter replacing the kernel of ogra image with my own, the kernel cannot mount rootfs14:02
amitkroot=/dev/sda214:04
amitki use root on a usb stick14:04
cooloneyOK, i will try, thx14:05
cooloneyit is so weird14:11
cooloneyhttp://pastebin.ubuntu.com/136755/14:12
cooloneyamitk, what kind filesystem are you using on the usb stick?14:12
amitkcooloney: ext214:13
rtgamitk: is ext3 built in?14:14
amitkrtg: yes, i think so14:15
amitkyes, it is14:16
rtgamitk: it even says so14:16
amitkrtg: what does?14:16
cooloneyrtg, yes, ext3 built in14:17
rtgamitk: No filesystem could mount root, tried:  ext3 ext2 cramfs vfat msdos14:18
amitkaah, right14:18
amitkcooloney: do you have initramfs loaded?14:18
rtgamitk: noinitrd on the command line14:18
cooloneyamitk, currently no14:18
cooloneyRedBoot> fconfig14:19
cooloneyRun script at boot: true14:19
cooloneyBoot script: 14:19
cooloney.. clock 80014:19
cooloney.. fis load kernel14:19
cooloney.. exec -c "console=ttymxc0,115200 console=tty1 root=/dev/sda2 rootdelay=10 ro noinitrd"14:19
amitkUSB_STORAGE is built-in. Is your usb disk supported w/o modules?14:19
amitkand is the rootfs on /dev/sda2?14:20
cooloneyamitk, do you think i should add "fis load initramfs"14:20
cooloneysorry, what is "w/o modules?"14:20
rtgyeah, shouldn't root be /dev/sda1 ?14:20
amitkcooloney: do you need any special modules besides usb-storage14:21
cooloneyOK, let me try it.14:21
anubhavcooloney: can you append "rootwait" to your command line14:21
cooloneyanubhav, i will try it14:22
cooloneyamitk, rtg anubhav thanks, i found root is sda1 as ext3 on my usb stick14:25
rtgcooloney: makes sense to me14:26
cooloneysince this usb stick is from colleague freeflying14:26
cooloneyi did change it's content at all14:26
cooloneyamitk, should i build my own rootfs from scratch?14:26
amitkcooloney: you don't have to14:27
cooloneyi just need to boot the board to command line console over serial for development, i guess14:27
amitkright14:27
rtgcooloney: babbage?14:27
cooloneyrtg, yes14:27
cooloneybabbage early version14:28
rtgcooloney, amitk: does it work with SATA yet? I'cve got one, but the USB drive is _really_ slow.14:28
cooloneyrtg, i dont have sata on my side, just know SD and USB stick is ok 14:29
rtgcooloney: looks like you build the kernel? Our Freescale port using the cross compiler tools?14:30
amitkrtg: it was native built14:31
cooloneyrtg, right, i cross compiler our jaunty kernel to zImage14:31
amitkrtg: but you can replace the kernel with a cross-compiled one14:31
rtgamitk: Sourcery G++ Lite 2008q3-7214:31
cooloneyand downloaded the zImage to boot up now14:31
amitkrtg: yeah, good enough14:32
cooloneyamitk, i replaced the kernel from ogra image with my own kernel from cross-compiled one14:32
rtgamitk: its interesting because its the first time I've seen the cross compiled kernel booted. Its just verification that it works taht way.14:32
amitkrtg: you mean the first time you've seen cross-compilation used for something other than build verification?14:34
rtgamitk: in this particular case, yes14:34
amitkrtg: I've been using cross compiled kernels for the last month or so while we were integrating and testing the babbage flavour14:35
rtgamitk: its certainly a much faster way to build, isn't it?14:35
amitkrtg: hell yeah! I'd go nuts doing this in Qemu or natively14:36
rtgthe babbage was taking several hours per flavour14:36
bradFcooloney: haven't tested my own rootfs yet, just the kernel14:36
amitkrtg: it takes about 15-20 minutes on my rather old desktop machine for the babage kernel14:37
rtgamitk: :) I can beat that by 15 minutes.14:37
cooloneyamitk, rtg are you talking about cross-compiling babbage kernel on x86 machine?14:38
amitkrtg: showoff!14:38
amitkcooloney: yes14:38
rtgcooloney: dual quad core w/18GB RAM.14:38
bradFcooloney: that's how I am building my kernels14:39
bradFcooloney: rtg likes to brag :-)14:40
cooloneyrtg, really cool14:40
cooloneybradF, lol14:40
cooloneyguys, let me test on my side14:40
* rtg thinks bradf has computer envy.14:40
amitkcooloney: you were _not_ cross-compiling until now?14:40
bradFrtg feels sad for rtg14:41
cooloneyi always cross built14:41
* bradF feels sad for rtg14:41
cooloneybut dont know the time14:41
rtgamitk: that was the whole point of this discussion, e.g., I noticed that he booted a cross compiled kernel.14:41
cooloneyhehe, let me collect the timing info14:41
amitkright... 14:42
bradFamitk: what's the word on the 'securityfs' for AA? should I chase that?14:43
bradFamitk: just saw your email...will try it14:44
rtgis there still an AA upstream to send it to ?14:45
amitkbradF: it certainly seems worth a shot to see if enabling securityfs is all thats needed. Though I vaguely recall having tried that.14:45
amitkrtg: If there isn't, then what're we doing carrying around that patch and letting it bitrot?14:46
rtgamitk: Its a topic for UDS, but I'm thinking this is the last release with AA.14:46
amitkinteresting14:47
cooloneycan i reproduce this bug on my side?14:48
cooloneyif bradF needs help, i can join in14:48
bradFcooloney: are you talking about the apparmor bug?14:48
cooloneyright14:48
cooloneyAA = apparmor, if i am not wrong?14:48
rtgcooloney: correct14:48
bradFit's easy to repro, just go into your config and change the CONFIG_SECURITY_APPARMOR_BOOTPARAM_VALUE from 0 to 114:49
bradFcooloney: then if you don't have my patch, it will oops14:49
rtgbradF: with your latest patch (which I have not applied), how does it behave? Just the usual VFS can't find root halt?14:50
cooloneyok, booting oops?14:50
bradFcooloney: yes, booting oops, every time14:50
cooloneygreat, i will try 14:51
bradFrtg: yes on "can't find root"14:59
cooloneycross-compiling imx51 deb package on my side nees 13m15:00
rtgbradF: so, we're just trading on oops for another? albeit a bit more understandable.15:00
rtgone*15:00
bradFrtg: going to hook up a rootfs and see if it comes all the way up (looks like cooloney will probably try this as well)15:00
bradFrtg: are you talking about the securityfs?15:01
rtgbradF: yes15:01
cooloneybradF, yes, i plan to do it. but it seems that it will take too much time to build a root fs on my side15:01
amitkrtg: if AA truly needs securityfs, then it should be a autoselected dependency15:02
bradFrtg: the missing securityfs doesn't cause an oops, just that AA is not doing anything15:02
rtgbradF: ok, thats what I wanted to know. With the patch you can boot a rootfs, but without AA support, correct?15:03
bradFrtg: let me run a couple of tests, but yes that is what I believe15:03
rtgbradF: ok, when you're comfortable send me a pull request.15:04
bradFrtg: will do15:06
bradFamitk: i understand your point and depending on my testing my submit another patch 15:07
bradFs/my/may/15:07
amitkbradF: sure, take your time.15:07
charlie-tcaI downloaded today's images, they passed md5sums. I burned the Xubuntu jaunty-alternate-i386.iso to a cd-r. It passes the cd integrity check with no errors. I attempt to install to a hardware system. It fails with 15:08
charlie-tcaWarning: file:///cdrom/pool/main/x/xkeyboard-config/xkb-data_1.5-2ubuntu9_all.deb was corrupt15:08
charlie-tca(I burned another cd-r that works) Should I report this as a bug?15:09
amitkcharlie-tca: this is best reported on #ubuntu-devel15:09
charlie-tcaOkay, thanks15:09
bradFamitk: the kernel I just booted with the securityfs enabled seems to be working!15:11
amitkinteresting15:11
amitkso it _is_ a dependency15:12
bradFamitk: [42949373.670000] AppArmor: AppArmor Filesystem Enabled15:12
bradFamitk: yup15:12
rtgbradF: so I should expect some config changes along with the oops prevention?15:12
bradFrtg: they are independent of each other but the config change is necessary to run AA on imx51 (and all other flavours)15:14
apwthe oops prevention is moot if its a dependancy and so recorded in the config15:14
amitkbradF: this kernel is w/o your oops prevention patch?15:15
bradFamitk: it has both15:15
bradFamitk: however, it should work without my oops patch, will test15:15
rtgbradF: see if it works with just the config change15:15
amitkbradF: yeah, that would be interesting15:15
bradFapw: I see your point15:16
apwit does sounds like an unrecorded interdependancy to me15:16
amitkthough the oops prevention is what triggered the securityfs config light-bulb if I understood bradF correctly.15:18
bradFapw: it still seems like it should handle a missing securityfs a little better than an oops15:18
bradFamitk: yes15:18
apwbradF, not if its a depanancy, it should just be linked in the Kconfig magic15:18
apwand then become impossible to enable without the securityfs enabled15:19
=== maco_ is now known as maco
cooloneybradF, is this boot oops?15:29
cooloney[42949373.670000] AppArmor: Error creating AppArmor securityfs15:29
cooloney[42949373.700000] AppArmor: AppArmor protection removed15:29
bradFcooloney: after that you should get am actual oops and a backtrace15:30
cooloneybradF, right, i reproduce it15:30
cooloneythx15:31
bradFcooloney: http://pastebin.ubuntu.com/136819/15:31
bradFcooloney: it looks like you just need to enable the security fs and you don't need the patch I put out15:35
cooloneybradF, thx, i can test your method on my side15:36
apwcking, any idea waht a bcdDevice means in the context of usb?15:43
Keybukapw: device id in binary coded decimal15:43
KeybukUSB is *all about* bcd15:44
apwhrm, so something above and beyond its normal id's15:44
apw  idVendor           0x04ce ScanLogic Corp.15:44
apw  idProduct          0x0002 SL11R-IDE IDE Bridge15:44
apw  bcdDevice            0.7815:44
apwso that is a triplet in usb land?15:44
Keybuki think so yea15:45
Keybukit's basically the version number15:45
_rubenhmm .. recompiling kernel is taking up a fair amount of cpu sys % .. i'd expect just usr .. then again, havent rebuilt kernels in ages :p15:46
* apw learns yet another new thing today15:46
cooloneyapw, IMO, it is right, 15:46
cooloneyidVendor           0x05ac Apple, Inc.15:46
cooloney  idProduct          0x8242 15:46
cooloney  bcdDevice            0.1615:46
apwKeybuk, any  idea what waht base the output is in 15:47
apwis it decimal, or hex or?15:47
cooloneyit is just a version number as Keybuk said15:47
apwright but the output of the lsusb command what base is it in there15:47
cooloneyyes, lsusb will convert the binary code to such version number15:48
IntuitiveNippleapw: decimal15:48
Keybukapw: binary coded decimal15:48
cooloneyit should be 0x160015:48
cooloneyright?15:49
Keybukhttp://en.wikipedia.org/wiki/Binary-coded_decimal15:49
apwhrm, i see, so its literally in hex in some sense15:49
Keybukright you literally read the hex15:49
Keybuk0110 is read is 1.1015:49
Keybuk0206 is 2.0615:50
Keybuketc.15:50
apwok, so yeah bcd is hex format but you arn't allowed to use some of the combos15:50
apwthanks15:50
* apw puts USB on his idiot idea list15:50
rtgIntuitiveNipple: I'm just looking at your RCU backport. Is that patch in response to smb_tp's RFC on boot pauses?15:51
Keybukapw: USB is great!15:52
Keybukit's ALL about the ids ;)15:52
Keybukevery gadget has a vendor and a product id15:52
cooloneyKeybuk, really, it should be 1.10 = 100115:52
Keybukand a device version number15:52
* apw slaps Keybuk ... get a grip man :)15:52
Keybukand each device may have multiple configurations15:53
cooloney2.06 = 060215:53
apwcooloney, that _all_ depends on your endiannes15:53
IntuitiveNipplertg: Yes, it is backported from the upstream commit 15:53
Keybukdepending on the configurations, you then have multiple interfaces15:53
cooloneyapw, for usb it should be lsb little endian15:53
rtgIntuitiveNipple: I got that part. I was wondering _why_ you did the backport.15:54
Keybukand only then do you actually find out what the device *is* :p15:54
Keybukcooloney: err, is it?15:54
KeybukI'm pretty sure it's big endian15:55
IntuitiveNipplertg: Ingo Monar in the upstream bug thought the commit may solve the issue, so I figured we should try it against our tree15:55
IntuitiveNipples/Monar/Molnar/15:55
apwthe kernel is behaving as if 0074 -> 0.7415:55
rtgIntuitiveNipple: is there a repeatable test case that you know of?15:56
sconklinmaria/join #ubuntu-meeting15:56
cooloneyidVendor           0x1d6b Linux Foundation15:56
cooloney  idProduct          0x0002 2.0 root hub15:56
cooloney  bcdDevice            2.0615:56
cooloney0x002 = 2.015:57
Keybukcooloney: right, and if you cat the usb device's bcdDevice15:57
IntuitiveNipplertg: No - I was waiting for Stefan to produce some test kernels for the users reporting on the bug 15:57
Keybukyou'll see 0206 in there15:57
Keybuk0206 -> 2.0615:57
rtgIntuitiveNipple: ok, I'll annoy smb_tp15:57
IntuitiveNipplertg: :)15:57
smb_tprtg, I am not listening15:58
KeybukidVendor and idProduct are 32-bit words15:58
BUGabundohi15:58
KeybukidVendor assigned by a central naming authority15:58
KeybukidProduct assigned by the vendor15:58
rtgsmb_tp: take your hands off your ears, I can't hear you.15:58
Keybukthen for each product, you have a bcdDevice which supplies its version number15:58
BUGabundo6 out of 10 resumes my laptop gets so slow that I'm required to reboot it15:58
Keybukerr 16-bit words15:58
BUGabundohow can I debug this?15:58
smb_tprtg, Huh?15:58
KeybukbcdDevice is 4 4-bit bcd numbers, representing the version number of the device15:59
BUGabundoI noticed that setting cpu to performance "fixes" this15:59
rtgsmb_tp: kind of wrecks your mind, huh?15:59
BUGabundobut once I set it back to OnDemand slowness returns15:59
cooloneyKeybuk, but we should firstly receive lsb until msb15:59
Keybukcooloney: ?16:00
smb_tprtg, Not _that_. But to answer, yeah aÍ wanted to do that, I'll write it down to remember as soon as I am finished with what I am doing right now16:00
cooloneyKeybuk, first receiv 06 then 02 for 2.06 bcdDevice16:00
rtgsmb_tp: k, just note that the window for Jaunty is closing.16:01
Keybukcooloney: why?16:01
BUGabundook, you guy are busy... I'll come back latter16:01
smb_tprtg, yeah, I hope I am done with that stupid thing in a little16:02
cooloneyKeybuk, usb device should send out 06 firstly then 0216:02
Keybukcooloney: err, why?16:06
IntuitiveNippleSpec 8.1 Byte-order is LSb16:08
KeybukbcdDevice is not specified as a byte16:08
Keybukthe things specified as a byte are the ones beginning b, like bNumInterfaces16:09
cooloneyKeybuk, you are right, i confused bcdDevice with some values like wLength16:09
Keybukthe entire bcd field is sent in reverse, yes16:09
Keybukbut as one unit16:09
cooloneyright,16:09
KeybukwLength is a word, so that entire word would be sent in reverse16:11
Keybuknot each individual byte16:11
cooloneyexactly, cause i met a bug before which took me last of time16:11
cooloneyright, for wLength we need so le16 helper function to get their value16:11
cooloneys/so/some16:11
Keybuk(I could be massively wrong, but I'm fairly sure I'm not :p)16:11
cooloneyKeybuk, you're right on bcdDevice16:11
IntuitiveNippleall bits and fields are sent least-significant _bit_ first according to the spec16:12
Keybukright, it's a serial bus ;)16:12
IntuitiveNipplemulti-byte packets travel LSB wise16:12
IntuitiveNipples/packets/fields/16:13
KeybukLSB or LSb? :p16:13
cooloney0x00, 0x02, /*  __le16 bcdUSB; v2.0 */16:14
cooloneywe need set lower byte to 0x00 and higher one to 0x0216:14
IntuitiveNippleboth... bits are LSb fields are LSB16:14
cooloneywhen we initialize a usb2_rh_dev_descriptor in drivers/usb/hcd.c16:15
cooloneyright16:15
cooloneyIntuitiveNipple, right16:15
cooloneywLength  = le16_to_cpu (cmd->wLength); 16:16
cooloneywe need le16_to_cpu for word value,16:19
cooloneydrivers/usb/core/hcd.c:0x00, 0x02, /*  __le16 bcdUSB; v2.0 */16:19
cooloneydrivers/usb/core/devices.c:u16 bcdUSB = le16_to_cpu(desc->bcdUSB);16:19
Keybukthat could be the HCI bit16:22
Keybukit all gets complicated ;)16:22
Keybukbus sends it one way, the host in the computer turns that around and sets it another way, but then the CPU in the computer turns it around and sends it yet another16:22
cooloneyi think we just need take care of those 16bits field in usb descriptor structures. 16:24
cooloneyusb le16_to_cpu to help us out16:25
cooloneys/usb/use16:25
Keybukdepends where in the kernel you're looking16:25
Keybukeverything above the hcd uses CPU ordering, I think16:26
Keybukso bcdDevice=0x0110 -> 1.1016:26
Keybukmight be wrong on that one16:26
Keybukthe hcd spec might end up needed that as Intel-CPU ordering (since Intel wrote it :p)16:27
Keybukso that becomes 0x10, 0x01  (0001 0000, 0000 0001)16:28
Keybukbut then the bus spec says the entire field is LSB, so over the wire it's 0000 1000 1000 0000 I thijnk16:28
Keybukfeel free to go mad any point16:28
cooloneyi guess so, 16:29
cooloneyhcd is a driver which should take care of this order16:30
Keybuk(bearing in mind of course that on an Intel machine, bcdDevice=0x0110 ends up as 0x10, 0x01 in memory *but* 0x01, 0x10 in memory on something MSB)16:30
cooloneybut the order from usb hardware controller should be fixed as spec said16:30
Keybukthe kernel doesn't talk to such a device16:31
Keybukthe kernel talks to the Host Controller16:31
Keybukwhich is a different spec16:31
Keybukthe host controller does the wire stuff16:31
cooloneyright, host controler is a hardware which take case of the data transfer16:31
Keybukanyway, if there was an original question here, we've strayed a long way from an answer to it ;)16:31
cooloneybut hcd is host controller driver which is a software driver in kernel to handle that data from hardware16:32
cooloneyyes,16:32
cooloneybut i do like to discuss something with you guys here 16:32
Keybukno, the host controller is the pci device16:32
Keybukthe host controller driver talks to the host controller16:32
Keybukthe host controller talks to the hardware16:33
cooloneyoh, pci stuff is in pc domain16:33
cooloneyif in SOC like iMX51, the usb host controller is directly memory mapped16:33
cooloneyhcd controls it directly.16:34
Keybuksure, but they talk the hcd protocol, not the usb protocol16:34
Keybukso you'd have to pick up the xhci, ehci, ohci or uhci spec and see what that says for data transfer ;)16:34
Keybukif mucking around with the hcd driver16:34
Keybukeverything about the hcd driver, ie. when writing usb drivers, just do what the Linux kernel docs say16:35
cooloneyright, 16:35
cooloneyfor imx51 or other soc, the usb host controller does not support ehci/ohci/uhci 16:37
Keybukit doesn't?16:37
cooloneythey use their own register layout and need a new driver16:37
cooloneydrivers/usb/musb16:37
cooloneyit is a usb driver for Davinci/omap/Blackfin16:37
cooloneymentor graphic ip16:37
Keybukit at least vaguely pretends to be ehci16:37
Keybuknot that I can get my imx51 to boot today16:38
cooloneyoh, imx51 does includes EHCI host and USB OTG from ARC16:39
cooloneythe host mode driver in USB OTG should not be EHCI16:39
Keybukoh yeah, I remember why I hate this thing16:44
cooloneyusb is always my headache.16:44
cooloney-:))16:44
cooloneyespecially in embedded world16:45
Keybukyeah, this has that silly fsl-ehci thing that's a platform device16:47
=== maco_ is now known as maco
cooloneyKeybuk, sorry, my mistake16:53
cooloneythe USB OTG of imx51 also supports EHCI16:53
cooloneydrivers/usb/host/ehci-arc.c16:54
cooloneydrivers/usb/host/ehci-fsl.c is for the EHCI host16:54
=== mkrufky is now known as StupidAmerican
Turlhi19:21
Turlcan you suggest any other information for https://bugs.launchpad.net/bugs/348093 ?19:21
ubot3Malone bug 348093 in linux "Brightness keys ACPI events are not translated to keycodes" [Undecided,New] 19:21
Turl(and confirm & set priority maybe?)19:22
sourcemakerare there known problems with the 2.6.29 kernel?21:44
Kanohi rtg , could you fix at least the linux-headers package when you dont add my aufs fix?22:13
Kanothere are some missing files22:13
Kanoacpi/acpica/ dir is missing22:14
Kanothere are 3 headers in it22:15
Kanowell there are more, but fglrx needs 322:18
Kanohttp://kernel.ubuntu.com/git?p=ubuntu/ubuntu-karmic.git;a=tree;f=include/acpi;h=5ef3a2cd591223bf069be60037f2c576023752aa;hb=HEAD22:18
Kanothis is not in the headers22:18

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