frakkin64 if you don't mind messing with DT, there are some differences between mainline and bsp worth testing. BSP DT has clock latency set to 2000000 and it's missing opp points for 1608 MHz and 1704 MHz. Would you mind testing this? It's all in sun50i-h6-cpu-opp.dtsi.
Posts by jernej
-
-
So it's either a combination of scheduler + iommu disabling, or it didn't run long enough, or it is frequency switching.
Frequency switching can be a bit tricky, true.
Can you trigger the config target via scripts/build, or do you usually do that outside of the LE build system?
Easiest way is to execute make ARCH=arm64 menuconfig in LE linux build folder and change whatever you want. Then you diff changes between .config in build folder and linux.aarch64.conf and pick changes that are of interest. Don't take all changes, there are some magic values, which are replaced by build script.
-
Note that this is just test, IOMMU benefits are big. It protects unallocated memory being used by HW (in other words, it prevents HW corrupting memory) and it allows any amount of free memory to be allocated to video decoding (otherwise only CMA memory can be used, which is limited in size).
-
LibreELEC.tv/projects/Allwinner/linux/linux.aarch64.conf at master · LibreELEC/LibreELEC.tvJust enough OS for KODI. Contribute to LibreELEC/LibreELEC.tv development by creating an account on GitHub.github.com
-
I tested HEVC on H6 multiple times this week and it worked fine. Please test with some HEVC sample first. If that works, then it's most likely addon issue.
-
Thanks for testing. Can you also try with CONFIG_SUN50I_IOMMU disabled? Just to make sure IOMMU is not at fault.
-
I have one possible explanation - IOMMU. H6 driver doesn't have locking implemented in some functions, but other do. Without that, race conditions are possible when allocating and freeing memory during video decoding and rendering.
Updated patches are here: https://github.com/jernejsk/Libre…224ebdee7aa57b1 They should apply to both, LE11 and LE12, branches.
Let me know if you need builded image.
-
Ok, thanks for testing. So official image (from OrangePi site) has same issue? If that's so, it's most likely design issue. I can borrow oscilloscope at some point and measure timings and voltage levels, just to see if software is properly configured. But that won't happen anytime soon.
-
Yeah, Kodi was updated

-
ds
for the patch though, i see a bunch of numbered files in subdirectories in "projects\Allwinner\patches". Do I just create a new text file somewhere in there with the contents of your patch? Does it matter what I name it?
You can name it whatever you want, as long as it ends in .patch.
-
You can always do that, but there is no guarantee that it was noticed and fixed.
-
Exactly that day Kodi was updated to latest master. I guess there is a memory leak in Kodi.
-
gadget_guy I'm researching network bring up issues on non-LTS version and I found out one possible explanation for non-working network. Can you try with patch http://ix.io/4FU4 and see if that solves your network issues? This will make sure that unused regulators are powered off immediately. Once network driver loads, it will properly power up PHY again.
-
IDK file system causes crash. Maybe low memory situation. Can you also please enable KASAN? It should print error report in dmesg whenever memory issue is detected.
-
Do you know if vendor images based on BSP kernel also exhibit this issue? If they not, I guess there is a way to make it stable here too.
-
Can you give me your exact messages? I'm interested in numbers in them.
Anyway, I went through CedarX vendor lib and found some differences regarding MPEG2 setup. You can try this kernel patch:http://ix.io/4Fsv However, I couldn't find any real world difference. Maybe something can be done on ffmpeg side.
-
frakkin64 can you confirm, that with new CEC patches, you don't see messages such as:
cec-dw_hdmi: message 10 timed out
dw_hdmi_cec_hardirq: stat=11 LOW_DRIVE
It doesn't matter if CEC on TV is enabled or not.
-
At least with the original OPi3, it was possible to crash the system just by rapidly switching between playing different files. Can you trigger it this way? If we find some pattern, it will be easier to find the solution.