lanefu changed the topic of #armbian-rockchip to: Armbian - Linux for ARM development boards | Rockchip SoC | www.armbian.com | This channel is relayed to the equivalent Discord channel | this channel is logged
<DC-IRC> [Discord] <microlinux> Does anybody registered worse memory bandwidth performance on LPDDR5 rk3588s in comparison with LPDDR4 ones?
<DC-IRC> [Discord] <jorropo> Hey how would I enable both SPI1 and SPI2 busses: https://paste.armbian.com/nolajopiga.apache
<DC-IRC> [Discord] <jorropo> It looks to me like I would need to apply the overlay twice but afait that not a thing.
<DC-IRC> [Discord] <jorropo> I found https://forum.radxa.com/t/rockpi-s-enable-spi1-and-spi2-at-the-same-time/19396 but downloading .dtbo files I don't have the source and applying them like that sounds fragile, also I think I did it properly yet it does not work.
<DC-IRC> [Discord] <jorropo> https://paste.armbian.com/afutukemaw.apache my attempt at applying the random files found
<DC-IRC> [Discord] <menu> are there big two overlay files?
<DC-IRC> [Discord] <menu> are there not two overlay files?
<DC-IRC> [Discord] <jorropo> There are no `spidev` nodes under `ls /dev/spi*`
<DC-IRC> [Discord] <jorropo> Ok so working on isolating variables I changed kernel's dtsi file https://paste.armbian.com/opozizawij.diff
<DC-IRC> [Discord] <jorropo> I've confirmed this work by observing the changes in `dtc -I fs -O dts /proc/device-tree`.
<DC-IRC> [Discord] <jorropo> I've added `spidev` to `/etc/modules` and it's loaded.
<DC-IRC> [Discord] <jorropo> Yet when I do `ls /dev/spi*` `ls: cannot access '/dev/spi*': No such file or directory`.
<DC-IRC> [Discord] <jorropo> Any idea what should I check next ?
<DC-IRC> [Discord] <microlinux> The problem is the next one guys, this same system, does hit 60 fps capturing video on rock5B LPDDR4 based RK3588. Here.. 43
<DC-IRC> [Discord] <microlinux> Capturing 1080p video is memory stressful currently due to the colospace conversion, and it seems that LPDDR5 is falling behind
<DC-IRC> [Discord] <microlinux> Would like to hear your thoughts, if any.
<DC-IRC> [Discord] <jorropo> Somehow changing `compatible = "spidev"` with `compatible = "armbian,spi-dev"` like other armbian spidev dto do worked, after reading through the code I'm unsure why because the spidev module explicitely checks for `spidev` string but what do I know and it works soooooo
<DC-IRC> [Discord] <jorropo> ¯\_(ツ)_/¯
<DC-IRC> [Discord] <beohoff3174> Does OBS force a colorspace?
<DC-IRC> [Discord] <beohoff3174> I was interested in checking out the DDR5 based RK3588's that are coming out
<DC-IRC> [Discord] <microlinux> Yeah
<DC-IRC> [Discord] <microlinux> DDR5, so not LPDDR5?
<DC-IRC> [Discord] <beohoff3174> oh well probably LPDDR5
<DC-IRC> [Discord] <beohoff3174> too many characteres to type
<DC-IRC> [Discord] <beohoff3174> too many characters to type
<DC-IRC> [Discord] <microlinux> Well, so far, it's far worse than LPDDR4, so, wait
<DC-IRC> [Discord] <beohoff3174> are you doing desktop recording? What module are you using?
<DC-IRC> [Discord] <microlinux> Hdmi input capture
<DC-IRC> [Discord] <microlinux> Anyway, that's not the problem, bc I am doing the exact same thing with the exact same system
<DC-IRC> [Discord] <microlinux> I just target the right dtb on each case
<DC-IRC> [Discord] <beohoff3174> Not sure I can help you with the memory bandwidth issues, thought that would seem troubling
<DC-IRC> [Discord] <microlinux> On rock5b does 60 fps, on rock 5 itx it does 43...
<DC-IRC> [Discord] <beohoff3174> Collabora did send me a new HDMIRX driver to test, which I haven't gotten to yet
<DC-IRC> [Discord] <microlinux> Well, this is on bsp, so, it doesn't matter haha
<DC-IRC> [Discord] <beohoff3174> but it requires the trusted arm booting (forget the exact words) and a modern kernel
<DC-IRC> [Discord] <beohoff3174> yeah...
<DC-IRC> [Discord] <beohoff3174> I had some thought to backport it to the BSP
<DC-IRC> [Discord] <beohoff3174> I hadn't assessed how much work it would be, but I was sort of guessing not too much
<DC-IRC> [Discord] <beohoff3174> Not sure I can help you with the memory bandwidth issues, though that would seem troubling
<DC-IRC> [Discord] <microlinux> Well, so far, Amazingfate did patch the bsp kernel to get it somewhat working
<DC-IRC> [Discord] <microlinux> I am just worried about the ram bandwidth performance on LPDDR5 ones
<DC-IRC> [Discord] <microlinux> And that has to do with uboot
<DC-IRC> [Discord] <beohoff3174> Isn't there some open source RAM drivers?
<DC-IRC> [Discord] <microlinux> No idea, but if we have tu bump the ram or fix anything ram related, it has to be done at uboot
<DC-IRC> [Discord] <microlinux> Like always on our beloved platforms
<DC-IRC> [Discord] <microlinux> It happened the exact same thing on rk3399, the ddr3 ones were running at 1866 MT/s, while the LPDDR4 ones were running at 1600 MT/s, severely harming performance. I did bump it on uboot to 1866 and it worked fine. But it was an easy fix, no idea what's the reason on LPDDR5 RK3588 to underperforme so badly compared to LPDDR4 ones.
<DC-IRC> [Discord] <microlinux> Since we have a lot of new shiny LPDDR5 RK3588s, it may be desirable that someone with expertise to take a look on what's happening.
<DC-IRC> [Discord] <microlinux> Those who bought them felt for the marketing
<DC-IRC> [Discord] <zeeto9> This is something I have seen mentioned before and I think an in-depth review I read. For some reason lpddr5, while faster, isn’t able to perform as well as loddr4. I think it was happening with Orange pis as well.
<DC-IRC> [Discord] <beohoff3174> I was hoping the lpddr5 would speed up some the ML workflows I wanted to run.
<DC-IRC> [Discord] <microlinux> Well, bret did mention something on an old 5 itx review
<DC-IRC> [Discord] <microlinux> But this real world task really shows how bad this is
<DC-IRC> [Discord] <runaway97> have you measured bandwidth
<DC-IRC> [Discord] <microlinux> Didn't so far, bret did.
<DC-IRC> [Discord] <microlinux> But I can judge it with this real workload, same system, no other variable other than the ram and uboot.
<DC-IRC> [Discord] <runaway97> DDR5 has more bandwidth but latency for these chips is also much higher, so that can actually be the culprit
<DC-IRC> [Discord] <microlinux> That may be the case
<DC-IRC> [Discord] <microlinux> What test do you recommend for ram latency abd bandwidth?
<DC-IRC> [Discord] <microlinux> Sbc bench?
<DC-IRC> [Discord] <mecoblock> i think that’s what everybody used for that
<DC-IRC> [Discord] <mecoblock> @amazingfate when do you think we will upgrade vendor for all the boards to rkr4.1?
<DC-IRC> [Discord] <mecoblock> Just also confirmed with Rock5B and Rock5B-Plus it's working great