LegacyXperia / local_manifests

Local manifest for building CyanogenMod for Xperia 2011 devices
legacyxperia.github.io
123 stars 78 forks source link

[cm13][urushi][20160417] blt mode is required! ret=-22 logspam #1087

Open s0rl0v opened 7 years ago

s0rl0v commented 7 years ago

When watching a video via YouTube official app these errors keep flooding the log file. These errors are may be the culprit of poor YouTube app performance. Here's discussed the same issue

Update::

MDP composition is causing it. It should be absolutely normal, since MDP overlay engine gives red flag, aka doesn't render, and the HWC fallbacks to GPU. However I agree that the error logs are quite intrusive. If you want to fix it (and also disable MDP composition) set them like this: debug.composition.type=gpu persist.hwc.mdpcomp.enable=false -Blefish commented on 3 Jun 2015

MDP composition also can be disabled from "Developer options" menu. To do it one should enable "Force GPU rendering".

dmesg

[ 10382.763854] mdp4_overlay_set: blt mode is required! ret=-22
[ 10382.764068] msmfb_overlay_set: ioctl failed, rc=-22

logcat

08-03 10:06:29.114   229   229 E qdoverlay: Failed to call ioctl MSMFB_OVERLAY_SET err=Invalid argument
08-03 10:06:29.114   229   229 E qdoverlay: MdpCtrl failed to setOverlay, restoring last known good ov info
08-03 10:06:29.114   229   229 E qdoverlay: == Bad OVInfo is:  mdp_overlay z=0 fg=1 alpha=255 mask=-1 flags=0x840000 id=-1
08-03 10:06:29.114   229   229 E qdoverlay: src msmfb_img w=896 h=480 format=17 MDP_Y_CBCR_H2V2_TILE
08-03 10:06:29.114   229   229 E qdoverlay: src_rect mdp_rect x=0 y=0 w=854 h=244
08-03 10:06:29.114   229   229 E qdoverlay: dst_rect mdp_rect x=0 y=716 w=480 h=138
08-03 10:06:29.114   229   229 E qdoverlay: == Last good known OVInfo is:  mdp_overlay z=0 fg=0 alpha=0 mask=0 flags=0x0 id=-1
08-03 10:06:29.114   229   229 E qdoverlay: src msmfb_img w=0 h=0 format=0 MDP_RGB_565
08-03 10:06:29.114   229   229 E qdoverlay: src_rect mdp_rect x=0 y=0 w=0 h=0
08-03 10:06:29.114   229   229 E qdoverlay: dst_rect mdp_rect x=0 y=0 w=0 h=0
08-03 10:06:29.114   229   229 E qdoverlay: MdpCtrl Lkgo ov has id -1, will not restore
08-03 10:06:29.114   229   229 E qdoverlay: Ctrl commit failed set overlay

logcat

Blefish commented 7 years ago

The thing is that when these messages occur, the MDP composition is disabled (as it cannot allocate more than 3 pipes) and it reverts to gpu composition, thus causing bad performance. So far we have not found a way to solve this.

s0rl0v commented 7 years ago

Thank you for the explanation! I commented out some printk lines in mdp4_overlay.c and applied Mike's commit from msm7x30 gerrit - not a proper solution but at least it keeps log files clean.