robherring / generic_device

A generic android device repository
62 stars 29 forks source link

hwc-platform-drm-generic: could not create drm fb -22 #30

Open yihong1991 opened 4 years ago

yihong1991 commented 4 years ago

Hello,i am trying run android 7 on arm server with qemu virgl supported. so i integrate drm_hwcomposer and gbm_gralloc. But drm module got some error. I don't know where is the problem, can you help me ? Error log as follow: `02-21 14:05:14.933 1914 1914 E hwc-drm-plane: Could not get rotation property

02-21 14:05:14.933 1914 1914 I hwc-drm-plane: Could not get alpha property

02-21 14:05:14.935 1914 1914 E hwc-drm-plane: Could not get rotation property

02-21 14:05:14.935 1914 1914 I hwc-drm-plane: Could not get alpha property

02-21 14:05:14.939 1914 1939 E cutils-trace: Error opening trace file: Permission denied (13)

02-21 14:05:14.939 1914 1939 W hwc-gl-worker: EGL_ANDROID_native_fence_sync extension not supported

02-21 14:05:14.970 1914 1939 E hwc-drm-display-compositor: Create blob_id 58

02-21 14:05:15.566 1914 1914 D SurfaceFlinger: Set power mode=2, type=0 flinger=0xe7d669047000

02-21 14:05:25.298 1914 1914 D SurfaceFlinger: Set power mode=2, type=0 flinger=0xe7d669047000

02-21 14:05:25.298 1914 1914 D SurfaceFlinger: Screen type=0 is already mode=2

02-21 14:05:34.338 1914 1914 E hwc-platform-drm-generic: could not create drm fb -22

02-21 14:05:34.338 1914 1914 E hwc-drm-two: Failed to import layer, ret=-22

02-21 14:05:34.338 1914 1914 E HWComposer: commit: present failed for display 0: NoResources (6)

02-21 14:05:34.393 1914 1940 E hwc-platform-drm-generic: Failed to close gem handle 0 -1 `

kernel log: `[ 198.413919] [drm:drm_ioctl] pid=1914, dev=0xe200, auth=1, DRM_IOCTL_PRIME_FD_TO_HANDLE

[ 198.413951] [drm:drm_ioctl] pid=1914, dev=0xe200, auth=1, DRM_IOCTL_MODE_ADDFB2

[ 198.413974] [drm:drm_ioctl] pid=1914, dev=0xe280, auth=0, DRM_IOCTL_PRIME_FD_TO_HANDLE

[ 198.414253] [drm:drm_ioctl] pid=1941, dev=0xe200, auth=1, DRM_IOCTL_WAIT_VBLANK

[ 198.414258] [drm:drm_ioctl] ret = -22

[ 198.414289] [drm:drm_ioctl] pid=1939, dev=0xe200, auth=1, DRM_IOCTL_MODE_ATOMIC

[ 198.414305] [drm:drm_mode_object_get] OBJ ID: 60 (3)`

logcat.txt kernellog.txt