ChanServ 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
hexdump01 has joined #linux-sunxi
hexdump02 has quit [Ping timeout: 480 seconds]
<apritzel> so do we have any A133 boards with DDR4 memory (not LPDDR4)? Has the DRAM support been tested for those, if yes, what are the MR values to use?
apritzel has quit [Ping timeout: 480 seconds]
cnxsoft has joined #linux-sunxi
cnxsoft has quit [Remote host closed the connection]
cnxsoft has joined #linux-sunxi
hexdump02 has joined #linux-sunxi
hexdump0815 has quit [Ping timeout: 480 seconds]
dsimic is now known as Guest11695
dsimic has joined #linux-sunxi
Guest11695 has quit [Ping timeout: 480 seconds]
szemzoa has quit []
JohnDoe_71Rus has joined #linux-sunxi
bauen1_ has quit [Ping timeout: 480 seconds]
gsz has joined #linux-sunxi
hexdump02 has quit []
hexdump0815 has joined #linux-sunxi
paulk-bis has quit [Ping timeout: 480 seconds]
cnxsoft1 has joined #linux-sunxi
cnxsoft has quit [Read error: Connection reset by peer]
gsz has quit [Ping timeout: 480 seconds]
apritzel has joined #linux-sunxi
Schimsalabim has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
paulk-ter has joined #linux-sunxi
gsz has joined #linux-sunxi
bauen1 has joined #linux-sunxi
Schimsalabim has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
Schimsalabim has quit [Read error: Connection reset by peer]
Schimsalabim has joined #linux-sunxi
mripard has joined #linux-sunxi
bauen1_ has joined #linux-sunxi
bauen1 has quit [Ping timeout: 480 seconds]
pmp-p is now known as Guest11709
pmp-p has joined #linux-sunxi
Guest11709 has quit [Ping timeout: 480 seconds]
warpme has joined #linux-sunxi
<warpme> guys: i compared h616 vs rk3566 in mem transfers ( https://gist.github.com/warpme/663fd6ee809d297c41d152088509b6ac ) It is understandable ddr3 vs ddr4 gives 20..40% diff. But why mem-to-framebuffer is 10x diff? (is a53 vs a55 explanation? no...)?
<mripard> cacheable vs non-cacheable buffers ?
apritzel has joined #linux-sunxi
warpme has quit []
<apritzel> warpme: the memory subsystem in the A55 was significantly improved over the A53, so that surely contributes to the gains you see in the *normal* numbers
<apritzel> but the framebuffer differences are most likely due to cached vs. non-cached, as mripard said
<apritzel> the tinymembench docs mentions expected numbers between 100 and 300MB/s for uncached framebuffer accesses, so that looks fine
<apritzel> if you have the OrangePi Zero3, that has LPDDR4 (on A53), so you could see how much this has an impact
<apritzel> but in general we did not really do any work on optimising DRAM performance in the last years, we are just happy if it works at all and is stable ;-)
<loki666> it works, but I think I needed to add the detection loop hack
<apritzel> loki666: ah, cool, I was after the MRx register values, many thanks
<loki666> it was failing about 1 on 10
<apritzel> if I understood jernej correctly, those would not be board specific, but purely depending on the memory type (DDR4/LPDDR4/DDR3/LPDDR3)
<apritzel> loki666: what's the symptom when it fails? size misdetection?
<loki666> wait I'm not sure these are the settings I'm using
<apritzel> ok, thanks
<apritzel> jernej was reworking the size detection lately for the H616, with the aim of porting this to the H6 and A523 driver as well, I guess the A133 would join in
<loki666> apritzel: yet it was size misdetection
apritzel has quit [Ping timeout: 480 seconds]
apritzel has joined #linux-sunxi
johnohhh1 has joined #linux-sunxi
johnohhh1 has quit []
gsz has quit [Ping timeout: 480 seconds]
<apritzel> MasterR3C0RD: did you by chance manage to update the A133 DRAM "driver"? I see you agreed to most of jernej's comments to what I posted in January
warpme has joined #linux-sunxi
evgeny_boger has joined #linux-sunxi
<apritzel> I wanted to push some of the A133 U-Boot patches, but without the DRAM code this is of course all a bit theoretical
f_ has left #linux-sunxi [#linux-sunxi]
<apritzel> also if anyone with A133 devices could maybe test the sunxi-fel A133 PR and confirm there that it's working: https://github.com/linux-sunxi/sunxi-tools/pull/220
<warpme> well - here are some tests also with zero3 (lpddr4): https://gist.github.com/warpme/91c0ced506c0ec6edc9f5611eb7dfff4 With this i'm not sure that having _only_ foss code for dram init is right idea. compare this to rk world where vendor provides spl and this spl gives expected perf (not working perf). I think bringing back alternative allowing use vendor boot0 blob might be preferred by some pragmatic users who prefers perf for
JohnDoe_71Rus has quit [Quit: KVIrc 5.2.6 Quasar http://www.kvirc.net/]
<warpme> money over 100% foss purism.
kuba2k2 has quit [Ping timeout: 480 seconds]
warpme has quit []
<loki666> apritzel I guess I can test your sunxi-fel branch... Just never used fel so far...
<loki666> What would be a minimal test ?
<loki666> Boot device without SD card and run ./sunxi-fel --list --verbose ?
<apritzel> warpme: sorry, but there is really no alternative really to our FOSS DRAM code, we cannot really accommodate those blobs easily
<apritzel> loki666: just "sunxi-fel ver" for a start
<loki666> Ok I'll try that
<apritzel> loki666: but this wouldn't really test much, so if you have a mainline U-Boot, you should try: sunxi-fel uboot u-boot-sunxi-with-spl.bin
<apritzel> warpme: and to be honest: most of the BSP code I have seen is shockingly bad, in many aspects
<loki666> I'll use the u-boot image of my buildroot
<apritzel> warpme: And my hunch is they don't really understand the DRAM init properly either, so they copy something from the IP vendor and add random hacks that makes it work(TM) for them
<apritzel> warpme: do you see performance differences between BSP and our DRAM code? Because I think so far we just copy the BSP config, mostly bit by bit
<apritzel> warpme: so by optimisation I mean optimisations on top of the BSP reference performance, which sometimes looks lacking, just by comparing this to JEDEC parameters
<apritzel> warpme: I did this exercise once, for the F1C100s chips (because they are simpler and the co-packaged DRAM is less of a moving target): https://github.com/apritzel/u-boot/commits/suniv-dram-WIP/
<apritzel> warpme: and I got significantly better DRAM performance out of that
loki6669 has joined #linux-sunxi
loki666 has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has joined #linux-sunxi
warpme has joined #linux-sunxi
paulk has joined #linux-sunxi
paulk-ter has quit [Ping timeout: 480 seconds]
cnxsoft1 has quit [Ping timeout: 480 seconds]
junari has joined #linux-sunxi
<junari> I'm trying to figure out the gmac1 code and adding the necessary parts from the BSP. In fact, only 700 lines of code have been added now (mostly hacks, but it is necessary for understanding further work). Right now I'm getting error 4510000.ethernet: Failed to reset the dma
<junari> mdio is working, it can detect link, but I get same error
Schimsalabim has quit [Read error: Connection reset by peer]
Schimsalabim has joined #linux-sunxi
ungeskriptet has quit [Remote host closed the connection]
vagrantc has joined #linux-sunxi
<apritzel> junari: do you have an implementation of sun8i_dwmac_dma_reset(), or something hooked into struct stmmac_dma_ops.reset?
apritzel has quit [Remote host closed the connection]
apritzel has joined #linux-sunxi
ungeskriptet has joined #linux-sunxi
ungeskriptet has quit [Remote host closed the connection]
warpme has quit []
loki6669 has quit []
loki666 has joined #linux-sunxi
ungeskriptet has joined #linux-sunxi
Schimsalabim has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
ungeskriptet has quit [Remote host closed the connection]
ftg has joined #linux-sunxi
ungeskriptet has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
<loki666> apritzel: AWUSBFEX soc=00001855(A133) 00000001 ver=0001 44 08 scratchpad=00042200 00000000 00000000
<loki666> uboot works also
Schimsalabim has quit [Read error: Connection reset by peer]
Schimsalabim has joined #linux-sunxi
wingrime-ww has quit [Quit: WeeChat 4.5.2]
diego71_ has joined #linux-sunxi
wingrime-ww has joined #linux-sunxi
diego71 has quit [Ping timeout: 480 seconds]
hazardchem has quit [Read error: Connection reset by peer]
hazardchem has joined #linux-sunxi
wingrime-ww has quit [Quit: WeeChat 4.5.2]
wingrime-ww has joined #linux-sunxi
wingrime-ww has quit []
wingrime-ww has joined #linux-sunxi
JohnDoe_71Rus has quit [Quit: KVIrc 5.2.6 Quasar http://www.kvirc.net/]
gsz has joined #linux-sunxi
junari has quit [Remote host closed the connection]
gsz has quit [Ping timeout: 480 seconds]
evgeny_boger1 has joined #linux-sunxi
evgeny_boger has quit [Read error: Connection reset by peer]
apritzel has joined #linux-sunxi
<apritzel> loki666: oh great, many thanks for testing! Is there any chance you could confirm this on the Github pull request, so that the maintainers see the confirmation there?
vagrantc has quit [Quit: leaving]
<loki666> apritzel: will do
mripard has quit [Quit: WeeChat 4.5.1]
wasutton3 has joined #linux-sunxi
evgeny_boger1 has quit [Ping timeout: 480 seconds]
Schimsalabim has quit [Ping timeout: 480 seconds]