<naobsd>
as far as I know, crewrktablets.arctablet.com is not "Rockchip".
<naobsd>
I don't surprise if kernel tree for RPi has thousands of unused drivers...
levd has joined #linux-rockchip
levd1 has quit [Ping timeout: 248 seconds]
AstralixNB1 has joined #linux-rockchip
AstralixNB has quit [Ping timeout: 264 seconds]
levd1 has joined #linux-rockchip
levd has quit [Ping timeout: 276 seconds]
levd has joined #linux-rockchip
levd1 has quit [Ping timeout: 252 seconds]
<bashintosh>
naobsd: basically I am investigating some (apparently) serious issues with the dwc_otg_310 driver shipped with the Rockchip v3.10 kernel, for RK3288 - the CPU is flooded with IRQs when using a USB hub especially and that is something that the RPi community has taken onboard with a complete USB controller driver re-write: https://www.raspberrypi.org/forums/viewtopic.php?t=39175
<bashintosh>
The link from the RPi community shows the same issues that I am experiencing with all RK3288 platforms - keyboards repeating keys, unresponsive USB touch controllers, slow isochronous data transfers etc. The manufacturer of the OTG HS controller (embedded in the RK3288) which is Synopsys, suggests that Rockchip should use DWC2 driver rather than dwc_otg_310. Was thinking to port the RPi driver (or
<bashintosh>
attempt) onto RK3288 and see what happens.
<amstan>
bashintosh: that happens on dwc2 as well still?
<amstan>
bashintosh: we use dwc2 on the chromebooks, it has worked pretty well, besides the interrupt storm bothering us battery-life wise
<bashintosh>
amstan: baaaadly... With USB hubs mostly (tried VIA based hubs and Cypress) and input devices
<bashintosh>
amstan: how bad does it affect battery life, overall?
<amstan>
ok, i can try this tomorrow: usb hub+keyboard
<amstan>
well.. it's lots of interrupts, can't be good for the battery
<amstan>
haven't really done power load test with usb plugged in
<bashintosh>
if it doesn't happen with one keyboard, try having 2 USB keyboards - I have seen the problem on Firefly and basically any RK3288 based board - I have been told not to even think about using the OTG controller (even in host mode only) for anything more than a USB stick. The RK3288 has an EHCI controller too but I can't find a board that uses it except for the PopMetal where they use it for SATA.
<amstan>
we use the ehci for the webcam since it has different issues
<amstan>
for keyboards and such
<amstan>
ehci with hub is ideal
<amstan>
though.. i noticed it's a little slower to tftp through ehci+hub
<bashintosh>
amstan: oh! No wonder you're across all that eheh :)
<amstan>
i looked a little at the dwc interrupt storm back in october, but i couldn't find a good fix for it, short of changing the irq to an fiq similar to how the rpi does it
<amstan>
but even then it won't help with interrupts, it'll just make them less cpu hungry
<amstan>
but i wasn't aware that the keyboard issues still remain
<bashintosh>
amstan: I tried to flag the problem with Rockchip as well but they basically say that they rely on Synopsys for driver patches etc. - is there a newer kernel version after 3.10 from Rockchip that you know?
<amstan>
the stuff i did in october was with rockchip, and yeah
<amstan>
so.. in 3.10 they used whatever the rpi uses
<amstan>
after that they worked with us(google) to get the chromebooks working, we did this on 3.14
<amstan>
but that's mostly exactly the same as upstream, we've been cherry-picking dwc patches
<amstan>
or at least dianders was doing that last
<bashintosh>
amstan: oooh, thanks for the 3.14 tree!
<amstan>
bashintosh: it doesn't have any dts files for non-chromebook rk3288 devices
<amstan>
since none existed at the time when we forked
<amstan>
except the evb
<bashintosh>
amstan: I might try a quick port unless someone has done it already for Firefly or similar RK3288 based hardware! I do thank you VERY much for pointing me to 3.14... I see the DWC2!
markm has quit [Ping timeout: 250 seconds]
<amstan>
bashintosh: but again, it's the same dwc2 as upstream, i wouldn't bother porting it just to see if it works better
<amstan>
i can tell you that tomorrow when i test a chromebook with a hub and a keyboard
<bashintosh>
OK - the hubs we're using are VIA VL812 based, Cypress HX2 (USB 2.0) and HX3 (USB 3.0) - cascading hubs make things a lot worse, same with multiple HID devices (e.g. keyboard + USB touch controller). All with relation to the OTG controller (host only or dual role), not EHCI AFAIK
<bashintosh>
amstan: would you know how big is the battery on the Chromebook? In mAh?
<amstan>
bashintosh: asus c201 looks like 38WHrs
<amstan>
but that's rated for 13 hours, the others are about 8-10
<bashintosh>
amstan: thanks!!
<naobsd>
bashintosh: then why you asked "why Rockchip has the DWC3 (USB controller) driver in their tree even if they don't use it?"? I think it's totally unrelated to dwc2 issue.
<naobsd>
(I cannot find any reason to remove unused drivers from kernel tree...)
<naobsd>
rock2 uses ehci for external port via hub
<naobsd>
(dwc2 is for OTG and USB-SATA)
levd has quit [Ping timeout: 240 seconds]
levd has joined #linux-rockchip
AstralixNB1 has quit [Quit: Leaving.]
cristian_c has joined #linux-rockchip
levd has quit [Remote host closed the connection]
levd has joined #linux-rockchip
levd1 has joined #linux-rockchip
levd has quit [Ping timeout: 276 seconds]
AstralixNB has joined #linux-rockchip
levd has joined #linux-rockchip
levd1 has quit [Ping timeout: 255 seconds]
<sjoerd>
Is the current state of nand on RK3188 still that it can only be used with a bit of rockchip closed goo ?
* sjoerd
would like to run mainline, but no nand would be a bit awkward
<sjoerd>
or well unfortunate
levd1 has joined #linux-rockchip
levd has quit [Ping timeout: 246 seconds]
<naobsd>
no nand support on mainline
<sjoerd>
naobsd: and no open solution in sight i guess from my googling around?
<AstralixNB>
naobsd, are you aware of a current git of u-boot, where Simon's mailing list patches are included?
<naobsd>
sjoerd: well, writing new code from scratch might be possible...?
<naobsd>
AstralixNB: no idea
levd has joined #linux-rockchip
<AstralixNB>
Hmmm... about NAND, the interface and the code is closed. And the documentations leaked on 3188 are not very readable to write a driver from scratch...
<AstralixNB>
That is way more complicated than to scope out some things on a failing rock1 :)
levd1 has quit [Ping timeout: 246 seconds]
<sjoerd>
naobsd: improving the state for mainline a bit for this project would be fine, doing a nand driver would be too much though :)
<sjoerd>
There is always the option to just use an SD card ofcourse
<sjoerd>
AstralixNB: i didn't see sjg's rockchip patches land in u-boot master just yet
<naobsd>
PX2 TRM should have some info
<AstralixNB>
sjoerd, for NAND / SD, if you would like to use mainline, use a board that provides eMMC.
<bashintosh>
naobsd: basically Synopsys asked me that question - they were expecting DWC2 in the Rockchip default kernel, instead there is DWC3 which I did not know what that was until I went in and read the sources :)
<sjoerd>
AstralixNB: Not my choice of board unfortunately
<naobsd>
bashintosh: as you said, dwc3 is unused. nothing is wrong.
<AstralixNB>
Yeah, unfortunately there was a decision to use NAND instead of eMMC... But you can use SD or hack the RK driver to work with any kernel
<AstralixNB>
And for u-boot, I want to jump in early as I did some work on u-boot. I started with latest HEAD of denx git and tried patching in Simons 54 patches but I have so much missing links...
<sjoerd>
AstralixNB: https//github.com/radxa/u-boot-rockchip.git not good ? (I wanted to start from something known working)
<bashintosh>
naobsd: yes true, the problem (left) is with the dwc_otg_310 driver which I'll attempt to replace with DWC2 for the OTG controller, hoping to solve at least some of the issues with USB performance etc.
<sjoerd>
AstralixNB: iirc sjgs patches were for 3288, not sure if they would work for 3188 as well
<sjoerd>
and for this specific board
<AstralixNB>
I am not talking of good / no-good, just want to go completely mainline.
<bashintosh>
naobsd: ah thanks for the Rock2 tip! Will grab one to test EHCI!
<AstralixNB>
I do have several 3288 devices and I am working on these
<sjoerd>
AstralixNB: ah sorry, i misread you
<sjoerd>
coffee still nees to take effect
<AstralixNB>
Are you from germany? If so, you might think about spending a few euros on postage and send me the rock1 for a health check and possible repair
<AstralixNB>
however, if you like, write me a note on astralix ..at.. crewrktablets .. de
<sjoerd>
AstralixNB: .nl
<sjoerd>
AstralixNB: but i already promised my client to send the dead board back to him :)
<AstralixNB>
Ok
<sjoerd>
AstralixNB: thanks though
<AstralixNB>
welcomed
levd1 has joined #linux-rockchip
levd has quit [Ping timeout: 240 seconds]
markm has joined #linux-rockchip
dlezcano has quit [Ping timeout: 252 seconds]
cristian__c has joined #linux-rockchip
cristian__c has quit [Read error: Connection reset by peer]
cristian_c has quit [Read error: Connection reset by peer]
cristian_c has joined #linux-rockchip
dlezcano has joined #linux-rockchip
nighty-_ has joined #linux-rockchip
cristian_c has quit [Quit: Bye]
levd has joined #linux-rockchip
levd1 has quit [Ping timeout: 256 seconds]
levd has quit [Remote host closed the connection]
levd has joined #linux-rockchip
levd has quit [Ping timeout: 244 seconds]
naobsd has quit [Quit: naobsd]
jack-ma has joined #linux-rockchip
cosm has quit [Ping timeout: 256 seconds]
field^Mop has joined #linux-rockchip
field^Mop has quit [Ping timeout: 246 seconds]
cyrozap has quit [Ping timeout: 256 seconds]
cyrozap has joined #linux-rockchip
field^Mop has joined #linux-rockchip
jack-ma has quit [Ping timeout: 250 seconds]
field^Mop has quit [Ping timeout: 248 seconds]
cyrozap has quit [Ping timeout: 244 seconds]
cyrozap has joined #linux-rockchip
suby has joined #linux-rockchip
cosm has joined #linux-rockchip
suby has quit [Client Quit]
nashpa has quit [Ping timeout: 265 seconds]
nashpa has joined #linux-rockchip
field^Mop has joined #linux-rockchip
wildea01 has joined #linux-rockchip
premoboss has quit [Remote host closed the connection]
field^Mop has quit [Ping timeout: 256 seconds]
<AstralixNB>
someone able to help me on u-boot?
field^Mop has joined #linux-rockchip
AstralixNB has left #linux-rockchip [#linux-rockchip]
Bludot has joined #linux-rockchip
c0d3z3r0 has quit [Ping timeout: 252 seconds]
c0d3z3r0 has joined #linux-rockchip
wildea01 has quit [Quit: leaving]
wildea01 has joined #linux-rockchip
AstralixNB has joined #linux-rockchip
premoboss has joined #linux-rockchip
wildea01 has quit [Quit: leaving]
premoboss has quit [Ping timeout: 276 seconds]
field^Mop has quit [Ping timeout: 248 seconds]
field^Mop has joined #linux-rockchip
rperier has quit [Quit: No Ping reply in 180 seconds.]
rperier has joined #linux-rockchip
AstralixNB has quit [Remote host closed the connection]
field^Mop has quit [Ping timeout: 240 seconds]
field^Mop has joined #linux-rockchip
field^Mop has quit [Ping timeout: 256 seconds]
bamvor has quit [Ping timeout: 248 seconds]
bamvor has joined #linux-rockchip
nighty-_ has quit [Quit: Disappears in a puff of smoke]
nighty-_ has joined #linux-rockchip
<amstan>
bashintosh: keyboard works just fine for me
<amstan>
Bus 002 Device 002: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub
<amstan>
Bus 002 Device 005: ID 1a40:0101 Terminus Technology Inc. Hub
<amstan>
Bus 002 Device 006: ID 413c:2106 Dell Computer Corp. Dell QuietKey Keyboard