Video memory problem with Raspi 3B+ and aarch64

This is for ARMv8 based devices

Video memory problem with Raspi 3B+ and aarch64

Postby poddingue » Tue Sep 18, 2018 3:06 pm

Hi,

I've been playing with the Raspberry Pi 3B+ for a while now.
A friend and colleague of mine has a provisioning project to make his perfect development box based on ArchLinux.
I tried to duplicate for the Pi, and after some time, I have something that almost works... Except regarding the memory I guess:
$this->bbcode_second_pass_code('', '[ 109.845007] [drm] total purged BO: 664kb BOs (13)
[ 109.861899] [drm:vc4_bo_create [vc4]] *ERROR* Failed to allocate from CMA:
[ 109.878634] [drm] kernel: 8100kb BOs (1)
[ 109.894163] [drm] V3D: 50736kb BOs (18)
[ 109.909757] [drm] V3D shader: 80kb BOs (20)
[ 109.925365] [drm] dumb: 48kb BOs (3)
[ 109.940319] [drm] total purged BO: 664kb BOs (13)
[ 109.994215] [drm:vc4_bo_create [vc4]] *ERROR* Failed to allocate from CMA:
[ 110.009587] [drm] kernel: 8100kb BOs (1)
[ 110.024013] [drm] V3D: 50736kb BOs (18)
[ 110.038544] [drm] V3D shader: 80kb BOs (20)
[ 110.053090] [drm] dumb: 48kb BOs (3)
[ 110.067846] [drm] total purged BO: 664kb BOs (13)
')
I modified config.txt and /boot/cmdline.txt but that did not work.

config.txt:$this->bbcode_second_pass_code('', '
enable_uart=1
gpu_mem=128
cma_lwm=16
cma_hwm=256
')

cmdline.txt:$this->bbcode_second_pass_code('', '
coherent_pool=6M smsc95xx.turbo_mode=N
')
Would you have any idea?

Thanks.
poddingue
 
Posts: 3
Joined: Tue Sep 18, 2018 12:37 pm

Re: Video memory problem with Raspi 3B+ and aarch64

Postby macan » Wed Sep 26, 2018 5:50 am

enlarge cma region in boot.txt, then run ./mkscr
macan
 
Posts: 1
Joined: Wed Sep 26, 2018 5:45 am

Re: Video memory problem with Raspi 3B+ and aarch64

Postby poddingue » Thu Sep 27, 2018 8:27 am

Thanks.
I'm sure I did it wrong, as I now get:
$this->bbcode_second_pass_code('', '[ 13.477979] [drm:vc4_bo_create [vc4]] *ERROR* Failed to allocate from CMA:
[ 13.477995] vc4_v3d 3fc00000.v3d: Failed to allocate memory for tile binning: -12. You may need to enable CMA or give it more memory.
[ 13.478072] vc4-drm soc:gpu: failed to bind 3fc00000.v3d (ops vc4_v3d_ops [vc4]): -12
[ 13.727843] vc4-drm soc:gpu: master bind failed: -12
[ 13.745652] vc4-drm: probe of soc:gpu failed with error -12
[ 13.755162] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[ 13.787131] usbcore: registered new interface driver brcmfmac
[ 13.800795] Bluetooth: Generic Bluetooth SDIO driver ver 0.1
[ 14.540534] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 14.586228] Bluetooth: hci0: BCM4345C0 (003.001.025) build 0139
[ 15.025753] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 15.672217] kauditd_printk_skb: 10 callbacks suppressed
[ 15.672226] audit: type=1130 audit(1536962862.939:22): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-resolved comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 15.835063] audit: type=1130 audit(1536962863.099:23): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=sshd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 15.881640] audit: type=1130 audit(1536962863.149:24): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-user-sessions comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 15.927589] audit: type=1130 audit(1536962863.199:25): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=serial-getty@ttyS1 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 16.021209] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[ 16.060611] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Feb 27 2018 03:15:32 version 7.45.154 (r684107 CY) FWID 01-4fbe0b04
[ 16.511803] audit: type=1130 audit(1536962863.779:26): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=lightdm comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 17.137039] audit: type=1131 audit(1536962864.409:27): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=lightdm comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
[ 17.327036] audit: type=1130 audit(1536962864.599:28): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=lightdm comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 17.346284] audit: type=1131 audit(1536962864.599:29): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=lightdm comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 17.448365] audit: type=1130 audit(1536962864.719:30): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=lightdm comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 17.621865] audit: type=1131 audit(1536962864.889:31): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=lightdm comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
[ 21.130816] kauditd_printk_skb: 14 callbacks suppressed
[ 21.130826] audit: type=1131 audit(1536962868.399:46): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-rfkill comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 46.124197] audit: type=1006 audit(1536962893.389:47): pid=386 uid=0 old-auid=4294967295 auid=1001 tty=(none) old-ses=4294967295 ses=1 res=1
[ 46.210279] audit: type=1130 audit(1536962893.479:48): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=user-runtime-dir@1001 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 46.277541] audit: type=1006 audit(1536962893.549:49): pid=389 uid=0 old-auid=4294967295 auid=1001 tty=(none) old-ses=4294967295 ses=2 res=1
[ 46.558150] systemd-journald[272]: File /var/log/journal/523d33869468400d984bd888c8f89b75/user-1001.journal corrupted or uncleanly shut down, renaming and replacing.
[ 46.619308] audit: type=1130 audit(1536962893.889:50): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=user@1001 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
')

boot.txt contains:
$this->bbcode_second_pass_code('', '# After modifying, run ./mkscr

# Set root partition to the second partition of boot device
part uuid ${devtype} ${devnum}:2 uuid

setenv bootargs console=ttyS1,115200 console=tty0 root=PARTUUID=${uuid} rw rootwait smsc95xx.macaddr="${usbethaddr}" cma=256

if load ${devtype} ${devnum}:${bootpart} ${kernel_addr_r} /Image; then
if load ${devtype} ${devnum}:${bootpart} ${fdt_addr_r} /dtbs/${fdtfile}; then
if load ${devtype} ${devnum}:${bootpart} ${ramdisk_addr_r} /initramfs-linux.img; then
booti ${kernel_addr_r} ${ramdisk_addr_r}:${filesize} ${fdt_addr_r};
else
booti ${kernel_addr_r} - ${fdt_addr_r};
fi;
fi;
fi
')
poddingue
 
Posts: 3
Joined: Tue Sep 18, 2018 12:37 pm

Re: Video memory problem with Raspi 3B+ and aarch64

Postby poddingue » Wed Oct 03, 2018 4:24 pm

Sorry to bump this thread...
I am supposed to lead a small workshop at the University next week regarding collaborative development with a limited budget.
I'm ready for the Raspberry Pi Gitlab-ce server, Raspberry Pi Gitlab-ci runner, but I'm stuck with this Raspberry Pi development machine...
I know it was a bit ambitious for this machine running Atom/i3wm and so on, and I even don't know if this could work regarding memory constraints and my ArchLInux/Raspberry knowledge, but I'd like to go to the end... so that I know it could work (or not).
Could anyone give me a hint?
Thanks.
poddingue
 
Posts: 3
Joined: Tue Sep 18, 2018 12:37 pm


Return to ARMv8 Devices

Who is online

Users browsing this forum: No registered users and 8 guests