Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp526476pxb; Thu, 9 Sep 2021 06:27:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzK+rUrsAlALdiaTtGuxo3DLeCFzTFZECc0eWU+IimXTg/IzYB9NNu+zjXXvY+M9Gp0c5tM X-Received: by 2002:a50:d0d1:: with SMTP id g17mr3305423edf.96.1631194071170; Thu, 09 Sep 2021 06:27:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631194071; cv=none; d=google.com; s=arc-20160816; b=JZR7pxZbj0GimmAvukyeqohYC3ArdaMoDChI5NC9BphwFQXD4gCXgE4fgvsECwiC/U Ou3egUfP0xZHeAJl3XNCO8TUV43NdLqoL9WvPcTwz9Hkk20E8/ZfKSu7N2bEyqeeyG9M YLASK365Lg1gsDG/k+sU19Dx0B8nXirn7pPSKsAl3rIst6OZSgLIomRYS5aK90zQ/FOS cPTRA+TLfHBDesUziFtmWHbNPXWTnVEfaxCpZ57P0lz5aBrJKfEhrlcwYGg2niqZglX2 q8vftOV8hLXaeLzTJRnU4zlucEp5VxSPASVqQ/Fd/ojNSVtZXa/RS4nEm49Iam9wVift YpDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=0h6LGpjEEk31pGIeJNfLae2R0C+9agXmaUSCwB2Bnks=; b=VIbd3F5Fwh8XODQ5NkpAiRSOoG539TkHk2WdMCE/xxAgarUejZ1yTkb3eIR11On2QI TUC4Hw/dOGGlLgHr3waFhDPjwwIknCcWXOKM0AmhIYUSt9vRYCc4ZN7laa94rGRbjfMv iOeCAJmlhbPSDZMACqnRARh2WRGosAe0vv2rBJMSeM4jYzoP9SJVLbnWA7qQNrAwdYLC eURcx+6J/0r/fJpOxn4lKhv2trBWDnhyVlRdJUaGg9IG0gwGXEZwDxWX2+6Qfr7LGuLF wyMJjnjdnKWWZcFjzjKoxw5JUCZLn+0CKwYrSNeEHhDOjlr0Jhg2K+Zut+0O7vHzK210 bcJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=VKroyFG2; 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 mq9si1918266ejc.683.2021.09.09.06.27.23; Thu, 09 Sep 2021 06:27:51 -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=VKroyFG2; 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 S1356810AbhIINYI (ORCPT + 99 others); Thu, 9 Sep 2021 09:24:08 -0400 Received: from mx07-00178001.pphosted.com ([185.132.182.106]:60698 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1358864AbhIINJt (ORCPT ); Thu, 9 Sep 2021 09:09:49 -0400 Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.1.2/8.16.0.43) with SMTP id 1899nKOw011941; Thu, 9 Sep 2021 15:08:23 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=selector1; bh=0h6LGpjEEk31pGIeJNfLae2R0C+9agXmaUSCwB2Bnks=; b=VKroyFG258TOB2ODpltjzUUgcbYlQd1yUtX6n8elNAVQAn/xpLxu2t8GODbvPtCr1iB5 wlHalxMGuGFLbpInvhOzcwenqJQRM7GzMxa3y1rkn8DaqutE+DMbeKSqqLM/kuKr1UdK 3Vy3wU8y9/XxOt7K21l5D5yPD4e22eaPv/ZDOrYdJ2fGJzOaW82enSpDBEmzrlj1GZSa 8vExjV+7OVb8Bzff+k6PEFiaiNVOpueLNSz8QkNVxvZwxJRIVv5dmXbG2HMXhi9stacl YitqLBsIGVqFCQI8UPHdTV7euYxrLxsLyPHeNp+7uzf0FtNxJ2YgUwhM91pZWWcLVAnq rg== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 3ay86m3hfh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 09 Sep 2021 15:08:23 +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 C813610003D; Thu, 9 Sep 2021 15:08:21 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag1node3.st.com [10.75.127.3]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 8A0D821B302; Thu, 9 Sep 2021 15:08:15 +0200 (CEST) Received: from lmecxl0993.lme.st.com (10.75.127.51) by SFHDAG1NODE3.st.com (10.75.127.3) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Thu, 9 Sep 2021 15:08:14 +0200 Subject: Re: [PATCH v2] drm/stm: ltdc: attach immutable zpos property to planes To: Raphael Gallais-Pou , Yannick Fertre , Benjamin Gaignard CC: David Airlie , Daniel Vetter , "Maxime Coquelin" , Alexandre Torgue , , , , , Raphael Gallais-Pou References: <20210907151323.5850-1-raphael.gallais-pou@foss.st.com> From: Philippe CORNU Message-ID: Date: Thu, 9 Sep 2021 15:08:06 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <20210907151323.5850-1-raphael.gallais-pou@foss.st.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.75.127.51] X-ClientProxiedBy: SFHDAG2NODE3.st.com (10.75.127.6) To SFHDAG1NODE3.st.com (10.75.127.3) 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-09_04,2021-09-09_01,2020-04-07_01 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/7/21 5:13 PM, Raphael Gallais-Pou wrote: > 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 > Acked-by: Yannick Fertre > Reviewed-by: Yannick Fertre > --- > 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, struct drm_crtc *crtc) > return -EINVAL; > } > > + drm_plane_create_zpos_immutable_property(primary, 0); > + > ret = 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, struct drm_crtc *crtc) > DRM_ERROR("Can not create overlay plane %d\n", i); > goto cleanup; > } > + drm_plane_create_zpos_immutable_property(overlay, i); > } > > return 0; > Applied on drm-misc-next. Many thanks for your patch, Philippe :-)