Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp705646pxb; Thu, 2 Sep 2021 13:06:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzYXPE7XtzTgiun4khULQZORzOHdLUlrj5q+FgINSoewIM/k4R0O1oK4I2g4MfAvmzUDP5I X-Received: by 2002:a17:906:2a8e:: with SMTP id l14mr5614169eje.321.1630613203967; Thu, 02 Sep 2021 13:06:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630613203; cv=none; d=google.com; s=arc-20160816; b=P/dvUDB02cNryMDGgrlUOi/5SgbY0Sqy90WVHEQe5u+bjsiWtU75cZJZWkYwrci20x sxBM+ytafA8aYdHFdfnrKAtjycBCJt9/val6VeKCQdbhnJgBuD4kLcQdNEQ49ftUj45B mtYOrhTKM1lyHkFPw/PyvmFOlHCaUTRWCoTCeNcnn/8fuvZ7gxCxlAcwkFSXTRl4+762 DuLzMg8t95dABA6q2iOuLKSpKTalRGfo6QgNh7QV5KhaZ6at1Il1mt1tWkvp14gsW3lJ FjQUN+vPTd5/67QSrSUXm5XFXoFiadAiyuoow1wRkrrbulII6z2m55BlHoBNADEqWYkk Ctvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=FqkU+U2qaJ6aY22CM876gTpmSnYzT1Zb7tNI+fa5WoY=; b=z5AERpI7TkqQyh613TyFwyrBm/VkeR4tlSx6xmVxzPsd9H4TEcjIxULCDFcqL8DTlV 6L7EMaVrtjyjTYu21AF02HKLMrEN35pJPDviJtdxQJPJQHavXIP6baoxL361sDJc2w1m 3sJkHpphmTDGTdXRJjKlHBy9n24gDVrD23WOdkWUdRKDvHFr0gw2jNKCg26kyjqvB/5M +EkahpJqPsGYpdK/bpzpZZymbkSOqG5H2TwHntHfh1rK6+JSQvAudgCeABp0Tj93cFpB 3o/m3Ba6dYyPs1RF5VK7U/q6E+PQb+9JX2TnQEX/9PDy7W1qiEVSp312E9KXkudxElmQ 7HLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=r2k3EHW9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gs37si2190295ejc.112.2021.09.02.13.06.16; Thu, 02 Sep 2021 13:06:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=r2k3EHW9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345799AbhIBPcW (ORCPT + 99 others); Thu, 2 Sep 2021 11:32:22 -0400 Received: from mx07-00178001.pphosted.com ([185.132.182.106]:59112 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229941AbhIBPcV (ORCPT ); Thu, 2 Sep 2021 11:32:21 -0400 Received: from pps.filterd (m0241204.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.1.2/8.16.0.43) with SMTP id 182Ehat5032332; Thu, 2 Sep 2021 17:30:59 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=from : to : cc : subject : date : message-id : content-type : content-transfer-encoding : mime-version; s=selector1; bh=FqkU+U2qaJ6aY22CM876gTpmSnYzT1Zb7tNI+fa5WoY=; b=r2k3EHW9CDxpMe6gIJbnOrL8BawSiDBuAkKMPvEoweet4/ueOXi3cmsM0K5nioK3/+sS BV1SCjcp/RUAfi2VgPSVwS2Ovh7cOvvJdVAMaxypk0nORjIdqc++bvs1etrbKvne1LYF fOvjoQ8EckSPaEbnDrZLkc0EpXJapBz4MatKKagIw6sh79EmUJhrBWiNguMbixKXuxur NwyIE01OaDcNnjNiugsLI7ltysATmrDKDf6tm9SzSiINZw5qlcrbUKTY8b69d7qdiXEx 5xgv3jVlhDgmNrquMMQPz3BI+yDpgBLRIl1ljJd3L7+mMUdt/0GH+VZzOqx7fmYXTufb BA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 3atujr26nq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 02 Sep 2021 17:30:59 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 05EEA10002A; Thu, 2 Sep 2021 17:30:59 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag2node1.st.com [10.75.127.4]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id EA875218104; Thu, 2 Sep 2021 17:30:58 +0200 (CEST) Received: from SFHDAG2NODE3.st.com (10.75.127.6) by SFHDAG2NODE1.st.com (10.75.127.4) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 2 Sep 2021 17:30:58 +0200 Received: from SFHDAG2NODE3.st.com ([fe80::31b3:13bf:2dbe:f64c]) by SFHDAG2NODE3.st.com ([fe80::31b3:13bf:2dbe:f64c%20]) with mapi id 15.00.1497.015; Thu, 2 Sep 2021 17:30:58 +0200 From: Raphael GALLAIS-POU - foss To: Yannick FERTRE - foss , Philippe CORNU - foss , Benjamin Gaignard CC: David Airlie , Daniel Vetter , "Maxime Coquelin" , Alexandre TORGUE - foss , "dri-devel@lists.freedesktop.org" , "linux-stm32@st-md-mailman.stormreply.com" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , Raphael GALLAIS-POU - foss , Raphael GALLAIS-POU Subject: [PATCH] drm/stm: ltdc: attach immutable zpos property to planes Thread-Topic: [PATCH] drm/stm: ltdc: attach immutable zpos property to planes Thread-Index: AQHXoA+GiNV5N6DIcUSGOuN2jPsbMQ== Date: Thu, 2 Sep 2021 15:30:57 +0000 Message-ID: <20210902152605.12420-1-raphael.gallais-pou@foss.st.com> Accept-Language: fr-FR, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.75.127.45] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.391,FMLib:17.0.607.475 definitions=2021-09-02_04,2021-09-02_03,2020-04-07_01 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Defines plane ordering by hard-coding an immutable Z position from the first plane, used as primary layer, to the next ones as overlay in order of instantiation. This zpos is only an information as it is not possible to modify it, blending operations are still applied from the top to the bottom layer. This patch helps to remove a warning message from the Android Hardware Composer. Signed-off-by: Raphael Gallais-Pou --- drivers/gpu/drm/stm/ltdc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/stm/ltdc.c b/drivers/gpu/drm/stm/ltdc.c index 195de30eb90c..bd603ef5e935 100644 --- a/drivers/gpu/drm/stm/ltdc.c +++ b/drivers/gpu/drm/stm/ltdc.c @@ -1024,6 +1024,8 @@ static int ltdc_crtc_init(struct drm_device *ddev, st= ruct drm_crtc *crtc) return -EINVAL; } =20 + drm_plane_create_zpos_immutable_property(primary, 0); + ret =3D drm_crtc_init_with_planes(ddev, crtc, primary, NULL, <dc_crtc_funcs, NULL); if (ret) { @@ -1046,6 +1048,7 @@ static int ltdc_crtc_init(struct drm_device *ddev, st= ruct drm_crtc *crtc) DRM_ERROR("Can not create overlay plane %d\n", i); goto cleanup; } + drm_plane_create_zpos_immutable_property(overlay, i); } =20 return 0; --=20 2.17.1