rellla changed the topic of #linux-sunxi to: Allwinner/sunxi /development discussion - did you try looking at our wiki? https://linux-sunxi.org - Don't ask to ask. Just ask and wait! - https://github.com/linux-sunxi/ - Logs at http://irclog.whitequark.org/linux-sunxi - *only registered users can talk*
<apritzel> smaeul: I will rebase my H616 support on top of it ASAP
mauz555 has joined #linux-sunxi
mauz555 has quit [Read error: Connection reset by peer]
narmstrong has quit [Ping timeout: 264 seconds]
Benjojo has quit [Ping timeout: 240 seconds]
narmstrong has joined #linux-sunxi
Benjojo has joined #linux-sunxi
ldevulder has quit [Ping timeout: 246 seconds]
popolon has quit [Quit: WeeChat 3.0]
apritzel has quit [Ping timeout: 256 seconds]
Mangy_Dog has quit [Ping timeout: 240 seconds]
asdf28 has quit [Ping timeout: 265 seconds]
Esmil has quit [Ping timeout: 256 seconds]
Esmil has joined #linux-sunxi
lkcl has quit [Ping timeout: 246 seconds]
jstein has quit [Quit: quit]
kaspter has joined #linux-sunxi
lkcl has joined #linux-sunxi
vagrantc has quit [Quit: leaving]
lkcl has quit [Ping timeout: 240 seconds]
sunshavi has quit [Read error: Connection reset by peer]
lkcl has joined #linux-sunxi
sunshavi has joined #linux-sunxi
gediz0x539 has joined #linux-sunxi
xes_ has quit [Read error: Connection reset by peer]
xes has joined #linux-sunxi
kaspter has quit [Ping timeout: 265 seconds]
kaspter has joined #linux-sunxi
gediz539 has joined #linux-sunxi
gediz0x539 has quit [Read error: Connection reset by peer]
lkcl has quit [Ping timeout: 265 seconds]
ChriChri_ has joined #linux-sunxi
ChriChri has quit [Ping timeout: 246 seconds]
ChriChri_ is now known as ChriChri
lkcl has joined #linux-sunxi
lkcl has quit [Ping timeout: 240 seconds]
JohnDoe_71Rus has joined #linux-sunxi
lkcl has joined #linux-sunxi
lurchi_ has joined #linux-sunxi
lurchi__ has quit [Ping timeout: 264 seconds]
camus1 has joined #linux-sunxi
kaspter has quit [Ping timeout: 256 seconds]
camus1 is now known as kaspter
apritzel has joined #linux-sunxi
\\Mr_C\\ has quit [Quit: (Read error: Connection reset by beer)]
reinforce has joined #linux-sunxi
apritzel has quit [Ping timeout: 246 seconds]
matthias_bgg has joined #linux-sunxi
chewitt has quit [Quit: Zzz..]
cnxsoft1 has joined #linux-sunxi
cnxsoft has quit [Read error: Connection reset by peer]
apritzel has joined #linux-sunxi
indy has quit [Ping timeout: 240 seconds]
_whitelogger has joined #linux-sunxi
apritzel has quit [Ping timeout: 240 seconds]
lkcl has quit [Ping timeout: 265 seconds]
chewitt has joined #linux-sunxi
lkcl has joined #linux-sunxi
cmeerw has joined #linux-sunxi
kaspter has quit [Ping timeout: 246 seconds]
kaspter has joined #linux-sunxi
cmeerw has quit [Ping timeout: 260 seconds]
asdf28 has joined #linux-sunxi
apritzel has joined #linux-sunxi
indy has joined #linux-sunxi
ldevulder has joined #linux-sunxi
ldevulder has quit [Quit: Leaving]
ldevulder has joined #linux-sunxi
kaspter has quit [Ping timeout: 264 seconds]
kaspter has joined #linux-sunxi
<apritzel> jernej: hexdump0815: I did some USB experiments and it seems that this PHY 2 is special: I need both PHY 1 and PHY 2 for port 1 to work
<apritzel> so I have now: phys = <&usbphy 1>, <&usbphy 2>; in the [eo]hci1 DT node
<apritzel> hexdump0815: Can you try to add PHY 2 in a similar way to ehci3/ohci3 on your TV box, and check if that works?
pgreco has quit [Quit: ZNC 1.8.2 - https://znc.in]
pgreco has joined #linux-sunxi
lkcl has quit [Ping timeout: 265 seconds]
<wens> could it be the reset or clock lines are tied together in some odd way?
<wens> not the first time they did this
<apritzel> wens: you mean like this weird OHCI clock speciality?
lkcl has joined #linux-sunxi
reinforce has quit [Remote host closed the connection]
hlauer has joined #linux-sunxi
victhor has joined #linux-sunxi
netlynx has joined #linux-sunxi
netlynx has joined #linux-sunxi
netlynx has quit [Changing host]
laj_ has quit [Remote host closed the connection]
laj_ has joined #linux-sunxi
reinforce has joined #linux-sunxi
Mangy_Dog has joined #linux-sunxi
huawei has quit [Quit: ZNC - https://znc.in]
huawei has joined #linux-sunxi
<hlauer> jernej, wens: About "Fix ethernet phy-mode" patchv3 Fixes tag: In commit 968f2c916939 the ethernet phy node is moved, or is it de332de26d19 ?
<ullbeking> KotCzarny: if I had a pile of HP Elitedesk 800 G2 boards, say 5, in a hyperconverged Ceph cluster, stacked with standoffs, where do I put the drives?
<ullbeking> I need to design and laser cut a "chassis" right
<KotCzarny> how many drives?
<KotCzarny> and how many drives per board
<KotCzarny> because if, say, 12 or more, then just buy some old rack server
<KotCzarny> less hasle, wires and will have ecc memory as a bonus
<KotCzarny> *hassle
<ullbeking> KotCzarny: is this OT for this channel?
<KotCzarny> a lot
<KotCzarny> :)
<ullbeking> Basically, I want to build a QUIET home NAS. We have a small apartment so it needs to live in the living room.
<ullbeking> I though of a single board with a small chassis and mITX board ...
<KotCzarny> lets go priv
<ullbeking> But then I considered a hyperconverged stack of SBC's
<ullbeking> Kk
<ullbeking> Thx
putti_ has joined #linux-sunxi
indy has quit [Quit: ZNC - http://znc.sourceforge.net]
ganbold has quit [Quit: Leaving]
ganbold has joined #linux-sunxi
Perlovka_ has quit [Ping timeout: 265 seconds]
Putti has quit [Ping timeout: 260 seconds]
alexxy has quit [Ping timeout: 260 seconds]
jernej has quit [Ping timeout: 246 seconds]
indy has joined #linux-sunxi
alexxy has joined #linux-sunxi
megi has quit [Quit: WeeChat 3.0]
megi has joined #linux-sunxi
lucascastro has quit [Remote host closed the connection]
lucascastro has joined #linux-sunxi
lurchi_ is now known as lurchi__
victhor has quit [Remote host closed the connection]
JohnDoe_71Rus has quit [Quit: KVIrc 5.0.1 Aria http://www.kvirc.net/]
<gediz539> what is the meaning of "DWA" in context of audio codec?
<mru> gediz539: a little more context?
<gediz539> Audio Codec Register List (0x01C22C00) on A13, 24th bit of DAC Digital Part Control Register (Offset: 0x00), Description is just "DWA. DWA Function Disable"
<mru> maybe they accidentally turned an M upside down
<gediz539> oh...
<mru> joking
<gediz539> lol you got me
<gediz539> it's allwinner, we're never out of surprises you know
<mru> oh, it's probably data weighted averaging
gumblex has quit [Ping timeout: 260 seconds]
<mru> it's a distortion reduction thing
gumblex has joined #linux-sunxi
jernej has joined #linux-sunxi
ldevulder_ has joined #linux-sunxi
<gediz539> thanks a bunch
ldevulder has quit [Ping timeout: 265 seconds]
gediz539 has quit [Quit: Leaving]
rqou has quit [Quit: ZNC 1.7.x-git-709-1bb0199 - http://znc.in]
rqou has joined #linux-sunxi
sunshavi has quit [Remote host closed the connection]
\\Mr_C\\ has joined #linux-sunxi
Perlovka has joined #linux-sunxi
ldevulder__ has joined #linux-sunxi
ldevulder_ has quit [Ping timeout: 260 seconds]
gaston1980 has joined #linux-sunxi
victhor has joined #linux-sunxi
sunshavi has joined #linux-sunxi
reinforce has quit [Quit: Leaving.]
sunshavi has quit [Ping timeout: 260 seconds]
JohnDoe_71Rus has joined #linux-sunxi
asdf28 has quit [Ping timeout: 246 seconds]
kaspter has quit [Ping timeout: 265 seconds]
asdf28 has joined #linux-sunxi
AneoX has joined #linux-sunxi
<jernej> apritzel: AW in the past already combined reset or other lines for two different peripherals. Recent example (CSI+DI): https://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux.git/commit/?h=sunxi/for-next&id=62de535663e8bf4a5442bb11de7e4926a00eb93c
<jernej> they even got documentation wrong for above issue
<jernej> another example would be combined reset line for mixer0 and mixer1 on H3
matthias_bgg has quit [Ping timeout: 265 seconds]
lurchi__ is now known as lurchi_
<apritzel> jernej: yeah, I am assuming the worst ;-)
<juri_> ullbeking: bannana pi pro, orange pi R1, a few other a20 boards...
<apritzel> jernej: the nasty thing is that EHCI/OCHI can work with any number of clocks and reset (also PHYs), so we can just enumerate in the DT and be done (as we already do)
<apritzel> jernej: but this issue seems to be about the PHY, and we can only have one clock and one reset per PHY
<apritzel> jernej: so if there is a shared reset or whatever, we need to dismantle the PHY driver and see how we can plug this in there
<jernej> hlauer: none of those two commits touches phy-mode of bananapro
<jernej> apritzel: I guess there must be some clue in BSP code
<apritzel> jernej: yeah, but it's already hard to read for much simpler things ...
<jernej> :)
<jernej> still easier than reversing blobs :)
netlynx has quit [Quit: Ex-Chat]
<jernej> hm... nothing special in BSP at first glance
<jernej> fun fact, BSP has node defined as "ohciX-controller@0x05310400" but this address doesn't even appear in regs property
cmeerw has joined #linux-sunxi
<apritzel> jernej: yeah, but they have the same ranges as the EHCI controller, and they encompass both devices. I also like that SRAM base starting at 0 ;-)
chewitt has quit [Quit: Zzz..]
<hlauer> jernej: I saw only the initial commit of bananapro dts looking for phy-mode. But AFAIR Gbit worked with older kernels fine
<jernej> of course it is
<jernej> because older phy driver didn't override delays
<jernej> but that is not the point
<hlauer> ok, so what is the point?
<jernej> you are fixing phy-mode so you have add fixes tag for that commit which introduced wrong phy-mode property
lurchi_ is now known as lurchi__
<hlauer> that would be the initial commit of bapro dts then. is that ok for a fixes tag?
<jernej> yes
<jernej> note that this issue is not typical one, so it might be even more confusing for first contribution
sunshavi has joined #linux-sunxi
<hlauer> it's not my first, but the older several year ago where taken without a fixes tag. anyway, thanks for your help
<jernej> core issue is that driver didn't fully follow DT bindings and many DT files relied on that behaviour
<jernej> once driver was fixed, many ethernet connections stopped working
<jernej> apritzel: are you sure the issue is only with usb1 port? did you test other ports?
<apritzel> jernej: I am not sure I can use USB0, I don't think it powers the bus? Will try my USB-C OTG adapter tonight
<apritzel> jernej: I think hexdump0815 reported the same problem with USB3 on his TV box (does not work with just 0 & 3 enabled, works with all ports enabled)
<apritzel> I need to build a cable tonight to verify this on the OPi Zero2
<apritzel> port 2 definitely work on its own
hexdump0815 has joined #linux-sunxi
victhor_ has joined #linux-sunxi
victhor has quit [Read error: Connection reset by peer]
matthias_bgg has joined #linux-sunxi
victhor_ is now known as victhor
<hexdump0815> apritzel: jernej: i just tested - if i add 0,2+3 then is see the usb devices on 0+3 - without 2 in the dts i get usb errors - so looks like 2 is really required for 0 and 3 to work well
<apritzel> hexdump0815: ah, many thanks! And 0+2 just make the first port work, whereas just 0 gives you nothing?
<apritzel> (You can tweak the DT in U-Boot on the command line, just before booting the kernel)
<hexdump0815> apritzel: let me check ...
<hexdump0815> apritzel: i just checked 0 and 3 alone separately - both did not work and then both alone combined with 2 and then they are working - so 2 is required for each of them
<apritzel> hexdump0815: many thanks for that!
<hexdump0815> apritzel: i'm happy to help bringing h616 support forward :)
<jernej> could it be some bug in driver?
night199uk has quit [Ping timeout: 264 seconds]
night199uk has joined #linux-sunxi
<hexdump0815> could it also be strange wiring in the tv box? jernej: does it work the same way on your t95 box?
<jernej> I don't have t95 set up currently...
<jernej> but this is more internal thing
<hexdump0815> i think apritzel also mentioned he saw the same behaviour when testing the other usb ports on the pins on the opi zero 2 too
<jernej> I guess easy way to check would be to dump BSP registers and compare them...
<jernej> and see if they release also usb2 reset
<jernej> and of course ccu registers
lucascastro has quit [Ping timeout: 240 seconds]
victhor has quit [Ping timeout: 265 seconds]
AneoX has quit [Quit: Textual IRC Client: www.textualapp.com]
lurchi__ is now known as lurchi_
<hexdump0815> jernej: how to dump them? i have a bsp installation on that box ready as well ...
<jernej> devmem
<hexdump0815> jernej: btw. i you want to have anything dumped for hdmi as well, just let me know
<jernej> ah, no need, thanks, I already did it myself
putti_ is now known as Putti
<jernej> apritzel: I don't see any place where BSP driver would set PHY_CTL_VBUSVLDEXT flag
<jernej> apritzel: and SIDDQ is cleared for each PHY
<hexdump0815> btw. i was very positively surprised to see that suspend-to-disk/hibernation is working perfectly fine on a h6 tv box - all was working well including panfrost after resume ... rockchip is loosing usb and amlogic hangs while testing the same ...
<jernej> yeah, smaeul did a good job here
<apritzel> jernej: you mean SIDDQ clear for *every* of the four PHYs, regardless of their actual usage?
<jernej> yes
<apritzel> that's annoying
<jernej> oh, H616 manual says PHY_CTL_VBUSVLDEXT is fixed internally, register value invalid
<jernej> what is SIDDQ flag? manual doesn't explain it?
<apritzel> dunno for sure, but it's some generic USB PHY signal, I found this in other SoCs as well
<jernej> anyway, I think we need special H616 handling anyway, to apply special H616 tuning
lucascastro has joined #linux-sunxi
<jernej> aha, RK usb phy driver has explanation "Power down usb phy analog blocks by set siddq 1"
<apritzel> well, I already tried to hack this PHYTUNE (reg +0x18) in, but it didn't make a difference, at least functionality wise
<apritzel> (didn't do any performance tests, though)
<jernej> it could be reliability issue
<jernej> or performance
hexdump0815 has quit [Quit: Connection closed]
<jernej> apritzel: with yours h616-v4 branch USB still doesn't work for me on OPi 0+
<jernej> usb 4-1: device not accepting address 4, error -62
<jernej> even if I enable all ports, nothing works
hexdump0815 has joined #linux-sunxi
lucascastro has quit [Ping timeout: 246 seconds]
<hexdump0815> jernej: i got the exact same error until i enabled ehci0-3 and ohci0-3
<jernej> as I said, I did and still the same
matthias_bgg has quit [Ping timeout: 265 seconds]
<jernej> hexdump0815: do you have U-Boot binary you're using for USB testing at hand?
<jernej> U-Boot is the only real difference, I'm using old port...
<hexdump0815> jernej: https://github.com/hexdump0815/u-boot-misc/releases/tag/210103-01 - the opi zero 2 one is not tested, but i think it should work
<jernej> mainline?
<hexdump0815> oh sorry - i did not compile the opi zero 2 one - this is mainline
<jernej> apritzel: do you have U-Boot binary at hand? I want to have same setup as you, maybe there is something in U-Boot or TF-A, which makes USB work for your
<hexdump0815> the x96q should work for your t95 as well i think - let me check, maybe i can build a opi zero 2 one for you as well
lucascastro has joined #linux-sunxi
JohnDoe_71Rus has quit [Quit: KVIrc 5.0.1 Aria http://www.kvirc.net/]
lurchi_ is now known as lurchi__
<hexdump0815> jernej: you might try this one: https://github.com/hexdump0815/u-boot-misc/releases/download/210103-01/h616-opizero2-u-boot-sunxi-with-spl.bin.gz - it is built from the same sources as the one i'm using on my x96q right now ... it does not yet have all usb ports enabled on u-boot level
<jernej> I need one for OPi 0+, but thanks anyway
<hexdump0815> this one i just built using the opizero2 config :)
<jernej> ah, sorry
<jernej> USB works in Linux with that one?
hexdump0815 has quit [Quit: Connection closed]
hexdump0815 has joined #linux-sunxi
<hexdump0815> its built from the same sources as the one i'm using on the x96q box, so it should work, but i did (and can not) test it on an opi zero 2 (none here)
<jernej> ok, I made it work, my changes were at fault
<apritzel> jernej: was just about to send you my binary ...
<jernej> hexdump0815, apritzel: BSP DTs have all USB controllers enabled, so I guess this issue is masked
<apritzel> jernej: yeah, good point. Are those are some generic DTs, or is there a specific one for the OPi Zero2?
<jernej> apritzel: with your DT, USB doesn't work
<jernej> but it works if all controllers are enabled
<jernej> let me find correct combination
<apritzel> the Linux v4 DT, you mean?
<jernej> yes
<hexdump0815> for me it was 2 which had to be enabled for any other to work
<apritzel> jernej: you have good enough power? Because with my other cable it doesn't work
<apritzel> (booting works, but USB doesn't enumerate)
<jernej> it's fast charger for my phone, so I can't make it better :)
<apritzel> that should be good enough, indeed
<apritzel> probably makes it even run faster !!1!1!
<apritzel> I just see that I booted U-Boot from SD card (FEL uses that dodgy cable), and there I enabled all USBs in U-Boot's DT
<apritzel> so maybe one really needs *all* SIDDQs to be cleared?
<apritzel> (and U-Boot was doing that in my case?)
<jernej> actually, mainline driver also does that
<jernej> but now I can't get it to work, again
<jernej> hm, that was changed recently
<apritzel> jernej: but I see what you mean, if I boot with U-Boot not enabling all ports, it indeed doesn't work in Linux
<apritzel> jernej: hexdump0815: yeah, so it's still messy as hell, I will reply to my own post and ask to ignore the USB patches
<jernej> apritzel: I just tested USB with only [e|o]hci 1 & 2 and only one phy (1 & 2)
<jernej> with all resets and gates pre-released in U-Boot
<jernej> and it worked
<apritzel> jernej: yeah, I think we need the Linux hacks *plus* all ports enabled in U-Boot
<jernej> ah, scratch that, it doesn't work second time
<apritzel> so I tried just having all PHYs in the Linux DT for [EO]HCI1, and that didn't help
<jernej> you don't need U-Boot
<apritzel> I still have my PHYTUNE Linux patch somewhere, also setting bit 5, as the BSP does, IIRC
<jernej> apritzel: this works for me: http://ix.io/2Njw
<jernej> not sure if reg size matters or not
<apritzel> jernej: I don't think it does, as the H6 (and others) already have too little (only 4, but we write to 0x10)
<jernej> that should be fixed :)
shailangsa has quit [Ping timeout: 272 seconds]
lurchi__ is now known as lurchi_
<apritzel> jernej: sure, just not really a priority right now
<apritzel> jernej: so that means just listing the USB PHYs in the Linux DT doesn't work, we need to actually enable all ports
<apritzel> which might hint at that some HCI reset/clocks are shared?
<jernej> maybe, yes
<apritzel> I will try to bisect the required lines later, now need to test the U-Boot PR with the H616 base support first
hexdump0815 has quit [Quit: Connection closed]
<ullbeking> you know, i was just thinking...
<ullbeking> (strap yourselves in, because you're in for a bumpy ride!)
<ullbeking> for a simple H3 SBC, e.g., OPi +2E...
<ullbeking> how does one attach a reasonably fast HDD or SSD? USB 2 seems a bit ... eh...
<ullbeking> is ti intended ti get its storage via Ethernet?
<sunshavi> ullbeking: I have booted from a pata-ssd atached to the usb-port and It is quicker than the emmc
<ullbeking> sunshavi: so usb 2 external ssd gives acceptable performance?
<sunshavi> on my case yes. YMMV
<ullbeking> ok great. this is for lightweight home servers for hosting pictures for my grandmother so it'll be fine
<sunshavi> for booting from usb you need a special crafted sdcard
<ullbeking> such as?
lurchi_ is now known as lurchi__
<sunshavi> let me locate mine
<ullbeking> i esd planning on booting from sd card or spi andusing the ssd for the bulk ata
<ullbeking> sunshavi: which sbc do you use btw?
<sunshavi> opi+2e
<ullbeking> d/ata/data/
<ullbeking> me too!
<ullbeking> but i'm curious about why the sd card needs to be special
<ullbeking> ....
<sunshavi> it is in the documentation. That's the struct of mine. Some guys do the same on freebsd (for using very long harddisks)
narmstrong has quit [Read error: Connection reset by peer]
narmstrong has joined #linux-sunxi
steev has quit [Ping timeout: 260 seconds]
<sunshavi> every time you change kernel version. You would need to update dtb and zImage
aliosa27 has quit [Ping timeout: 272 seconds]
aliosa27_ has joined #linux-sunxi
steev has joined #linux-sunxi
vagrantc has joined #linux-sunxi
cmeerw has quit [Ping timeout: 264 seconds]
Perlovka has quit [Ping timeout: 264 seconds]
hlauer has quit [Ping timeout: 256 seconds]
Esmil has quit [Ping timeout: 256 seconds]
Esmil has joined #linux-sunxi
shailangsa has joined #linux-sunxi
asdf28 has quit [Ping timeout: 240 seconds]
asdf28 has joined #linux-sunxi
s_frit has quit [Remote host closed the connection]
s_frit has joined #linux-sunxi