From patchwork Tue Dec 1 11:29:03 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yash Gupta X-Patchwork-Id: 106789 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.9472.1796127210183943999 for ; Tue, 01 Dec 2026 04:13:30 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@qualcomm.com header.s=qcppdkim1 header.b=bCO4lmxH; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: oss.qualcomm.com, ip: 205.220.168.131, mailfrom: yash.gupta@oss.qualcomm.com) Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6B1AQH7r827514 for ; Tue, 1 Dec 2026 12:13:29 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:message-id:mime-version :subject:to; s=qcppdkim1; bh=xh34HWaVhxlZ57W7ke1u2+W0IztnkY1Par2 yD4e3V1s=; b=bCO4lmxHQD9yVP0mlxYrSzlv1vkdSH6yQgWqbaMLhG8ozSioi3B tN2TYqArbds7RE0Fqf9+IsW7azkQcpATMsQ8SKOBGRkMT+HuoblQcyS2jPIfAQuh SoO/qg9DO0737GDQOK91cEd4fBohKi63PtIxLCqJkA1Ia4NL4JCqyHaxk6ogSQya kLLNVFQqY3wQ8S7ZXT1Dilz0CaNOlun7hp39CsBagxYU3OiBpecEQFO0n3clt4/L Tyq1/l+su2bfFlcfaxhUieBsygVjLJNzw7gYQ62c1DlunDmwHJ/xxS/DnikJenzM Zr6Q9EVZNy38BvWPMVCZtkIeHp7ZDBzuw6g== Received: from apblrppmta01.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4j9pts1x4q-1 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT) for ; Tue, 01 Dec 2026 12:13:29 +0000 (GMT) Received: from pps.filterd (apblrppmta01.qualcomm.com [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (8.18.1.11/8.18.1.11) with ESMTP id 6B1BT5Bj083558; Tue, 1 Dec 2026 11:29:05 GMT Received: from hu-devc-hyd-u22-c.qualcomm.com (hu-ygupt-hyd.qualcomm.com [10.213.99.200]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTPS id 6B1BT4dw083548 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Tue, 01 Dec 2026 11:29:04 +0000 (GMT) Received: by hu-devc-hyd-u22-c.qualcomm.com (Postfix, from userid 4729751) id C66A663F; Tue, 1 Dec 2026 16:59:03 +0530 (+0530) From: Yash Gupta To: openembedded-core@lists.openembedded.org Cc: yash.gupta@oss.qualcomm.com, devanshi@qti.qualcomm.com, ygupt@qti.qualcomm.com, mahap@qti.qualcomm.com Subject: [PATCH] weston-init: retry startup after delayed DRM probing Date: Tue, 1 Dec 2026 16:59:03 +0530 Message-Id: <20261201112903.789392-1-yash.gupta@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Proofpoint-Reinject: loops=2 maxloops=12 X-QCInternal: smtphost X-QCInternal: smtphost X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjAxMDA0OCBTYWx0ZWRfX12YtCRdnhiVk VmVk8ahLF1xSZtVHmEF0CBBIpsk1JFn9xkB+DlBAHBEULhAwK9axXJq+nSFXJ6C4rRl5Pp1PBCq 0w4FA5oWxycCwNVc2P0tgQUb0Dv6cYZUaU8mkyrIrvOw5iYhVIRP3HAS3utePvp6R/Y6SX2vxx6 623D7IPYHtkQioD5Ut/3etc7Mp1XK1RK598JONFQm0a3V9JaV4DzuQWCZoiaBRA2E1ZqTwyWQ7A FOqGsI1o1H6faElGJYA4nxkfA4S/7SNGChD/aB+oFUK1Bqec6axvqAgnDlXEu0Ns2oD9/F1VkJt 1CY+OYawLNLeKyl9FPzbLaKA64jV5aQUtGbTP8fGL81NWZ8LZ7KVsJDUE2hItKSmsl4DWKMtA6X vK7xhaM1xJbFoji+fgSgysmsexBjjFWrHAuq4hN0qbNR4dZPLUTxvEMd7BS1h0+WvbO5FehaABW viXpdltsS5JSYWmh4gQ== X-Proofpoint-Spam-Info: AW1haW4tMjYxMjAxMDA0OCBTYWx0ZWRfX+ixpiByibilf jKQwW0swT7LCtn/vALnx3hnVb4LxaNLhAlW9nQMq9vM8zMjud/8+Uj3kKQoQmF1Bvq8tQvC9oIX QT6iyAfG8LTPMzfvLiPO/KptWeupW/k= X-Authority-Analysis: v=2.4 cv=Cqoq4X4D c=1 sm=1 tr=0 ts=6b0eb9e9 cx=c_pps a=Ou0eQOY4+eZoSc0qltEV5Q==:117 a=Ou0eQOY4+eZoSc0qltEV5Q==:17 a=pUM-KoujPXoA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_K5XuSEh1TEqbUxoQ0s3:22 a=EUspDBNiAAAA:8 a=ue04eelmcWrqD8CVtccA:9 X-Proofpoint-ORIG-GUID: ov9jy9URQka9UguCvXEFFfolq8AZQ2aN X-Proofpoint-GUID: ov9jy9URQka9UguCvXEFFfolq8AZQ2aN X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-12-01_02,2026-11-30_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 adultscore=0 priorityscore=1501 suspectscore=0 malwarescore=0 spamscore=0 lowpriorityscore=0 impostorscore=0 bulkscore=0 clxscore=1011 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2612010048 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 01 Dec 2026 12:13:37 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251721 Weston can exit before a DRM device finishes probing and then remain stopped for the rest of the boot. Retry failed starts with a rate limit so Weston can recover without an endless rapid restart loop. Validated the rendered service and socket with systemd-analyze verify. Signed-off-by: Yash Gupta --- meta/recipes-graphics/wayland/weston-init/weston.service | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/meta/recipes-graphics/wayland/weston-init/weston.service b/meta/recipes-graphics/wayland/weston-init/weston.service index b7e845e88d..f4276e662b 100644 --- a/meta/recipes-graphics/wayland/weston-init/weston.service +++ b/meta/recipes-graphics/wayland/weston-init/weston.service @@ -30,12 +30,20 @@ Before=graphical.target # for now. ConditionPathExists=/dev/tty0 +# Limit repeated startup failures when DRM devices remain unavailable. +StartLimitIntervalSec=60s +StartLimitBurst=5 + [Service] # Requires systemd-notify.so Weston plugin. Type=notify EnvironmentFile=@sysconfdir@/default/weston ExecStart=@bindir@/weston --modules=systemd-notify.so +# Retry failed starts to allow delayed DRM probing to complete. +Restart=on-failure +RestartSec=5s + # Optional watchdog setup #TimeoutStartSec=60 #WatchdogSec=20