IRC log for #maemo-ssu on 20130918

00:21.13*** join/#maemo-ssu jonwil (~jonwil@27-33-137-199.static.tpgi.com.au)
01:16.37*** join/#maemo-ssu X-Fade (~xfade@d5152FFD8.static.telenet.be)
01:16.51*** join/#maemo-ssu DrCode (~DrCode@gateway/tor-sasl/drcode)
01:25.57*** part/#maemo-ssu mkaindl (~mkaindl@ama-dablam.markus-kaindl.de)
01:41.15*** join/#maemo-ssu LauRoman (~LauRoman@5-14-93-219.residential.rdsnet.ro)
02:04.12*** join/#maemo-ssu freemangordon (~freemango@213.137.35.49)
02:31.32*** join/#maemo-ssu freemangordon (~freemango@213.137.35.49)
02:57.23*** join/#maemo-ssu amiconn_ (quassel@rockbox/developer/amiconn)
04:21.16*** join/#maemo-ssu n900-dk (~kgu@freebox.dk)
04:56.17*** join/#maemo-ssu dafox (~dafox@ip51cc571d.speed.planet.nl)
05:58.31*** join/#maemo-ssu dion_ (~dion_@dion.org.ua)
06:08.39*** join/#maemo-ssu Vlad_on_the_road (~Vlad_on_t@ip-66.net-82-216-1.versailles2.rev.numericable.fr)
06:14.33*** join/#maemo-ssu mkaindl (~mkaindl@ama-dablam.markus-kaindl.de)
06:45.41*** join/#maemo-ssu mkaindl (~mkaindl@ama-dablam.markus-kaindl.de)
06:54.24*** join/#maemo-ssu Pali (~pali@Maemo/community/contributor/Pali)
07:03.34freemangordonPali: how nice: "new patch, new email" :(
07:03.42freemangordonWTF is with those guys?!?
07:03.47Palino idea
07:04.21freemangordonmaybe you should start writing to linus directly :D
07:05.02PaliI think I will copy that hunk from previous mail to new and write somethig like guy XYZ was not able to do that
07:05.40Palifreemangordon: do you remember why mass storage support for g_nokia.ko was rejected?
07:06.08PaliI think that all usb maintainer do not have everything in head...
07:06.17freemangordonhmm, no. Wasn't it you that tried to upstream it?
07:06.54Paliyes I tried to upstream and it
07:07.09Paliand it was rejected because "only nokia can do any change in his g_nokia.ko driver"
07:07.31freemangordonoh
07:07.47freemangordonwhat is that supposed to mean
07:08.05freemangordon?
07:08.11Palithis means that they do not accept any change to g_nokia.ko driver
07:08.36Palimaybe only from somebody with @nokia.com email address
07:08.40freemangordonBTW even with your patches it doesn't work
07:08.50freemangordonPali: but how is that possible?
07:08.55Paliit worked with 3.9 or 3.8
07:09.06Palibut in 3.10 is g_nokia.ko totally broken
07:09.16freemangordonhmm
07:09.28Paliand I disabled lot of g_nokia.ko code because it I got always kernel panic
07:09.42Paliusb networking is still enabled and worked
07:09.56freemangordonit doesn't work for me
07:10.08PaliI used only rescueos
07:10.31Paliand manually loading driver + setting ip address it worked
07:10.39freemangordontried on both Win XP and Ubuntu 12.04 (my desktop PC and my laptop)
07:10.51Palibtw, now because usb subsystem (and musb) has bug which cause that charging drivers are non functional, that my patch for usb is required
07:10.59Paliotherwiese battery charging will not work
07:12.14freemangordonPali: I really don;t understand, this Tony guy was rejecting smc3 patchset for an year, now everything is fine, he says "because of DT move, bla, bla"
07:12.34PaliTony did not have time...
07:12.53Paliand he wait until arm guys accept it
07:13.16freemangordon"This file will be gone as soon as we're moving to device
07:13.16freemangordontree based booting. So let's do this in more future proof
07:13.18freemangordonway.
07:13.33Paliand only now Dave added: Acked-by
07:13.33freemangordonthis ^^^
07:13.41PaliI know
07:13.47freemangordonI know you know :)
07:14.12freemangordonsailus: ping
07:15.18freemangordonno use :)
07:16.44freemangordonBTW I see no way board code to go. Because of the cameras
07:17.34Palifreemangordon: can you write some good looking "education" email to that usb patch? Because If I send this which I'm writing now it will not be very good :-)
07:17.51jonwilhttp://wiki.maemo.org/Porting/Audio :)
07:17.58Palicopy paste full second hunk of patch to new mail is stupid
07:17.58jonwilwrote some stuff on audio for Neo900
07:18.14freemangordonYou means a a reply?
07:18.22freemangordon*as a
07:18.22Paliyes
07:18.45freemangordonby "education" you mean to share my thoughts on the matter?
07:19.08Paliwrite what do you think
07:19.12freemangordonok
07:19.25freemangordonbut later, not now
07:19.32Paliok
07:19.34freemangordonhave to run
07:20.16jonwilPali: Feel free to read http://wiki.maemo.org/Porting and add anything you got :)
07:20.26Paliok
07:21.30jonwilAudio in particular :)
07:21.54jonwilWe need to find someone who has really good pulseaudio knowledge
07:28.35*** join/#maemo-ssu dhbiker (~dhbiker@95.87.145.172)
07:53.48*** join/#maemo-ssu M4rtinK (~M4rtinK@ip-89-177-124-88.net.upcbroadband.cz)
07:56.05*** join/#maemo-ssu sarha (~sarha@kapsi.fi)
07:59.08Palifreemangordon: now I'm fed up with that usb guy and going to send not very good looking email
08:00.48*** join/#maemo-ssu dagb_ (~dagb@80.203.63.59)
08:03.32*** part/#maemo-ssu mkaindl (~mkaindl@ama-dablam.markus-kaindl.de)
08:07.20*** join/#maemo-ssu Martix_ (~martix@static-84-242-103-180.net.upcbroadband.cz)
08:28.09*** join/#maemo-ssu tg` (~x@unaffiliated/tg)
08:28.14jonwilis glad he doesn't do kernel stuff
08:28.27jonwilthat way I dont have to deal with all the mess going on
08:29.32Palijonwil: I think only usb developers are assholes
08:29.50jonwilheh
08:29.53PaliI sent patches to more other subsystems and I never had any problem
08:30.23Palionly two patches are rejected and both usb
08:31.43jonwilIts clear now that audio will be the hardest part of the Fremantle porting efforts
08:34.28Palinow I sent email for that usb guy (also CCed mailinglists)
08:34.50Paliwaiting for ban on all mailinglists
08:37.41jonwilwishes he knew more about PulseAudio and ALSA
08:45.09jonwilwishes more people cared about the
08:45.51jonwilwishes more people cared about the FPTF :(
08:47.09PaliFatPhil_: do you know somebody who can still use @nokia.com email address for sending kernel patches?
08:47.33Palihaving @nokia.com address is enough, nothing more is needed
08:48.28PaliFatPhil_: usb subsystem maintainers rejected patch for g_nokia.ko usb gadget driver because "only nokia can change this part"
08:49.24Paliand also they did not understand that nokia is not going to update and use linux g_nokia.ko usb gadget anymore...
08:54.55keriofreemangordon: apt wants me to reinstall python2.5 from the repo :(
08:54.59keriowhy didn't you add a +thumb to the version
08:56.08FatPhil_No results found for "only nokia can change this part".
08:56.45FatPhil_1 result found for "Guys, WHY ARE YOU SO STUPID AND ARROGANT?"
08:57.01keriothe fuck is ke-recv-extra
08:57.03kerioD:
08:57.45keriowtf is hulda
08:57.46*** join/#maemo-ssu freemangordon (~freemango@213.137.35.49)
08:58.41PaliFatPhil_: https://lkml.org/lkml/2013/1/21/66
08:59.40PaliFatPhil_: "so unless someone from Nokia says this is how they want to use nokia.c from now on"
09:00.32Paliand here is patch: https://lkml.org/lkml/2013/1/19/165
09:01.20FatPhil_I can't simply risk
09:01.21FatPhil_breaking all other users for your own convenience.
09:01.38Paliit adding optional/additional support for usb mass storage mode
09:03.29Paliit is composite usb gadget
09:03.53Paliand does not break anything if you do not add any device to export
09:04.01FatPhil_Then if it wasn't for Felipe's final sentence, I'd say it belongs in a new separate file
09:04.44FatPhil_But if they're moving gadget drivers out of the kernel, it's a step in the wrong direction.
09:05.08Paliall gadget drivers are still in kernel
09:05.23Paliand I think they will not be removed, because it break userspace and anything...
09:08.09jonwilAt least the N900 kernel isn't as bad as the kernel from my old Motorola Z6 linux phone which was a mess
09:08.26jonwilthis was long before Android
09:40.04jonwilgotten real quiet in here all of a sudden :P
10:11.07*** join/#maemo-ssu iDont (~iDont@ip4da305b4.direct-adsl.nl)
10:16.36*** join/#maemo-ssu freemangordon (~freemango@213.137.35.49)
10:28.10freemangordonPali: nice reading :).
10:36.29*** join/#maemo-ssu oooaaaooo (~rootzilla@d122-109-54-62.per802.wa.optusnet.com.au)
10:36.49*** part/#maemo-ssu oooaaaooo (~rootzilla@d122-109-54-62.per802.wa.optusnet.com.au)
10:53.52*** join/#maemo-ssu DrCode (~DrCode@gateway/tor-sasl/drcode)
10:59.08freemangordonFatPhil_: IDK if you follow n900 upstreaming efforts, but honestly, it looks to me kernel maintainers don;t wan't to take n900 patches for some political reasons. For sure I do not support "the conspiracy theory" but something is fishy there
11:02.07jonwilPerhaps they are uninterested in taking (and then having to maintain) patches that the original maintainers/creators have abandoned
11:03.16jonwilanyone here know of someone who has pulseaudio skills? :P
11:03.48*** join/#maemo-ssu dos1 (~dos@unaffiliated/dos1)
11:15.43Palijonwil: ask lennart directly :P
11:18.50jonwil:P
11:20.24jonwilin any case I think we need to get more interest in FPTF from anyone out there who can contribute :)
11:20.45freemangordonjonwil: I give a shit what they are interested in, N900 is (and will be for years to come) the only true linux mobile computer.
11:21.01*** join/#maemo-ssu arcean (~arcean@aadb186.neoplus.adsl.tpnet.pl)
11:21.08freemangordonthere is no other consumer device like that
11:22.35jonwilAnd Neo900 is intended to provide all the good things from the N900 and then a bit more (like potentially better cellular support)
11:23.14jonwiland like a USB port that wont fail if you look at it wrong
11:24.11dos1"the only true linux mobile computer"
11:24.17dos1you made my Neo Freerunner sad :P
11:25.26dos1sure it's much weaker and without fancy cameras, sensors and what else, but it's still "true linux mobile computer"
11:29.42*** join/#maemo-ssu BCMM (~BCMM@unaffiliated/bcmm)
11:30.36keriodos1: your Neo Freerunner is older than the N900!
11:30.40kerioand the N900 is an obsolete piece of crap!
11:30.45keriothink about it!
11:31.13dos1so if it's old, it's not true linux anymore? :P
11:31.20kerionope
11:31.24keriotrue linux has systemd!
11:31.33dos1I have it for more than 5 years already
11:31.36freemangordondos1: my point was: "consumer device", not geek's gadget :P
11:31.37kerioand pulseaudio, for speech synth for logins
11:31.44keriobecause of accessibility
11:31.48dos1kerio: surprise! my Freerunner has systemd! :D
11:31.56kerio...dafuq
11:32.11dos1and it had pulseaudio on Om2007.2, but on SHR we don't use that shit :P
11:32.23jonwilN9 is a "true linux mobile device"
11:32.31freemangordonyeah, sure
11:32.47keriowhy the hell does SHR use systemd? D:
11:33.10freemangordonjonwil: what do you use as your daily phone?
11:33.30jonwilN900
11:33.37jonwilits my only phone
11:33.51freemangordonwhy you didn't buy n9?
11:34.01jonwilbecause I like hw kbd
11:34.19jonwiland because I have no need to buy a new phone when the phone I have works just fine
11:34.34dos1kerio: well, dunno actually. OE has systemd support, and it makes boot faster for low cost, so maybe that's it
11:34.37jonwilnot like all those Apple sheeple who have to have the latest and greatest always :)
11:34.46freemangordon:)
11:35.13jonwiljust look at the crap that is the iPhone 5S and 5C :P
11:35.41freemangordonjonwil: and how aegis fits with the "true linux mobile device" statement?
11:36.08dos1is 5 years already enough to start thinking about helping with creating new device and getting it many months later? :)
11:36.22dos1I feel kinda hipsterish
11:36.50dos1heck, I'm probably the last gta02 user in my country
11:38.03dos1aegis does not fit at all into any "true linux device". N9 is Android-tier for me
11:39.29freemangordonmy point exactly
11:41.01freemangordonPali: could you spend some time later on, teaching me how to send patches to the ML. It is too much of a work for you to do it alone and now I have a laptop with ubuntu, I guess it won;t be much of a hassle for me to set it up as it needs to be and help you
11:41.28Palifreemangordon: no problem
11:41.47freemangordonok, I'll ping you when I am back home, maybe i 3 hours
11:41.50freemangordon*in
11:41.54Paliok
11:42.55freemangordonmaybe we can convince FatPhil_ to help too :P
11:44.48Palihm, Sunday, March 24 2013 Sakari Ailus created new rx51-009 branch in omap3camera
11:44.55PaliI did not know about it
11:45.14PaliI used camera patches from rx51-007 branch
11:45.19Palihttps://gitorious.org/omap3camera/rx51/activities
11:47.39*** join/#maemo-ssu sunny_s (~sunny_s@business-092-079-020-027.static.arcor-ip.net)
11:47.52Palifreemangordon look at rx51-009 branch ^^^^
11:48.35sailusPali: pong.
11:48.46Palisailus: hi
11:49.03sailusI noticed you'd pinged me some time ago. -EBUSY. :-P
11:49.12Palisailus: freemangordon trying to get n900 cameras to work
11:49.17Palibut he only see green output
11:49.26Palifor both back & front
11:49.46sailusI haven't tried out the camera on the N900 for some time.
11:49.47Palido you know where can be problem?
11:50.03sailusDo you know how did he test them and which kernel did he use?
11:50.17sailusI haven't updated the patches for quite some time, but I recently rebased them.
11:50.20sailusThey probably don't work.
11:50.24Palihe used my modified 3.10 tree
11:50.47Paliand used mediactl for setting connections
11:50.58Paliand mplayer
11:51.35sailusWhich entities were involved?
11:51.43sailusThe resizer can't be used in that setup.
11:51.48Palisailus: my 3.10 tree contains patches from your branch rx51-007 (+ modified)
11:51.58sailusAnd... the interfaces that the et8ke8 driver uses are mostly obsolete.
11:52.14sailusI don't remember if it even uses the pad ops.
11:52.38Palisailus: he tested both front and back cameras and both green output
11:52.38sailusProbably it does, but it's definitely not entirely up to date in terms of the V4L2 subdev API.
11:52.46PaliI'm going to find pastebin of mediactl outputs
11:53.06sailusI've tested the smiapp driver on N950 and N9.
11:53.15sailusNot on N900. Although it should work.
11:54.08Palisailus: http://pastebin.com/st0phiUm
11:54.37Paliother pastebin exired...
11:54.51Paliso for more info we need to wait until freemangordon will be back
11:55.44sailusLooks fine for me.
11:56.09sailusI'd still use yavta just to have less modifiers in the setup compared to a known working one.
11:56.14*** join/#maemo-ssu dhbiker (~dhbiker@95.87.145.172)
11:56.22sailusyavta is quite nice and simple.
11:57.35Paliwhat is yavta?
11:58.04sailusYet another V4L2 test application.
11:58.12freemangordonsailus: hi
11:58.20sailusfreemangordon: Hi!
11:58.33freemangordonsailus: first of all I had to fix omap3isp code :)
11:58.49sailusWas there something wrong with it? :-)
11:59.16freemangordonyes, clk frequency calculation
11:59.44sailusHas the patch already been submitted to mainline?
11:59.59sailusI thought there were some uncertainties regarding the 3430 clock rate.
12:00.07sailusSo those have been resolved now?
12:00.20freemangordonno, recently we have some, errr... problems with mainline :)
12:00.31sailus:-P
12:00.37freemangordonanyway , I'll send the patch soon
12:00.46sailusCool! :-)
12:00.59freemangordonbut the main problem is that all I get is green rectangle
12:01.08sailusHave you tested using yavta?
12:01.10freemangordonwith no error messages in dmesg
12:01.13freemangordonno
12:01.27sailusI'd suggest to do that first to minimise the difference to a known working setup.
12:01.29freemangordonthis is what I use:
12:01.39sailusWhich is N9(50) + yavta.
12:02.11freemangordonsailus: the other thing I had to fix is to restore the xshutdown callback
12:02.17sailusI'd also use only as much of the pipeline inside the ISP that you actually need to, i.e. capture it straight from the CCP2 receiver.
12:02.28sailusThat's wrong.
12:02.32freemangordontried that, no difference
12:02.35sailusThere should be GPIOs...
12:02.51sailusAlbeit the hardware is quite strange. It's visible in the schematics.
12:02.58sailus:-P
12:03.05sailusPlease try with yavta again.
12:03.20sailusThe last time I checked mplayer it used V4L1. :-)
12:03.23freemangordonsailus: well, maybe I don;t know enough, but I dont see how you'll switch the mux gpio without having the callback
12:03.24sailusBut that was a long time ago.
12:03.37freemangordonin the correct way that is
12:03.55sailusI think there would need to be another driver that provides a single gpio that actually translates to two.
12:04.11sailusAnd that driver would be specific to N900.
12:04.24freemangordonand who'll call this driver?
12:04.29freemangordonsome userspace?
12:04.52sailusIt'd provide a single gpio, I suppose.
12:05.11sailusBut I don't know the GPIO framework well --- whether it'd even allow doing that.
12:05.25freemangordondo you have rx51 schematics near you? to see how the cameras are connected
12:05.29sailusActually toggling the gpio is the responsibility of the sensor driver.
12:05.41sailusI think they can be easily found using Google.
12:05.47sailusI don't think I have them around myself.
12:07.57freemangordonxshutdown gpio of front camera is used to switch between cameras too
12:08.34freemangordonand I can't see how this can be workarounded having a separate driver
12:09.35freemangordonunless this driver (or board code) is called from smiapp and et8ek8
12:10.20freemangordonsailus: ^^^
12:10.54freemangordonthus my "restore xshutdown callback" patch
12:11.08sailusThe GPIO API is how you'd call it.
12:12.45Palifreemangordon: if you have some uncommited/unpushed changes in your tree, can you push them to gitorious?
12:13.15freemangordonsailus: i have a terrible lag as I am connected through gprs, I'll ping you again later when I am back home and try to explain all over why "separate driver" approach won't work
12:13.30freemangordonPali: I think I pushed all camera patches, lemme check
12:13.47Paliok
12:14.38sailusPali: I don't think I have any.
12:14.46sailusThe GPIO framework seems to be fine btw.
12:14.56sailusgpiochip_add() and so on...
12:15.42Palisailus: problem is that n900 has two gpios, one is for switching between cameras and second is for turning camera on/off
12:15.56Paliwhile omap3isp support only on/off gpio
12:16.06Paliand cannot interact between more cameras
12:16.16sailusI don't think it's a problem anymore if you use another driver to toggle them.
12:16.26sailusThe sensor driver will still see a single one.
12:16.38Paliso to create new virtual gpio?
12:16.54Paliand handle changes of this gpio to read two gpios?
12:17.03Palis/read/real/
12:17.39Paliand how to force omap3isp to allow only one camera to be turned on at same time?
12:18.12sailusAlthough the GPIO framework seems to assome that the GPIOs are independent. That's not quite the case here.
12:18.50sailusThey already use the same bus.
12:19.07sailusThe omap3isp driver handles that already.
12:19.22sailus(And the mux is switched using on of these gpios.)
12:20.12Paliok, but in platform data we need to specify gpio which is used for on/off not switch gpio
12:20.50PaliI still do not understand how to handle it
12:22.37sailusA new driver showing up as a GPIO chip will request these two GPIOs.
12:22.56sailusBoth drivers should access only the newly exported GPIO.
12:23.35sailusHmm.
12:23.37Paliah, so as I wrote create new virtual GPIO
12:23.45sailusThat was my though, yes.
12:23.56Palibut this is overkill
12:23.59freemangordonwe'd rather need 2 gpios
12:24.06sailusI actually wonder whether the switch GPIO should be controlled by the ISP driver, not a sensor driver.
12:24.16sailusIt switches the CSI bus between the sensors.
12:24.32sailusThe other one is the xshutdown GPIO.
12:25.09freemangordonPali: 1 virtual gpio would not suffice, as smiapp does gpio_get... and does not free it
12:25.10sailusThe solution that's currently in use is somewhat workable but probably will never be accepted to mainline.
12:25.24sailusI think this will need some experimentation.
12:25.45freemangordonso et8ek8 gpio_get will fail. or vice versa
12:26.01Paliso two new virtual gpios
12:26.10*** join/#maemo-ssu LauRoman (~LauRoman@5-14-93-219.residential.rdsnet.ro)
12:27.24freemangordonPali: sailus: having a driver with 2 virtual gpios will do the job with the current framework imo
12:27.45PaliI think that omap3isp should be fixed to handle this problem
12:28.00Paliand not to be too creative and create new virtual gpio driver for omap3isp
12:28.02freemangordonso instead of having xshutdown callback call, we'll have xshutdown gpio
12:28.54Palifreemangordon: first use callback and when everyting else start working, then we can start writing new gpio driver....
12:29.03freemangordonooh, sure :)
12:29.31PaliI think that higher priority has non working camera, non working modem, non working audio and not upstreamed charging
12:29.51freemangordon:nod:
12:30.07Paliand for me new gpio driver for funny omap3isp has lower priority
12:30.39freemangordongitorious is FUBAR again :(
12:30.51freemangordonPali: we should move to github ;)
12:31.14Palifreemangordon: I think this is irrelevant for me :-) I'm using command line git tools
12:31.19*** join/#maemo-ssu iDont (~iDont@ip4da305b4.direct-adsl.nl)
12:31.43Palifreemangordon: or we can ask merlin for hosting git repositories :-)
12:32.56freemangordonPali: I wanted to show the patches to sailus
12:33.11Paliah, right
12:33.41Palifreemangordon: use: https://gitorious.org/linux-n900/linux-n900/commit/<sha1>
12:34.19Palifreemangordon: or your tree: https://gitorious.org/linux-n900/freemangordons-linux-n900/commit/<sha1>
12:34.26freemangordonsailus: https://gitorious.org/linux-n900/freemangordons-linux-n900/commit/fd8e4d517284adc7ec1d038e5312142025bf18b7
12:34.36freemangordonomap3isp fix for 3430
12:35.14freemangordonthis chunk somehow disappeared after 3.1 or 3.2
12:36.11freemangordonsailus: btw another problem with framework - you can't have more than one device connected to xclka for example :)
12:37.02freemangordonhttps://gitorious.org/linux-n900/freemangordons-linux-n900/commit/323664abc42aa0161cfbd750ba24e97b5b546f4f
12:37.23sailus"omap3isp: Set cam_mclk rate directly" --- that probably broke 3430.
12:38.11freemangordonyep
12:39.01freemangordonbut IDK if this missing divisor is the only thing broken by that patch.
12:39.05sailusLaurent wrote a patch to fix that.
12:39.34sailusWhat's your e-mail? I'll send it to you.
12:39.48sailusIt hasn't been sent to a public list since it's completely untested.
12:40.11freemangordonsailus: freemangordon at abv dot bg
12:40.21freemangordonsailus: fix what?
12:40.27sailus(Or I could push it to a public git tree.)
12:40.33sailusTo fix the clock back-propagation.
12:40.40freemangordonit is upstreamed
12:40.51sailusIt is?
12:41.03freemangordonjust a second
12:41.46*** join/#maemo-ssu oooaaaooo (~rootzilla@d122-109-54-62.per802.wa.optusnet.com.au)
12:41.55sailusDoesn't look like that, but I could be mistaken.
12:42.00sailusI have linux-media tree here.
12:42.16sailusI doubt Laurent would accept it. :-)
12:42.25oooaaaooohi guys ive installed a couple of apps that dont seem to show up in the app screen; other than command line is there a graphical way to find them?
12:42.42freemangordonsailus: https://gitorious.org/linux-n900/freemangordons-linux-n900/commit/7b2e1277598e4187c9be3e61fd9b0f0423f97986
12:42.49oooaaaoooalso is "faster app manager" any good?
12:43.08freemangordonoooaaaooo: ECHAN, try on #maemo
12:43.40sailusThat's for 3630 only.
12:43.46sailusA similar change is required for 3430.
12:43.57*** part/#maemo-ssu oooaaaooo (~rootzilla@d122-109-54-62.per802.wa.optusnet.com.au)
12:44.33freemangordonoh, right, my bad
12:44.36freemangordonhttps://gitorious.org/linux-n900/freemangordons-linux-n900/commit/92d6ac650784d9e4cdf9e5d219aa1060fae081cd
12:44.43freemangordonnot upstreamed
12:46.17freemangordonsailus: see, my tree has all the needed fixes, drivers load without errors, etc
12:46.38freemangordonso I guess it is either omap3isp or MUX config
12:46.46freemangordonto blame that is
12:47.02freemangordonbut I have NFC where and what to look for :)(
12:47.20freemangordons/:)(/:)/
12:47.39sailusHere:
12:47.41sailushttps://gitorious.org/omap3camera/rx51/commit/0878c44382021a8eaf870458c3805f8997356d12
12:48.17sailusfreemangordon: With that, you shouldn't need to hack anymore.
12:49.02freemangordonisn't it the same as my patch, just using DEFINE_STRUCT_CLK_FLAGS instead of defining the struct?
12:51.13freemangordonsailus: ^^^
13:01.28sailusfreemangordon: What matters here is the CLK_SET_RATE_PARENT flag. It was missing.
13:01.39*** join/#maemo-ssu sunny_s (~sunny_s@business-092-079-020-027.static.arcor-ip.net)
13:02.39Palisailus: another question: et8rk8 driver using some "firmware", but when I looked into source code of firmware it was only some kernel C structure, it is true?
13:04.13freemangordonsailus: it was not, in my tree :) https://gitorious.org/linux-n900/freemangordons-linux-n900/commit/92d6ac650784d9e4cdf9e5d219aa1060fae081cd
13:04.49freemangordon.flags = CLK_SET_RATE_PARENT,
13:05.46sailusPali: true.
13:06.54Palisailus: old smia-sensor driver used also some firmware, but new smiapp not using, how it was fixed?
13:07.19Palistructures was moved to driver?
13:07.36sailusThe "firmware" is not really firmware but hand-written register values that correspond to some sensor configuration.
13:07.53sailusIn the smiapp driver the same configuration is passed using a standard IOCTL interface.
13:08.32sailusThe et8ek8 "firmware" should be moved back to the driver.
13:08.45Palisailus: so we need some configuration for smiapp driver to work?
13:10.08sailusIt has a default configuration which is functional.
13:10.19sailusNot necessarily what you really want, but a working one.
13:10.44freemangordonPali: once we have that working, we can forward-port resolutions from omap1/KP
13:10.54sailusSo you have the corresponding patch to Laurent's. Do you still need the other change?
13:11.36freemangordonsailus: I think I have everything in my tree, it uses clock frameworks, drivers load and init the HW, etc
13:11.56freemangordonnow I cloned and compiled yavta, will try it when i am back home
13:12.32sailusAck.
13:12.35freemangordonsailus: unless you think there is something else needed
13:13.41freemangordonsailus: please look at the last 10 or so commits here https://gitorious.org/linux-n900/freemangordons-linux-n900/commits/4e272703339f84e65c063c8969e5a69652c0dbda
13:13.51freemangordondone by "Ivaylo Dimitrov"
13:14.05freemangordonall those are camera/isp fixes
13:18.52*** join/#maemo-ssu RST38h (marat@wsip-184-180-40-182.ri.ri.cox.net)
13:24.35*** join/#maemo-ssu oldtopman (~oldtopman@unaffiliated/oldtopman)
13:27.57*** join/#maemo-ssu arcean (~arcean@aadb186.neoplus.adsl.tpnet.pl)
13:29.32sailusfreemangordon: Thanks!
13:32.53freemangordonsailus: hmm? what for?
13:35.15freemangordonsailus: I don't think those could be upstreamed, I just did a quick hacks to have the drivers working. for example - the correct way to handle multiple devices sharng the same xclk is to use list
13:35.28freemangordonnot an array
13:35.55freemangordonI'll make a patch for that when i have the cameras working :)
13:42.56*** join/#maemo-ssu arcean_ (~arcean@aaem72.neoplus.adsl.tpnet.pl)
13:55.17*** join/#maemo-ssu Martix_ (~martix@eduroam-224.fi.muni.cz)
13:59.25Palifreemangordon: I moved et8ek8 firmware into kernel driver
13:59.45Paliso driver does not need external "firmware" from userspace
14:00.30freemangordonPali: great :)
14:00.43freemangordonPali: does it work? :P
14:00.58Palionly tested compilation
14:01.00Palibut it must work
14:01.06*** join/#maemo-ssu Martix_ (~martix@eduroam-224.fi.muni.cz)
14:01.17PaliI just replaced pointer from firmware to included structure
14:01.40freemangordonsure, I was kidding
14:01.58freemangordonis on his way home, bbl
14:03.38*** join/#maemo-ssu iDont (~iDont@ip4da305b4.direct-adsl.nl)
14:07.13*** join/#maemo-ssu dos1 (~dos@unaffiliated/dos1)
14:51.41freemangordonsailus: any recommended cmd line parameters to use for yavta?
15:05.34freemangordonsailus: yavta hangs in ioctl(3, VIDIOC_DQBUF...
15:08.08*** join/#maemo-ssu Martix_ (~martix@eduroam-224.fi.muni.cz)
15:18.37*** join/#maemo-ssu NIN101 (~NIN@p5DD288CD.dip0.t-ipconnect.de)
15:46.38sailusfreemangordon: That likely mean you don't get any buffers back from the driver.
15:46.43sailusDo you get interrupts?
15:47.07freemangordonany idea which gpoi/irq to check?
15:47.13freemangordon*gpio
15:47.22freemangordonsailus: BTW:
15:47.23sailus/proc/interrupts
15:47.29freemangordon:)
15:47.38freemangordonI know that, but which particular gpio
15:47.40sailusomap3isp, I guess.
15:47.50freemangordonbtw:
15:47.54freemangordoncam_xclka 1           1            5760000
15:48.05freemangordonis that normal? the frequency I mean
15:48.22sailusThat looks very low to me.
15:48.29sailusWhat does it have in the platform data?
15:48.56freemangordon40:          0      INTC  OMAP3 ISP
15:49.58sailusNo interrupts then.
15:50.02sailusSomething definitely is wrong.
15:50.24freemangordon.ext_clk= 9.6 * 1000 * 1000,
15:50.37freemangordon.op_sys_clock= (s64 []){ 12000000 * 10 / 2, 0 },
15:50.39sailusOn both?
15:50.47freemangordonthis is for smiapp
15:50.49sailusext_clk is the one you should be concerned about.
15:51.07sailusAre you using the smia one?
15:51.13sailusOk.
15:51.36freemangordonsmia has it hardcoded in the driver iirc
15:51.49sailusIt doesn't.
15:52.00sailusIt comes from the platform data.
15:52.11freemangordon#define ET8EK8_XCLK_HZ9600000
15:52.36freemangordonunsigned int hz = ET8EK8_XCLK_HZ;
15:52.53freemangordonrval = clk_set_rate(sensor->ext_clk, hz);
15:53.15freemangordonsailus: ^^^
15:54.09sailuset8ek8 isn't smia compatible.
15:54.42freemangordonwell, it is in i2c/smia dir :)
15:54.50freemangordonanyway
15:55.11sailusThe problem could be related to discrepancies in how the divisor is chosen.
15:55.19PaliI can move it from i2c/smia to i2c/
15:55.20sailusThe information on the parent clock frequency could be wrong.
15:55.51freemangordonsailus: I saw similar bug on clock framework for SSI clocks
15:55.52sailusThat frequency must be exactly 9,6 MHz.
15:55.57freemangordon:nod:
15:55.59sailus:-P
15:56.18freemangordonis going to check how it is on Nokia kernel
15:56.31sailusThe frequency is the same.
15:56.34sailusThat has not changed.
15:56.51freemangordonI meant in /sys/kernel/debug/clk
15:56.57sailusWhat has changed.... well, is the clock framework.
15:57.07sailusAck.
15:57.11freemangordonwhat is reported there and what is the clock tree
15:57.22sailusExcellent
16:00.40freemangordonNokia-N900:~# cat /sys/kernel/debug/clock/virt_19_2m_ck/osc_sys_ck/sys_ck/dpll4_ck/dpll4_m5_ck/dpll4_m5x2_ck/cam_mclk/rate
16:00.40freemangordon172800000
16:00.50freemangordonthis is on 2.6.28
16:01.01*** join/#maemo-ssu dos1 (~dos@unaffiliated/dos1)
16:01.18freemangordonon 3.10:
16:01.20freemangordonNokia-N900:~# cat /sys/kernel/debug/clock/virt_19_2m_ck/osc_sys_ck/sys_ck/dpll4_ck/dpll4_m5_ck/dpll4_m5x2_ck/cam_mclk/rate
16:01.20freemangordon172800000
16:01.27freemangordonshit
16:01.34freemangordoncam_mclk     0           0            172800000
16:02.13freemangordonbut I don;t have xclka child of cam_mclk on 2.6.28
16:03.39freemangordonhmm, maybe I should revert my divider patch
16:08.39*** join/#maemo-ssu dos11 (~dos@unaffiliated/dos1)
16:10.32*** join/#maemo-ssu dos1 (~dos@unaffiliated/dos1)
16:16.32*** join/#maemo-ssu dos1 (~dos@unaffiliated/dos1)
16:18.21*** part/#maemo-ssu dion_ (~dion_@dion.org.ua)
16:19.16freemangordonsailus: hmm, with that patch reverted I see "unexpected cam_mclk rate:.." from isp driver
16:19.56Palifreemangordon: is there any other problem except green output?
16:20.19freemangordonyep, yavta hangs while trying to get video buffer
16:20.30freemangordonand there are no interrupts from ISP
16:20.40Palibecause maybe there is one commit which you can try to revert
16:20.55*** join/#maemo-ssu LaoLang_cool (~LaoLang_c@112.96.127.24)
16:20.58Pali450460412ce758f79d02e9f5db720aa09bd8e6ad
16:20.58freemangordonwhich one?
16:21.43PaliI do not know if this commit it in upstream or not, but sailus send me it months ago via email
16:21.57freemangordon"smiapp-pll: Take existing divisor into account in minimum divisor check"?
16:22.12Paliyes, can you check if this commit is in upstream?
16:22.32Palisailus, can you comment above your patch? ^^^
16:22.56Paliand there is another commit which changing some color matrix: 3532af7ad45e54e000dfa7f2b7536e7a58ecc61d
16:23.10Pali"isppreview: new default coeffs for more ambient independent quality"
16:23.43Palifreemangordon look (and maybe try to revert it) ^^^^
16:30.51freemangordonPali: ok
16:47.47freemangordonPali: reverting 450460412ce758f79d02e9f5db720aa09bd8e6ad made it worse :)
16:48.25Paliok, so that patch is really needed :-)
16:48.30freemangordonyep
16:48.37Paliwithout it driver loading failed, right?
16:48.43freemangordonyep
16:49.00freemangordoncan't find pll div/mul
16:49.36Palisailus should comment if that patch is correct ^^^
16:50.28freemangordonI can try to hack it and feed pll calculations with doupled frequency :)
16:51.32Palifreemangordon: look also at second commit
16:52.23freemangordonPali: frequency is incorrect, it should be 9.6Mhz not half of that
16:54.18sailuscam_mclk isn't in the clock framework in 2.6.28 --- the clock is produced by the ISP itself, not PRCM.
16:55.27freemangordonsailus: no idea who produces it, but it has the same frequency on 2.6.28 and 3.10, according to /sys/kernel/debug/...
16:55.45sailusThat's a good sign then.
16:55.51sailusIs the divisor also the same?
16:56.15sailusBased on what we discussed a few hours ago the xclk frequency seemed wrong.
16:56.43freemangordonhow to check the divisor on 2.6.28, any idea?
16:56.51freemangordonthis is my daily device :)
16:57.01freemangordon(the one with 2.6.28)
16:57.09sailus:-)
16:57.25sailusI'm not sure if the driver prints it.
16:57.49freemangordonwait, can't we just divide mclk freq with 9600000 to get the correct diviso?
16:57.51sailusYou might need to use printk() to print it instead.
16:57.56sailusBut... you can calculate it as well.
16:58.01freemangordon:nod:
16:58.11sailus:-)
17:00.30sailusThis assumes the frequency really is what the clock framework suggests.
17:00.57sailusNow that the parent clock handling bug has been supposedly fixed, I guess that's ok.
17:02.10freemangordonhmm, could it be that clock framework reports bogus values for xclk?
17:02.48freemangordonbecause it is tweaked for 3630, not 3430
17:03.34sailusNot really tweaked, but there was the bug that the divisor between cam_mclk and its parent wasn't accounted for on either one.
17:03.37sailusAnd only 3430 really worked.
17:04.01freemangordonwell:
17:04.03freemangordoncam_mclk     0           0            172800000
17:04.08freemangordonthis looks fine to me
17:04.15freemangordonthe same on 2.6.28
17:04.22freemangordoncam_xclkb 0           0            5760000
17:04.34freemangordonis deffinitely wrong, lets check the divisor
17:05.24sailusJust by quick check, you should have 18.
17:05.39sailusAnd... why's cam_xclkb?
17:05.44sailusBoth cameras use xclka.
17:06.03freemangordon:nod:
17:06.21freemangordonsailus: copy/paster error
17:06.23*** join/#maemo-ssu Vlad_on_the_road (~Vlad_on_t@ip-66.net-82-216-1.versailles2.rev.numericable.fr)
17:06.26freemangordonbut xclka is the same
17:06.56sailusThe divisor would be 30 in that case.
17:07.02sailusThat's a strange number.
17:07.59freemangordonsailus: http://pastebin.com/UgdYDUQn
17:09.10freemangordonNFC at which value to look at :)
17:09.38DocScrutinizer05hah, clock divisors. real fun
17:10.06DocScrutinizer05no surprise when new kernel msses it up
17:11.49freemangordonsailus: "mul 25 / div 2"?
17:12.10sailusAh --- now I think I remember.
17:12.39sailusThe case was that the original configuration from the "firmware" used slightly off-spec frequencies.
17:12.56sailusAnd that might not be taken into account in the current quirks in smiapp driver.
17:13.21sailusIt isn't.
17:13.25freemangordonthere are no quirks for vs6555
17:13.51freemangordon:)
17:13.54sailusThat's the probable reason for the PLL calculator failure.
17:14.02*** join/#maemo-ssu bsdmaniak (~bsdmaniak@std93-20-88-120-139-80.fbx.proxad.net)
17:14.22freemangordonbut it doesn't fail, just calculates wrong values IMO :)
17:14.37freemangordonsailus: can I just hardcode the correct values?
17:14.52freemangordonto prove/not if this is the real problem
17:15.28sailusIndeed --- if it doesn't fail, then that message can be ignored.
17:15.32sailusPerhaps it was another mode.
17:16.00*** join/#maemo-ssu dos11 (~dos@unaffiliated/dos1)
17:16.01sailusYou're right --- if there was a failure, you'd see this:
17:16.02sailus<PROTECTED>
17:16.38freemangordonwhich I get if I revert your "smiapp-pll: Take existing divisor into account in minimum divisor check" patch
17:17.23freemangordonsailus: btw, which value in the log I should look at? for divisor that is
17:18.37sailusThat's the sensor clock tree calculation.
17:18.45sailusIf it succeeds you should be fine.
17:19.01sailusWhat matters whether the ISP produces the clock it should to the sensor.
17:19.12sailusThe cam_xclka frequency suggests it does not.
17:19.18freemangordon:nod:
17:19.44sailusBut why, is unknown to me.
17:19.46freemangordonsailus: which is the value from all those I have to look at?
17:19.51sailusIt should "just work". :-P
17:19.56freemangordonheh
17:19.57freemangordon:)
17:20.01sailusNone.
17:20.16sailusext_clk is just input to the PLL calculator.
17:20.19sailusNothing comes out.
17:20.27sailusI'd figure out why the divisor is 30 and not 18.
17:20.39freemangordonwhere you saw that 30?
17:20.48sailus172800000/5760000
17:20.50freemangordonwhere did you see even :)
17:21.04freemangordonwell, is it in dmesg log?
17:21.31sailusI'm quoting you from 20:04. :-)
17:21.39sailus17 minutes ago.
17:22.28sailusI need to go; I might be back later today.
17:22.29freemangordonsure, but do we have that value logged from the pll calculator? or it is the clock framework that calculates it?
17:22.38freemangordonsailus: ok
17:22.40sailusSorry.
17:22.57sailusThat's internal ISP divisor.
17:23.04sailusThe sensor driver has no part in that.
17:23.11freemangordonok
17:23.33sailusxclk = cam_mclk / divisor AFAIR.
17:23.42freemangordon:nod:
17:23.53freemangordongoing to check in the clock framework
17:23.54*** join/#maemo-ssu M4rtinK (~M4rtinK@ip-89-177-124-88.net.upcbroadband.cz)
17:25.03*** join/#maemo-ssu Martix_ (~martix@static-84-242-103-180.net.upcbroadband.cz)
17:26.15*** join/#maemo-ssu WielkiTost (~dos@unaffiliated/dos1)
17:26.26sailusYou should check what the ISP driver does and what frequencies it sees. It calculates the divisor.
17:26.42freemangordonok, will do
17:26.47freemangordonthanks!
17:40.57freemangordonsailus: I hardcoded 18 in isp_xclk_calc_divider, still the same. And still no ISP interrupts
17:41.30freemangordonbut at least: cam_xclkb 0           0            9600000
17:41.42freemangordonand cam_xclka 0           0            9600000
17:42.46*** part/#maemo-ssu dagb (~dagb@80.203.63.59)
17:57.08*** join/#maemo-ssu bsdmaniak (~bsdmaniak@std93-20-88-120-139-80.fbx.proxad.net)
18:13.01*** join/#maemo-ssu bsdmaniak (~bsdmaniak@88.120.139.80)
19:18.13*** join/#maemo-ssu iDont (~iDont@ip4da305b4.direct-adsl.nl)
19:37.44sailusIt'd be good to know the reason *why* the divisor isn't 18.
19:45.06DocScrutinizer05HAH! http://projects.goldelico.com/p/openphoenux/page/PaidDeveloper/
19:45.38DocScrutinizer05Didn't even know of that :-)
20:02.15freemangordonsailus: I bet it is the clock frameworks that screws it
20:03.11freemangordonAs iiuc dpll4_m5x2 on 3630 runs on a different frequency compared to 3430
20:03.38freemangordonbut there is no difference in cclock3xxx_data.c
20:08.25*** join/#maemo-ssu amiconn (amiconn@rockbox/developer/amiconn)
20:10.29DocScrutinizer05dnag. Is that a result of sw dudes writing code to rerpesent hw? ;-)
20:11.42DocScrutinizer05when you write such definitions, you have to start at the very atoms of a hw design, like crystal frequencies etc
20:13.36DocScrutinizer05but that knowledge is rarely found in CS-students' heads, while every EE is aware of that
20:14.49DocScrutinizer05given the EE also develops sw
20:15.39DocScrutinizer05I heard some CS dudes also develop hardware, and those might actually know, but I guess that's quite exotic a critter to be discovered anywhere
20:26.39DocScrutinizer05I guess there's no such thing like "crystal frequency" in DT, eh? ;-)
20:30.21DocScrutinizer05the fun thing in such stuff: when you have a (simplified) hw like ocillator * multiplier1 / divider1, there may be a range of 10..100 valid for multiplier and a range of 1..16 for divider, but yet some particular combinations of the two factors are explicitly forbidden
20:31.13DocScrutinizer05and the rules are not as simple as "for multiplier >50, no dividers <10 allowed"
20:32.48DocScrutinizer05in the end you usually need a table with available output frequencies and the multiplier and divider values you need to use for them. I guess that's a hard thing to implement in DT
20:34.08DocScrutinizer05to make stuff less boring, the different clocks in system are often entangled to each other in complex ways
20:35.54DocScrutinizer05like "RAMbus clock *2^N == CPUclock * 2^M" with N,M := int
20:38.13DocScrutinizer05err
20:38.38DocScrutinizer05like "RAMbus/4 clock *2^N == CPUclock/3 * 2^M" with N,M := int
20:42.17DocScrutinizer05e.g for the S3C2442 this been a terrible pain in the aft section, for scaling frequency of CPU, since all other clocks based on it and simply changing e.g UART clock on the fly is a really poor idea
20:43.25DocScrutinizer05also we were not able to set RAMbus speed to the max our RAM would allow, without either under- or over-clocking the CPU
20:46.30DocScrutinizer05wow, TV is really giving insights: 70% of US-americans believe in a physically existing hell
20:47.08FatPhil_"US-americans"?
20:47.24DocScrutinizer05I guess at least 50% believe that earth is 5578 years old, and man been made by God, 70 generations ago
20:48.15FatPhil_yup, those are the US americans
20:49.44DocScrutinizer05if only those 70% would see the truth, which is: they are _living_ in their hell, every day. they made it themselves
20:53.50Palifreemangordon: I pushed et8ek8 changes to v3.10-n900 branch on gitorious
20:54.14*** join/#maemo-ssu nox- (noident@freebsd/developer/nox)
20:57.17freemangordonPali: good
20:57.41PaliI removed code which can oops kernel :-)
20:57.51freemangordonhmm
20:57.55freemangordonis going to check
20:58.06Paliet8ek8 could oops kernel if you get it working :-)
20:58.13PaliNULL derefernce
20:58.27Paliconfigure_interface
20:58.45Paliit was removed from isp driver long time ago
20:59.32PaliI removed also platform_data->set_xclk because it is not used
21:02.00freemangordonfine
21:03.05*** join/#maemo-ssu xes (~xes@unaffiliated/xes)
21:03.14freemangordonPali: now we only need to make it work :D
21:03.26Paliyes :-)
21:03.49freemangordonDocScrutinizer05: iiuc the idea behind DT is that you don;t need to describe clock frequencies in DT
21:04.13freemangordonyou only tell the kernel which clock is your driver using
21:04.31freemangordonwhich is not that bad idea imo
21:05.02freemangordonand there *are* mul/div tables in the clock framework
21:06.27freemangordonPali: hmm, how familiar are you with the clock framework?
21:06.41freemangordonI wonder how to deal with that wrong frequency:
21:07.02freemangordon1. reparent cam_mclk on 3430
21:07.17freemangordon2. add a divider by 2
21:07.50Palifreemangordon: I do not know clock framework very good...
21:08.08freemangordonboth will work, but I really don;t know if there are real dividers, clocks etc behind those names or some of them are real and some virtual
21:08.38freemangordonPali: me either, I am trying to figure out what lays bahind it
21:08.42freemangordon*neither
23:07.48*** join/#maemo-ssu dos1 (~dos@unaffiliated/dos1)
23:35.52*** join/#maemo-ssu jonwil (~jonwil@27-33-137-199.static.tpgi.com.au)
23:36.42jonwilhi
23:38.20*** join/#maemo-ssu dos1 (~dos@unaffiliated/dos1)

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