Open shugaoye opened 6 years ago
Use the master branch for drm_hwc, but for now hwc2 is the same. The rotation error isn't fatal (probably should just be info msg).
I'm not sure what's going on with dex2oat. Could be timing out because QEMU is too slow. You can change the build config to do the optimization at build time (DEX_PREOPT).
Thanks! Using DEX_PREOPT, I resolved the dex2oat issue. However, the key issue is the below error message.
01-24 03:51:59.349 1588 1588 E hwcomposer-drm: Failed to create dummy sw sync timeline -1
This error causes the below problem:
static int hwc_device_open(const struct hw_module_t *module, const char *name,
struct hw_device_t **dev) {
...
ret = ctx->dummy_timeline.Init();
if (ret) {
ALOGE("Failed to create dummy sw sync timeline %d", ret);
return ret;
}
...
The function hwc_device_open is not completed successfully due to this. Do you have any idea why ctx->dummy_timeline.Init() fail ?
I did more investigation and I found that sw_sync.c is not existed in the common kernel so /dev/sw_sync is not available. You should have this in your environment, right ?
The kernel files have moved around a bit and /dev/sw_sync has moved to debugfs. You need the kconfig options enabled. libsync should have the necessary updates unless you are on N or earlier (IIRC).
Hi Rob,
I tried to build linaro_arm64-userdebug and test it in QEMU, but I got some errors. Please help to take a look at the attached log files. It seems something is wrong with drm_hwcomposer. I tested both android-m and hwc2 branches.
The kernel config may have problem either. I got the below errors from dex2oat: linaro_arm64_defconfig.txt
01-24 04:01:41.543 1613 1613 E art : Attempted image: /system/framework/boot.art
[ linaro_arm64_android_m.txt linaro_arm64_hwc2.txt
](url)