Closed Kwiboo closed 7 years ago
Have you modified dma code by yourselves?
We should not have any modified dma code apart from testing this revert code to use a pl330.c
version very close to mainline linux.
If I use the unmodified pl330.c
from tip of release-4.4
I usually see the iommu page fault and VOP issue posted above at the end of video playback or shortly after.
I checked removing the pl330 revert patch this morning, and i don't seem to get any crash issue with a few videos i tested. @Kwiboo did you get a chance to try it again ?
scratch that, i was able to reproduce it. If i connect my box to 1080P AVR -> 4K TV i don't get it. If i connect the box to the 4K TV i get it all the time upon playback stop with the following log kernel.txt
@kwiboo : also reappying the patch https://github.com/Kwiboo/LibreELEC.tv/blob/rockchip/projects/Rockchip/patches/linux/rockchip-4.4/linux-1000-pl330.patch doesn't seem to fix this issue when stopping playback.
But i'm only experiencing this in 4K and not in 1080p display mode.
after a few more test, i was also able to reproduce that in 1080p and with kwiboo pl330 revert patch, so that issue is still there
I think I have a good way to reproduce it.
@yanghanxing : could you try that scenario and let me know if you can reproduce that issue ?
pls use this patch to test
The power domain patch did not made any difference but something in recent kernel update have made the iommu/vop page fault go away.
There is still some issues with seeking, buffering and audio rate unless we patch pl330 but will raise another issue to track that issue.
Recent changes to pl330 in
release-4.4
causes media playback issues and page faults for iommu/vop.Reverting Rockchip changes and backporting upstream pl330 from mainline linux seems to solve this issue, see https://github.com/Kwiboo/linux-rockchip/compare/rockchip-4.4...rockchip-4.4-pl330 for the tested revert+backport.
Example log of the issue: