libv changed the topic of #linux-sunxi to: Allwinner/sunxi development - Did you try looking at our wiki? https://linux-sunxi.org - Don't ask to ask. Just ask and wait for an answer! - This channel is logged at https://oftc.irclog.whitequark.org/linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
pentabarf1 has joined #linux-sunxi
pentabarf has quit [Ping timeout: 480 seconds]
TuxBlackEdo has joined #linux-sunxi
Mangy_Dog has quit [Ping timeout: 480 seconds]
ftg has quit [Read error: Connection reset by peer]
macromorgan has left #linux-sunxi [Leaving]
jernej has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
jernej has joined #linux-sunxi
libv_ has joined #linux-sunxi
libv has quit [Ping timeout: 480 seconds]
pentabarf1 has quit [Remote host closed the connection]
vagrantc has quit [Quit: leaving]
lurchi__ has joined #linux-sunxi
lurchi_ has quit [Ping timeout: 480 seconds]
tuxd3v_ has joined #linux-sunxi
tuxd3v has quit [Ping timeout: 480 seconds]
Danct12 is now known as melt
hanetzer has quit [Ping timeout: 480 seconds]
melt is now known as Danct12
Danct12 has quit [Quit: Quitting]
Danct12 has joined #linux-sunxi
apritzel has joined #linux-sunxi
Danct12 has quit [Quit: Quitting]
Danct12 has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
cmeerw has joined #linux-sunxi
apritzel has joined #linux-sunxi
Jonhmut has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
akanouras is now known as akanouras_
apritzel has joined #linux-sunxi
akanouras has joined #linux-sunxi
akanouras_ has quit []
Mangy_Dog has joined #linux-sunxi
ats has quit [Ping timeout: 480 seconds]
ats has joined #linux-sunxi
ats has quit [Ping timeout: 480 seconds]
ats has joined #linux-sunxi
ats has quit [Ping timeout: 480 seconds]
ats has joined #linux-sunxi
ats_ has joined #linux-sunxi
ats has quit [Ping timeout: 480 seconds]
<warpme_> i'm issuing memdev2 with word (devmem2 0x3001674 w)
<warpme_> jernej: fyi: with turning-off GPU secure memory (mw.l 0x3007054 0) i see improvement. ui has sort of working animatons (i.e. white borders of pop-ups are niceely fade-in/fade-out). but that's all. rest is all black. playing with setting bit 31 at 0x3001674 gives me buss error in memdev2. i can access this loc with byte and half-word. but accessing by word gives buss error - so probably issue is incorrect mem.aligment when
<warpme_> and still gpu job timeouts. in bsp dt i see gpu has 3 clocks (bus & gpu0 & gpu1). maybe h616 has more granullar power management by capability to run each of 2 exec.unit with different clocks?
<jernej> warpme_; you can set that in U-Boot too
<warpme_> memdev2 is nicer as playing with bit not requires reboot :-)
<jernej> third clock, named gpu1 on mainline, is used to properly switch frequency
<jernej> if you want to change gpu0 frequency, you switch gpu0 parent to gpu1 then change pll-gpu rate and at the end, switch gpu0 parent to pll-gpu
<jernej> don't ask me how to properly model this on mainline, I have no clue
<jernej> warpme_: didn't you say yesterday that changing secure memory doesn't help?
<warpme_> yes. yesterday feedback about secure memory was "timeouts are still present". today i accidentally discovered that doing actions on player which generates ui pop-ups is visible on screen....
<warpme_> fade-in/fade-out speed is fluent the same like on working g31 on amlogic sm1
<jernej> without secure memory change, that isn't the case?
<warpme_> i think sec bit changes - but to be 100% sure - let me chek :-)
<jernej> well, there is another possibility that there can be additional quirk hiding in userspace component
ats_ has quit [Ping timeout: 480 seconds]
<jernej> something like that in mali450 on H5
<jernej> warpme_: you can also try with bit 0 set to 1 in gpu1 register (along with bit 31)
<jernej> apart from that, I can't help, I don't have any H616 board at hand currently
<warpme_> hmm - it looks like clearing security mem bit don't have impact. not touching it also gives those partial ui aminations
ats has joined #linux-sunxi
<warpme_> re: word access misalignment from devmem2 - what will be your advice? you mention b31 at 0x3001674. should i go with b7 at 0x3001677 with byte access?
<warpme_> i dont recall is arm gig or little endian...
<warpme_> gig->big
<jernej> I think I have similar alignment issues before, but it dependent on userspace
<jernej> using another rootfs helped
<jernej> arm can be run as both, big and little endian
<jernej> but more or less everyone run it as little
<jernej> bbl
gediz0x539 has quit [Remote host closed the connection]
gediz0x539 has joined #linux-sunxi
ats has quit [Read error: Connection reset by peer]
ats has joined #linux-sunxi
<warpme_> jernej: fyi: some observations: i started to suspect issue might be related to something like gpu surfaces - de planes interop. kicking ui pop-ups with animations _not_ triggers gpu job timeouts. this tells me gpu job scheduling and then execution is ok. gpu job timeouts are happening without any user actions and are every 60s (like clock update on player ui)
Mangy_Dog has quit [Ping timeout: 480 seconds]
Mangy_Dog has joined #linux-sunxi
<warpme_> Started to think this might be sfbd vs mfbd thing as t720 Is sfbd while g31 Is mfbd do DisplayEngine wykuł deal with this (sent from phone)
<apritzel> warpme_: wasn't it that devmem2 is broken on 64-bit?
<apritzel> warpme_: because "word" accesses mean unsigned long, which isn't exactly the 32-bit access you want ;-)
<apritzel> warpme_: and from my experiences you can access the lower bits in a 32-bit reg via bytes accesses, but not anything >= 8
<apritzel> warpme_: I wrote peekpoke (https://github.com/apritzel/peekpoke) to fix that issue and also be more useful for hackers (like you can ask it to just flip a bit)
<apritzel> $ peekpoke -b 0x3001000 s.l 0x674 31
<jernej> warpme_: try off screen GPU rendering
<jernej> not 100% sure how to do that, but anarsoul or rellla probably know
<jernej> apritzel: that looks very useful
<jernej> if only it could dump a range of memory... :P
Jonhmut has quit [Remote host closed the connection]
veremitz has quit [Remote host closed the connection]
veremitz has joined #linux-sunxi
lurchi__ has quit [Ping timeout: 480 seconds]
lurchi__ has joined #linux-sunxi
<apritzel> jernej: I thought the same the other day ;-)
lurchi__ has quit [Ping timeout: 480 seconds]
<evadot> do I recall someone saying that hdmi phy in A64 cannot use pll video1 even if it's documented that it should work ?
lurchi__ has joined #linux-sunxi
<jernej> evadot: what it's documented is that HDMI controller can use pll-video1 and that works
<jernej> issue is HDMI PHY, which can't use pll-video1
<jernej> only pll-video0
<jernej> (there is no documentation about that)
<evadot> yup ok that's what I remembered then
<evadot> thanks
ssvb has quit []
Danct12 has quit [Quit: Quitting]
Danct12 has joined #linux-sunxi
lurchi__ has quit [Ping timeout: 480 seconds]
tuxd3v_ has left #linux-sunxi [#linux-sunxi]
tuxd3v has joined #linux-sunxi
<tuxd3v> hello any proper way to define i2c in device tree for alwinner h3?
<tuxd3v> I am geting tons of:
<tuxd3v> 'i2c i2c-0: mv64xxx: I2C bus locked, block: 1, time_left: 0' in dmesg
<tuxd3v> the bus is stuck, or blocked.
<megi> is the device powered on?
<tuxd3v> this are the ones detected: https://paste.debian.net/hidden/61a12a8d/
<tuxd3v> the Soc is the i2c, I don't know :/
<megi> I mean the device you're trying to comm with
<megi> and it's io bus voltage regulator
<tuxd3v> I have no devices on it yet, I was just probing if it was working ok :)
<megi> you need to have pullup resistors on bus lines and the bus needs to be powered
<megi> then it may work
vagrantc has joined #linux-sunxi
<megi> bus locked usualy means that SCL or SDA is constantly in a low state
<tuxd3v> the sun8i-h3.dtsi doesn't have i2c there :/
<megi> there's a combined dtsi for h3/h5
<megi> it's in that one
<tuxd3v> megi, thanks :)
<tuxd3v> marvell,mv64xxx-i2c.yaml, its a marvel ip :)
<tuxd3v> allwinner H3 is sun8i right?
<tuxd3v> or is sun6i
<vagrantc> sun8i
<tuxd3v> I have 2 options for spi
<tuxd3v> CONFIG_SPI_SUN4I=y
<tuxd3v> CONFIG_SPI_SUN6I=y
<tuxd3v> don't know what to use :)
<tuxd3v> maybe 6i?
<tuxd3v> allwinner h5 is sun50i right?
<tuxd3v> they share a lot of IP between them..
<vagrantc> just because a platform is sun8i, doesn't mean it doesn't use some other sun*i drivers :)
<tuxd3v> indeed :)
<tuxd3v> but it turn things dificult to configure, some options you are afraid to disable..
<smaeul> when in doubt, `git grep <compatible-string> drivers` will tell you which one to use. generally it's sun8i, sun6i, sun4i in order of most to least likely
<smaeul> though it doesn't hurt to enable all of them
<smaeul> D1 will make this even more confusing: the same die is sun8iw20p1 (R528, with dual Cortex-A7) and sun20iw1p1 (D1, with Xuantie C906). but the most-similar older SoC (for fallback compatibles) is R329 == sun50iw11p1
<vagrantc> the risc-v boards are using the same drivers? whee.
<apritzel> this sun<x>i naming is some AW blunder: they decided at some point to start naming the SoC after the Cortex cores they put in
<apritzel> so every SoC with A53s is sun50i, and the sun8i are A7s
<apritzel> but this wasn't always the case, so the earlier numbers (4i. 5i. 6i. 7i) indeed showed the generations of devices
<smaeul> it also doesn't help that they release the same die under 3+ different names, like R40/A40i/V40 or R528/D1/T1033
<smaeul> and that they can't number their families/generations sequentially. there's "v1" which covers everything from A31 (sun6i/sun8iw1) to A64/H5/A63, then "NCAT" which is H6 through H616, and then "NCAT v2" which is the D1
lurchi__ has joined #linux-sunxi
<apritzel> yeah, but that's marketing, and it's similar elsewhere
<tuxd3v> its madness :)
<apritzel> it just means that one shouldn't interpret too much into the names of the drivers
<apritzel> smaeul: you mention A63 being related to A64/H5, but I think it's the actual first NCAT device: a lot is very similar to the H6
<apritzel> tuxd3v: btw: the H3 and H5 are pin-compatible, and they share most (but not all) of the devices (MMC being the exception)
<smaeul> apritzel: oh, yes you are correct. but yet in mainline everything has H6 as the base compatible because nobody did bringup for the A63
<apritzel> smaeul: I know :-(
<apritzel> I actually bought a tablet a while ago, and got FEL working, but then got stuck with DRAM, and didn't find the time to come back to this
<smaeul> this will be the same situation for R329 and D1: R329 is the "first" NCATv2 device, but I cannot find any hardware to test with
<apritzel> so both are a step up from even H616?
<smaeul> yes, H616 memory map is similar to A63/H6/A50/A100; whereas R329 and D1 have a similar, rearranged memory map
<apritzel> so they put every device in their own 64K page, eventually?
<apritzel> just kidding, I know it's AW ;-)
<smaeul> no :) but presumably they had to adjust their bus structure to add the RISC-V core and its giant PLIC MMIO area at 0x10000000
<apritzel> 256MB?
<apritzel> I mean TBH honest they have plenty of address space left below 1GB (given the number of devices and their MMIO footprint), but I wonder why they didn't use that for ECAM then on the H6
cmeerw has quit [Ping timeout: 480 seconds]