Rootfs problem : random logouts

hi,

http://snapshots.linaro.org/96boards/dragonboard820c/linaro/debian/407/

rootfs linaro-buster-alip-dragonboard-820c-407.img.gz

i am using the 407 rootfs in db820c, it randmoly logs out in gui, need to login every time it logouts and closes the process opened in previous log in .
please suggest.

regards,
vinaysimha

Is it a crash related to: Facing crash issues in Kwin-x11 5.14.5 - #10 by danielt
Can you try the proposed workaround (updating mesa).

aftr trying this

echo ā€œdeb Index of /debian/ unstable main contrib non-freeā€ >> /etc/apt/sources.list
sudo apt-get update
sudo apt-get -t unstable install libgl1-mesa-dri

board does not boots to ui, it stops at terminal login.

Facing same issue after applying work-around.

if it doesnā€™t reboot can you journalctl --boot=0 > journal.log and attach that? (Or if it rebooted, then use --boot=-1)

@robclark,Thanks for the reply.
This rootfs is not having the work-around. While trying to install some packages board crashed to login screen.
Refer line number 945 : journal.log - Pastebin.com

Log of rootfs with workaround, UI is not up

hmm, I was expecting to see Xorg logs in the journalā€¦ maybe you need to attach /var/log/Xorg.0.log from the two cases?

rob,

libgl1-mesa-dri is 18.3.6-2

journalctl --boot=0 > journal.log - journal_log_820c - Pastebin.com
Xorg.0.log - Xorg.0.log_db820c - Pastebin.com

regards,
vinaysimha

not really seeing any useful hint in the logs. Any chance of attaching gdb to Xorg process before it crashes and getting a backtrace?

backtrace log

can you get that with mesa debug syms installed?

(I think on debian that would be something like ā€˜apt install libgl1-mesa-dri-dbgsymā€™)

rob,

installed the libgl1-mesa-dri-dbgsym in debian.

here is the latest gdb log

if i try to use the 19.3.1-4 unstable version Xorg will not load.

journal.log_19.3.1-4 - journal.log_19.3.1-4 - Pastebin.com

Xorg.0.log_19.3.1-4 - Xorg.0.log_19.3.1-4 - Pastebin.com

@Loic
Do we have any update on this issue?

i tried debugging the issue, not able to fix the problem in stable and unstable versions of libgl1, got some alternative to use the testing version which is stable.

echo ā€œdeb Index of /debian/ testing main contrib non-freeā€ >> /etc/apt/sources.list
sudo apt-get update
sudo apt-get -t testing install libgl1-mesa-dri

This will update the mesa version
testing 19.2.6-1

fyi,
https://tracker.debian.org/pkg/mesa

1 Like

@Loic @robclark

since testing version is moved to [19.3.3-1]
https://tracker.debian.org/pkg/mesa

no gui comes after installing this version.

earlier version of 19.2.6-1 the gui was stable. 18.3.6-2 version intermittent logouts . How to fix this issue?
or
Any suggestion how to install 19.2.6-1 - https://snapshot.debian.org/package/mesa/19.2.6-1/

regards,
vinaysimha

I believe https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3700 should solve this. Iā€™ve tagged this to also be picked up on the 20.0 release branch. Going back to 19.3 will require some minor backportingā€¦ I could provide a patch to try but donā€™t have an easy way to test it.

rob,

Do we need few other changes in mesa other than ctx->batch patch for 19.1.1 version?

i tried this patch https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3700 on mesa-19.1.1 in debian
But after the boot in hdmi, only mouse cursor(able to move the positions in display) and black blank screen

sudo apt-get build-dep libgl1-mesa-dri
sudo apt-get source libgl1-mesa-dri
sudo apt-get install fakeroot gcc
cd mesa-19.1.1
this will download the mesa-19.1.1 src , added the ctx->batch to be NULL patch
dpkg-buildpackage -b -us -uc

sudo dpkg -i libgl1-mesa-dri_19.1.1-1+linaro2_arm64.deb
sudo dpkg -i libgl1-mesa-dri-dbgsym_19.1.1-1+linaro2_arm64.deb

after reboot blank screen and mouse cursor

regards,
vinaysimha

that backport is missing a hunk in batch_flush(), I wouldnā€™t really expect it to work.

Possibly backporting https://gitlab.freedesktop.org/mesa/mesa/commit/5b9fe184854f4026fb70d90fd6fee82bc72c2c0e first would be enough. I think it probably should be on 19.3, but less sure about older versions of mesa.