You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have problem with DRM overlay scaling. If I use "drmModeSetPlane(fd, plane_id, crtc_id, fb_id, 0, fb_x, fb_y, fb_width, fb_height, 0, 0, width << 16, height << 16);" and (height == fb_height*2) or (height == fb_height*4) the display image is corrupted. About first 16 lines are unexpectedly shifted and after image to end of screen is corrupted frame buffer (see attached image). Testing program is attached too.
HW/SW - TinkerBoard (rk3288), TinkerOS 1.4 (kernel 4.4.16 #25) or TinkerOS 1.6 (kernel 4.4.17 #1).
You can use attached code. Compare height and hor_stride (or ver_stride?).
My results (all buggy) for less or grater as you requested ("printf("%d(%d)x%d(%d) %dx%d\n", width, hor_stride, height, ver_stride, fb_width, fb_height);"):
@mcerveny I think I had a similar issue and Kwiboo@ca8b478 seems to have helped with 2160p to 1080p scaling, unsure if that change will cause issues for other resolutions
Activity
wzyy2 commentedon Apr 4, 2017
Is height greater than hor_stride?
mcerveny commentedon Apr 4, 2017
You can use attached code. Compare height and hor_stride (or ver_stride?).
My results (all buggy) for less or grater as you requested ("printf("%d(%d)x%d(%d) %dx%d\n", width, hor_stride, height, ver_stride, fb_width, fb_height);"):
for hor_stride>height:
1024(2048)x1280(2048) 640x640
1024(2048)x1312(2048) 640x656
1024(2048)x1344(2048) 640x672
1024(2048)x1376(2048) 640x688
1024(2048)x1408(2048) 640x704
1024(2048)x1440(2048) 640x720
1024(2048)x1472(2048) 640x736
1024(2048)x1504(2048) 640x752
1024(2048)x1536(2048) 640x768
1024(2048)x1568(2048) 640x784
1024(2048)x1600(2048) 640x800
1024(2048)x1632(2048) 640x816
1024(2048)x1664(2048) 640x832
1024(2048)x1696(2048) 640x848
1024(2048)x1728(2048) 640x864
1024(2048)x1760(2048) 640x880
1024(2048)x1792(2048) 640x896
1024(2048)x1824(2048) 640x912
1024(2048)x1856(2048) 640x928
1024(2048)x1888(2048) 640x944
1024(2048)x1920(2048) 640x960
1024(2048)x1952(2048) 640x976
1024(2048)x1984(2048) 640x992
1024(2048)x2016(2048) 640x1008
1024(2048)x2048(2048) 640x1024
for hor_stride<hight:
1024(1024)x1280(2048) 640x640
1024(1024)x1312(2048) 640x656
1024(1024)x1344(2048) 640x672
1024(1024)x1376(2048) 640x688
1024(1024)x1408(2048) 640x704
1024(1024)x1440(2048) 640x720
1024(1024)x1472(2048) 640x736
1024(1024)x1504(2048) 640x752
1024(1024)x1536(2048) 640x768
1024(1024)x1568(2048) 640x784
1024(1024)x1600(2048) 640x800
1024(1024)x1632(2048) 640x816
1024(1024)x1664(2048) 640x832
1024(1024)x1696(2048) 640x848
1024(1024)x1728(2048) 640x864
1024(1024)x1760(2048) 640x880
1024(1024)x1792(2048) 640x896
1024(1024)x1824(2048) 640x912
1024(1024)x1856(2048) 640x928
1024(1024)x1888(2048) 640x944
1024(1024)x1920(2048) 640x960
1024(1024)x1952(2048) 640x976
1024(1024)x1984(2048) 640x992
1024(1024)x2016(2048) 640x1008
1024(1024)x2048(2048) 640x1024
wzyy2 commentedon Apr 5, 2017
Is plane overlay plane, or primary plane?
mcerveny commentedon Apr 5, 2017
Overlay plane with NV12 support. you can see in sources as crtc_id = 48/plane_id=49.
Output of "modetest" (part of libdrm test):
mcerveny commentedon Apr 17, 2017
Tested with release-20170417, not resolved.
Build with https://github.com/rockchip-linux/build crtc_id=61/plane_id=62.
wzyy2 commentedon Apr 20, 2017
Interesting, I reproduced it.
This bug occur when src_h == crtc_h2 or src_h == crtc_h4, so i think there are something wrong in scale calculation.
mcerveny commentedon May 1, 2017
Probably the same problem: http://www.youtube.com/watch?v=yoZnlrHM1T0&t=1m57s
Kwiboo commentedon May 2, 2017
@mcerveny I think I had a similar issue and Kwiboo@ca8b478 seems to have helped with 2160p to 1080p scaling, unsure if that change will cause issues for other resolutions
wzyy2 commentedon May 2, 2017
Hi,
Mark have give it a fix and it will be included in next release.
wzyy2/linux@615a562
Close it.
MIPS: perf: fix deadlock
netpoll: Check for skb->queue_mapping
netpoll: Check for skb->queue_mapping
ipmi: use rcu lock around call to intf->handlers->sender()
KEYS: fix NULL pointer dereference during ASN.1 parsing [ver #2]
91 remaining items
NFSv4: Fix free of uninitialized nfs4_label on referral lookup.
NFSv4: Add an fattr allocation to _nfs4_discover_trunking()
coresight: cti: Fix hang in cti_disable_hw()
ftrace: Fix use-after-free for dynamic ftrace_ops
list_bl: Make list head locking RT safe
scsi: target: core: Fix deadlock due to recursive locking
perf stat: Fix aggr mode initialization
usb: typec: tcpm: fix panic when pd disabled in dt
net: sock: fix hardened usercopy panic in sock_recv_errqueue
libbpf: Fix UAF in strset__add_str()
net/sched: act_tunnel_key: Defer dst_release to RCU callback
ring-buffer: Fix crash passing ERR_PTR to kthread_stop()
btrfs: reject new transactions if the fs is fully read-only
perf c2c: Fix memory leaks on output fields
gtp: hold RCU in gtp_genl_send_echo_req()