/srv/irclogs.ubuntu.com/2016/04/18/#ubuntu-kernel.txt

=== hughhalf_ is now known as hughhalf
=== tyhicks` is now known as tyhicks
=== shuduo-afk is now known as shuduo
=== jibel_ is now known as jibel
denludHey Guys09:37
denludCan somebody tell me why the Option CONFIG_MMC_UNSAFE_RESUME cant be set in new kernels? (4.0+)09:37
denludI want to bind my sd card as /home, but then my laptop cant use suspend. The solution for people with an older kernel was this Option. Now it doesnt exist anymore.09:39
apwdenlud, well from the name UNSAFE does not sound that positive09:40
apwdenlud, did you have some kind of kernel command line override to enable that mode ?09:40
denludIt declares a SD Card as unremoveable.09:40
denludIts only unsafe, if you change your sd cards.09:41
ogra_i think yoiu can enforce that from userspace somehow09:41
amitkdenlud: that behaviour became the default IIRC from chatting to the MMC maintainer and so the option went away09:41
apwas being allowed to be, but ... does the option have an override to opt-in, otherwise that is a risky proposition09:41
denludIt becomes default?09:42
denludBut my /home isnt working after suspend....09:42
apw   - CONFIG_MMC_UNSAFE_RESUME=y is now default behavior09:42
apwcirtianly the changelogs imply the option became the default which fits amitk's memory09:42
amitkyes09:42
amitkdenlud: and here is a line from his his weekly report to me:09:43
amitk* Submitted a new version of the patchset that makes MMC_UNSAFE_RESUME09:43
amitkdefault behaviour.09:43
denludOk, but it isnt working....09:43
denludWhat should i try anymore....i already tried alot :(09:44
amitkdenlud: try talk to ulfh on #linaro-kernel09:44
ogra_https://www.kernel.org/doc/menuconfig/drivers-mmc-core-Kconfig.html09:44
ogra_This option sets a default which can be overridden by the09:44
ogra_module parameter "removable=0" or "removable=1".09:44
apwi think that may no longer exist09:45
ogra_(now dont ask me how to set it if there is no module :P )09:45
denludBut that was my Question.....:D09:45
ogra_did you dig in sysfs ?09:45
denluddig in sysfs? Sorry i am a Linux Beginner...09:46
ogra_find /sys -name '*removable*'09:47
ogra_check if there is anything mmc related09:47
ogra_aha ... so it seems there is a cmdline option:09:48
ogra_mmc_core.removable=009:48
ogra_add that to youir kernel commandline 09:48
ogra_and see if that fixes it09:49
denludyes that could be the solution!!09:49
denludIf that fixes my Problem, i love you ogra_ :D You dont know what i already make to get my /home work...09:50
apwdenlud, that option no longer exists in later kernels09:50
apwit was removed when the option was set to =y and removed09:50
denludreally?09:50
apwyes09:51
ogra_how mean09:51
apwnot really, i think your sysfs thing is worth persuing09:51
apwas the kernel behaves different depending how the card is marked removable/not09:51
apwbut the unsafe toggle for all cards is gone09:51
apwas many machines using it have two slots one inside which is not-removable and one outside which is09:52
apwso they need both semantics, different per card09:52
apwwhether you can lie to the kernle and say your external card is "not-removable" less easy to tell09:52
apwon quick inspection09:52
apwit's you arm types who have made this this way :)09:52
denludI dont get why my SD Card isnt working, and my internal space is working. They are both MMC's.09:53
denludOh ok, apw...09:53
ogra_ubuntu@localhost:~$ find /sys -name '*removable*'|grep mmcblk109:53
ogra_find: ‘/sys/kernel/debug’/sys/devices/platform/soc/7864900.sdhci/mmc_host/mmc1/mmc1:1234/block/mmcblk1/removable09:53
ogra_so seems on systems with mmc i have such a sysfs node09:53
denluddennis@Yoda:~/kernel/linux-source-4.4.0$  find /sys -name '*removable*'|grep mmcblk109:54
denludfind: "/sys/kernel/debug"/sys/devices/pci0000:00/0000:00:12.0/mmc_host/mmc2/mmc2:aaaa/block/mmcblk1/removable09:54
denlud: Keine Berechtigung09:54
ogra_find the equivalent on your system and make sure the content is "0"09:54
ogra_well, if mmcblk1 is your mmc device ... else your command needs to filter "mmcblk0"09:55
denludmy working mmc device is mmcblk0 (the internal space)09:56
ogra_so:  find /sys -name '*removable*'|grep mmcblk009:56
apwshoving a card in mine it is marked non-removable ... so i'd kinda expect that work be ok09:56
apwwould09:56
apwbut perhaps that is a lie from my bios or something, hmmmm09:56
denludfind: "/sys/kernel/debug"/sys/devices/pci0000:00/0000:00:12.0/mmc_host/mmc2/mmc2:aaaa/block/mmcblk1/removable09:58
denludhow can i lie to my kernel now, and say its non removeable?09:58
denludI dont get it sorry...09:58
ogra_why do you look at mmcblk1 ?10:01
ogra_(you said above it is mmcblk0)10:02
denludNo, the already working mmc is mmcblk010:03
denludhome "is" mmcblk110:03
apwdenlud, what sort of machine is this ...10:04
denludIts a Lenovo 100s10:04
denludand it only has 32Gb internal space. 14" version10:04
apwdenlud, and is the mmcblk0 "inside" and mmcblk1 a removable slot ?10:04
denludYes.10:04
apwand when you s/r what happens to your card goes into error or something ?10:07
denludhttps://forum.ubuntuusers.de/topic/sd-karte-home-wird-falsch-behandelt/10:08
denludHere I posted all outputs.10:08
denludDont want to post It here, its very much...10:08
apwyep10:09
apwwell on a cursory examination i cannot actually see a way to override the behaviour, it seems to be defined10:09
apwby the machine definition telling the slot whether it is removable, and if it is, it gets zapped on s/r10:10
denludMy second output I posted there was after suspend, when my /home isnt working anylonger. And the programs are already crashed10:10
denludSo I must try a flipping of the bios removeable bit?10:11
apwdenlud, i am not sure you would even have such a setting, you might, but ...10:13
apwthough the description implies the card should be handled as if the old UNSAFE is set, so i am not sure10:13
apwwhy this is not working as one would expect, i guess some later change10:14
denludhttp://apple.stackexchange.com/questions/113202/can-i-mark-a-sd-card-as-permanent-storage10:14
denludOh, that is for apple. I thought if it would be for windows. I can install Windows. flipping the bit in the BIOS, install Linux and be happy.10:15
denludSeems like I have to give my Laptop back...10:19
denludOr should i try flipping the BIOS non removeable bit? pci0000:00/0000:00:12.0/mmc_host/mmc2/mmc2:aaaa/block/mmcblk1/removable10:20
apwdenlud, i have no idea if that is even the right kind of bit as that is marked non-removable already ... right, it is 010:23
denluddennis@Yoda:~/kernel/linux-source-4.4.0$ cat /sys/devices/pci0000:00/0000:00:12.0/mmc_host/mmc2/mmc2:aaaa/block/mmcblk1/removable10:25
denlud010:25
apwthis descrption still says that the kernel should be behaving as it was with unsafe set, which should work10:26
apwie the card should just be being s/r as well10:26
denludYou think the problem must be somewhere else?10:27
apwit feels like the card is not handling s/r well10:28
apwi wonder if i can confirm that here somehow ...10:28
=== davmor2_ is now known as davmor2
denludCan i send you a pastebin link, i make some orders after suspend. And there some I/O Errors I think.10:30
denlud*?10:30
denludhttp://pastebin.com/FwzhraHt10:31
denludThis output is after suspend. Maybe you can take a look at it.10:32
denlud(At the moment when /home isnt working)10:33
ogra_because it becake readonly obviously10:36
ogra_*became10:36
denlud...can I do something against that bevior?10:38
apwdenlud, ok i just added an sd card in my external sd slot, which i believe is marked removable10:39
apwdenlud, and after a s/r it is still there and working, no errors10:39
apwdenlud, what kernel version are you using 10:39
denludI tried 4.2, 4.4.0-12 and 4.4.0-18 and 4.4.610:39
apwso i am using 4.4.0-20 and it worked there for me, but i would expect -18 to be the same for mmc things10:40
apwso that for me suggests it is machine specific in some way, but i am not really sure what to suggest as mine works10:40
apwor at least not affecting everyeone10:40
denludMaybe I try another SD Card10:42
denludWhat datasystem are you using FAT?10:42
apwdenlud, ext4, so something which cares if the media is ripped out10:46
denludOk, so i try another SD Card now and thats all i can try or?10:48
apwi am out of obvious ideas at this point10:48
denludOk, but thank you and ogra_ for your help.10:49
denludAnd sorry for my english, I dont write in english very often.10:49
apwnp10:49
apwyour english is perfectly understandable10:49
=== henrix_ is now known as henrix
=== Beret- is now known as Beret
=== mukhbiir is now known as neoark
=== Trevinho_ is now known as Trevinho
=== Ursinha_ is now known as Ursinha
=== infinity_ is now known as infinity
=== kloeri__ is now known as kloeri
=== dgadomski_ is now known as dgadomski
=== ghostcube_ is now known as ghostcube
fg__cking: any news about pkg-zfs/pkg-spl packaging repositories? the one at git://kernel.ubuntu.com/cking/pkg-zfs.git is still very much out of date, and the zfs user space source packages don't reference anything..13:04
fg__also are there any plans to include ZFS support in the ubuntu installer? couldn't find anything in the beta 2 iso that would allow me to setup zfs as root fs13:05
ckingfg__, i will get onto that, just I'm buried in some other higher priority tasks at the moment13:06
ckingfg__, no, it's not going to be supported in the 16.04 installer13:06
fg__I figured you would have other stuff on your plate with the nearing release, but figured asking would not hurt ;) thanks!13:10
smbapw, So fwiw I dug out an old aspire one that got mmc card reader and I neither can see any attempt (4.4.0-18) to eject the card and can suspend/resume even with an ext3 mounted and cd'ed into the path on a terminal window to keep it occupied13:16
=== leitao_ is now known as leitao
=== ogra_` is now known as ogra_
cpaelzerHi, I've analyzed bug 1570195 down to an issue in DPDK (not clear what it is exactly yet) and the kernel (can drive virtio into an infinite loop)13:28
ubot5`bug 1570195 in linux (Ubuntu) "Net tools cause kernel soft lockup after DPDK touched VirtIO-pci devices" [Medium,Confirmed] https://launchpad.net/bugs/157019513:28
cpaelzersmb: arges: ^^ the bug holds a lot of debug info, but I'll give you the tl;dr and ask you a few important questions for confirmation before I go out to the dpdk and kernel community13:29
cpaelzerthe most important open question to me would be - "what would need to happen" in the virtio protocol/host/guest-implementation so that the loop at the end of virtnet_send_command becomes an infinite loop13:30
cpaelzerit seems the buffers never change/refill again - but that is my assumption13:30
cpaelzerlook at this for the loop http://lxr.free-electrons.com/source/drivers/net/virtio_net.c#L101113:30
smbcpaelzer, maybe you allow me/us a bit to read into the bug13:31
cpaelzeroh absolutely - I'm happy about a few more eyes trying to reinterpret13:31
argesyea what smb said : ) lots of data13:31
cpaelzerI might have diverged from the right way several times13:31
smbcpaelzer, There is rarely "the" right way anyway13:32
argescpaelzer: without reading the entire bug, have you been able to eliminate any variables causing this bug? dpdk/ovs/virtio/multiqueue ; does it work with newer kernel version, etc13:34
cpaelzeryes13:35
cpaelzerovs is out of the scope13:35
cpaelzeralso dpdk doesn't need to run traffic, just initializing the devices is enough13:35
cpaelzeranything that goes through virtnet_send_command seems to block13:35
=== dgadomski is now known as dgadomski_
argesand upstream dpdk also fails with the same issue?13:36
cpaelzerI didn't check an upstream kernel yet, but can do that along you are reading this13:36
=== dgadomski_ is now known as dgadomski
smbcpaelzer, with initializing you mean let the app grab the devices not bound to a linux driver13:36
=== dgadomski is now known as dgadomski_
=== dgadomski_ is now known as dgadomski
cpaelzersmb: this is virtio - dpdk grabs the device even while bound with a linux driver13:36
cpaelzerthat is part of the problem as it leaves it behind in a broken state13:36
cpaelzerarges: I can test upstream versions of both over the next hour and let you and the bug know - a good test for sure13:37
cpaelzernot that I would have seen anything in the dpdk commits, but one can never be sure13:37
argescpaelzer: yup13:38
smbcpaelzer, Hm, imo that should not be possible and probably is the problem. While the virtio network driver is bound to the device dpdk should not be able to directly access it. But thats right now a high level opinion (without much research)13:42
cpaelzersmb: it does work and it is how the people use it13:42
cpaelzersmb: which doesn't counter your opinion at all - I wondered myself at first13:42
cpaelzersmb: I asked on the DPDK channel what the opinion of the DPDK Maintainers to that is13:49
cpaelzere.g. do they epxect people to reinitialize devices ?13:49
cpaelzeror even not to use them while bound to virtio-pci in general (but what would the PMD driver be for then)13:50
=== PaulW2U_ is now known as PaulW2U
smbcpaelzer, I could imagine that being bound there, though there is also the virtio bus involved and there the virtio-net driver. But with the whole stack set up I can imagine that virtio-net could make certain assumptions which may be messed up by something else touching the lower level protocol13:56
cpaelzersmb: thanks, that is like a +1 to my theory14:01
cpaelzerstill in general we would like to protect the kernel by e.g. detect too much retries in that loop and bail out right?14:01
cpaelzerI'll later on once confirmed on latest upstream of kernel and dpdk send mails to their mailing lists14:04
smbcpaelzer, heh... well the question is a bit whether virtio protocol should ever be in the situation to have a loop. The answer from that side might be that should never happen so one needs to fix the loophole of getting there.14:04
cpaelzerIMHO the kernel should get a protection to return an error instead of hanging14:04
cpaelzerand DPDK should more clearly state to either not do it this way OR add something like "after you touched it it is broken, you need to reinit"14:04
cpaelzersmb: yeah, but so far I con only point at the end of the loophole and can't clearly say which part breaks it :-)14:05
smbIf the virtio nic would behave like a physical one you would get an error when trying to access it without rebinding to some userspace io driver, wouldn't you14:06
cpaelzersmb: yes14:06
cpaelzersmb: also a lot of people ran into trouble by dpdk (by default) grabbing all virtio-pci devices (usually shutting your ssh connection down)14:07
cpaelzerunfortunately so far no one responded on the DPDK IRC chan14:07
smbcpaelzer, Oh I know... 14:07
cpaelzerbut if nothing gets back the mail will do14:08
cpaelzeryou have to blacklist/whitelist things to go on with virto-pci14:08
cpaelzerah you mean you ran into that smb?14:08
smbYeah... not sure that was even with real hw and accidentally forgetting the blacklist ...14:08
smbback in 2.014:09
smbat least some state of kiss your network connectivity good bye after trying what happens when I run testpmd...14:10
cpaelzersmb: ha - the dpdk maintainer responded14:19
cpaelzersmb: the admin is supposed to reinitialize14:19
cpaelzerknown deficiency14:19
cpaelzerI'll submit patches for the docs of dpdk and our readme in packaging and our serverguid doc about it14:20
cpaelzeryet I think the kernel should protect itself in some way and will start the discussion on that later as well14:20
smbcpaelzer, yeah somehow it should be similar to real hw. I just cannot really say how this all should interact together...14:23
cpaelzersmb: there is a patch that it no more initializes when bound to virtio-pci14:28
cpaelzersmb: just discussing with the DPDK maintainer - I'll try to backport that14:29
cpaelzerthat would mean a user would have to unbind it from virtio-pci before using it in dpdk14:29
cpaelzerand to use it in the normal linux world would have to rebind it14:29
cpaelzerthat would reinitialize and all is good14:29
smbcpaelzer, I think that would make it behave "normal" so much better 14:30
cpaelzerack14:30
=== smoser` is now known as smoser
=== ghostcube__ is now known as ghostcube
jsalisburylamont, I pinged upstream regarding you bug again.  I cc'd you on the mail, so you can stay in the loop.19:47
lamontwoot19:48
=== ghostcube_ is now known as ghostcube
=== alexlist` is now known as alexlist
denludHeey whats up?23:53
denludI have a Problem with my diskspace, would be great if someone can i help me. I have downloaded to much porns, now my home memory is full. How can i expand it with an external drive?23:56

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