-
Notifications
You must be signed in to change notification settings - Fork 54
Qt5: Unable to set double buffer mode! (Invalid argument); glmark2-es2-fbdev test error:0x3003 #56
Comments
I don't use qt tests, and try to use glmark2-es2-fbdev, still error as below: Error: eglInitialize() failed with error: 0x3003 Environment: Linux kernel: https://github.com/megous/linux.git branch: orange-pi-4.20 anybody help me, thanks. |
@Jeepgoing The same issue with you, My board is orangepi one, H3. |
I have do lots of tests, including follow @noblock 's introduce:
noblock's branch: https://github.com/noblock/sunxi-mali.git |
@Jeepgoing yeah, my fellow, I know little about mali driver but I can list my environment. when I set drm_kms_helper.drm_fbdev_overalloc=200 in boot.cmd the qt application just output:
then the whole operate system crash. |
@zhang-peter ,what are you going to do next? I want to try lima, which has not released. |
@Jeepgoing I don't have enough time to search sunxi-mali, so I can use Qt 2D Render for now. And I will give a try to mesa-lima. |
@Jeepgoing it seems to me that a similar issue was discussed intensively some time ago, so look into closed issues |
@sergey-suloev I have read the issue #15 that you opened and checked all environment:
but the whole system just crash after my qt5 app says:
Do you have any suggestion? Thanks! |
@zhang-peter |
@sergey-suloev
Could you tell me which target board your use? my target board is Orangepi PC2, if you can show your test environment to github will be best. and i will learn more form it. |
@Jeepgoing |
@sergey-suloev, Actually I use blob from https://github.com/bootlin/mali-blobs.git,
I will try a clean mainline kernel. thanks a lot! |
@zhang-peter |
@sergey-suloev, it's kernel level, uart console stop respond to me. all led light turn off and I can't dmesg any more. (╥_╥) |
I guess it's an issue from kernel or toolschain(linaro),so I will try another kernel or compiler. @sergey-suloev |
@zhang-peter |
@sergey-suloev do you mean power supply pins? I wonder a crash could affect their voltage. but i will try tomorrow. |
@zhang-peter |
@sergey-suloev now I am sure the power supply is okay. And new message come out:
|
|
@zhang-peter @Jeepgoing OrangePi PC @mripard This is definitely meaning that either Mali driver or blob isn't working anymore. I haven't tested it for a long time, and there have been changes to the driver source code and the kernel source too. My last successful experience was with v4.17. I can't get complete oops information yet but I can see a line in console before my device crashes: Internal error: 0ops - undefined instruction: 0 [#1] SMP ARM |
@sergey-suloev I try the clean mainline kernel today. |
@zhang-peter |
I have tested sun4i DRM + wayland blob and it seems to work fine. But I can't say for sure that hardware acceleration is utilized in this configuration. lsmod shows that mali module is used: root@orangepipc-stretch:~# lsmod here is my qt5 log https://pastebin.com/2C8tiMaV |
I recompiled the driver in debug mode and I can finally see the driver activity, so yes, it seems like hardware acceleration is involved when using the Wayland blob. |
@mripard could you verify one more time, please, whether you provide the correct fbdev blob for armhf ? |
@sergey-suloev |
I have tested aarch64 Mali fbdev blob, same story. NanoPi A64 qt.qpa.egldeviceintegration: EGL device integration plugin keys: ("eglfs_emu", "eglfs_mali") Then kernel oops and the device hangup. |
Maybe you can refer to this: #54 |
@avafinger thanks a lot, I'll try it |
@avafinger Did you finally resolve your issue 54 and how ? |
yep, fixed with:
reserved-memory does not make any difference (with or without it) and change 100 to 200 for double buffering. unfortunately, i am not a qt5 fan. I would like to work with straight C so setting up a qt5 environment does not appeal to me, but i can't find a c framework as complete as qt5. |
@avafinger I followed your recommendations but this unfortunately hasn't fixed our issue. |
@mripard, Hi, I'm using buildroot for orangePi-pc-plus (h3). Linux kernel 5.2. Applying 0001-makefile-Add-install-target-and-build-the-module-by-.patch using series: Applying 0002-mali-Support-building-against-4.6.patch using series: Applying 0003-mali-Support-building-against-4.8.patch using series: Applying 0004-mali-Print-the-mali-version-at-probe.patch using series: Applying 0005-mali-Add-sunxi-platform.patch using series: Applying r6p2/0006-mali-Allow-devfreq-to-run-without-power-models.patch using series: Applying 0007-mali-support-building-against-4.10.patch using series: Applying 0008-mali-support-building-against-4.11.patch using series: Applying r6p2/0009-mali-Fix-user-memory-domain-fault.patch using series: Applying 0010-mali-support-building-against-4.12.patch using series: Applying r6p2/0011-mali-support-building-against-4.13.patch using series: Applying 0012-mali-support-building-against-4.14.patch using series: Applying r6p2/0013-mali-support-building-against-4.15.patch using series: Applying r6p2/0014-mali-Make-devfreq-optional.patch using series: Applying 0015-Enable-parallel-building-passing-variable-to-Makefile.patch using series: Applying r6p2/0016-mali-support-building-against-4.16.patch using series: Applying 0018-mali-support-building-against-4.20.patch using series: Applying 0019-mali-support-building-against-5.0.patch using series: Applying 0020-mali-support-building-against-4.17.patch using series: |
Hi, all:
I have met an error as title described, my environment as below:
OrangePi PC2
kernel: https://github.com/megous/linux
use fbdev mode
I have changed
CONFIG_DRM_FBDEV_OVERALLOC
from 100 to 200, but it's invalid.The text was updated successfully, but these errors were encountered: