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 6B1B7606A31A for ; Mon, 30 Nov 2026 21:59:24 +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=j47Jg1/r; 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=Ph/Qw8k/ 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=aXDHO76TvTybbUJnHB1ZM36DOkc0cIRR2i7cEd9Y7KU=; b=j47Jg1/rE7G2ucfn3TDgLUH/b2 gQZZ4FK4mJ8SSK475heUlkMk09QraSOokcjXbvTdF5kO9hHLiREL+2QkmoMJGTmCrJgVCvk73oTQF RZPiNWfvs4hVXaIKCHWB7U8GtRoXwW5e4nr0aKDlfq0vTwvkXWr/9HgV8xyVTVYLi2BPNpWNEYNSy 8gi5FC0n+s/D/Cy8agpMufcPZ0oW5Irh2wWOjq3T5PDmEZRU7m8MVkvGfTm42eelsdJhIIYeEFKyz 1Eoa8jbTZYK8SYo4Jcl78UuS57SN24V5WHIfxyINMyAMJUZDwfk1Kt2w18EZ9nlxxMf6VxJFG2f6g MG0SgJvw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xY9PA-00000005ve8-0Sl7; Mon, 30 Nov 2026 21:59:24 +0000 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xY9Oh-00000005vMN-0c5I for linux-amlogic@lists.infradead.org; Mon, 30 Nov 2026 21:58:59 +0000 Received: by mail-wr1-x42b.google.com with SMTP id ffacd0b85a97d-4a68190a2a7so9431674f8f.1 for ; Mon, 30 Nov 2026 13:58:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre.com; s=google; t=1796075933; x=1796680733; 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=lmxoPj+Y+lxXoVV6mOhlZvexRQiIxpJk20NV9f8/mL8=; b=Ph/Qw8k/gOqgeftAKvC6TwT9Au0OMvxBTixia61zIcdWOYuBL+OpmBJdjC9G37Vhbn PkcGOuRrHV2TDwXE1b/MgJLvOOH80A51tvDYbQIi/3S22CDDJqP5AVxnsWRAzr69+ydj Xk9f2251npDZhyOue++S7BKuSxBmgmAALybxGwUTkYVe4n3DhbXSZD5eIW2aDpHuzPtL 88yzNwsimbNG2IlfETMRhFAxE3JOQ6jkJK8YQH2uW6TttzNaM4dX1LpneolJXnBJN3/a PBCV/e71xDG9u7t40Rf9pCpXPkQQ27jVgiMkzRxE9margNfsSnWY1IuZgUdHQ34gW6xY plag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796075933; x=1796680733; 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=lmxoPj+Y+l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ttIvEfb uFUwzz/GiI+CHp9dAZaLRNqr6ukYHpSpMKrTw8LlgWLnUXmPGJJgxugwErWNAF8wpiL0w2l1/Q7 wBqmMl/IEnCOSZCdCwnOBEOHFnewpe6XQn+GCVyGe25HPBzmOOnZw0BJ6SW7CxBsJV8PBs9JKiG xUQhf1iOjIHaILTL9YnGzXSi/UlOAnZYe5yHE6azyjNTyfJm+2g= X-Received: by 2002:a05:6000:2dc7:b0:4a5:bb9f:9c3c with SMTP id ffacd0b85a97d-4abb4c7ac0dmr77794221f8f.53.1796075933539; Mon, 30 Nov 2026 13:58:53 -0800 (PST) Received: from [127.0.1.1] ([2a01:e0a:e50:3860::e1d1:d182]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6b9add26sm67416090f8f.44.2026.11.30.13.58.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2026 13:58:52 -0800 (PST) From: Guillaume La Roque Date: Mon, 30 Nov 2026 22:57:54 +0100 Subject: [PATCH 5/8] drm/meson: handle primary plane zpos allocation failure X-Archived-By: MIME-Version: 1.0 Message-Id: <20261130-meson-g12a-osd2-v1-5-aa982300c20e@baylibre.com> References: <20261130-meson-g12a-osd2-v1-0-aa982300c20e@baylibre.com> In-Reply-To: <20261130-meson-g12a-osd2-v1-0-aa982300c20e@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=1796075927; l=1076; i=glaroque@baylibre.com; s=20261019; h=from:subject:message-id; bh=s1h49EDIKjIWpDmq/sKsch75lBV3sa18YSG0sLJwLbU=; b=VjI1pt8QI3B0kk5IKK8v2m08ORGoXU9vHSZWFw9th+toM29ex+ymD8+e5MdrBTSkWZwwqQxSs Nlhq+I/kyYzDK8hzieETcSDrbCCT/hHgNNvBd1MZynQLLOqoA9clFcD 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-20261130_135856_201317_7366E1DD X-CRM114-Status: GOOD ( 10.60 ) X-Spam-Score: -2.1 (--) 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") 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