Skip to contentSkip to conversation

weston-init: replace deprecated/disabled fbdev with drm backend

PATCH In review Alexander Kanavin 2 participants 5 messages Feb 12, 2022 – Feb 13, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 weston-init: replace deprecated/disabled fbdev with drm backend

drm will default to opengl rendering by default; if this is problematic, --use-pixman option may help, apply only where it's proven necessary.

---
 meta/recipes-graphics/wayland/weston-init.bb | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)
meta/recipes-graphics/wayland/weston-init.bb +1 -7
index e02da0c358..8e8c0454be 100644
@@ -19,13 +19,7 @@ PACKAGECONFIG ??= ""
 PACKAGECONFIG[no-idle-timeout] = ",,"
 
 DEFAULTBACKEND ??= ""
-DEFAULTBACKEND:qemuall ?= "fbdev"
-DEFAULTBACKEND:qemuarm64 = "drm"
-DEFAULTBACKEND:qemux86 = "drm"
-DEFAULTBACKEND:qemux86-64 = "drm"
-# gallium swrast was found to crash weston on startup in x32 qemu
-DEFAULTBACKEND:qemux86-64:x86-x32 = "fbdev"
-DEFAULTBACKEND:x86-x32 = "fbdev"
+DEFAULTBACKEND:qemuall ?= "drm"
 
 do_install() {
         if [ "${VIRTUAL-RUNTIME_init_manager}" != "systemd" ]; then
Signature · 1 line
2.20.1
#1 lore raw

PATCH 2/3 core-image-weston-sdk: synchronize with core-image-sato-sdk

---
 meta/recipes-graphics/images/core-image-weston-sdk.bb | 4 ++++
 1 file changed, 4 insertions(+)
meta/recipes-graphics/images/core-image-weston-sdk.bb +4 -0
index f5f7dade54..09e87b5b65 100644
@@ -3,9 +3,13 @@ require core-image-weston.bb
 DESCRIPTION = "Image with Weston support that includes everything within \
 core-image-weston plus meta-toolchain, development headers and libraries to \
 form a standalone SDK."
+HOMEPAGE = "https://www.yoctoproject.org/"
 
 IMAGE_FEATURES += "dev-pkgs tools-sdk \
 	tools-debug eclipse-debug tools-profile tools-testapps debug-tweaks ssh-server-openssh"
 
 IMAGE_INSTALL += "kernel-devsrc"
 
+# Compiling stuff, specifically SystemTap probes, can require lots of memory
+# See https://bugzilla.yoctoproject.org/show_bug.cgi?id=14673
+QB_MEM = "-m 768"
Signature · 1 line
2.20.1
#2 lore raw

PATCH 3/3 weston-init: disable systemd watchdog option

In reply to Alexander Kanavin

This starts to behave weirdly when test_date is adjusting the clock, which means weston is restarted without need so disable for weston test stability.

---
 meta/recipes-graphics/wayland/weston-init/weston.service | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta/recipes-graphics/wayland/weston-init/weston.service +2 -2
index e09625b31c..80745998ed 100644
@@ -37,8 +37,8 @@ EnvironmentFile=/etc/default/weston
 ExecStart=/usr/bin/weston --modules=systemd-notify.so
 
 # Optional watchdog setup
-TimeoutStartSec=60
-WatchdogSec=20
+#TimeoutStartSec=60
+#WatchdogSec=20
 
 # The user to run Weston as.
 User=weston
Signature · 1 line
2.20.1
#3 lore raw

Re: [OE-core] [PATCH 3/3] weston-init: disable systemd watchdog option

Quoted 14 lines · Alexander Kanavin

This starts to behave weirdly when test_date is adjusting the clock, which means weston is restarted without need so disable for weston test stability.

---
 meta/recipes-graphics/wayland/weston-init/weston.service | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta/recipes-graphics/wayland/weston-init/weston.service +0 -0
index e09625b31c..80745998ed 100644

meta/recipes-graphics/wayland/weston-init/weston.service EnvironmentFile=/etc/default/weston · line 44

Quoted 10 lines
meta/recipes-graphics/wayland/weston-init/weston.service +2 -2
@@ -37,8 +37,8 @@ EnvironmentFile=/etc/default/weston
 ExecStart=/usr/bin/weston --modules=systemd-notify.so
 
 # Optional watchdog setup
-TimeoutStartSec=60
-WatchdogSec=20
+#TimeoutStartSec=60
+#WatchdogSec=20
 
 # The user to run Weston as.
 User=weston

Whilst that fixes the tests, should we be doing that for production systems?

Cheers,

Richard

#4 lore raw

Re: [OE-core] [PATCH 3/3] weston-init: disable systemd watchdog option

Quoted 10 lines · Richard Purdie

meta/recipes-graphics/wayland/weston-init/weston.service EnvironmentFile=/etc/default/weston · line 44

Quoted 8 lines

# Optional watchdog setup

meta/recipes-graphics/wayland/weston-init/weston.service +2 -2
-TimeoutStartSec=60
-WatchdogSec=20
+#TimeoutStartSec=60
+#WatchdogSec=20
 
 # The user to run Weston as.
 User=weston

Whilst that fixes the tests, should we be doing that for production systems?

No other systemd unit that we ship is using the watchdog feature. For weston it was an accidental addition, due to import from elsewhere.

BTW, we didn't see the issue until now because it won't show up on kvm qemu (qemux86/qemux86_64), but I ran this across a-full, and ppc/mips/arm all failed due to their non-kvm test timings.

Alex