Did you had to change /hardware/drm_gralloc.git/Android.mk in order to support radeonsi?
# Android.mk for drm_gralloc
DRM_GPU_DRIVERS := $(strip $(filter-out swrast, $(BOARD_GPU_DRIVERS)))
freedreno_drivers := freedreno
intel_drivers := i915 i965 i915g ilo
-radeon_drivers := r300g r600g
+radeon_drivers := r300g r600g radeonsi
For me it's time to find a Southern Island videocard to support testing.
Great work, Paulo!
Could you rebase the patches to the 10.6 branch?
It's the target mesa of lollipop-x86.
<6>[ 48.332792] RenderThread[2805]: segfault at 8 ip ae403d52 sp a168c838 error 6 in Roboto-Regular.ttf[ae403000+3b000]
<3>[ 48.360088] binder: 2202: binder_alloc_buf, no vma
<6>[ 48.360093] binder: 1915:1915 transaction failed 29201, size 100-0
<3>[ 48.360739] binder: 2202: binder_alloc_buf, no vma
<6>[ 48.360742] binder: 1915:1915 transaction failed 29201, size 100-0
Good job!!Thanks for your share.I couldn't run mesa 10.6 for HD6670 and R7 240.but, I could run mesa 10.4.2 use your patch.
I think the patch has to be refined a little.
I'll take it.
I have a little concern you changed
libLLVMExecutionEngine and libLLVMJIT
from the host lib to the target lib.
>> I have a little concern you changed
>> libLLVMExecutionEngine and libLLVMJIT
>> from the host lib to the target lib.
>
> I don't know if we can build these both as host and target libraries or even
> link with the host libraries to solve these dependencies. Do you know if
> this is possible? Any other option maybe?
Surely it can.
Many llvm libs are built in this way, e.g.,
lib/IR/Android.mk, lib/Linker/Android.mk.
So it's better to do the same way.
Hi pstglia,
In configure.ac file mesa checks for llvm 3.4.2 to allow building radeonsi.
I'm trying to build llvm R600 targets with version that comes with kitkat-x86,
which is llvm 3.4-0 from AOSP android-4.4.4_r2.0.1
I wonder if 3.4.0 will suffice, doing the trick to feed mesa with declaration that llvm 3.4.2 is avalable.
I have seen that you had to change llvm-gen-intrinsics.mk in order to comply with tblgen option: -gen-intrinsic
tblgen --help
...
-gen-intrinsic - Generate intrinsic information
-gen-tgt-intrinsic - Generate target intrinsic information
[patched llvm-gen-intrinsics.mk]
ifeq ($(LOCAL_IS_HOST_MODULE),true)
$(call transform-host-td-to-out,intrinsic)
else
$(call transform-device-td-to-out,intrinsic)
endif
Do I need to replace the second intrinsic with tgt-intrinsic to properly call transform-device-td-to-out for the device (target)?
Plus, by enabling the required llvm features needed by radeonsi (ExecutionEngine, JIT, R600) You'll probably face these errors on llvm compiling:external/llvm/lib/ExecutionEngine/JIT/JITMemoryManager.cpp: In constructor '{anonymous}::StatSymbols::StatSymbols()':external/llvm/lib/ExecutionEngine/JIT/JITMemoryManager.cpp:810:66: error: 'open64' was not declared in this scope...
target C++: libLLVMR600CodeGen <= external/llvm/lib/Target/R600/AMDILCFGStructurizer.cppexternal/llvm/lib/Target/R600/AMDILCFGStructurizer.cpp: In member function 'int {anonymous}::AMDGPUCFGStructurizer::handleJumpintoIfImp(llvm::MachineBasicBlock*, llvm::MachineBasicBlock*, llvm::MachineBasicBlock*)':external/llvm/lib/Target/R600/AMDILCFGStructurizer.cpp:1236:57: error: lvalue required as increment operandexternal/llvm/lib/Target/R600/AMDILCFGStructurizer.cpp: In member function 'void {anonymous}::AMDGPUCFGStructurizer::removeRedundantConditionalBranch(llvm::MachineBasicBlock*)':external/llvm/lib/Target/R600/AMDILCFGStructurizer.cpp:1716:49: error: lvalue required as increment operandmake: *** [out/target/product/x86/obj/STATIC_LIBRARIES/libLLVMR600CodeGen_intermediates/AMDILCFGStructurizer.o] Error 1This will require a lot of work and tricks.
This one I could solve by using part of this patch:
I noticed when the generated file was not created, do the scripts llvm-gen-intrinsics.mk and llvm-gen-intrinsics.mk need to check LOCAL_MODULE_IS_HOST to select between intrinsic (for host librearies) and tgt-intrinsic (for target ones)?Thanks
I also tested your lollipop ISO with mesa radeonsi 10.4.2 it works with AMD R7 250 and AMD HD7750.I could not check OpenGL apps (besides the animated wallpapers) because I'm having problems in setting up an HDD installation with gapps 5.1.
When I built ISO with mesa-10.6, I had problems at boot, do you have an ISO with with mesa radeonsi 10.6 gallium_dri ? Thanks
Is lollipop's llvm3.5 using C++11 ?
device/generic/common/BoardConfig.mk#BOARD_GPU_DRIVERS ?= i915 i965 ilo r300g r600g nouveau vmwgfx- BOARD_GPU_DRIVERS ?= i915 i965 swrast r300g r600g+ BOARD_GPU_DRIVERS ?= i915 i965 swrast r300g r600g radeonsi
--
You received this message because you are subscribed to the Google Groups "Android-x86" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-x86...@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
Visit this group at http://groups.google.com/group/android-x86.
For more options, visit https://groups.google.com/d/optout.
So does that mean we have a working video Playback on 5.1/4.0 Intel??
Cool. OK. I'll do an install on GM45 chipset and report back.
Good work!
Mike
Sent with AquaMail for Android
http://www.aqua-mail.com
On May 6, 2015 4:44:58 PM pstglia <pst...@gmail.com> wrote:
So does that mean we have a working video Playback on 5.1/4.0 Intel??I'd say yes. But it's better to test more hw just to make sure.
--
Cool. OK. I'll do an install on GM45 chipset and report back.
Good work!
Mike
Ya no doubt. Its coming together. RBG's builds work great. I have the latest 5.1/4.0 from RBG, and it has about replaced my old RC2 install, Honestly the video playback is about the only issue , for me, as I've said I don't stream much. And videos I do play VLC works fine...
Pc wouldn't pass through "android logo screen".
motherboard: biostar g31m
pentium 4
intel gma 3100
intel g33/g31 express chipset family
attaching: pc-log.txt, pc-dmesg.txt
On laptop, system boot was successful (as far as i can tell). I tested some kernel 4.0 builds before, this build was the first one that boots. I checked some video sites like youtube, dailymotion and had no issue playing videos.
model: toshiba satellite a300
core 2 duo
ati mobility radeon hd 3470
attaching: laptop-log.txt, laptop-dmesg.txt
I used grub4dos for both cases.
I also have doubt that I am doing something wrong while acquiring dmesg and log files. Just wanted to confirm. Here is what I did for this case.
-Boot into debug mode
-After boot is successful or boot fails-> #alt+f2
#mkdir /mnt/zzz
#mount /dev/sdb1 /mnt/zzz
#dmesg > /mnt/zzz/dmesg.txt
after dmesg.txt is on usb
-boot puppylinux, mount the partition android-x86 is installed
-copy android-2015-05-05/data/log.txt to usb
Take a look at the logcat. A core process (Zygote) is on an endless loop, receiving a SIGILL signal.This signal means there's a some instruction is invalid/not supported. As this is an old processor (Pentium 4) which lacks support for newer instructions used on this build (SSE 4.1 for mesa is one of them).This is the most probably reason it's not working.
I tried android-x86-4.4-RC2 on same configuration and I have the same issue, it's not this specific build.
However, I'm considering whether if we should
maintain our own pci_id table in drm_gralloc.
Actually only radeon ids are maintained
in drm_gralloc. All the others (intel, nouveau, ...)
use id from mesa/drm directly.
Probably the radeon should be changed to
the similar way as well so we won't suffer
such a problem in the future.
# Patch file for mesa 10.5.4
....
Did a very basic test on my machine (executed Antutu and some youtube videos on embedded browser). Worked okRegards,Pstglia
Working perfectly OK:OpenGLES animated wallpapersGraphics with OpenGL ES (by Thorsten Thormaehlen)GLdualtestViewporttestPauseResumetestViewportandroid_effects
android_sharize: it's running slow because of cyclically repeating 0x501 errors (log attached)
It boots now and the interface is smooth, but video playback is problematic. On YouTube in default browser, there is just black screen. Trying to play a local file either in VLC or MXPlayer makes the RenderThread in libhwui.so segfault. Video plays for few seconds before it happens, screen temporarily freezes, Android logo shows up for few seconds and then I'm back at the home screen.
4651 ActivityManager I START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.antutu.ABenchMark/.ABenchMarkStart} from uid 10014 on display 0
4651 AudioTrack W AUDIO_OUTPUT_FLAG_FAST denied by client
4420 AudioPolicyManager E getDeviceForStrategy() speaker device not found for STRATEGY_SONIFICATION
4420 AudioPolicyManager E getDeviceForStrategy() speaker device not found for STRATEGY_SONIFICATION
4420 AudioPolicyManager E getDeviceForStrategy() no device found for STRATEGY_TRANSMITTED_THROUGH_SPEAKER
4651 WindowManager V addAppToken: AppWindowToken{16c1022f token=Token{2995a80e ActivityRecord{3be5ce09 u0 com.antutu.ABenchMark/.ABenchMarkStart t8}}} to stack=1 task=8 at 0
4651 WindowManager V Adding window Window{6d45428 u0 Starting com.antutu.ABenchMark} at 2 of 7 (after Window{20ab45be u0 com.cyanogenmod.trebuchet/com.android.launcher3.Launcher})
4420 audio_hw_primary_x86 D found out /dev/snd/pcmC0D3p
4651 ActivityManager I Start proc 5520:com.antutu.ABenchMark/u0a52 for activity com.antutu.ABenchMark/.ABenchMarkStart
5520 ActivityThread I Switching default density from 160 to 240
5520 Settings W Setting android_id has moved from android.provider.Settings.System to android.provider.Settings.Secure, returning read-only value.
5520 OpenGLRenderer D Use EGL_SWAP_BEHAVIOR_PRESERVED: true
5520 GRALLOC-RADEON I detected chipset 0x6613 family 0x38 (vram size 1948MiB, gart size 1019MiB)
5520 GRALLOC-DRM I create radeon for driver radeon
5520 Atlas D Validating map...
4651 WindowManager V Adding window Window{214b79 u0 com.antutu.ABenchMark/com.antutu.ABenchMark.ABenchMarkStart} at 2 of 8 (before Window{6d45428 u0 Starting com.antutu.ABenchMark})
4420 AudioPolicyManager E getDeviceForStrategy() speaker device not found for STRATEGY_SONIFICATION
4420 AudioPolicyManager E getDeviceForStrategy() speaker device not found for STRATEGY_SONIFICATION
4420 AudioPolicyManager E getDeviceForStrategy() no device found for STRATEGY_TRANSMITTED_THROUGH_SPEAKER
5520 EGL-GALLIUM I using DRM screen
5520 EGL-GALLIUM I skip unsupported native format 0x3
5520 OpenGLRenderer I Initialized EGL, version 1.4
5520 OpenGLRenderer D Enabling debug mode 0
4651 WindowManager V Adding window Window{c10606c u0 SurfaceView} at 2 of 9 (before Window{214b79 u0 com.antutu.ABenchMark/com.antutu.ABenchMark.ABenchMarkStart})
5520 Settings W Setting android_id has moved from android.provider.Settings.System to android.provider.Settings.Secure, returning read-only value.
4651 ActivityManager I Start proc 5597:com.android.defcontainer/u0a3 for service com.android.defcontainer/.DefaultContainerService
4651 ActivityManager I Displayed com.antutu.ABenchMark/.ABenchMarkStart: +404ms
5597 ActivityThread I Switching default density from 160 to 240
4651 OpenGLRenderer D Use EGL_SWAP_BEHAVIOR_PRESERVED: true
4651 Atlas D Validating map...
4651 EGL-GALLIUM I using DRM screen
4651 EGL-GALLIUM I skip unsupported native format 0x3
4651 OpenGLRenderer I Initialized EGL, version 1.4
4651 OpenGLRenderer D Enabling debug mode 0
4651 EGL-GALLIUM E failed to import buffer 0xa0c7ad08
4651 OpenGLRenderer W Error creating image (0x3000)
4651 OpenGLRenderer W Could not create atlas image
4651 libc F Fatal signal 11 (SIGSEGV), code 1, fault addr 0x4 in tid 5616 (RenderThread)
1393 DEBUG I *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
1393 DEBUG I Build fingerprint: 'Android-x86/android_x86/x86:5.1.1/LMY47V/jarvis05111517:eng/test-keys'
1393 DEBUG I Revision: '0'
1393 DEBUG I ABI: 'x86'
1393 DEBUG I pid: 4651, tid: 5616, name: RenderThread >>> system_server <<<
1393 DEBUG I signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x4
1393 DEBUG I eax 00000000 ebx b6fd653c ecx ae35803c edx 00000000
1393 DEBUG I esi ae18bac8 edi ae38e748
1393 DEBUG I xcs 00000073 xds 0000007b xes 0000007b xfs 0000018f xss 0000007b
1393 DEBUG I eip b6f3c08c ebp 9c8ffac8 esp 9c8ffa60 flags 00210246
1393 DEBUG I backtrace:
1393 DEBUG I #00 pc 0001f08c /system/lib/libhwui.so (android::uirenderer::AssetAtlas::init(android::sp<android::GraphicBuffer>, long long*, int)+220)
1393 DEBUG I #01 pc 00092e1f /system/lib/libhwui.so
1393 DEBUG I #02 pc 0008cfe2 /system/lib/libhwui.so
1393 DEBUG I #03 pc 00093dd3 /system/lib/libhwui.so
1393 DEBUG I #04 pc 00093ba0 /system/lib/libhwui.so
1393 DEBUG I #05 pc 00095594 /system/lib/libhwui.so
1393 DEBUG I #06 pc 00096e62 /system/lib/libhwui.so (android::uirenderer::renderthread::RenderThread::threadLoop()+162)
1393 DEBUG I #07 pc 00017de4 /system/lib/libutils.so (android::Thread::_threadLoop(void*)+308)
1393 DEBUG I #08 pc 00070775 /system/lib/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+117)
1393 DEBUG I #09 pc 000173f2 /system/lib/libutils.so (thread_data_t::trampoline(thread_data_t const*)+130)
1393 DEBUG I #10 pc 00022168 /system/lib/libc.so (__pthread_start(void*)+56)
1393 DEBUG I #11 pc 0001cc69 /system/lib/libc.so (__start_thread+25)
1393 DEBUG I #12 pc 000137c6 /system/lib/libc.so (__bionic_clone+70)
1393 libbacktrace W virtual bool Backtrace::VerifyReadWordArgs(uintptr_t, word_t*): invalid pointer 0xb750e82d
1393 libbacktrace W virtual bool Backtrace::VerifyReadWordArgs(uintptr_t, word_t*): invalid pointer 0xb69b7873
1393 DEBUG I Tombstone written to: /data/tombstones/tombstone_02
1387 ServiceManager I service 'wifiscanner' died
4893 WifiManager E Channel connection lost
4743 WifiManager E Channel connection lost
4420 AudioFlinger W power manager service died !!!
1387 ServiceManager I service 'clipboard' died
1387 ServiceManager I service 'statusbar' died
4651 OpenGLRenderer D Use EGL_SWAP_BEHAVIOR_PRESERVED: true
4651 Atlas D Validating map...
4651 EGL-GALLIUM I using DRM screen
4651 EGL-GALLIUM I skip unsupported native format 0x3
4651 OpenGLRenderer I Initialized EGL, version 1.4
4651 OpenGLRenderer D Enabling debug mode 0
4651 EGL-GALLIUM E failed to import buffer 0xa0c7ad08
4651 OpenGLRenderer W Error creating image (0x3000)
4651 OpenGLRenderer W Could not create atlas image
4651 libc F Fatal signal 11 (SIGSEGV), code 1, fault addr 0x4 in tid 5616 (RenderThread)
Thanks for your help.
I can confirm /proc/fb has "radeondrmfb".
Strange thing in my case is that logcat prints out renderer, version and extension strings, but in Settings under About, it says "null" for each of those strings.
Also, how do you execute commands when booting in Debug mode? It doesn't respond to anything I type in terminal.
And one more unrelated question. Is booting in UEFI mode supported? None of the boot entries work for me, nothing happens so I have to switch to Legacy BIOS mode to be able to play with it. Only the entry for Windows 8 works and boots it.
When on debugging mode, after typing "exit" twice (when requested) and entering GUI, you can switch back console with alt+F1 and use the cmds.
Do you mean it's freezed?
Another option is using a terminal emulator. Should work on Lollipop
You can create images file both for tradicional booting method (bios/legacy) or UEFI.
These imgs I made available were create with "make iso_img", so just legacy. Compiling with "make efi_img" would create an efi (non-signed)
The problem was that I got into wrong terminal by pressing alt + left arrow. Pressing this combo once in normal mode accomplishes the same as alt + F1. All okay now, logcat works, but eg. "poweroff" and "reboot" just return without doing anything.
*Antutu test:HD6670 is pass.R7 240 is failed.*com.aim.racingmgt(3D game) test:HD6670 is pass.R7 240 is pass.
I try to patch and fixed conflict issue, but I got the same error for Antutu.
Maybe we could to try patch new kernel for drm:
It's already commited on upstream (at least Christian König patches). We can test it of course. You'll have to apply "02d57d91aa55bc6e47f29c0622f2f77de0d86b3d" commit "HACK: drm: disable GPU authentication" and use current config( make -C kernel O=$OUT/obj/kernel ARCH=x86 oldconfig should be enough for it).Another option would be merge/rebase our kernel and upstream
Build apitrace x86 on Ubuntu
-----------------------------------------
I could use some help with installing GRUB2 bios version to be able to reboot lollipop-x86.
I have tried procedure described here: http://andex.exton.net/?p=165
and here: http://www.android-x86.net/index.php?topic=255.0
I see the new boot entry but I can boot Lollipop.
I'm using a PATA hard drive on ICH7 controller, do I need to load a module at the beginning of grub 40_custom script?
Thanks
I'm having hard times, because I need to reinstall each time I need to collect logs.
Mauro
> Thanks for this. Still trying to improve it (making better patches)
Sorry for reply late.
I've pushed the refined patch to the server.
Thank you!
Good to see your around 8-)
Sent with AquaMail for Android
http://www.aqua-mail.com
About this issue, maybe we need to use Mauro suggestion to collecet more log.
have you tried this also on 64bit kernel, 32bit user ......
It would be interesting to know as Lollipop seems to be heading in the 64bit kernel direction....
I filled this bug on Bugzilla (Mesa/drm) in order to get more help:
Hey pstglia,
Tested out here with my Radeon HD 7750 and everything works ok. 0 Errors.
Yes, I had the same problems before, I couldn't run Antutu. Now I can run a complete test.
Hi,reporting test results on HD7950.
I try to rebuild a new ISO use kernel 4.0.3, but I couldn't run Antutu(the same issue).The following is my build info:Android-x86 5.x + mesa 10.5.4(apply radeonsi patch) + kernel 4.0.3Your ISO file is pass to run Antutu. Could you provide your build info to me?
I run live image on my Athlon 5350 with Radeon R3. On about tablet-> OpenGL: Null,null,null
radeon 0000:01:00.0: bo e0b8a000 va 0x0000000857 conflict with (bo e094a000 0x0000000868 0x0000000869)
It's booting now but I also can't finish antutu test anymore. It crashes in the end of 3D test. I also noticed some hangs during the 3D test, it drop frames to ~21 from 60 sometimes.dmesg file drm.debug=7
I got it using "cat /proc/kmsg" right after android's logo until antutu 3D test end. So it's a very very very long log.