Jump to content

zerkalica

Members
  • Posts

    8
  • Joined

  • Last visited

Everything posted by zerkalica

  1. I suggest bananapro dts patches to armbian builder https://github.com/armbian/build/pull/3117 for enabling lima with wifi on bananapro. Without compiling you can install armbian build, based on ubuntu hirsute (needed mesa>=21.0.1) For testing use wayland + xwayland or xserver-xorg-core >= 1.20.13 (in hirsute 1.20.11, so compile or use binary from ubuntu impish - https://launchpad.net/ubuntu/+source/xorg-server) Without lima glxgears shows 10 fps with lima - 20 fps (no lags and normal mouse / keyboard response). glxinfo | grep render shows Mali400. But mpv --va=gpu plays 720p video with lags and hundreds frame drops (on 3 kernel with non-free mali driver mpv with hwdec vdpau plays 720p video without lags) I think problem with hwdec (lima doesn't supports it, https://forum.armbian.com/topic/12696-mali-lima-driver-on-orange-pi-2e-missing-548-iamge/) I found only old mesa issues about poor performance on sun7i A20: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3033. But it looks unrelated to mesa. Can anybody play 720p video in mpv or vlc without framedrop with 5.x kernel on Allwinner A20? This link describes, that no way to enable hwdec in X/wayland session at current moment. a
  2. I got it. But perfomance too poor: mc panel on/off in qterminal takes about 1-2 seconds (fbdev+swrast < 1 sec). glxgears looks laggy. Sluggish keyboard/mouse response (mesa 20.3.5). @ning does mouse sluggish with sun4i-drm on your bananapi/pro? modesetting+sun4i-drm: $glxinfo|grep render Extended renderer info (GLX_MESA_query_renderer): OpenGL renderer string: Mali400 $glxgears. 120 frames in 5.0 seconds = 23.970 FPS 121 frames in 5.0 seconds = 24.057 FPS fbdev+swrast: $glxinfo|grep render Extended renderer info (GLX_MESA_query_renderer): OpenGL renderer string: llvmpipe (LLVM 11.0.1, 128 bits) $glxgears 46 frames in 5.0 seconds = 9.124 FPS 56 frames in 5.1 seconds = 11.085 FPS Xorg.0.log https://paste.debian.net/1208920/ Without compiling you can enable this in following steps: 1. Download arch xserver https://archlinuxarm.org/packages/armv7h/xorg-server, extract and replace /usr/lib/xorg/modules/extensions/libglx.so in armbian system 2. cd /usr/lib && ln -s arm-linux-gnueabihf/dri dri 3. In /boot/armbianEnv.txt change fdtfile=sun7i-a20-bananapro.dtb to fdtfile=sun7i-a20-bananapi.dtb (internal bananpro wifi will be disabled) 4. /etc/X11/xorg.conf.d/02-lima.conf Section "ServerFlags" Option "AutoAddGPU" "off" Option "Debug" "dmabuf_capable" EndSection Section "OutputClass" Identifier "Lima" MatchDriver "sun4i-drm" Driver "modesetting" Option "PrimaryGPU" "true" EndSection 5. Restart xorg and check Xorg.0.log for [ 5920.805] (II) modeset(0): [DRI2] DRI driver: sun4i-drm [ 5920.805] (II) modeset(0): [DRI2] VDPAU driver: sun4i-drm [ 5921.330] (II) AIGLX: Loaded and initialized sun4i-drm As musicPi says above, for bananapro need an patched dts version. I try to suggest patch for dts into armbian later. But i don't know how to suggest xorg-xserver patch (it is not an armbian package), just wait 1.20.13 in upstream or use arch.
  3. Xorg version up to 1.20.13 doesn't help xorg.0.log: https://paste.debian.net/1208887/ driverName argument in glxProbeDriver is always swrast, not sun4i-drm, problem before: AIGLX: Screen 0 is not DRI2 capable [ 4882.754] (II) modesetting: Driver for Modesetting Kernel Drivers: kms [ 4882.754] (II) FBDEV: driver for framebuffer: fbdev [ 4882.755] (WW) Falling back to old probe method for modesetting [ 4882.756] (WW) Falling back to old probe method for fbdev Looks like modesetting probe method fails. It's a problem with kernel or glamor. Can you provide your Xorg.0.log and lsmod?
  4. Does i need xserver-xorg-video-armsoc-sun4i or specific xorg.conf?
  5. @musicPi @ning Can you help? I can't enable hardware acceleration with lima on bananapro and latest armbian (switched to bullseye, kernel 5.13.12, mesa 20.3.5) Lima drivers initialized, but /dev/dri/card1 not present and no sun4i-drm in /lib/modules/5.13.12-sunxi/kernel/drivers/gpu/drm I try xserver-xorg-video-fbdev (no accelerated) and xserver-xorg-video-armsoc-sun4i (doesn't work at all). glxinfo | grep 'renderer string': OpenGL renderer string: llvmpipe (LLVM 11.0.1, 128 bits) I try some custom configs, like this, but nothing helps. /etc/X11/xorg.conf.d/02-lima.conf Section "ServerFlags" Option "AutoAddGPU" "off" Option "Debug" "dmabuf_capable" EndSection Section "OutputClass" Identifier "Lima" MatchDriver "lima" Driver "modesetting" Option "PrimaryGPU" "true" EndSection armbianEnv.txt, dpkg -l, Xorg.0.log: https://paste.debian.net/1208449/ armbianmonitor -U: https://paste.debian.net/1208445/
  6. All works fine on kernel 5.13.12 (linux-image-edge-sunxi on debian bullseye), thanks
  7. After updating to 5.9.14 from 5.8.16, framebuffer is broken. No output after booting, hdmi monitor goes to sleep. [ 1.455763] ------------[ cut here ]------------ [ 1.455791] WARNING: CPU: 0 PID: 1 at arch/arm/mm/ioremap.c:287 __arm_ioremap_pfn_caller+0x13f/0x14c [ 1.455796] Modules linked in: [ 1.455810] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.9.14-sunxi #20.11.3 [ 1.455814] Hardware name: Allwinner sun7i (A20) Family [ 1.455846] [<c010cce9>] (unwind_backtrace) from [<c010945d>] (show_stack+0x11/0x14) [ 1.455862] [<c010945d>] (show_stack) from [<c093b0ab>] (dump_stack+0x77/0x84) [ 1.455878] [<c093b0ab>] (dump_stack) from [<c011ad8d>] (__warn+0xb1/0xb4) [ 1.455894] [<c011ad8d>] (__warn) from [<c093511b>] (warn_slowpath_fmt+0x43/0x7c) [ 1.455908] [<c093511b>] (warn_slowpath_fmt) from [<c01132d3>] (__arm_ioremap_pfn_caller+0x13f/0x14c) [ 1.455920] [<c01132d3>] (__arm_ioremap_pfn_caller) from [<c011330f>] (__arm_ioremap_caller+0x2f/0x38) [ 1.455935] [<c011330f>] (__arm_ioremap_caller) from [<c0599c73>] (simplefb_probe+0x19b/0x6b8) [ 1.455951] [<c0599c73>] (simplefb_probe) from [<c062ea3f>] (platform_drv_probe+0x33/0x68) [ 1.455967] [<c062ea3f>] (platform_drv_probe) from [<c062ce27>] (really_probe+0x13b/0x354) [ 1.455981] [<c062ce27>] (really_probe) from [<c062d205>] (driver_probe_device+0xa9/0x168) [ 1.455994] [<c062d205>] (driver_probe_device) from [<c062b89d>] (bus_for_each_drv+0x4d/0x78) [ 1.456007] [<c062b89d>] (bus_for_each_drv) from [<c062cc7f>] (__device_attach+0x8f/0xf0) [ 1.456019] [<c062cc7f>] (__device_attach) from [<c062c1ff>] (bus_probe_device+0x5b/0x60) [ 1.456033] [<c062c1ff>] (bus_probe_device) from [<c06299db>] (device_add+0x2e7/0x564) [ 1.456051] [<c06299db>] (device_add) from [<c07a396d>] (of_platform_device_create_pdata+0x65/0x88) [ 1.456067] [<c07a396d>] (of_platform_device_create_pdata) from [<c0e1d52f>] (simplefb_init+0x4f/0x60) [ 1.456081] [<c0e1d52f>] (simplefb_init) from [<c0101bf1>] (do_one_initcall+0x39/0x1a8) [ 1.456097] [<c0101bf1>] (do_one_initcall) from [<c0e00ee5>] (kernel_init_freeable+0x1bd/0x208) [ 1.456113] [<c0e00ee5>] (kernel_init_freeable) from [<c093fd9d>] (kernel_init+0xd/0xe0) [ 1.456125] [<c093fd9d>] (kernel_init) from [<c0100159>] (ret_from_fork+0x11/0x38) [ 1.456130] Exception stack(0xeed2bfb0 to 0xeed2bff8) [ 1.456138] bfa0: 00000000 00000000 00000000 00000000 [ 1.456147] bfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 1.456155] bfe0: 00000000 00000000 00000000 00000000 00000013 00000000 [ 1.456170] ---[ end trace 396812099caf657e ]--- [ 1.456203] simple-framebuffer: probe of 7f817000.framebuffer failed with error -12
  8. I use 4.14 image from https://www.armbian.com/banana-pi-pro/ I try to enable vdpau and switch from next to legacy kernel on Armbian Bionic (linux-image-sun7i). And got an hangup at "Starting kernel..." message. Set verbosity "9" and mkimage doesn't help. Why no bionic desktop images for banana pi pro? Did you drop support for legacy kernel on bionic for old bananas? For xenial, bananapipro.bin exists in package linux-xenial-root-bananapi. wget https://apt.armbian.com/dists/xenial/main/Contents-armhf.gz -O-|zcat|grep bananapipro.bin But this file not found for bionic: wget https://apt.armbian.com/dists/bionic/main/Contents-armhf.gz -O-|zcat|grep bananapipro.bin
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines