IRC log for #maemo-ssu on 20130915

00:13.50*** join/#maemo-ssu Martix_ (~martix@static-84-242-103-180.net.upcbroadband.cz)
01:30.49*** join/#maemo-ssu jonwil (~jonwil@27-33-137-199.static.tpgi.com.au)
02:03.09*** join/#maemo-ssu amiconn_ (amiconn@rockbox/developer/amiconn)
05:47.57*** join/#maemo-ssu amiconn (quassel@rockbox/developer/amiconn)
06:28.41*** join/#maemo-ssu LauRoman (~LauRoman@5-14-93-219.residential.rdsnet.ro)
07:18.22*** join/#maemo-ssu scoobertron (~tom@66.172.11.27)
07:18.40*** join/#maemo-ssu Pali (~pali@Maemo/community/contributor/Pali)
07:22.03*** join/#maemo-ssu sunny_s (~sunny_s@business-092-079-020-027.static.arcor-ip.net)
07:54.56*** join/#maemo-ssu Pali (~pali@Maemo/community/contributor/Pali)
08:18.44*** join/#maemo-ssu Vlad_on_the_road (~Vlad_on_t@ip-66.net-82-216-1.versailles2.rev.numericable.fr)
08:23.24freemangordonPali: any idea who loads hsi/ssi drivers?
08:32.14*** join/#maemo-ssu oooaaaooo (~rootzilla@d122-109-58-186.per802.wa.optusnet.com.au)
08:39.03*** join/#maemo-ssu DrCode (~DrCode@gateway/tor-sasl/drcode)
08:39.11oooaaaooohi guys what is the difference between stable & testing?
09:17.53*** join/#maemo-ssu dhbiker (~dhbiker@95.87.145.172)
09:20.36*** join/#maemo-ssu NIN101 (~NIN@p5DD2B39B.dip0.t-ipconnect.de)
09:25.17*** join/#maemo-ssu NIN102 (~NIN@p5DD2B39B.dip0.t-ipconnect.de)
09:49.26*** join/#maemo-ssu Martix_ (~martix@static-84-242-103-180.net.upcbroadband.cz)
11:28.06DocScrutinizer05see /topic
11:28.20DocScrutinizer05see http://wiki.maemo.org/Community_SSU
11:40.08*** join/#maemo-ssu dos1 (~dos@unaffiliated/dos1)
11:57.55Palifreemangordon: no
12:05.59freemangordonPali: hmm, no matter what I do, there is no responce from cmt  :(
12:06.37freemangordonit looks like cmt is not powered
12:07.10freemangordonPali: did you ever got cmt drivers working with 3.x kernels?
12:07.14freemangordon*get
12:07.36PaliI think not, they not worked with 3.5 too
12:08.05freemangordonweird, Skry had them working
12:08.24freemangordonseems like the patches you've applied are not the correct ones
12:09.05freemangordonPali: do you have a link to nemomobile kernel adaptation git tree?
12:09.09freemangordonfor n900 that is
12:09.13freemangordonI cant find it
12:09.37Paligit://github.com/nemomobile/kernel-adaptation-n950-n9.git
12:09.42Paligit://gitorious.org/meego-device-adaptation/n900_kernel.git
12:09.48Paligit://github.com/skry/linux.git
12:09.52Paligit://github.com/skry/linux-n900.git
12:10.09freemangordongit://gitorious.org/meego-device-adaptation/n900_kernel.git gives 404
12:10.22PaliI have these repos ^^^
12:10.31freemangordonoh, this is git :D
12:13.43*** join/#maemo-ssu bsdmaniak (~bsdmaniak@std93-20-88-120-139-80.fbx.proxad.net)
12:42.59*** join/#maemo-ssu bsdmaniak (~bsdmaniak@std93-20-88-120-139-80.fbx.proxad.net)
13:02.50*** join/#maemo-ssu T_X (~T_X@open-mesh.org)
13:18.42*** join/#maemo-ssu arcean (~arcean@aacu151.neoplus.adsl.tpnet.pl)
13:18.58*** join/#maemo-ssu Vlad_on_the_road (~Vlad_on_t@ip-66.net-82-216-1.versailles2.rev.numericable.fr)
13:25.12*** join/#maemo-ssu arcean_ (~arcean@aacr134.neoplus.adsl.tpnet.pl)
13:31.40freemangordonPali: why "CONFIG_OMAP3_L2_AUX_SECURE_SAVE_RESTORE is not set"?
13:31.55freemangordonI bet we work without L2 cache
13:32.07Palido not know
13:32.11freemangordon:)
13:32.35PaliI tried to merge rx51_defconfig from maemo 2.6.28 kernel with omap2plus from 3.5
13:32.44freemangordonok
13:32.47Paliand result is rx51_defconfig in 3.10
13:32.54Paliif there is something missing, enable it
13:32.58freemangordonok
13:33.09Palialso I looked in menuconfig and tried to enable what is needed
13:33.19Palibut make menuconfig is really really really big
13:33.30freemangordonPali: in ssi driver there is something missing, but I don;t know how to readd it using hwmod/clock framework
13:33.48Palifreemangordon: try to ask sre
13:33.54Palihe upstreaming now ssi driver
13:34.02Paliand do not know which version using...
13:34.04freemangordonit is a function disabling autoidle on dpll3
13:34.17freemangordonO bet what he tries to upstream does not work
13:34.20freemangordon*I
13:35.01Palihttps://lkml.org/lkml/2013/8/11/67
13:35.49Palihe could be on #debian
13:36.31freemangordonPali: seems there is some HW bug, see ssi_disable_dpll3_autoidle in meego tree
13:36.40freemangordonsre == Skry ?
13:36.44Palino
13:36.47freemangordonoh
13:37.05PaliSebastian Reichel
13:37.20Palihe porting debian to n900
13:37.28freemangordonok, will look at what he does
13:40.08freemangordonhmm seems different
13:42.15Palifreemangordon: maybe we should look at meego n900 kernel tree if there are not some needed patches
13:42.36freemangordonseems his driver is ported to hwmod
13:45.19freemangordonPali: BTW CONFIG_OMAP3_L2_AUX_SECURE_SAVE_RESTORE is the same as my ppa api
13:45.38freemangordonI mean, it calls smc to save/restore AUX reg
13:45.56freemangordonwithout that AUX context get lost on sleep
13:46.00freemangordonafaik
13:57.15Palifreemangordon: look at commit 1a7e01f01a4af807206de0d26f059c3459f3a1fb in meego n900 git tree
13:57.35Paliit adding some regulator for camera operation
13:58.04freemangordonok
13:59.15Paliand there is another commit cae12d3ebf22039cc7216f317bebac2f797d2a31 which reduce battery consumption
14:00.35freemangordonPali: want to test sri's ssi driver first
14:00.47Palithere are maybe more interesting patches...
14:00.55Paliok
14:00.56freemangordon:nod:
14:14.52DocScrutinizer05honestly wonders what you guys are targeting at
14:15.15freemangordon3.x working with maemo?
14:15.24DocScrutinizer05looks like, yeah
14:15.54DocScrutinizer05"working" and *working* are two different things though
14:16.36freemangordonif we can't make it on n900, we aon;t be able to do it on neo900 as well
14:16.41freemangordon*can't
14:17.09DocScrutinizer05maybe that whole effort turn out to be futile in the end - see my recent rant why you frequently regularly want to or even have to "fork" and run your own kernel flavor for embedded
14:17.32freemangordonDocScrutinizer05: yep, but lets see what we can do with upstream first
14:17.39DocScrutinizer05sure
14:17.42DocScrutinizer05:-)
14:17.44freemangordonbefore doing forks :)
14:18.16DocScrutinizer05after all you *should* be able to forward-port _all_ the nice powermanagement patches that we find in maemo kernel
14:18.24freemangordon:nod:
14:18.37freemangordonBTW I think part of them are already upstreamed
14:18.47freemangordonbut don;t ask me which prts :D
14:18.54*** join/#maemo-ssu FlameReaper (~assassin@175.139.222.7)
14:18.54DocScrutinizer05if the result will go upstream ever that's another question
14:18.59freemangordonsure
14:19.29DocScrutinizer05but we should be able to get a recent kernel with powersaving as good as maemo 1.6.28
14:19.39DocScrutinizer052.6....
14:19.43DocScrutinizer05typo
14:20.25DocScrutinizer05then also revert all the damage done to sysfs etc by kernel devels ;-) Done
14:21.03freemangordonPali: re camera - we already have that regulator, but board code is missing the ".supply = "vaux2" part
14:21.08freemangordonNFC if that matters
14:21.44DocScrutinizer05in the end it doesn't matter if you backport 80 patches into KP57 or forward port 150 Nokia patches and rollbacks to linus kernel 3.11
14:21.57DocScrutinizer05the result in the end should be identical
14:22.13freemangordonsure
14:22.27freemangordonthe easy way is to use KP :)
14:22.36*** join/#maemo-ssu sixwheeledbeast (~paul@cl-1547.lon-02.gb.sixxs.net)
14:23.10freemangordonbut we rather keep that as a fallback
14:23.18DocScrutinizer05I strongly support any such project you're doing. It helps us acquire better knowledge about our kernel
14:23.54DocScrutinizer05and in the end both approaches will result in same final "product"
14:24.12DocScrutinizer05when done correctly and comprehensive
14:24.25freemangordonsure, but having upstream kernel working is preferable imo
14:24.42freemangordonwe can use it for other distros as well
14:25.40DocScrutinizer05as already explained. The 100% finalized result is identical for both approaches. It's the different flaws you get for 99% finalized versions that makes the difference
14:26.43DocScrutinizer05for the KP approach you will miss functions or see broken functions that are new to 3.11. For the linus branch aproach you will see flawed power management
14:27.23DocScrutinizer05after fixing those flaws, both end results are 100% identical
14:30.01DocScrutinizer05you definitely can use stock maemo kernel for other distros as well. See easydeb
14:30.40DocScrutinizer05the question is what's the effort to port any such kernel to other hw platforms
14:30.46DocScrutinizer05and keep it up to date
14:31.08DocScrutinizer05for both the linusbranch approach has clear advantages
14:31.52DocScrutinizer05for maemo stability at large, the KP approach is clearly the better one
14:33.33DocScrutinizer05I'm just a tiny bit worried that users might think this project is closely related to CSSU which clearly it isn't and shouldn't
14:34.26DocScrutinizer05we maybe need to mint a new term, like e.g. CSSU-Factory
14:34.52DocScrutinizer05or CSSU-Lab
14:35.52DocScrutinizer05would make a nice home for FPTF as well
14:36.35DocScrutinizer05in the end Neo900 maemo will be a "new distro" no matter how binary compatible it might be for apps
14:36.55DocScrutinizer05CSSU-S/T clearly is NO new distro
14:37.14DocScrutinizer05a common misconception
14:38.31DocScrutinizer05introducing a new noticeably different (on API/revision level) kernel pretty much qualifies for "new distro"
14:40.31*** join/#maemo-ssu hatake_kakashi (~no@unaffiliated/tuxsavvy)
14:46.17freemangordonPali: hmm, sri's driver makes no difference :(
14:47.14DocScrutinizer05maybe you want to check e.g SHR, it has working BB5 modem on N900
14:47.41DocScrutinizer05ask dos1
14:47.43freemangordonany link to kernel tree?
14:47.47freemangordonok
14:47.59Sicelowho's sri?
14:48.10DocScrutinizer05sre
14:48.14Sicelook.
14:48.24Palisre = Sebastian Reichel
14:48.47Paliworking with debian on n900
14:48.53*** join/#maemo-ssu DrCode (~DrCode@gateway/tor-sasl/drcode)
14:48.53freemangordonhmm, he is not on #debian
14:48.55Sicelohe's not done with the modem driver yet.
14:49.16Siceloquickest way to get him is Jabber
14:49.34DocScrutinizer05~shr
14:49.35infoboti heard shr is The Stable Hybrid Release (SHR), intended to be a community driven distribution composed of the FSO and some basic applications, that can be configured to use several different graphical toolkits, for example GTK or EFL. SHR is based on the FSO build. At first, SHR was introduced in order to use the Openmoko2007.2 GTK software in combination with the new FSO, but things have changed.
14:49.48Sicelodunno why, but he's been mia on IRC for a while now
14:49.53Palifreemangordon: sre has wireshark plugin for isi: http://sre.ring0.de/
14:50.01Palimaybe it can be used for debugging
14:50.37freemangordonPali: we are far from this ste, the modem seems to be either powered off or with no clk
14:50.42freemangordon*step
14:51.04Sicelothat's why he needed a serial adapter :P
14:51.08DocScrutinizer05http://shr-project.org/trac
14:51.28freemangordonJan  1 06:22:38 Nokia-N900 kernel: [   21.256744] SSI protocol aka McSAAB added
14:51.30freemangordonJan  1 06:22:38 Nokia-N900 kernel: [   21.291198] cmt_speech cmt_speech: hsi_client_probe
14:51.32freemangordonJan  1 06:22:38 Nokia-N900 kernel: [   21.331665] ssi_protocol ssi_protocol: Configuring SSI port
14:51.34Palifreemangordon: look at sre kernel tree: http://sre.ring0.de/linux/
14:51.34freemangordonJan  1 06:22:38 Nokia-N900 kernel: [   21.331787] ssi_protocol ssi_protocol: Issuing BOOT INFO REQ command
14:51.36freemangordonJan  1 06:22:38 Nokia-N900 kernel: [   21.331817] hsi_async 346
14:51.38freemangordonJan  1 06:22:38 Nokia-N900 kernel: [   21.337951] ssi_protocol ssi_protocol: Issuing RX command
14:51.41freemangordonJan  1 06:22:38 Nokia-N900 kernel: [   21.337982] hsi_async 346
14:51.42DocScrutinizer05Pali: II have ISI plugin for wireshark ;-)
14:52.17freemangordonPali: and ^^^ is all I have, modem does not respond to "BOOT INFO REQ"
14:53.10DocScrutinizer05http://talk.maemo.org/showthread.php?p=1022444#post1022444
14:53.13DocScrutinizer05;-D
14:56.07DocScrutinizer05freemangordon: NB the cmt_speech is a upper layer that uses a virtual channel in the low level ISI interface to BB5
14:56.47DocScrutinizer05before even bothering about cmt_speech, you should get basic communication to BB5 working
14:56.57freemangordon:nod:
14:57.30DocScrutinizer05ISI is a bitch
14:57.56Palifreemangordon: https://elektranox.org/n900/contact.html
14:58.29DocScrutinizer05iirc you need a quite complicated strictly defined sequence of actions to crank it up
14:58.54DocScrutinizer05worse than e.g. USB
14:59.06freemangordonDocScrutinizer05: yep, by using gpio pins
14:59.22DocScrutinizer05not only, that's actually not even ISI
14:59.31DocScrutinizer05ISI is a "network protocol"
14:59.35dos1SHR on N900 is using 2.6.37
14:59.38DocScrutinizer05similar to TCP/IP
14:59.40freemangordonto power the modem up that is
14:59.51dos1recipe is named "linux-nokia900-meego"
14:59.52freemangordondos1: oh, pretty old I'd say :)
15:00.12dos1yup
15:00.27freemangordonmodem was working there
15:00.32dos1development pretty much stalled after some initial work
15:00.43dos1so it probably won't be useful
15:01.23Palifreemangordon: he is probably under irc name elektranox
15:01.29DocScrutinizer05it's at least nit like "power up cmt, send AT, receive OK"
15:01.32DocScrutinizer05not*
15:01.46DocScrutinizer05you need to *establish* the connection
15:01.51freemangordonPali: hmm, lemme try to reach him
15:02.56Sicelohis nick was just 'sre' when he was still available. xmpp is the quickest way as mentioned above
15:02.56DocScrutinizer05>SSI protocol aka McSAAB added<  and immediately then >cmt_speech cmt_speech: hsi_client_probe< looks completely odd and fishy anyway
15:03.17DocScrutinizer05cmt_speech CANNOT work immediately after adding the low level PHY driver
15:03.19freemangordonyep, seems like function calls were wrong
15:04.44freemangordonDocScrutinizer05: though that should not prevent from communication with the modem
15:07.25Palilook at /msg NickServ info elektranox
15:08.35Siceloah, freenode.. :)
15:08.52freemangordon<PROTECTED>
15:09.04Siceloi used to find him on OFTC
15:09.23Palireally above is his irc freenode nick
15:09.31freemangordon:nod:
15:09.41Paliuse xmpp or email
15:09.47Palinow he is offline
15:10.58Siceloon xmpp he's right now online, but marked DND. around UTC 1800, he's usually online
15:11.22DocScrutinizer05freemangordon: cmt_speech is similar to a USB soundcard driver.  HSI is similar to PCI where a NIC is plugged in. ISI is similar to the TCP stack, and your "soundcard" you want to talk to via cmt_speech would be attached via USB-over-TCP/IP
15:11.49freemangordonDocScrutinizer05: I understand that :)
15:14.01DocScrutinizer05:-)
15:14.13freemangordonPali: http://sre.ring0.de/linux/log/?h=ssi-cleaned-dt
15:14.29freemangordonI guess we shall wait for that to go upstream :)
15:15.18DocScrutinizer05fsck DT
15:15.25freemangordonyeah :(
15:15.30DocScrutinizer05another kernel devs' brainfart, eh?
15:16.41Sicelobut the linux-arm ML is clearly biased towards DT now.. looks like they just dismiss anything not DT
15:17.29DocScrutinizer05feels like kernel devels invented a general way to describe arbitrarly shaped areas that are hw paltforms, but in RL hw platforms are not areas but 3D objects like irregular toroids etc
15:18.41DocScrutinizer05some might even be higher-dimensional
15:19.09DocScrutinizer05good luck for describing this via polygons
15:19.59Sicelothey'll tell you that gfx cards do that :p
15:21.29DocScrutinizer05they will suffer a terrible mistake then, sinc graca only produce 2D projections of the real worls
15:21.47DocScrutinizer05world even
15:23.43DocScrutinizer05a pixmap is elementarily incapable to describe 3D objects comprehensively, and likewise it seems to me DT is incapable of describing real hw platforms in a sufficiently flexible manner
15:24.13Siceloanyway, /me doesn't know sh*t about kernel development lol, just that i have had a chance to talk to people like sre before
15:25.13jonwilbah, my N900 work is getting me nowhere. Need to find something useful to do...
15:32.43DocScrutinizer05well, I've seen kernel concepts come and go. And I guess DT is not one of the concepts here to stay
15:35.16jonwilwhat exactly is DT?
15:35.19DocScrutinizer05just like maemo got rid of initrd, since initrd is nonsense for a highly specialized kernel meant to run on one well defined and immutable platform only
15:36.32DocScrutinizer05jonwil: Device Tree. a description of *all* the hardware you find on the platform, incl all its properties
15:37.22DocScrutinizer05drivers know sh*t about how to handle that particular platform, they look into DT to decide what to do. Basically
15:37.38DocScrutinizer05bbl
15:37.51*** join/#maemo-ssu Vlad_on_the_road (~Vlad_on_t@ip-66.net-82-216-1.versailles2.rev.numericable.fr)
15:39.26DocScrutinizer05"which powersupply to ramp up to power that WLAN module?" -> "look into DT"
15:40.22DocScrutinizer05"which interface to use to talk to the power supply to tell it to ramp-up?"  -> "look into DT"
15:40.39DocScrutinizer05aiui
15:40.49jonwilI can see now why its not so good for all platforms
15:41.09jonwilwhere its incapable of describing all the things you need to describe
15:41.17DocScrutinizer05it's an idiotic idea in some cases
15:41.29DocScrutinizer05yes, exactly
15:41.40jonwilif its idiotic, why do kernel devs want to persist with it?
15:42.29DocScrutinizer05because it's so... computer-scientific
15:42.51DocScrutinizer05BBLFRN
15:42.54DocScrutinizer05o/
15:43.32*** join/#maemo-ssu FlameReaper (~assassin@183.171.169.9)
15:44.11jonwilIf I had a dollar for every time I heard of a programmer continuing to persist with stupid code and continuing to not accept better ways of doing things, I would probably have enough money that I wouldn't need to write code for a living and could just retire... :P
15:44.26*** join/#maemo-ssu DrCode (~DrCode@gateway/tor-sasl/drcode)
15:44.32PaliDocScrutinizer05: DT is bettern then ACPI DSDT
15:44.52jonwilGOOD programmers will listen when someone says "I have a better way to do xyz"
15:45.28PaliACPI is undebugable and unparsable
15:45.35Paliand human unreadable
15:45.49Paliand even worse machine not executable...
15:45.58Paliand needs own VM
15:46.08Paliand acpica in kernel!
15:46.37Paliand thanks to MS who created proprietary extension WMI which is now used for evryething
15:46.50jonwilGood luck getting ACPI working unless you reverse engineer Windows and do EXACTLY what Windows does (since that's all most motherboard vendors test against)
15:46.59ShadowJKA lot of the bugs come from the code assuming the OS will do X, and not checking if OS did X
15:47.02Palithank you, rather DT
15:47.09ShadowJKyeah what jonwil said :)
15:47.45ShadowJKacpi is otherwise a cool idea, replacing BIOS roms running real mode code with a portable bytecode
15:48.37Paliportable bytecode? really? it is bytecode designed for x86
15:49.38PaliI'm not able to decompile my DSDT because it has invalid sequences...
15:49.50Paliand ability to patch it is not possible
15:50.19ShadowJKKernel patches it all the time :-)
15:50.22jonwilis there a better way to do the kind of stuff embedded ARM needs than DT?
16:05.47DocScrutinizer51FFS, queue at the voting booths :-(
16:06.09DocScrutinizer51~xyawn
16:06.09infobotgood coffee
16:06.24DocScrutinizer51where?
16:22.52DocScrutinizer05well, ACPI never *really* worked for me and my linux boxen
16:23.36DocScrutinizer05since ACPI is not one of the selling points you check when picking a MoBo
16:24.17DocScrutinizer05thus vendors do whatever shite, as long as it works with windows (like jonwil said)
16:24.47DocScrutinizer05industry level PCs are a tad fifferent I guess
16:24.52DocScrutinizer05different even
16:41.03DocScrutinizer05in the end DT and ACPI are a good thing for general purpose one-kernel-fits-all approach that is used for x86 PC. For a highly tailored-to-fit "custom" kernel designed to perform as good as possible on one particular embeeded device like N900, you better forget about any such concept all together
16:41.55DocScrutinizer05s/eede/edde/
16:45.41DocScrutinizer05really, shoehorning a concept like ACPI (or DT?) onto a device that doesn't even have any BIOS to support the idea's founding requirements - that feels more than silly to me
16:50.34DocScrutinizer05"first let's ponder how to hardcode a ACPI emulator into the kernel to compensate for missing BIOS with real DSDT/ACPI tables. Then we try to figure how we can read out that crap and nevertheless *despite* of it do the right thing for our particular platform, for which we need custom patches to 50% of device drivers anyway and those patches will never make it upstream" - outright ridiculous
16:52.59DocScrutinizer05that's the moment when you want to "fork"
16:53.29DocScrutinizer05which so far every single embedded project I know of eventually did
16:53.37*** join/#maemo-ssu Vlad_on_the_road (~Vlad_on_t@ip-66.net-82-216-1.versailles2.rev.numericable.fr)
16:54.09DocScrutinizer05maybe they don't call it "fork"
16:54.38DocScrutinizer05but in the end it is. Just a highly customized kernel (and userland) that has no chances to go upstream
16:55.48DocScrutinizer05upstream is PC centric, and it gets more and more PC centric every day dudes like Poettering rush over it
16:58.44DocScrutinizer05systemd My ASS. Definitely the ideal concept for embedded
17:00.13ShadowJKjust setup a board with 64M ram and systemd :)
17:00.17DocScrutinizer05and android madness bleeding into linux recently doesn't help either
17:00.58DocScrutinizer05newsflash time
17:01.01DocScrutinizer05o/
17:01.10dos1what makes systemd so unsuited for embedded?
17:03.30DocScrutinizer05the overhead
17:03.50DocScrutinizer05or let me put it this way: the philosophy behind it
17:04.30DocScrutinizer05systemd makes /usr mandatory during *early* boot
17:04.38DocScrutinizer05actually it abolishes /usr
17:04.56DocScrutinizer05it also abolishes udev
17:05.23DocScrutinizer05but not to replace it by sth more lightweight
17:06.50DocScrutinizer05HECK, systemd *needs* d-bus last I tried to check
17:07.09nedkosystemd works in pair with udev
17:07.17DocScrutinizer05and don't get me started on d-bus
17:07.22dos1hehe
17:07.24nedko:)
17:07.45wmarone_AF_DBUS
17:07.58nedkowmarone_: it is in mainline?
17:08.08wmarone_Haven't looked into it in a while
17:09.18nedkoDocScrutinizer05: in fact systemd and udev are quite coupled. what they abolish is hal
17:10.08DocScrutinizer05last I checked systemd simply scooped up and abolished udev
17:11.07DocScrutinizer05but I know of embedded systems that opted out from udev in favour for sth more lightweight
17:11.31DocScrutinizer05I don't see how that goes along with systemd
17:12.07DocScrutinizer05I also know of embedded systems (actually a friggin lot) that don't need nor want nor have the grunt to run d-bus
17:13.26DocScrutinizer05and it's only a matter of time until systemd eats PA and makes that mandatory as well, as otherwise no "beep beep I'm up! Greetings, Poettering" audio on loading the kernel
17:13.40nedkoDocScrutinizer05: what is more lightweight but has the same functionality than udev and d-bus?
17:14.03DocScrutinizer05no d-bus
17:14.07DocScrutinizer05no udev
17:14.17nedkono d-bus no udev -> no features they provide
17:14.25DocScrutinizer05fsck the "functionality"
17:14.33DocScrutinizer05so WHAT?
17:14.39dos1but you don't always need features they provide
17:14.45DocScrutinizer05exactly
17:15.07dos1I know that SHR was using devtmpfs instead of udev for some time
17:15.14DocScrutinizer05yep
17:15.19DocScrutinizer05for example
17:15.41DocScrutinizer05you can even run a system on statically configured devices
17:16.06DocScrutinizer05and *d-bus*??? PFFF!
17:16.39nedkoDocScrutinizer05: no IPC? or some other IPC mechanism?
17:16.50DocScrutinizer05google IPC!
17:17.01DocScrutinizer05it's not like d-bus invented that
17:17.11dos1just checked, it's still using devtmpfs
17:17.17DocScrutinizer05nor did Poettering
17:17.22nedkoof course, dbus is just what is the best IPC we have on linux
17:17.25dos1but well, together with systemd
17:17.33nedkomaybe not for low resource systems though
17:17.33DocScrutinizer05nedko: says WHO?
17:17.46nedkoDocScrutinizer05: i say it
17:17.50dos1but dunno if it would be still possible with upgraded systemd
17:17.56DocScrutinizer05I'm proud to differ
17:18.11nedkoDocScrutinizer05: this is why i asked you what you think is better
17:18.41dos1dbus is the most popular IPC system
17:18.48DocScrutinizer05I think I wouldn't be as silly as saying "XY is *best*" - since there never is ONE _best_ thing
17:18.52dos1but that doesn't make it the best automatically
17:18.59DocScrutinizer05exactly
17:19.26keriodbus is a piece of crap, but it's the less shitty of the generic IPC systems
17:19.30kerio*least
17:19.31nedkoof course, there are use cases when you don't event want linux
17:20.01keriobut, especially on an embedded system, why do you need a generic ipc system?
17:20.01DocScrutinizer05and there are situations where I don't want to continue such discussions
17:20.52nedkoi think the level of functionality/features maemo5 provides demands the features provided by dbus
17:21.08DocScrutinizer05who said "maemo"?
17:21.09nedkomaybe this is not embedded enough
17:21.29DocScrutinizer05do we have systemd on maemo? NO WE DONT and I'm pretty happy about that
17:21.31nedkomaemo is always implicit in this channel, no? :)
17:21.33kerioactually, even a lot less embedded
17:21.37kerioon a fucking server
17:21.54keriowhy would i want dbus?
17:21.59DocScrutinizer05indeed
17:22.02kerioor pulseaudio
17:22.44DocScrutinizer05because damn Poettering thinks you mustn't have login without accessability and I18n support
17:23.04DocScrutinizer05you MUST NOT
17:23.21DocScrutinizer05or you're free to use... _not_ linux
17:23.36dos1well, i'm using systemd on my pc; but each time when i remind myself that the same person who's responsible for it did pulseaudio, I think I might want to reconsider it ;]
17:23.45nedkoi dont want to troll you but you sound like a datenwolf... :]
17:24.28nedkoi dislike pulseaudio but i like systemd
17:24.33DocScrutinizer05excuse me for not even googling the term, couldn't care less. please refrain from explaining it to me
17:24.42nedkoit is a good thing for a dynamic system
17:25.36DocScrutinizer05maybe the concept is a good one, the implementation is abysmal and unbearable
17:26.12DocScrutinizer05so is the attitude driving it onto us
17:26.39nedkoit is open source...
17:26.54DocScrutinizer05go away with your "it's FOSS"
17:26.57nedkowe are free to implement it better or improve it
17:27.05dos1we are free to not use it
17:27.16DocScrutinizer05which is the only alternative
17:27.40nedkodos1: this too :)
17:28.12DocScrutinizer05you WLL NOTimprove the fucked up API
17:28.24DocScrutinizer05you WILL NOT remove the d-bus dependencies
17:29.15DocScrutinizer05it's like claiming "the plans for the hoover dam are public, you're free to improve them"
17:29.39nedkoo.0
17:30.33DocScrutinizer05improving systemd means abolishing it and replacing it by something now (or old)
17:30.33nedkodo you mean we don't have the resource to change the direction coprorate open source is pushing to?
17:31.23DocScrutinizer05just like Poettering did with ALSA, though ALSA was easy to improve and add the allegedly missing capabilities PA was meant to deliver but failed *epically*
17:31.56nedkoPA actually relies on ALSA
17:31.59DocScrutinizer05s/sth now/sth new/
17:32.10nedkoin some aspect, PA extends ALSA
17:32.20nedkoit doesnt abolish ALSA
17:32.20DocScrutinizer05nedko: believe me *I* know that
17:32.48DocScrutinizer05and no, it only depends on ALSA soundcard implementations
17:33.10DocScrutinizer05since Poettering boggled from that part
17:33.15nedkonot really but i'm not going to argue on this
17:33.28nedkoat least not here
17:33.53DocScrutinizer05anyway, I'm out. This discussion is futile
17:50.53thedead1440wonders if poettering ever made it into any of the #maemo* chans; he would certainly be delighted :p
17:54.27nedkothedead1440: this [pa/systemd/udev thing] is hardly news
17:54.44nedkoi was hit by it more than 5 years ago
17:54.56nedkolennart probably earlier
17:56.31*** join/#maemo-ssu LauRoman (~LauRoman@5-14-93-219.residential.rdsnet.ro)
17:57.37*** join/#maemo-ssu nox- (noident@freebsd/developer/nox)
18:03.18*** join/#maemo-ssu Milhouse (~Milhouse@Maemo/community/contributor/Milhouse)
19:10.08PaliPA using kernel ALSA
19:10.54Palibecause kernel ALSA is maybe only interface for kernel audio drivers (OSS in linux kernel is dead?)
19:29.20nedkoapp -> alsa (API) -> PA -> alsa (API) -> kernel
19:29.45nedkothat said, alsa is overengeneered too :)
19:32.46*** join/#maemo-ssu arcean_ (~arcean@aacr134.neoplus.adsl.tpnet.pl)
19:38.30DocScrutinizer05"alsa (API)" is a pretty crappy compatibility layer
19:38.43DocScrutinizer05the left one
19:39.22DocScrutinizer05the right one is basically not existing, just "hw:0.0" soundcard ALSA kernel driver
20:01.14keriokernel -> audio card is probably a lot more interesting
20:01.35kerioand we're lucky that it's too low level for lennart
20:01.41kerioor he would've fucked that up too
20:27.22DocScrutinizer05ack
20:55.26*** join/#maemo-ssu freemangordon_ (~freemango@213.137.35.49)
21:01.02Palinedko: PA not using alsa userspace API
21:01.10Paliit using direct kernel API
21:01.47Pali(if lennart did not changed it)
21:02.37Pali~poettering
21:02.49Pali~lennart
21:02.49infobotLennart is ~Poettering
21:02.57Pali~Poettering
21:03.16Paliinfobot dead?
21:03.16infobotyes :(
21:04.11nedkoPali: this is clarification not argument against my statement i guess?
21:05.19Palijust info which I known
21:06.04PaliI hate PA too
21:06.41nedkoso you are telling me that PA talks to ALSA code in linux kernel not via libasound2?
21:08.14Palilast time (in past) when I looked into PA it does not used any alsa userspace dmix/filters
21:08.40Paliand grabbed kernel alsa card directly
21:09.02Paliexclusively
21:09.33Palimaybe it was changed... I do not want to look into PA sources
21:10.02nedkoyou can grab the card directly and exclusively via the normal user-space ALSA API
21:10.06nedkoPA and JACK do this
21:10.34PaliI already read full lennart's ifplugd daemon and this was horrible...
21:11.24PaliI think that this guy does not know anything about networking and sockets
21:11.44PaliUsing busy waiting...
21:12.57nedkoi know for sure he knows this stuff very well, can you show an evidence to prove otherwise?
21:14.10Palilook into ifplugd source code
21:14.26Palior if you are lazy run: $ strace ifplugd
21:14.59Paliwith strace you will see at least busy waiting
21:30.27nedkoPali: are you talking about daemon_retval_wait() ?
21:31.38*** join/#maemo-ssu sunny_s (~sunny_s@business-092-079-020-027.static.arcor-ip.net)
21:31.40Palinedko: I do not remember, but daemon did this: wait 1s, ask kernel for network adapter status, wait 1s, ask ....
21:31.48*** join/#maemo-ssu wmarone (~wmarone@c-67-174-151-253.hsd1.ca.comcast.net)
21:32.29PaliI do not want to read that lennart's code again...
21:47.43nedkoPali: i read the code. and i think you are wrong. the code uses select() and there is indeed 1 second. it is used for things that you cannot do otherwise, no?
21:48.14Paliget network link status?
21:48.21nedkoyup, seems like this
21:48.25Paliyou can that
21:48.51nedkohow you do it?
21:48.55Paliopen netlink socket
21:49.09Palisend some data
21:49.37Paliand kernel will send you info when link change
21:49.53Palido not know all needed flags for netlink
21:49.58Palibut it is possible
21:50.18nedkohttp://git.0pointer.de/?p=ifplugd.git;a=blob;f=src/interface.c;h=c7747889639e55e5de71f20811d00b4315d4855c;hb=HEAD#l46
21:50.28nedkoIIRC you cannot detect the carrier this way
21:51.03nedkoi.e. UP != LOWER_UP
21:51.09nedkobut i may be wrong
21:51.27Palifor sure you can
21:51.29Palibut via netlink socket
21:51.52nedkohmm, maybe i gave wrong link...
21:51.52Paliand not using SIOCGIFFLAGS
21:52.09Paliifplugd is badly written
21:52.20Paliand using that SIOCGIFFLAGS with busy waiting
21:52.33*** join/#maemo-ssu sailus (~sailus@valkosipuli.retiisi.org.uk)
21:52.50nedkoPali: was it possible when lennart wrote that code?
21:53.13PaliI do not know
21:53.30Palibut this is still present in last version
21:53.39nedkothe last version is quite old
21:53.40Paliwhich is widely used
22:02.58Palinedko: RTM_GETLINK should be that netlink packet type
22:04.02Paliand RTMGRP_LINK group
22:06.01nedkothe code already uses RTMGRP_LINK
22:07.05nedkoso i wonder why he still polls
22:08.03Palibecause he is lennart?
22:08.47nedkoyeah, ad hominem works :-/
22:11.34nedkolatest ifplugd release is from 2005, the kernel documentation networking/operstates.txt was added in 2006
22:13.06Paliand why he using RTMGRP_LINK before?
22:17.42nedkoPali: IFF_LOWER_UP was introduced in 2006 as well, after the latest ifplugd release
22:20.23nedkoPali: 2006 as well: http://lkml.indiana.edu/hypermail/linux/kernel/0602.2/1883.html
22:22.28nedkoand he wrote that code in 2003
22:22.35Palihm, ok
22:25.42Palinedko: read that thread
22:25.45Paliand last email: http://lkml.indiana.edu/hypermail/linux/kernel/0602.2/2287.html
22:26.30nedkoPali: still 2006, three years after lennart wrote the ifplugd code for NETLINK stuff
22:27.38Paliin above email is written that it was possible before above patch... but I do not want to look into history... maybe really there was no API
22:28.08Paliwhat is bad is that last version of ifplugd does not support it and it is used in 2013
22:28.23nedkoi agree
22:41.58*** join/#maemo-ssu oooaaaooo1 (~rootzilla@d122-109-46-88.per802.wa.optusnet.com.au)
23:58.18*** join/#maemo-ssu M4rtinK (~M4rtinK@mail.melf.eu)

Generated by irclog2html.pl Modified by Tim Riker to work with infobot.