**** BEGIN LOGGING AT Wed Jan 30 02:59:59 2013 Jan 30 05:21:43 Russ: so you know the TI Tutorial Track is exactly? Jan 30 05:39:17 mranostay, ? Jan 30 05:39:44 Russ: at ELC Jan 30 05:39:49 that wasn't there before Jan 30 05:39:56 was it? Jan 30 05:40:02 yeah that is why i mentioned it Jan 30 05:40:08 magically appeared i think Jan 30 05:40:30 I haven't heard anything, I'm sure prpplauge is on top of it Jan 30 05:42:30 are rar files some europeans thing? Jan 30 05:42:49 i swear i only see them from .eu'ians in emails Jan 30 05:43:01 well that and pirates Jan 30 05:43:39 * dm8tbr sends mranostay some arj files Jan 30 05:44:16 mranostay: yes, since they predate the contitution.... Jan 30 05:55:49 got some stuff workign today Jan 30 05:55:58 anybody else have any sucess? Jan 30 06:02:14 meh Jan 30 06:12:41 no. Jan 30 06:13:43 got some work stuffing today Jan 30 06:14:02 * mranostay backs away Jan 30 06:34:34 lol. Jan 30 06:49:23 * mranostay revises slides Jan 30 06:49:57 av500: need to get one of those for the intel booth Jan 30 06:50:40 ? Jan 30 06:53:04 av500: yocto plunger :) Jan 30 06:53:59 ah Jan 30 06:57:53 * koen yawns Jan 30 07:00:17 oh noes Jan 30 07:01:38 * mranostay thinks up his PRU function generator project Jan 30 07:05:29 how is koen today? Jan 30 07:05:59 email is working against, catching up on backlog Jan 30 07:06:24 from customers who know how to google, so I'll need coffee first Jan 30 07:11:27 hey, i got an xM with 3.2.24-x14 kernel, i'm trying to change the pinmux so that i can use UART2 on the expansion header, but i cant seem to find the files specified in all the tutorials Jan 30 07:12:53 cant seem to find anything similar to this: "arch/arm/mach-omap2/mux.c" Jan 30 07:13:57 ubuntu.. Jan 30 07:14:22 i'd like to mux in the kernel Jan 30 07:14:27 have you tried linux? Jan 30 07:15:21 what do you mean? Jan 30 07:15:47 inside joke Jan 30 07:16:07 that is an old kernel Jan 30 07:16:10 probably funny :) Jan 30 07:16:14 er Jan 30 07:16:29 on a xM? hmm Jan 30 07:16:33 yes Jan 30 07:16:46 using a MAX232 chip? Jan 30 07:17:20 no, expansion header Jan 30 07:17:23 P9 Jan 30 07:17:30 th e28 pin one Jan 30 07:17:34 *the Jan 30 07:17:58 well yeah i'm sure you need a transceiver chip :) Jan 30 07:18:43 no, its hooked up to an atmega128 Jan 30 07:18:51 not to a computer Jan 30 07:20:07 ah Jan 30 07:20:24 don't you need to logic level shift? Jan 30 07:20:35 yes, all that is handled, i need the pinmux Jan 30 07:20:53 l Jan 30 07:21:01 k Jan 30 07:21:24 ds2: random letter time? Jan 30 07:21:47 competing with geiger counters for entropy Jan 30 07:22:10 "/lib/modules/3.2.24-x14/kernel/arch/arm/mach-omap2/" exists Jan 30 07:22:41 but does only contain mailbox:mach.ko Jan 30 07:23:01 #entropy channel? :) Jan 30 07:28:56 (salut|howdy) Jan 30 07:29:26 yee haw! Jan 30 07:45:13 0: nodejs-0.8.18-r0 do_compile (pid 26522) Jan 30 07:45:18 bad ass rockstar tech Jan 30 07:47:34 heh Jan 30 07:51:12 koen: blame mranostay Jan 30 07:51:59 i dont even know what rev of the bb i got Jan 30 07:52:48 the order from farnell says b, but it does not have the sd card on the top, so it cant be Jan 30 08:16:03 so it seems that i got rev c1, DM/AM3730 cpu. figured that its probably easiest to change the pinmux in u-boot Jan 30 08:16:42 looking at the beagle.h file now, but i cant make the names and gpio numbers match Jan 30 08:16:57 MUX_VAL(CP(UART2_TX), (IDIS | PTD | DIS | M0)) /*UART2_TX*/\ MUX_VAL(CP(UART2_RX), (IDIS | PTU | EN | M4)) /*GPIO_147*/ Jan 30 08:17:10 that didnt work Jan 30 08:17:51 MUX_VAL(CP(UART2_RX), (IDIS | PTU | EN | M4)) /*GPIO_147*/ Jan 30 08:18:48 morning Jan 30 08:18:50 while it says here: http://elinux.org/BeagleBoardPinMux#UART2 that it should be gpio 143 Jan 30 08:18:55 morning Jan 30 08:19:22 "143" is not found at all in that file Jan 30 08:20:58 good morning under the bridge perso^Wcreatures Jan 30 08:22:33 HI Jan 30 08:23:04 LO Jan 30 08:23:46 How to enable uart5 on beaglebone? Jan 30 08:23:47 > __ Jan 30 08:23:53 >HI/LO Jan 30 08:24:14 every info out there seems to be about the omap versions, i got dm/am3730, guessing "make CROSS_COMPILE=arm-none-linux-gnueabi- omap3_beagle_config" will not work for me? Jan 30 08:24:21 I had do something , but can't echo RX Jan 30 08:24:33 mux options? Jan 30 08:24:44 yes i did it Jan 30 08:25:00 follow the BB guide Jan 30 08:25:11 echo 4 > /sys/kernel/debug/omap_mux/lcd_data8 echo 24 > /sys/kernel/debug/omap_mux/lcd_data9 Jan 30 08:25:12 sabesto: omap=am=dm Jan 30 08:25:16 its all the same Jan 30 08:25:21 ok, thanks Jan 30 08:26:52 seems like the mux settings are set properly for uart 2 in this u-boot source i downloaded Jan 30 08:27:18 uart2? Jan 30 08:28:30 yes? Jan 30 09:33:29 koen, I have pulled the latest beagle kernel Jan 30 09:33:29 and I keep getting: error: arch/arm/boot/dts/am33xx.dtsi: patch does not apply Jan 30 09:33:29 Patch failed at 0001 ARM: dts: Add SHAM data and documentation for AM33XX Jan 30 09:33:29 I performed git reset HEAD --hard on the kernel tree before I pulled and started patching again, so it was fresh iteration Jan 30 09:35:59 jackmitchell: fixed Jan 30 09:36:18 jackmitchell: I forgot I had git-rerere enabled, so git-am didn't fail here Jan 30 09:37:04 * panto tries to be a nice person, but alas, people piss me off Jan 30 09:38:33 cheers koen Jan 30 09:40:32 * NishanthMenon pats panto and thinks of getting him a beer :P Jan 30 09:41:23 it's too early in the morning! Jan 30 09:41:28 nm, offer accepted Jan 30 09:41:34 it never too early for a beer Jan 30 09:41:35 ;) Jan 30 09:41:52 +1 Jan 30 09:42:01 or a bear :P Jan 30 09:42:09 NishanthMenon: its really late or you are not in TX? Jan 30 09:42:33 insomnia, av500 ;) could not sleep, so came back to office and started reviewing patches :D Jan 30 09:43:07 * NishanthMenon laments that reviewing patches is not helping put him to sleep either.. just making him agitated :( Jan 30 09:45:03 * jackmitchell admires the dedication Jan 30 09:45:10 * jackmitchell or the madness.... Jan 30 09:45:26 * NishanthMenon checks for other options.. Jan 30 09:46:21 * panto offer a pony option Jan 30 09:46:44 * NishanthMenon wonders if he should offer gerrit to the list ;) Jan 30 09:57:52 I know I've said this before, but I really dislike how Nautilus (the file manager) now uses solely dbus to find and show files in the view window Jan 30 09:58:20 the latencies involved and difference in time between all the files popping up is really disconcerting Jan 30 10:23:36 koen, I'm sure you're aware but just in case you're not the kernel throws up this traceback during boot: http://pastebin.com/umPiSVRF Jan 30 10:23:47 jackmitchell: dbus wtf? Jan 30 10:25:04 jackmitchell, working on it Jan 30 10:26:38 av500: I know right Jan 30 10:26:50 av500: I think it works in a client<->server model Jan 30 10:27:16 where the 'file manage daemon' is always running, and the window is the client and queies for everything over dbus Jan 30 10:28:21 lol Jan 30 10:28:59 also, would enabling DYNAMIC_DEBUG pump up idle cpu usage? Jan 30 10:29:27 if not, this recent kernel is doing a lot more work than usual Jan 30 10:29:47 jackmitchell: yeah, we've switched back to the pure TI "quality" driver to tscadc, instead of the one panto worked on Jan 30 10:30:08 jackmitchell: needless to say those TI PSP people only compile test their code Jan 30 10:30:31 bonus points for noticing that the tscadc code only works if you use platform data in a boardfile Jan 30 10:30:47 and guess what am335x doesn't have in mainline Jan 30 10:40:39 there, a concise mail sent as response to the tscadc patch series Jan 30 10:40:57 no doubt offended any non-western european reader with the directness Jan 30 10:41:30 koen, thick skin required in this business Jan 30 10:52:14 what is the impedance of a beagleboard's GPIO? Jan 30 10:52:38 african or european? Jan 30 10:52:47 eu Jan 30 10:53:18 no idea, what does the datasheet say? Jan 30 11:03:09 with DYANMIC_DEBUG enabled, and pr_debug being used in my module, no info is being spat out to dmesg, do I need anything else enabled? reading the control file correctly finds my debug statements Jan 30 11:04:27 jackmitchell, are you booting with the kernel command line enabling the debug log level? Jan 30 11:05:10 panto: no Jan 30 11:05:22 put a 'debug' there Jan 30 11:05:55 or write the kernel log level property on runtime Jan 30 11:06:08 yep, google just found me this: echo 7 > /proc/sys/kernel/printk Jan 30 11:06:29 that enables all log levels? Jan 30 11:06:35 yeah Jan 30 11:11:27 dmesg -7 Jan 30 11:15:32 hmm, ok if I have a module, which prints debug on load, how I can enable the debug printouts for that module before it is loaded? Jan 30 11:16:41 or is there a method to 'reload' a module in place, so that the dynamic_debug doesn't lose the enabled pr_debug lines when I unload then reload Jan 30 11:18:28 cant you set the module debug on load? via parameters? Jan 30 11:21:09 from within the module? Jan 30 11:21:31 or when loading with insmod Jan 30 11:22:13 insmod Jan 30 11:22:16 modprobe Jan 30 11:24:31 module_param(debug, int, 0); Jan 30 11:25:00 modprobe foo debug=1 Jan 30 11:25:18 my bad, RTFM Jan 30 11:27:48 http://www.tldp.org/LDP/lkmpg/2.6/html/x323.html Jan 30 11:28:36 av500: insmod fpgaSPI.ko dyndbg Jan 30 11:28:40 did the trick, thanks Jan 30 11:29:44 * jackmitchell shall become a mildly competent kernel programmer Jan 30 11:30:22 yes Jan 30 11:35:26 jackmitchell: so, you already know the ldd3 by heart? Jan 30 11:38:59 KotH: unfortunately not, take heed of the 'shall' in the previous comment ;) Jan 30 11:49:23 does anyone here have acrobat and can look at a pdf? Jan 30 11:49:28 I think I have a rendering error Jan 30 11:49:44 http://datasheets.maximintegrated.com/en/ds/MAX6643-MAX6645.pdf Jan 30 11:49:56 renders fine here Jan 30 11:49:58 page 14, fullspd polarity column Jan 30 11:50:09 are both MAX6643 variants the same? Jan 30 11:50:16 or does one have a bar over FULLSPD Jan 30 11:50:25 no Jan 30 11:50:35 6644 has "-" Jan 30 11:50:40 and 6645 Jan 30 11:50:45 well yes, I see that Jan 30 11:50:56 but they have two MAX6643 variants, but they look identical Jan 30 11:51:20 no Jan 30 11:51:28 one is 40, the other 30 Jan 30 11:51:29 In the picture above, the have a (FULLSPD) with a bar over it, and in the note '() ARE FOR MAX6643_A ONLY.' Jan 30 11:51:36 ah, right Jan 30 11:51:40 missed that Jan 30 11:51:52 unless that is a rendering error here Jan 30 11:51:55 :) Jan 30 11:52:07 but the mystical variant with an active low FULLSPD Jan 30 11:52:27 I'm not even sure which one of those two variants MAX6643_A would be Jan 30 11:52:33 hmm Jan 30 11:54:06 I think the part doesn't exist anymore, but whoever edited it out of the datasheet did a crappy job Jan 30 11:54:30 the demo schematic shows it active low Jan 30 11:54:42 which makes sense since OT is active low Jan 30 11:55:00 I sent an email to them Jan 30 11:55:08 we'lll see what I get in the morning Jan 30 11:56:32 porridge Jan 30 12:33:48 would someone be able to have a very quick look at this simple module, I can't see a reason why the interrupt irq routine isn;t firing Jan 30 12:33:50 http://pastebin.com/DMN2U0ae Jan 30 12:34:22 there is an interrupt occurring on that gpio, to be clear ;) Jan 30 12:34:45 and you see the init debugs? Jan 30 12:35:00 jackmitchell, did you muxed the pin to gpio input mode properly? Jan 30 12:35:49 panto: very good question Jan 30 12:36:00 av500: yes, i get just the first init debug line Jan 30 12:37:16 and yes, check your pinmux Jan 30 12:41:39 jackmitchell: so, you are going to pospone learning the thing you need until you retire... by which time linux will be either obsolete or you'll have completely forgotten what you wanted to do Jan 30 12:42:51 jackmitchell: and please stop the camelCasing :) Jan 30 12:44:27 av500: do you prefere DromedarCasing? Jan 30 12:44:49 lpswStudlyCasing Jan 30 12:45:08 or lcpswStudlyCasing Jan 30 12:46:44 Hi, I'm trying to use PWM-backlight on an omap3 device using this patch: https://patchwork.kernel.org/patch/1881981/ on a 3.7.x kernel. Now I've got it working but the polarity is wrong, how do I change the polarity of the PWM signal from the board-*.c file? (I tried a lot, but don't find the right way, is there just something missing from the omap-pwm.h added by the patch) Jan 30 12:47:08 tsjsieb: short answer: you can't Jan 30 12:47:33 koen: that's not the answer I wanted to hear ;) (but thanks) Jan 30 12:47:52 what to look for, for the long answer? Jan 30 12:48:31 polarity support was added post 3.7 iirc Jan 30 12:48:49 so get a 3.8rc kernel and use the third bit in the DT field Jan 30 12:48:51 so just hard code it Jan 30 12:49:00 e.g. pwms = <&pwm 0 5000000 1>; Jan 30 12:49:04 better yet bitbang it Jan 30 12:49:08 the '1' there is for inverse polarity Jan 30 12:49:12 (just kidding, don't do it) Jan 30 12:49:48 tsjsieb: have a look at Documentation/devicetree/bindings/pwm/pwm.txt Jan 30 12:50:18 Thnx, I've got some reading and comparing to do :) Jan 30 12:50:58 so just hard code it Jan 30 12:52:50 av500: you mean to change the patch added code? that might be an easier (but maybe quick and dirty) option Jan 30 12:54:03 hmm Jan 30 12:54:13 in the patch there is a set_polarity call, no? Jan 30 12:55:06 so where is the problem? Jan 30 12:56:02 the problem I ran into was that the pwm subsys exposed the polarity knob Jan 30 12:56:13 but if you used pwm-backlight you couldn't turn it Jan 30 12:56:52 since pwm-backlight didn't allow you to config the pwm itself Jan 30 12:56:53 omap->polarity = PWM_POLARITY_NORMAL; Jan 30 12:56:59 there a line to edit :) Jan 30 12:57:18 with DT you can override the pwm node if you need to Jan 30 12:57:44 you mean DT is better than /dev/mem? Jan 30 12:57:57 /dev/DT Jan 30 12:59:44 /dev/mem is the preferred samsung interface for high speed devices Jan 30 12:59:58 ofcourse /dev/mem is better Jan 30 13:00:18 /dev/null for highspeed output Jan 30 13:00:19 ln -s /dev/mem /dev/highspeed_bus Jan 30 13:01:36 ln -s /dev/mem /dev/null Jan 30 13:01:59 av500, that is evil Jan 30 13:02:01 I like it Jan 30 13:02:15 submit a patch Jan 30 13:02:53 I will give that too people that complain that ubuntu is too slow Jan 30 13:03:42 *g* Jan 30 13:05:10 but my ubuntu is too slow... Jan 30 13:05:16 (or maybe my pc...) Jan 30 13:06:22 tsjsieb: I can fix that, try this: ln -s /dev/mem /dev/null Jan 30 13:07:02 I wonder if it's possible to loop mount /tmp to /dev/mem Jan 30 13:07:10 KotH: I refer the ldd3 but it's particularly dated in places now. I usually start there to get a feel for the flow then research the modern technique, book learning is for passing exams... Jan 30 13:07:12 thnx, much better now Jan 30 13:10:20 av500: it doesn't matter that I had to use sudo and some extra -f for that command, does it? Jan 30 13:10:40 jackmitchell: ldd3 might be dated, but 90% of it still applies Jan 30 13:10:55 jackmitchell: and if you think of books only worthy for exams, then you are very mistaken Jan 30 13:11:11 KotH: I think learning them by heart is only for exams Jan 30 13:11:12 jackmitchell: beside, there is the list of changes keept by corbet Jan 30 13:12:17 jackmitchell: your sarcasm detector needs adjustment Jan 30 13:13:23 KotH: I'll crank it to 11 ;) Jan 30 13:13:50 lunch Jan 30 13:13:57 jackmitchell: for 2000 i build you one that goes to 12 Jan 30 13:14:43 in the world of the almighty DT, is it acceptable to be doing pin muxing in modules, or should it be done be in the DT and that's the end of it? Jan 30 13:14:45 panto: en guete Jan 30 13:15:09 jackmitchell: you want it in DT Jan 30 13:15:15 or is this the not-cape-bus saga again? Jan 30 13:15:25 KotH: ok, thanks Jan 30 13:16:46 jackmitchell: make your driver pinctrl aware and then add the muxing the DT Jan 30 13:17:00 jackmitchell: once your driver gets probed the pins will be muxed Jan 30 13:17:29 koen: ok, thanks - will go searching for a good example Jan 30 13:18:29 jackmitchell: https://patchwork.kernel.org/patch/1672271/ Jan 30 13:18:54 ignore the dev_info, that's leftover debugging Jan 30 13:19:34 koen: ok, thanks Jan 30 13:34:52 back Jan 30 13:42:30 jo pantos Jan 30 13:46:08 jackmitchell: be aware that there's two examples of how to do muxing in the kernel...the right way and the wrong way Jan 30 13:46:50 jackmitchell: try to ignore any of the upstream examples that don't have the default pingroup inside the device node Jan 30 13:46:58 beagleboard/kernel tree has it correct Jan 30 13:47:07 mdp: ok, I'm attempting to setup my driver to be devicetree compatable Jan 30 13:47:26 then i'll work on the dt pinctrl Jan 30 13:50:07 jackmitchell: if you see an example like this: http://hastebin.com/facokajuga.xml don't follow it in your dts files. Each of those defaults belongs in the respective device node Jan 30 13:50:11 sounds good Jan 30 13:59:07 damn Jan 30 13:59:12 wifi sucks on pio-musb Jan 30 13:59:22 isn't it obvious? Jan 30 13:59:28 "but we have patches from 3.2 to fix that!" <- TI person Jan 30 14:01:32 musb Jan 30 14:01:36 there it is Jan 30 14:06:41 koen, there's something about the relationship between trying to use am335x musb and the definition of insanity Jan 30 14:06:48 koen, I want you to think carefully about that. Jan 30 14:21:35 piowhat? Jan 30 14:21:53 pope GPIO X Jan 30 14:23:50 generation GPIO X Jan 30 14:24:47 * mdp says "musb" just to take another drink. Jan 30 14:24:59 so another good cases solved today Jan 30 14:25:13 and I will come home now Jan 30 14:50:31 mdp, I ported my code to dmaegine, addr_width seems to be ACNT, maxburst seems to be BCNT, however I'm having a hard time finding how to have bidx of 0, is that possible through dmaengine? Jan 30 15:07:29 oh, perhaps I'm supposed to use interleaved template Jan 30 15:08:18 argh Jan 30 15:18:49 jsabeaudry: yes, except the edma dmaengine driver doesn't have interleaved transfer support Jan 30 15:19:04 bitbang it Jan 30 15:19:06 um Jan 30 15:19:46 jsabeaudry, you are transferring from a h/w fifo but not to a memory buffer? Jan 30 15:21:02 My main use case is as you describe, I have another use case in which I throw away the data so i used to write over the same memory location, perhaps I can allocate a bigger buffer Jan 30 15:21:44 I have 2 cases, 1: hw fifo -> kfifo and 2: hw fifo -> sink Jan 30 15:22:14 hw-accelerated /dev/null? Jan 30 15:22:26 +1 Jan 30 15:22:27 mru, exactly :) Jan 30 15:22:27 mru, +1 I was thinking the same thing Jan 30 15:22:31 lol Jan 30 15:23:40 jsabeaudry: a dummy buffer is your best bet, yes Jan 30 15:24:33 mdp, but how to I configure for the hw fifo, is it by putting maxburst to 1 ? Jan 30 15:24:44 and tinker a bit with the buffer size Jan 30 15:24:46 jsabeaudry: that's btw, what spi drivers do since spi is inherently full duplex...the dma driven ones are also filling a dummy buffer in the opposite direction with garbage Jan 30 15:25:05 looping over a buffer larger than the transfer size can be faster Jan 30 15:25:13 depends on burst modes and such Jan 30 15:25:51 mdp, (the spi driver seems to have maxburst = 1) Jan 30 15:26:19 jsabeaudry: maxburst of 1 means no burst, of course... Jan 30 15:26:25 I'm talking about your sink Jan 30 15:26:37 heh, RIM just renamed themselves Blackberry Jan 30 15:26:39 jsabeaudry: if you are talking about spi-davinci.c then yes, spi-davinci IP is a POS Jan 30 15:27:17 it has no fifo..just a shift-register that you dma each in and get one dma event for each word Jan 30 15:28:11 I need to always read from the same address and from what I can understand dma_slave_config does not seem to allow that Jan 30 15:28:18 jsabeaudry: if you have a hw _fifo_ then typically you set your maxburst (in units of address_width) to something like half the fifo width...though that's hw dependent for performance Jan 30 15:28:54 if you're writing to a dummy buffer in memory to discard data, it can be faster to loop over a buffer of 32 bytes or so than writing repeatedly to the same 32-bit location Jan 30 15:29:15 jsabeaudry: dma slave transfers allow exact that..they are specifically designed for peripheral transfers like you describe with a static transfer location Jan 30 15:30:12 jsabeaudry: look at spi-davinci.c again. the dma_rx_conf definition... Jan 30 15:31:02 mdp, that where they put maxburst = 1, is that what prevents it from incrementing address? Jan 30 15:31:36 basically what I do not understand is where I choose incrementing addresses vs static Jan 30 15:31:53 DMA_DEV_TO_MEM (hw 'port" to memory), src_addr is the spi shift register address, src_addr_width is the configure spi word width for that shift register, and max_burst 1 means that only one src_addr_width sized transfer is done per event Jan 30 15:32:01 jsabeaudry: you don't Jan 30 15:32:11 for a fixed address, you simply set the increment to zero Jan 30 15:32:15 jsabeaudry: when you choose a dma slave transfer, that is chosen implicitly for you Jan 30 15:32:42 jsabeaudry: from a dmaengine api POV is what I'm explaining Jan 30 15:34:15 jsabeaudry: dmaengine_prep_slave_sg() says "I want to do a slave sg transfer and this is my direction Jan 30 15:34:42 and I'm talking about the hw Jan 30 15:34:51 mdp, oh! Great, thanks. Then I'll just allocate a bigger sink and that will be the end of it. Jan 30 15:34:54 by api definition, a DMA_DEV_TO_MEM slave sg transfer is always non-incrementing at the source and incrementing at the destination Jan 30 15:35:05 mru, right, also important to understand Jan 30 15:35:05 wmat: RIMberry for me Jan 30 15:35:25 I just wanted to be sure he understands the highlevel api when using it Jan 30 15:35:29 av500: heh Jan 30 15:35:33 Ok, DEV = non-inc and MEM = inc ? Jan 30 15:35:57 I prefer understanding the hw first, then figuring out how to make the api do what I want Jan 30 15:36:07 jsabeaudry: yes Jan 30 15:36:40 mru, unfortunately, changing stuff in the kernel is easier said than done...at least upstream Jan 30 15:37:09 hopefully there's already a way to program the hw the way you want Jan 30 15:37:14 really unfortunately, dmaengine api needs more work to abstract some other things Jan 30 15:37:44 mru, yeah, in fact, there's the bare metal-ish private edma api where he could program the transfer you describe Jan 30 15:37:46 you don't want to ask the api to do something the hw doesn't support and end up emulating it in some inefficient way Jan 30 15:38:20 right...atm though, the limitation there is not a serious performance concern Jan 30 15:38:26 however, it is suboptimal Jan 30 15:38:41 it can be fixed by implementing interleaved transfer support Jan 30 15:39:08 but that's been low priority as all in-kernel users to slave sg transfers Jan 30 15:39:14 s/to/use/ Jan 30 15:39:47 meanwhile, the clever user can continue to use the private api to do more interesting cases like you describe Jan 30 15:39:49 for the discarding sink, I'd program the dma engine for a "2D" block transfer with stride = -width Jan 30 15:40:26 I mean, there the ability to do dma driven byte swapping here, but no generic transfer type to encapsulate that Jan 30 15:40:46 I have a real use case for that one even..just haven't had time to justify it upstream Jan 30 15:41:42 mru, right Jan 30 15:42:10 with the width equal to the max burst size Jan 30 15:42:53 fwiw, http://lxr.free-electrons.com/source/include/linux/dmaengine.h#L96 is the transfer type abstraction for that type of thing Jan 30 15:43:24 where you can control src/dst inc, stride, etc. Jan 30 15:43:50 I was playing with some pci hw once that had a 32-bit wide fifo replicated over a larger address window so it could take advantage of pci burst transfers Jan 30 15:44:37 a graphics card, to be precise Jan 30 15:44:42 and it really made a difference Jan 30 16:08:38 urgh, DT && kernel programming is melting my brian :( Jan 30 16:09:15 LOL: http://appworld.blackberry.com/webstore/content/137637/?countrycode=US Jan 30 16:09:54 av500, this one goes to 11? Jan 30 16:10:10 mru, yeah, that's critical on PCI..smart design Jan 30 16:10:32 it was an old 3dlabs card fwiw Jan 30 16:12:34 jackmitchell, its melting my Br*ai*n. Jan 30 16:12:50 * ka6sox-away dunnos who Brian is. Jan 30 16:13:03 ka6sox-away, it's D.T. Brian Jan 30 16:13:06 I'm Brian Jan 30 16:13:12 and me wife is Brian too Jan 30 16:13:30 wewease wodewick! Jan 30 16:13:35 av500, and together you have a Life? Jan 30 16:13:42 so far yes Jan 30 16:14:38 mdp: how's the uboot work going? Jan 30 16:15:53 ka6sox-away: exactly my point, I'm now even incapable of correct spelling Jan 30 16:16:26 jackmitchell, good to hear I'm not the only one who's brain has melted Jan 30 16:16:34 Jacmet: good, had to tend to some edma things of priority 1 Jan 30 16:16:42 repeat after me: it's a capital D and a capital T Jan 30 16:17:01 Jacmet: I'm refactoring the ddr stuff to use the omap-common/emif-common.c Jan 30 16:17:17 http://en.wikipedia.org/wiki/The_Incredible_Melting_Man now powered by DT Jan 30 16:17:24 since that version pretty much 1:1 matches the ti81xx emif setup..whereas the am335x one is "different" Jan 30 16:18:04 mdp: yes, I saw your v6 series Jan 30 16:18:16 Jacmet: I am booting a 2.6.37 vendor kernel from RBL->spl mmc->u-boot mmc->kernel Jan 30 16:18:17 mdp, we are the 'burned ones' Jan 30 16:18:20 av500: tD? Jan 30 16:18:32 mdp: nice! Jan 30 16:19:20 Jacmet: on a current mainline u-boot working tree..so it's going well. Jan 30 16:19:20 hopefully finish cleanup by tomorrow Jan 30 16:19:54 mdp: great, I'll look into 816x support once you post it Jan 30 16:21:33 cool Jan 30 16:31:40 jo re Jan 30 16:35:14 gotta love the tax return Jan 30 16:35:24 "Were you party to one or more tax avoidance schemes?" Jan 30 16:36:06 you men the be greatful we didn't take it all return? Jan 30 16:37:33 mru: were you? Jan 30 16:37:42 would I tell them? Jan 30 16:37:48 mru: its like answering if you want to kill the president when entering the US Jan 30 16:38:02 if you do, they get your for lying Jan 30 16:38:25 and double the sentence Jan 30 16:38:25 mru, ever seen the questionnaire for a visa to the us? Jan 30 16:38:32 av500: is that like asking if you're a witch? Jan 30 16:38:38 yes Jan 30 16:38:41 panto: no Jan 30 16:38:52 "have you ever been a member of a terrorist organization?" Jan 30 16:39:04 av500: you are wise in the ways of science Jan 30 16:41:30 panto yes its known since nine eleven Jan 30 16:42:05 have they caught a lot of terrorists that way? Jan 30 16:42:28 sure Jan 30 16:43:46 I mean of the non-retarded type Jan 30 16:45:09 panto, does #beagle count? Jan 30 16:45:41 as terrorism? Jan 30 16:45:45 yeah Jan 30 16:45:55 all you foreigners.... Jan 30 16:45:58 sounds dangerous Jan 30 16:46:02 I guess some code out there could be conceivably considered a crime against humanity Jan 30 16:46:38 I have access to weapon grade garlic stockpiles Jan 30 16:47:24 panto: by the way, I'm using your capebus stuff properly now, and it's impressive. Jan 30 16:47:36 made a fragment for my cape, etc Jan 30 16:47:39 that can't be Jan 30 16:47:46 what? Jan 30 16:47:47 it works good Jan 30 16:48:06 I'm sure it has to be re-engineered to comply to the high standards of the latest linux mainline submissions Jan 30 16:48:08 <> Jan 30 16:48:18 panto, get google to ship it, then it can go into the kernel Jan 30 16:48:52 tell you what, I heard alot of stupid things in my life, but some of the most stupid came out of the mouths of linux maintainers :) Jan 30 16:49:14 alan_o, you owe me a couple of capes Jan 30 16:49:28 panto: when I get them made, will do Jan 30 16:49:35 * mdp updates the big board for mru and himself. Jan 30 16:49:41 more satisfied customers Jan 30 16:49:58 let me know if you find any problems with the !capebus Jan 30 16:50:03 I assume you use the latest right? Jan 30 16:50:59 panto: my friend has made up the design files. I want to move some I/O lines to get them out of the way of other capes. The we'll see what koen thinks :) Jan 30 16:51:15 panto: I'm on the 3.8 Jan 30 16:51:18 perfect Jan 30 16:51:19 from a couple days ago Jan 30 16:51:29 I hope it wasn't too much trouble to get going Jan 30 16:52:02 no, my own failings of understanding of device tree and how gpio dynamic interrupts are handled, but fortunately, there's Russ :) Jan 30 16:52:28 panto: of course the off-by-one is maddening. Jan 30 16:52:40 it's stooopid Jan 30 16:52:44 panto: I assume there's a good reason Jan 30 16:53:01 no, I can't think of any Jan 30 16:53:12 should I send koen a patch? :) Jan 30 16:53:28 sure Jan 30 16:53:41 just remember that the hwmod names can't change Jan 30 16:53:43 I'm struggling to get my device probed, I think I'm misunderstanding something about device tree Jan 30 16:54:21 I have my own node under spi like so: http://pastebin.com/CFgQtmpE Jan 30 16:54:36 excuse the mad formatting Jan 30 16:54:59 what's your driver look like? Jan 30 16:55:18 my driver like so: http://pastebin.com/BZUjQJfg Jan 30 16:55:39 but they don't seem to link up together, I thought that was what the of_match stuff was supposed to do... Jan 30 16:56:35 jackmitchell: dt will match on driver name Jan 30 16:56:44 jackmitchell: I have no dt in my driver Jan 30 16:57:02 try putting the driver name in your compatible in the dt Jan 30 16:57:34 like: r0005spi@0 Jan 30 16:57:47 no Jan 30 16:57:51 jackmitchell, err, you got it backwards Jan 30 16:58:08 you put the initialization in the probe method Jan 30 16:58:23 the init methods should register the driver Jan 30 16:58:44 jackmitchell: I'm talking about putting the driver name itself in the dt for the compatible string. Jan 30 16:59:11 jackmitchell, take a look at drivers/video/st7735fb.c Jan 30 16:59:11 panto: ah, that makes sense, so how do I get the spi bus from the dt? Jan 30 16:59:26 and card[0] is hardcoded, should that not come from DT? Jan 30 16:59:32 jackmitchell, take a look at that driver first Jan 30 17:00:10 av500: yes, eventually all that should come from dt, it's a bit of leftover that's there for safe keeping (which I suppose I should keep somewhere else...) Jan 30 17:00:11 your driver as it is doesn't get registered at all Jan 30 17:00:51 panto: I was using spi_bus_num_to_master to get it registered but it felt clumsy Jan 30 17:00:52 panto, omg...my list is so long...that just reminded me to resubmit patches to remove fortran numbering Jan 30 17:01:07 panto: ill look at st7735 Jan 30 17:01:21 jackmitchell, you don't have to do anything that complicated Jan 30 17:01:32 it's all taken care of automagically Jan 30 17:01:51 yes, automatically, and for what you're doing, you don't need any DT related stuff in your driver Jan 30 17:02:33 panto, for things that have been converted, it's automagic Jan 30 17:02:34 now if at some point you're going to want to pass non-standard parameters into your driver, then you'll need to add DT to the driver Jan 30 17:02:42 alan_o, +1 Jan 30 17:02:54 is it Friday yet? Jan 30 17:03:00 * panto kicks mranostay Jan 30 17:03:05 no, middle of the week Jan 30 17:03:06 alan_o, by non-standard, you mean the usual stuff that everything needs to work Jan 30 17:03:08 ;) Jan 30 17:03:16 alan_o: apparently the way to do pinctlr is through dt.... so if i'm doing some dt then it may as-well all be dt, right? Jan 30 17:03:25 jackmitchell, correct Jan 30 17:03:56 and remember, DT is the Future (tm) Jan 30 17:04:17 and for always shall be Jan 30 17:05:17 jackmitchell: um, but the pinctrl stuff you put in your driver is 100% DT independent Jan 30 17:05:50 st7735 is also an example of that Jan 30 17:05:57 jackmitchell: the pinctl stuff is in the DT itself, not in your driver Jan 30 17:06:10 alan_o, you need stuff in your driver too! Jan 30 17:06:24 mdp: ok, I haven't really looked at the pincrlt properly yet, that is second to getting initialised and probed Jan 30 17:06:28 I think we're talking about different things Jan 30 17:06:51 alan_o, one shall not exist without the other Jan 30 17:07:01 mdp: ok, which part? Jan 30 17:07:30 mdp: to get your driver loaded from a dt fragment, your driver doesn't have to have anything about DT in it. It will match the driver name to the compatible string in the DT Jan 30 17:08:08 I specifically mentioned pinctl Jan 30 17:08:53 and he must add 3 lines to his driver to enable pinctl support Jan 30 17:09:06 so where is a simple DT based driver with pinctrl? Jan 30 17:09:16 mdp: why isn't the pinctl handled in the dt? Jan 30 17:09:27 alan_o. what do you mean "in dt?" Jan 30 17:09:37 pinctrl is a subsystem in the kernel Jan 30 17:09:40 mdp: in his dt fragment http://pastebin.com/CFgQtmpE Jan 30 17:09:51 it can be populated with data from either pdata or DT Jan 30 17:09:57 ok, perfect, I'm now getting two probes - one for each bus I would imagine Jan 30 17:10:18 mdp: shouldn't all the pin-controlling be done in the dt? Jan 30 17:10:42 alan_o, all you showed me was a dts file! Jan 30 17:10:45 that's _data_ Jan 30 17:10:49 it does *nothing* on its own Jan 30 17:10:53 right Jan 30 17:11:10 you are implictly relying on 3 lines of pinctrl boilerplate that was added into the mcspi driver Jan 30 17:11:29 on probe those 3 lines snatch the default pingroup you defined and _set it_ Jan 30 17:11:41 without those 3 lines...it's just useless data Jan 30 17:11:43 so........ Jan 30 17:12:31 ok, so you're saying that the pinctl-0 line in his dts is an mcspi thing then? Jan 30 17:12:37 when you write a driver...often..if not most times your driver uses i2c/spi but also has device specific gpio lines, for example Jan 30 17:12:42 either way, it doesn't have to go in _his_ driver Jan 30 17:12:51 have the spi/i2c pins pinmuxed is not necessarily enough Jan 30 17:13:07 quite frankly, st7335 is a great example of this Jan 30 17:13:17 alan_o, it depends on his driver Jan 30 17:13:30 I see what you're saying now I think. Let me look at that driver Jan 30 17:13:40 look at the dts for st7735 Jan 30 17:14:50 yes, I need extra pins for GPIO read/write latches and also to specific interrupt GPIO's Jan 30 17:16:12 yes, ok I was confused.... Jan 30 17:16:40 http://hastebin.com/mabujekopu.xml Jan 30 17:16:49 alan_o: trying to be like me? Jan 30 17:16:50 mdp: where is the dts for the st7735? Jan 30 17:16:54 that's the common example I'm getting at Jan 30 17:17:04 read my mind :) Jan 30 17:17:17 jackmitchell: mdp: So you want to pass those I/O lines into your driver, and for that you'll need it in the dts, and also in the driver. Jan 30 17:17:29 mdp: I can't find it either Jan 30 17:17:56 in a !capebus kernel it's all in the firmware directory..I don't run those Jan 30 17:19:26 however, https://github.com/ohporter/linux/blob/edma-dmaengine-am33xx-v3/arch/arm/boot/dts/am335x-bone.dts#L119 Jan 30 17:20:15 in a close-to-upstream tree there's no fragments..so this is my custom am335x-bone.dts with all the crap I use for testing slapped in there. Jan 30 17:21:05 jo djlewis Jan 30 17:21:22 woglinde: best o the morning to ya Jan 30 17:21:26 so, there's a driver for the actual spi slave device, right? it has two gpio signals..both have to be pinmuxed Jan 30 17:21:55 then there's a driver for the mcspi IP...it has an independent set of signals that have to be pinmuxed Jan 30 17:22:56 and your required boilerplate code in the driver is: https://github.com/ohporter/linux/blob/edma-dmaengine-am33xx-v3/drivers/video/st7735fb.c#L446 Jan 30 17:24:07 already in mcspi, of course: https://github.com/ohporter/linux/blob/edma-dmaengine-am33xx-v3/drivers/spi/spi-omap2-mcspi.c#L1273 Jan 30 17:24:26 mdp: thank you, thats made it all a million times clearer Jan 30 17:24:36 np Jan 30 17:24:43 mdp: when I'm fresh tomorrow, DT will be mine. Jan 30 17:24:54 +1 Jan 30 17:24:58 DT *can* help here ;) Jan 30 17:25:06 until then, have a good morning/day/evening Jan 30 17:25:08 mdp: so "required" and "already in mcspi" seem to be in conflict in my mind Jan 30 17:25:53 alan_o, ahh, but the point is that he's writing a driver...he needs to know that whatever that drivers needs...needs to have it's own pinctrl support Jan 30 17:25:54 mdp: because I don't have any of it in my driver, and it's working. So that either means that mcspi is handling it, or something elsewhere (bone-common) is setting it? Jan 30 17:26:21 since you access spi abstractly, that is almost invisible to you Jan 30 17:26:37 alan_o, it also works by "luck" you know? Jan 30 17:26:37 is he not? Jan 30 17:26:48 mdp: sure, but I haven't been lucky yet on the bone :) Jan 30 17:26:57 where luck == u-boot residual muxing ;) Jan 30 17:27:11 your luck *will* run out if you do not choose to grok pinctrl ;) Jan 30 17:27:22 mdp: I'm trying to grok :) Jan 30 17:27:29 mdp: I know that it's not u-boot Jan 30 17:27:40 because on the older kernel, I had to fight with it Jan 30 17:27:50 alan_o, it's too hard...let's go shopping^H^H^H^H^H^H^H^Hfor beer Jan 30 17:27:57 hehe Jan 30 17:28:17 mdp: I guess what I'm trying to understand is why it's required if mcspi is also executing the same code. Jan 30 17:28:23 trust me, get your head wrapped around this stuff and everything will become crystal clear Jan 30 17:28:32 mdp: that's why I'm asking questions :) Jan 30 17:29:04 alan_o, if your driver *only* uses spi and no other i/o pins...then you are fine Jan 30 17:29:43 in my experience that's an exception case with i2c/spi devices..there's almost always an OOB signal like an irq on gpio Jan 30 17:29:58 yes Jan 30 17:30:23 that gpio is a resource that belong to your slave device driver...and must be pin muxed there Jan 30 17:30:41 that's the part where I'm not clear. so in your st7735 driver, there's the part at 446, and then there's the part at 507 Jan 30 17:30:44 since spi can have multiple N devices as you have chip selects...it is properly abstracted Jan 30 17:31:11 It seems to me like the part at 507 is the part for your "extra" pins Jan 30 17:31:25 and the part at 446 is the part for the SPI part of it Jan 30 17:31:31 no Jan 30 17:31:49 don't confuse pinctrl and DT/OD gpio helpers Jan 30 17:32:19 pinctrl is your way to runtime manipulate pinmux where is a different piece of hardware than the gpio ;) Jan 30 17:33:01 ok Jan 30 17:33:02 the OF GPIO helper is how you turn that DT property into a linux specific "handle" to pass to the kernel gpio api Jan 30 17:34:19 everything you see in that driver is specific to that piece of hw Jan 30 17:34:38 panto: book your hotel yet? Jan 30 17:34:55 mranostay, no Jan 30 17:35:13 the spi transport part is a generic thing and thus the driver does nothing with it..except get instantated by the spi subsystem and make spi_write() calls Jan 30 17:35:39 I'll crash at Pete's for a couple days Sun, Mon Jan 30 17:36:08 panto, when will you be in SF then? Jan 30 17:36:37 maybe the whole week Jan 30 17:36:54 how's the commute each morning to/from SF? Jan 30 17:37:30 ok, I'll be around mon/tue touring with the personal assistant, but we'll be at the conf hotel then too.. Jan 30 17:37:50 http://news.slashdot.org/story/13/01/30/0150244/google-gives-15000-raspberry-pis-to-uk-schools Jan 30 17:38:01 perhaps it would make sense to bunk at a hotel with the punk Jan 30 17:38:05 prpplague aya Jan 30 17:39:01 panto, in past work experiences I've had to commute there...not something I would do by choice normally...but I have a low tolerance for that now Jan 30 17:40:27 what's the parking fee at the hotel? Jan 30 17:41:47 I don't recall...we just grabbed a car for the weekend up near santa rosa and returning it sunday night ;) Jan 30 17:42:04 there's some kind of unreasonable fee but I didn't pay attention Jan 30 17:42:23 mdp, it's $49/day... yikes Jan 30 17:42:32 they had an awesome deal that was way below the conf rate if you call in..I mean for the room itself Jan 30 17:42:55 mdp: that's the way it typically works. I tried that at Fira, but LF had booked the whole thing Jan 30 17:43:15 mdp: at least the way I've been told it typically works. Jan 30 17:43:17 alan_o, yeah, $119 with no internet Jan 30 17:43:30 cool, good to know. Jan 30 17:43:37 I have my own 4g anyway that's better than the usual hotel wifi Jan 30 17:43:48 we were getting screwed at Fira. Plaza across the street was 80 euro Jan 30 17:45:34 mdp: so here's what I'm still not getting... if devm_pinctrl_get_select_default() is getting called in mcspi, why do I call it in my driver? It's exactly the same call on exactly the same object. Jan 30 17:45:42 mdp: sorry I'm so dense :9 Jan 30 17:45:43 :(( Jan 30 17:45:58 why do you say it's the same object? Jan 30 17:46:12 I showed you st7735 where it's two different objects Jan 30 17:46:36 one is a pingroup that the spi driver needs to operate Jan 30 17:46:58 the other is an additional pingroup that the st7735fb driver needs to operate Jan 30 17:47:20 so you see two different things there Jan 30 17:47:31 I only see one call that has anything to do with pinctrl though Jan 30 17:47:42 at 446 Jan 30 17:47:45 imagine if I inserted a spi adc on a different chipselect inside that spi1 node Jan 30 17:47:53 and it has a gpio irq Jan 30 17:48:04 it then needs another pingoup specifically for that spi adc chip Jan 30 17:48:09 pes Jan 30 17:48:10 yes Jan 30 17:48:12 but it uses the same spi pingroup Jan 30 17:49:23 right at 446 the _lcd_ driver tells the pinctrl subsystem to grab the default pinmux settings for the lcd device Jan 30 17:49:47 ok, I got it now. so that call is setting the pinctl for rst and dc Jan 30 17:50:03 before that is ever excuted, the mcspi driver has probed and also called pinctrl subsystem, asking for the default pinmux settngs for the mcspi instance Jan 30 17:50:10 alan_o, correct! Jan 30 17:50:37 the spi stuff is not "owned" by the lcd driver Jan 30 17:50:49 the lcd driver is just a client of that other driver subsystem Jan 30 17:50:59 it's a rental ;) Jan 30 17:51:32 so this becomes important especially when you start dynamically inserting stuff in and out of these busses Jan 30 17:51:35 ok, so more of this is automatic than I thought. I had thought I'd have to put additional pinmux stuff manually in the DTS, but I really just need to put gpio lines in there, and then let it automatically work by adding the call to devm_pinctrl_get_select_default Jan 30 17:51:42 alan_o: the econotag should be ready at the office, going to order the mfrs next month when I'm on site Jan 30 17:51:46 you need the fragments to contain the pinmux info only for that device Jan 30 17:51:56 which is how panto does it in that model Jan 30 17:52:17 right, everything is contained in the cape fragment Jan 30 17:52:18 alan_o, exactly...I call that stuff the "pinctrl boilerplate" Jan 30 17:52:28 you don't need to change anything in the base dts Jan 30 17:52:42 you can just copy that into your driver verbatim with the #include..and you're pinctrl enabled for the common case Jan 30 17:53:02 pincontrol is the new bitbang Jan 30 17:53:05 yeah, I mean I had thought I'd need to add pinmux-specific stuff to my fragment, but I just need to add the GPIO lines. Jan 30 17:53:34 alan_o, and as panto points out...where you do this is different in !capebus land as far as defining the dts stuff..but it all works the same regardless Jan 30 17:54:14 yes, but that's just in the dts. capebus or no, the driver part is the same Jan 30 17:54:26 right, and that's the point Jan 30 17:54:33 alan_o, your device node needs to specify a pingroup to go along with those gpio resources you use Jan 30 17:54:38 in the fragment Jan 30 17:54:59 if you design any custom card which has everything soldered you only have to move the cape fragments to the base tree and it will work Jan 30 17:55:47 alan_o, look at firmware/cape-bone-weather-00A0.dts in panto's tree Jan 30 17:56:55 it's go the pinmux entries and the reference to them within the onewire@0 node all in the fragment...ready to be overlayed Jan 30 17:57:12 meanwhile the w1-gpio driver has the boilerplate code to use that info on probe Jan 30 17:59:14 alan_o, this is weird...we've been horribly on topic for a long time today Jan 30 17:59:23 hehe Jan 30 17:59:27 I do appreciate it Jan 30 17:59:30 this makes me very uncomfortable! Jan 30 17:59:51 mdp: you'll have to bill overtime today. Jan 30 18:00:06 "It wasn't that I worked more hours, it's that I spent more hours working" Jan 30 18:00:07 lol. Jan 30 18:00:09 :-) Jan 30 18:00:32 alan_o, oh to work on "billable hours" again ;) I miss that sometimes ;) Jan 30 18:00:51 mdp, only sometimes :P Jan 30 18:01:08 yeah, if I wasn't clear enough, _sometimes_ Jan 30 18:01:44 panto, TI, though, has the tendency to plan for 2 years of work in 4 months for one person Jan 30 18:02:04 hey thanks for all your help in getting me to understand. Sorry I'm such a noob. mdp, make sure to mark it up on the big board. Jan 30 18:02:42 alan_o, thanks..actually, helps me clarify my understanding...if panto didn't object I probably had some truth in all that rambling Jan 30 18:02:52 hehe Jan 30 18:03:02 I _still_ don't get it sometimes Jan 30 18:03:25 panto, the smart people don't get the point of dt overlays ;) Jan 30 18:03:40 as a dumb guy, it really makes sense to me ;) Jan 30 18:05:13 panto, if fixing fortran numbering that doesn't match the blocks in the TRM is "controversial" then I'm not sure what hope your epicly insane dt overlays have ;) Jan 30 18:06:08 dunno, they seem to help people do useful work Jan 30 18:06:25 infidel! Jan 30 18:06:38 perhaps people would enjoy hacking that insane board file instead? :) Jan 30 18:11:47 panto: just because the evm board file was insane, doesn't mean they all are Jan 30 18:12:18 mdp: who is the fortran numbering being resisted by? Jan 30 18:12:29 mdp: I mean the change away from fortran numbering Jan 30 18:12:36 alan_o, board files are a pain to support when trying to be binary compatible with popular distros Jan 30 18:13:03 panto: that's a really good answer Jan 30 18:13:37 since it was decreed that we should move to a single kernel image + disto image, the writing was on the wall for the board file Jan 30 18:14:01 not to mention you can possibly get rid of the lunacy of having to 'register' your arm board to get a stupid machine id number Jan 30 18:14:35 for the bone we will try to be binary/image compatible for current and future boards Jan 30 18:15:11 so that people using older design don't get left behind with bit-rotted stuff Jan 30 18:16:32 i'm back Jan 30 18:20:20 panto: mru: what is the font thread i see on G+? :) Jan 30 18:20:21 <_av500_> damn Jan 30 18:20:24 alan_o, I'm half kidding on that one. benoit gave me a hard time about it being different from OMAP...all that really happened was that another person's stuff got backed up and then my patches forgotten Jan 30 18:20:45 alan_o, I decided to wait for edma to be taken in before posting that again Jan 30 18:46:20 mranostay: which one? Jan 30 18:46:30 either Jan 30 18:46:59 read and find out, no? Jan 30 18:48:11 no why does it bother you so much :) Jan 30 18:58:32 IT'S UGLY!! Jan 30 19:02:16 wmat: got the beer order in for the trolling^H^H^HH^H^Helinux.org BoF :) Jan 30 19:03:16 mranostay: heh, I think it will likely just be pizza and pop Jan 30 19:03:35 so bring your own flask? Jan 30 19:03:56 also, it'll be in the common atrium I think, so not a formal BoF Jan 30 19:13:00 not under the bridge? Jan 30 19:13:52 pop? Jan 30 19:14:07 road sodas? Jan 30 19:14:10 beer? Jan 30 19:14:11 yes Jan 30 19:14:22 nice augustiner in a few minutes Jan 30 19:14:28 someone bringing a weasel? Jan 30 19:18:55 weasel? Jan 30 19:19:04 some meme i'm missing? Jan 30 19:19:16 goes pop Jan 30 19:19:31 ah right Jan 30 19:19:51 what is the treshold Jan 30 19:20:10 54 Jan 30 19:20:13 what is the treshold for logic high on GPIO of beagleboard? Jan 30 19:20:46 treshold voltage? Jan 30 19:20:50 depends, are you smoking the good stuff? Jan 30 19:21:45 xecfv: it is in the TRM :) Jan 30 19:21:51 ds2: I want to give a good stuff to the board so that it would be high, what voltage do you give for it to be high? Jan 30 19:22:08 mranostay: not the DS? Jan 30 19:22:17 mranostay, *plonk* Jan 30 19:22:24 * mdp scratches mranostay from the big board Jan 30 19:22:26 what is TRM ? team resource management? Jan 30 19:22:44 * mdp decides now is a good time for a break :) Jan 30 19:22:45 geez this channel doesn't forgive Jan 30 19:22:51 LoL Tech Ref Manual Jan 30 19:23:07 lolz on that? Jan 30 19:23:15 Too many TLAs … Jan 30 19:23:18 read the manual luke Jan 30 19:23:24 1Kv? Jan 30 19:23:42 should be enough Jan 30 19:24:00 don't mind the smoke that tells you it is working Jan 30 19:24:36 1kV ought to get 'dem stubborn electrons moving REALLY fast Jan 30 19:29:57 mranostay: could you tell where exactly that info is written on the trm? Jan 30 19:32:10 Derzzle: in a vacuum they'd move rather fast, yes Jan 30 19:32:58 how about in a vacuum cleaner? Jan 30 19:33:11 xecfv: come to think of it, that is probably in the datasheet for the AM335x Sitara, under electrical characteristics and absolute limits / ratings Jan 30 19:33:29 eh? Jan 30 19:33:39 Derzzle: thank you! Jan 30 19:33:42 don't you want ratings for the dm3730? Jan 30 19:36:00 ds2 *g* Jan 30 19:41:11 hi ka6sox Jan 30 19:48:24 morning woglinde...are you headed to FosDem or can't get away? Jan 30 19:48:44 no fosdem this year Jan 30 19:48:57 I am trying to make last exams finally Jan 30 19:49:02 What could cause my .probe not to be called? Jan 30 19:49:02 + my Jan 30 19:50:31 woglinde, I understand this. ELC backs up to SCaLE and this is making life difficult Jan 30 19:55:06 I am trying to go to elce Jan 30 19:55:11 jo crofton Jan 30 19:58:12 ka6sox: heard of this thing called 'aeroplane'? Jan 30 19:58:18 ELC, or ELCE? Jan 30 19:58:31 aeroplanes are troublesome Jan 30 19:59:57 mru, yes, I understand..but I live in between both events... Jan 30 20:01:35 elce Jan 30 20:01:44 Crofton: real trolls manage both Jan 30 20:01:46 elc no Jan 30 20:01:54 not with this visa shit Jan 30 20:04:18 simple mattet of getting the right passport Jan 30 20:04:26 *r Jan 30 20:04:42 there are incorrect ones? Jan 30 20:05:07 iranian for instance Jan 30 20:05:11 mru we already had this discussion Jan 30 20:05:31 a north korean passport would also probably not be helpful for your elc travels Jan 30 20:06:06 mranostay: there are red, blue, and green ones Jan 30 20:06:25 ah right that is a helpful one :) Jan 30 20:06:36 I'm missing the latter Jan 30 20:06:44 what country has the green one? Jan 30 20:07:00 Ireland? Jan 30 20:07:20 heh nice try Jan 30 20:08:17 gnight Jan 30 20:08:27 https://www.google.com/search?q=passport&tbm=isch&tbs=ic:specific,isc:green Jan 30 20:09:26 Russ: so all the countries sure to get you extra TSA + Customs screening Jan 30 20:10:22 green are common in africa Jan 30 20:24:04 mdp, Any idea what can cause platform_get_resource(pdev, IORESOURCE_DMA, 0); to fail? This seems to be exactly the same code as in the spi of mmc driver Jan 30 20:25:00 s/of/or/ Jan 30 20:26:14 now the beer Jan 30 20:26:19 I almost forgot Jan 30 20:30:49 jsabeaudry: which kernel? Jan 30 20:31:11 mdp, 3.8rc4 Jan 30 20:31:51 Do I absolutely need to make that call? Jan 30 20:33:43 hrm, remind me…your driver is something fetching from gpmc? Jan 30 20:34:05 i.e. some gpmc-connected fifo? Jan 30 20:34:24 mdp, yes exactly just dma'ing from gpmc Jan 30 20:34:34 mru: and SE asia as well Jan 30 20:41:16 jsabeaudry: in any case, it's not needed or used in a DT only driver Jan 30 20:42:15 mdp, DT only driver as opposed to? Jan 30 20:42:37 something driven from pdata Jan 30 20:42:48 take a look at this simplest of examples: https://github.com/ohporter/linux/blob/edma-dmaengine-am33xx-v3/arch/arm/boot/dts/am335x-bone.dts#L82 Jan 30 20:42:57 gpevt Jan 30 20:43:21 which is my braindead test driver to just prove that I can generate a dma event from a gpio bank Jan 30 20:44:45 mdp, Thanks, I'll study that Jan 30 20:45:07 here's the actual relevant driver portion: https://github.com/ohporter/linux/blob/edma-dmaengine-am33xx-v3/drivers/misc/gpevt.c#L93 Jan 30 20:46:53 jsabeaudry, the beauty is that you reference the channel you are using with a <&edma N> reference, assign it a name with dma-names = "gpioevt"; and just request your channel with a human readable "gpioevt" string in the driver Jan 30 20:47:48 This is exactly the type of example that I need Jan 30 20:54:13 lost in the earlier discussion was the _av500_ was asking about a really simple example..this is sorta it. Jan 30 20:54:26 s/the/that/ Jan 30 20:54:55 mdp makes the people happy Jan 30 20:55:33 woglinde: that is never my intention, please believe me. :) Jan 30 20:56:26 nono Jan 30 20:56:26 jsabeaudry: that specifically exists because the gpio bank I hook has its dma event on the event crossbar..and it's the only way I could feasibly test crossbar event support Jan 30 21:08:35 <_av500_> prpplague: ping Jan 30 21:08:58 pong Jan 30 21:09:00 <_av500_> prpplague: that AMD gizmo thing comes with a "smartprobe" with 20h of trial use Jan 30 21:09:08 <_av500_> afterwards its a paperweight Jan 30 21:09:18 <_av500_> http://www.se-eng.com/sage-smartprobe.html Jan 30 21:09:27 <_av500_> http://www.cnx-software.com/2012/11/16/199-gizmo-explorer-kit-embedded-development-kit-based-on-amd-g-series-g-t40e-apu/ Jan 30 21:09:35 <_av500_> there is already drama about it in their irc :) Jan 30 21:09:42 <_av500_> its unethical Jan 30 21:10:32 hehe Jan 30 21:11:06 unethical? are they cross-compiling again? Jan 30 21:11:44 <_av500_> its x86 Jan 30 21:12:04 <_av500_> unless you consider compiling amd on intel as cross Jan 30 21:12:51 that is unethical, yes Jan 30 21:17:33 <_av500_> that whole gitmo looks like a big Sage promo to me now Jan 30 21:17:37 <_av500_> gizmo :) Jan 30 21:17:59 <_av500_> http://www.se-eng.com/sage-edk.html Jan 30 21:19:08 * mdp imagines the residents at Gitmo putting on a big Sage promotional event Jan 30 21:21:49 sounds like hell Jan 30 21:27:13 hehe Jan 30 21:28:01 ew x86 Jan 30 22:29:48 mranostay: http://www.goldmine-elec-products.com/prodinfo.asp?number=G19139 Jan 30 22:32:40 how hard can it be to get a *%$#%$# dma callback Jan 30 22:37:20 does anyone know a digikey part number for a 46 pin header to use as a top cape connector? I haven't been able to figure out what the correct pin length is. Jan 30 22:38:19 (and I say Digikey because I'm already placing an order and I'm sure they have a decent .1" spaced 2x .025" sq post header somewhere there. Jan 30 22:44:07 usualy specified in the SRM Jan 30 22:45:02 mdp, what does the 12 stand for here: https://github.com/ohporter/linux/blob/edma-dmaengine-am33xx-v3/arch/arm/boot/dts/am335x-bone.dts#L62 Jan 30 22:46:10 Thank you Jan 30 22:46:44 find it on page 66? Jan 30 22:49:16 doesn't look like its on pg 66, will look around Jan 30 22:49:59 Mongo: 72 on mine. Section 8.2.1, non-stacking headers-single cape Jan 30 22:51:29 my bone srm is A3_1_0.doc Jan 30 22:52:00 section 8.2 Expansion Headers Jan 30 22:52:13 mine is a6.0.0 still looking Jan 30 22:53:17 okay got it. 7.3.1 on mine. Page 76. Gracias. Jan 30 22:53:25 :) Jan 30 23:34:43 jsabeaudry: still there? Jan 31 00:03:00 https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-ash4/228111_10151407047317661_697799208_n.jpg Jan 31 00:06:12 ahhh hello mr electroplating controller cape! Jan 31 00:08:44 jsabeaudry: one thing more complex about that example is if you look at the bottom of that dts file, there's a edma property set with a crossbar mapping..that mapping says that event 32 on the cross bar is muxed onto the edma channel controller's channel 12. Jan 31 00:09:31 12 happens to be an otherwise unused channel on am335x so it's free for anybody to use (unlike fixed function event channels like mcspis/hsmmc/etc) Jan 31 00:09:39 so that's where the 12 comes from Jan 31 00:09:54 toneeee:its getting there Jan 31 00:10:40 jsabeaudry: in Table 11-24, you'll find that the crossbar event 32 is GPIO2EVT Jan 31 00:11:09 anything in 11-24 must have a mapping created onto some direct channel to be used Jan 31 00:12:26 jsabeaudry: if you are using xdma pins for dma events, they are also on the crossbar Jan 31 00:21:32 mmmm....crossbar Jan 31 00:21:56 opps, i think i just smoked my first beaglebone Jan 31 00:22:19 congrats Jan 31 00:22:49 scope probe shorted somethign out Jan 31 00:22:54 its dead as door knob now Jan 31 00:23:45 ka6sox: nothing like the parallel bars Jan 31 00:24:55 mmm, bizzare Jan 31 00:24:59 it powers up via USB Jan 31 00:25:03 but not via 5V Jan 31 00:25:33 I'm new here. Is smoking a Beaglebone a bad thing? /s Jan 31 00:26:52 maybe you smoked your wall wart. Jan 31 00:27:02 no.. the 5V is good Jan 31 00:28:16 was that in a bong? Jan 31 00:29:16 this is CA after all Jan 31 00:43:41 mdp, I just remember the crossbar switch we had Jan 31 00:43:56 and the beating sticks Jan 31 01:34:18 mrpackethead_: http://www.aerostich.com/electrical-smoke-re-concentrator.html Jan 31 01:34:56 mranostay, the last line in the description says it all... Jan 31 01:36:04 yes Jan 31 02:01:02 koen, any chance you could help me with a pmic question? Jan 31 02:01:25 I notice on the TPS65217 there is a 5V level on the USB input every 2 seconds for 150ms Jan 31 02:01:42 who's driving this? I don't see anything in the datasheet on how that could come about Jan 31 02:01:43 Russ: output? Jan 31 02:01:48 input Jan 31 02:02:06 this is on a beaglebone revision Jan 31 02:02:52 its OTG port, so I guess it makes sense that it might be probed periodically with power, but I don't know what's responsible Jan 31 02:03:25 MUSB doing funny stuff? Jan 31 02:03:32 or maybe it is side effect of HNP? Jan 31 02:03:48 no, I'm trying to make the tps65217 an interrupt source Jan 31 02:04:05 every 2 seconds I get a pair of interrupts 150ms apart telling me that USB power is valid Jan 31 02:04:14 well, valid, then not valid Jan 31 02:04:25 you have the console plugged in? Jan 31 02:04:25 you scope it? Jan 31 02:04:34 I have a multimeter, it's real Jan 31 02:04:49 I have an altenate serial console attached Jan 31 02:05:12 I'd suspect the onboard hub of doing something funny Jan 31 02:05:42 since that is the only source of VBUS strong enough to power something...maybe it is disabled but leaking current sufficent to charge a cap? Jan 31 02:05:59 bah, I can't respond to that Jan 31 02:06:11 where's koen when you need him Jan 31 02:06:35 suffice to say, this has nothing to do with the beaglebone's onboard hub Jan 31 02:06:49 hmmm..doesn't happen in u-boot Jan 31 02:07:01 Hmmm Jan 31 02:07:22 how are u powering it? Jan 31 02:07:58 barrel Jan 31 02:08:24 something must be happening in the regulator framework, I need to put some debug into the tps65217 driver Jan 31 02:19:55 dumped register access, everything is normal Jan 31 02:20:02 can USB0_VBUS drive? Jan 31 02:20:13 on the 33x or the tps? Jan 31 02:21:07 33x Jan 31 02:21:21 AFAIK, nope Jan 31 02:21:30 unless it got mismux'ed. Jan 31 02:21:50 I don't think it's muxable Jan 31 02:22:36 is the interrupts from the USB0_VBUS drive or from the tps65217 via another pin? Jan 31 02:22:40 the only source of 5V on the whole board is SYS_5V Jan 31 02:22:46 from the tps65217 Jan 31 02:23:26 the hub is the only thing that has 5V and is connected to that signal Jan 31 02:23:49 IIRC, valid is like 4.5 or so or better Jan 31 02:26:07 hmm...maybe the esd isolation has something to do with it **** ENDING LOGGING AT Thu Jan 31 02:59:58 2013