-
Notifications
You must be signed in to change notification settings - Fork 54
H3 - Hard Lockup while testing. #87
Comments
Can you provide the entire boot logs? |
Sure! Here is the boot log: https://pastebin.com/4DGkzKZC Also while doing the build I noticed a compiler message for the driver: Could it be a frequency control issue of the graphics core? Is there another kernel option I should enable? I have attached the full build output of the driver here for you. |
Aside from the DEVFREQ comment, nothing really pops out. Can you try to enable it? |
@mripard |
I enabled: and rebuilt the kernel and the driver. The DEVFREQ message at build time went away, but the hard lockup on testing remained. I only have one H3 board with a HDMI out - I am wondering if I should buy another to test. |
@avafinger do you have build failure with Linux 5.10? |
Yes, i had some compiler errors in 5.9 and 5.10-rc1 i could not solve on A64. Doing a building right now to check the error again on 5.10-rc7. |
Hi Giulio, I also tried against 5.10, the driver has a build failure in "mali_kernel_linux.c". The build log for the driver under Buildroot/5.10 is here |
Here is the error during the build process. Building for the A64, Kernel 5.10.0-rc7, ignore the directory names:
|
@avafinger @kjngineering I've opened a new Issue for this: @mripard do you mind if I take care to solve linux 5.10 build failure? |
Hi Maxime. After reading through several other issues this seems the same problem: The notes indicate a regression in 4.19, fixed in 4.20. Could we be seeing something similar again? Edit: as per some of those comments I checked the stability of the power supply: 5v0 was dropping a little as soon as I start any mali app (malitest or glmark2) just before the crash, but this is not surprising as the chip is basically idle. I think my supply is pretty stable and not the issue. I will double check with a bench supply later. |
@giuliobenetti |
@kjngineering |
@avafinger I've made it build without that macro. AND this: Can you try applying those 2 and check if it builds correctly? I'm going to finish tomorrow. Thank you |
AVAFINGER - SO CLOSE! This option is hidden in Buildroot but can be enabled with: This itself is not enough: there is a broken part of code in the drm_fb_helper.c that must manually be changed at build time.
Change: static bool drm_leak_fbdev_smem = true; and recompile the kernel. I how have fully functioning Mali mainline in FBDEV:
glmark2 was limited to 60fps (HDMI refresh speed it looks like)
The full glmark2-fbdev result is here So there is a patch that needs to be pushed back to mainline to fix the offending DRM code for this to function -and- some notes should probably be made on the README for this repository. |
@kjngineering I'm not sure that's a bug since it's written that is unsafe when enabled, this is why(I think) they've added it as a module_param. That way you could be able to enable it while loading module or during boot. |
the actual option at build time "CONFIG_DRM_FBDEV_LEAK_PHYS_SMEM" is hard enough to enable and provides sufficient warning. But I will try with a bootarg and see what happens. |
I attempted to leave drm_fb_helper.c unmodified and instead pass drm_leak_fbdev_smem=1 as a boot argument (in this case in the bootscript).
Unfortunately this resulted in the same hanging behavior as what started this thread. I am happy to try anything else @giuliobenetti Edit: drm_kms_helper.drm_leak_fbdev_smem=1 |
Thanks, I've added it to the README so it's clear for the next users |
Well, it was mentioned here: #56 (comment) |
Hi
So I've been working on getting the Mali blob to run on a target board; OrangePi Zero H3 Plus2.
The goal is to get FBDEV acceleration using the existing binary blobs, currently a 800x800 LCD running over HDMI.
The build environment is Buildroot which is compiling kernel 5.4.13, Mali kernel drivers are per this repository r6p2, userspace is the corresponding Bootlin blob for fbdev.
CMA and DMA_CMA flags are enabled, CMA is set at 128mb, FBDEV_OVERALLOC is 200.
Device tree is mainline and the device is probed successfully by mdev:
I forked the glmark2-es2-fbdev code to my github and patched the waf libraries and config to compile under python3 so I could build a buildroot package.
The package is now compiling and being installed to the target file system. However when I run I get the following:
Screen goes black.
The system HARD locks, chip gets hot, nothing works! Cant force quit.
I tried again with nohup, to see if we were at 100% cpu but nohup hangs in the same way.
I found test.c to test function, so I made a buildroot package for that.
So I compiled the test.c:
Similarly, the screen clears ready to draw, the board hard locks right in the middle of printing a string, the CPU starts to get hot as per the benchmark test.
I'm a bit lost now, any ideas on how I can diagnose this one? It's clear to me that the mali driver isn't working. But as for the reason I have no idea how to even troubleshoot it.
Thanks
The text was updated successfully, but these errors were encountered: