From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 530A4606A69D for ; Thu, 3 Dec 2026 19:22:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=KpL+4jdU; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=desiato.20200630 header.b=Q0SQo02e; dkim=fail reason="signature verification failed" (2048-bit key) header.d=baylibre.com header.i=@baylibre.com header.a=rsa-sha256 header.s=google header.b=HRo+oGCb DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=13l7B7JFLLrleAWz77kSLaZcqBvmO0ENwyUA0T4loWU=; b=KpL+4jdUIjfSgXlo4fyb2cmco3 +9aPuxSQ+KRh7DOfTDdcLpxcgVU6MB31bopfBdxFHHyI09hPtDhWgcY/PDiBDw8VLM/hT6GFdkeIx thN+fZilGUGxOQi3LAuQTmqnuMk671BUcl1znEMKmE/pSGRQysn+adsHEvrHqr5lidsUmR168Hqpk H7fwGj8KTkTlnu55FuyWMhOk+ApSsem8VwA/IcIUOcHaILSxT0VIsGoAt1ArT74Ye6qoqBgmpuiDg kZmyhbApuhzkuBNyuL9BG4oevdMNv9qG+1gsQnPI+vU9EDM682DIAPFx/lNfFHxx28riusaRcrg2d oHkNXM6w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZCNp-0000000Fllv-3e29; Thu, 03 Dec 2026 19:22:21 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZCNi-0000000Flb9-0XZv for linux-amlogic@bombadil.infradead.org; Thu, 03 Dec 2026 19:22:16 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Cc:To:In-Reply-To:References: Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Sender:Reply-To:Content-ID:Content-Description; bh=RYdUQyagCaVomh7/23VYb3PebK7VC/yRey4kLH2W61k=; b=Q0SQo02e3FAnagXHU/sILWEtkG Yk5tLDTh5L/QzpmrLb7CvO31dgVbN1Hxh3BBJi8IapJ4FiCxp5kM3ZaO7tNAMoRkfSAetlBdpIs38 599KBjk6angwpIyv+l6ilnZbdN3GqhRwk6ewF57aj/KOWq/lSyngHmNElArDI/Xnh3LkoNx5cRBTS HCzQBj2gHMCdNPZ5VopyRkhsKhzTkPk1MoIcqtnDjtNRYnNT+CAts5N0f0lx4M8X5kx3njvkJswnl TAyvB9ZLMQn+Deg/Bx83faNzQcaqLlanjP69WTb6LJmoNbBDlW3X2xz9WtBuCk4Z85vPUWJtUmNbp cy/ssNeA==; Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]) by desiato.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZCNb-0000000DbhG-1lip for linux-amlogic@lists.infradead.org; Thu, 03 Dec 2026 19:22:10 +0000 Received: by mail-wr1-x432.google.com with SMTP id ffacd0b85a97d-491846221ffso162205f8f.3 for ; Thu, 03 Dec 2026 11:22:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre.com; s=google; t=1796325726; x=1796930526; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=RYdUQyagCaVomh7/23VYb3PebK7VC/yRey4kLH2W61k=; b=HRo+oGCbXfUXMEf/Vwwv0R+iGJ8E7N2GTv7EKFqObDDUskNOWVuOt9dVgjuSb+Xoen HBE08DTj1hbRm570GYGN69hefQaAljWZYRnGu8G+PgD7mn1CtJhHBA9Dj0WHLxJkUOLQ Hw/dYCU1CuAggduGxn8TqieYIDGVGfmav7fxiSUu7AnlUpR+BWD7a+Ocnfb0Nxqty+fK BjQlk7JKBwr795St3djo1t4bb7YedZIrreaDti+UXYZd5U29vjmV+FE2TBEreb+ZZouT 7a73pzmg2LH4Sua5QVDlGffKaLYnJQCY77FZwE1brYW35KIPGk0Xh4mp/tHN/rG0Voyk Ybsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796325726; x=1796930526; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=RYdUQyagCaVomh7/23VYb3PebK7VC/yRey4kLH2W61k=; b=Wev59D+XsKy/VPGblkXuaNQktohjHgE6owz4K+7EIbyR2NwZepX+9AnXZfgWNuF+BT xTgIhteRc3M5F3w2krxiNkbMD4owPmVi+hX6qR3/xMnxLx8/49LK0cBemirYCyHF002j 47BYVzU6CcsFGU0ZqMECHbJan/3zi7GPG5vubn3iw5ab0BHSedDNmqsOCghTj9wYBJA0 86xAcqEMLm1eRsyUGi3PBDfLTIiq0oXf8DpdsMcLouA3ZRwRxUmLwj1SMxLLK+cfKorH XD7T5O8Q0fxyr/p7UDEu13KHittEwye2Pw6aHTf0Y8A5bIk+toMLe0V5L2lwJSIC5J/r 0vsg== X-Forwarded-Encrypted: i=1; AL+hErHK9uPwviEZCGJ6yrjhTfiq08f/KpYfkTzE8fD9oVHIAypXDtZb/hrfdIuHkbY4GQ4HlRd3K9Zc5eiIkinn@lists.infradead.org X-Gm-Message-State: APuU4Z+n4OQSJzbVmXjz3YDC5rdfC9FmIRW3NHUiBx3R+DjnZiAT0TDg w2G/esl807LmuFWXszOMxKHU5X8zn+GGROVrtPO80vD/sDco2TXhBuSGuuJdqu1MUYg= X-Gm-Gg: AZFdTZdHffD+qpkQOtEwKbD7i1kgVdpbdbFhH5wYaSaZDQTPipFPQ43oWJlC2wfd1/X mHoRT6+Hm9+Gh7tkHq7xoqQ2G9aYD1n7kOt3Ktl0W8S67xA8iwfk60tWmm2NPegkv55muH4nZ2J rxJCtePbE3pI94nphQep6X7Cs/Y/w/fl0w4A/NO038ZDoNJ82jNz3LET8leRJjW10f23VdR56Mz v1b/88CZmUu/v7XR58j0A3zHJWLNxJAKrtBwXyOvlBhUYxxyl2dmU7pZ62OjmOuXqO1lreSuVmd D/99JrUZVX/4BW/+AvH1QQJP5tZEi4+GUtFCPfeoCQXt3Ja739OU3FcPmMoKQVopLarvcVZO1Ij BTgaWxfvXpq21YXTuiv3K/jgJxNL5stg/fwqgwkdlae6nIpWRDkMU48otU8wkRtENN2/GvRihPg Ea4kqFTrSYdEUWDp0NwStplTbvV1314ZFGPCucZIu2CZ990TxYd90uBqxFLTjjw8foFyxyiHdko AXQDEEZdX06REJeGXMCuIioqHgWr4XabCX/xkRSIfo/PEyAcY7sMpicfpeDLsNYBFVTZYd8gi11 cHnue0KXME0NSbh8dNPX1UPrQd9R8NXGcSGAUKX+HO2G8y5W2ToE/t0ZIjENda48Gnynm+DU X-Received: by 2002:a05:6000:298d:10b0:492:9630:6a7f with SMTP id ffacd0b85a97d-4abb5db7829mr62602458f8f.55.1796325725722; Thu, 03 Dec 2026 11:22:05 -0800 (PST) Received: from [127.0.1.1] ([2a01:e0a:e50:3860::e1d1:d182]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4d1723b8a92sm878935f8f.19.2026.12.03.11.22.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Dec 2026 11:22:05 -0800 (PST) From: Guillaume La Roque Date: Thu, 03 Dec 2026 20:21:51 +0100 Subject: [PATCH v2 5/9] drm/meson: handle primary plane zpos allocation failure X-Archived-By: MIME-Version: 1.0 Message-Id: <20261203-meson-g12a-osd2-v2-5-8a4a57d32e20@baylibre.com> References: <20261203-meson-g12a-osd2-v2-0-8a4a57d32e20@baylibre.com> In-Reply-To: <20261203-meson-g12a-osd2-v2-0-8a4a57d32e20@baylibre.com> To: Neil Armstrong , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Kevin Hilman , Jerome Brunet , Martin Blumenstingl Cc: dri-devel@lists.freedesktop.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Simona Vetter , Guillaume La Roque X-Mailer: b4 0.17-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1796325720; l=1133; i=glaroque@baylibre.com; s=20261019; h=from:subject:message-id; bh=/2K6twqJrQawG0dnS82mA4OrQMLQclptCYuLlFHOews=; b=G5JpSz3+IiIg++uuLYkcXyEr+MqrB8H/z/RAqycHVcyMnrzUsdLE/qWb4aobgrcZt0H/DiURJ 0nWPgdy6mpABTO5lONrF+m4prWWSE1zYNKwIXW+PtRGwSIsly8gWHnm X-Developer-Key: i=glaroque@baylibre.com; a=ed25519; pk=nMpSg4NT6M6q143E089emouMc+MXpHO9CWmnEUfjhjI= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261203_192209_200904_8C5A8BFD X-CRM114-Status: GOOD ( 10.72 ) X-Spam-Score: -0.2 (/) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-amlogic" X-Spam-Status: No, score=-16.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 Return the allocation error and clean up the primary plane if its zpos property cannot be created. Otherwise probe succeeds without the property that describes the plane's fixed stacking order. Fixes: fd311d880c76 ("drm/meson: Add zpos immutable property to planes") Reviewed-by: Neil Armstrong Signed-off-by: Guillaume La Roque --- drivers/gpu/drm/meson/meson_plane.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/meson/meson_plane.c b/drivers/gpu/drm/meson/meson_plane.c index 3c73fd678fb2..1c65aedd3926 100644 --- a/drivers/gpu/drm/meson/meson_plane.c +++ b/drivers/gpu/drm/meson/meson_plane.c @@ -575,7 +575,11 @@ int meson_plane_create(struct meson_drm *priv) drm_plane_helper_add(plane, &meson_plane_helper_funcs); /* For now, OSD Primary plane is always on the front */ - drm_plane_create_zpos_immutable_property(plane, 1); + ret = drm_plane_create_zpos_immutable_property(plane, 1); + if (ret) { + drm_plane_cleanup(plane); + return ret; + } priv->primary_plane = plane; -- 2.34.1 _______________________________________________ linux-amlogic mailing list linux-amlogic@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-amlogic