weston-init: replace deprecated/disabled fbdev with drm backend
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
@@ -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
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
@@ -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
PATCH 3/3 weston-init: disable systemd watchdog option
In reply to Alexander KanavinThis 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
@@ -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
Re: [OE-core] [PATCH 3/3] weston-init: disable systemd watchdog option
Quoted 14 lines · Alexander Kanavin
This starts to behave weirdly when
test_dateis adjusting the clock, which means weston is restarted without need so disable for weston test stability.Signed-off-by Alexander Kanavin <[email protected]>--- 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
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
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=westonWhilst 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