Genio 510-EVK: Unable to mirror DSI (1200x1920) and HDMI-A-1 outputs in Weston

Genio 510 EVK – Weston 14.0.2 mirror-of Crash

Hi @tommyyl.chen,

I have tried upgrading the existing Weston 13 to Weston 14.0.2 on the Genio 510 EVK.

After upgrading, I attempted to enable output mirroring using the new mirror-of option introduced in Weston 14. However, I am facing issues when enabling mirroring between DSI-1 and HDMI-A-1.

Below are the details, configuration, and logs for reference. Kindly help clarify whether this is expected behavior on Genio 510 or if any additional configuration is required.

1. Platform Information

Board: Genio 510 EVK
Kernel:

6.6.92-mtk+g94c370539990-gdd502f1ef1bc

Weston Version:

weston 14.0.2

Weston is started via systemd using:

/usr/bin/weston --modules=systemd-notify.so

Backend: DRM (default auto-detected during system boot)


2. Display Configuration

  • DSI-1: 1200x1920 (portrait)

  • HDMI-A-1: 1280x720 or 1920x1080 (landscape)

Extended mode works correctly when no mirroring is configured.


3. weston.ini Used

Full /etc/xdg/weston/weston.ini:

cat /etc/xdg/weston/weston.ini 
# configuration file for Weston

[core]
idle-time=0
#modules=xwayland.so,cms-colord.so
#shell=desktop-shell.so
#gbm-format=xrgb2101010
require-input=false

#[shell]
#background-image=/usr/share/backgrounds/gnome/Aqua.jpg
#background-color=0xff002244
#background-type=tile
#clock-format=minutes
#panel-color=0x90ff0000
#locking=true
#animation=zoom
#startup-animation=fade
#binding-modifier=ctrl
#num-workspaces=6
#cursor-theme=whiteglass
#cursor-size=24

#lockscreen-icon=/usr/share/icons/gnome/256x256/actions/lock.png
#lockscreen=/usr/share/backgrounds/gnome/Garden.jpg
#homescreen=/usr/share/backgrounds/gnome/Blinds.jpg
#animation=fade

#[launcher]
#icon=/usr/share/icons/gnome/24x24/apps/utilities-terminal.png
#path=/usr/bin/gnome-terminal

#[launcher]
#icon=/usr/share/icons/gnome/24x24/apps/utilities-terminal.png
#path=/usr/bin/weston-terminal

#[launcher]
#icon=/usr/share/icons/hicolor/24x24/apps/google-chrome.png
#path=/usr/bin/google-chrome

#[launcher]
#icon=/usr/share/icons/gnome/24x24/apps/arts.png
#path=/build/weston-0lEgCh/weston-1.11.0/weston-flower

#[input-method]
#path=/usr/libexec/weston-keyboard

#[output]
#name=LVDS1
#mode=1680x1050
#transform=90
#icc_profile=/usr/share/color/icc/colord/Bluish.icc

#[output]
#name=VGA1
#mode=173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync
#transform=flipped

#[output]
#name=X1
#mode=1024x768
#transform=flipped-90

#[libinput]
#enable_tap=true

[output]
name=DSI-1
mode=1200x1920

[output]
name=HDMI-A-1
mirror-of=DSI-1

#[touchpad]
#constant_accel_factor = 50
#min_accel_factor = 0.16
#max_accel_factor = 1.0

[screen-share]
command=/usr/bin/weston --backend=rdp-backend.so --debug --shell=fullscreen-shell.so --no-clients-resize

#[xwayland]
#path=/usr/bin/Xwayland


No other modifications were made.


4.Reproduction Steps

  1. Add:

    mirror-of=DSI-1
    
    

    under HDMI output section.

  2. Restart Weston:

    systemctl restart weston
    
    

5. Observed Behaviour

Weston crashes immediately with a segmentation fault.


6. systemctl status Output

systemctl status weston.service
x weston.service - Weston, a Wayland compositor, as a system service
     Loaded: loaded (/usr/lib/systemd/system/weston.service; enabled; preset: enabled)
     Active: failed (Result: core-dump) since Thu 2025-05-29 19:28:26 UTC; 7min ago
   Duration: 12.488s
TriggeredBy: * weston.socket
       Docs: man:weston(1)
             man:weston.ini(5)
             http://wayland.freedesktop.org/
    Process: 1425 ExecStart=/usr/bin/weston --modules=systemd-notify.so (code=dumped, signal=SEGV)
   Main PID: 1425 (code=dumped, signal=SEGV)
        CPU: 23ms

May 29 19:28:26 genio-520-evk systemd[1]: Starting Weston, a Wayland compositor, as a system service...
May 29 19:28:26 genio-520-evk (weston)[1425]: pam_unix(weston-autologin:session): session opened for user weston(uid=1000) by weston(uid=0)
May 29 19:28:26 genio-520-evk systemd[1]: weston.service: Main process exited, code=dumped, status=11/SEGV
May 29 19:28:26 genio-520-evk systemd[1]: weston.service: Failed with result 'core-dump'.
May 29 19:28:26 genio-520-evk systemd[1]: Failed to start Weston, a Wayland compositor, as a system service.



7. journalctl -xeu weston.service Output

journalctl -xeu weston.service
-- 
-- The job identifier is 2270 and the job result is done.
May 29 19:28:26 genio-520-evk systemd[1]: Starting Weston, a Wayland compositor, as a system service...
-- Subject: A start job for unit weston.service has begun execution
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- A start job for unit weston.service has begun execution.
-- 
-- The job identifier is 2270.
May 29 19:28:26 genio-520-evk (weston)[1425]: pam_unix(weston-autologin:session): session opened for user weston(uid=1000) by weston(uid=0)
May 29 19:28:26 genio-520-evk systemd[1]: weston.service: Main process exited, code=dumped, status=11/SEGV
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- An ExecStart= process belonging to unit weston.service has exited.
-- 
-- The process' exit code is 'dumped' and its exit status is 11.
May 29 19:28:26 genio-520-evk systemd[1]: weston.service: Failed with result 'core-dump'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- The unit weston.service has entered the 'failed' state with result 'core-dump'.
May 29 19:28:26 genio-520-evk systemd[1]: Failed to start Weston, a Wayland compositor, as a system service.
-- Subject: A start job for unit weston.service has failed
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- A start job for unit weston.service has finished with a failure.
-- 
-- The job identifier is 2270 and the job result is failed.



8. Additional Observations

  • Removing mirror-of allows Weston to start normally.

  • Both displays function correctly in extended mode.

  • The crash only occurs when mirror-of=DSI-1 is enabled.


9. Summary

On Genio 510 EVK with Weston 14.0.2:

  • Extended dual display works.

  • Enabling mirror-of between DSI and HDMI causes Weston to crash (SIGSEGV).

Question:

Is DRM-level output mirroring (mirror-of) between DSI-1 (1200x1920 portrait) and HDMI-A-1 (1280x720 landscape) expected to be supported on Genio 510 with the current mtk_drm driver? If not, what is the recommended approach to achieve display mirroring or content duplication across both outputs?


Additional Queries: