Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp3480642pxb; Mon, 6 Sep 2021 23:56:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJycC7UM89+cCKD9cuI2kiwJe5UsR6mY2HD3hMg3WpPkd7qVprfkptHdluPXBNX+3evAo4Nh X-Received: by 2002:a05:6e02:1c27:: with SMTP id m7mr10176447ilh.190.1630997795793; Mon, 06 Sep 2021 23:56:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630997795; cv=none; d=google.com; s=arc-20160816; b=Sx/h3wk5HBHokT+A5gprIQP+79loJaKTBCtQpSVheLwZHotDqDYjgA60CAhmzP3+E5 tyTZ2nRy00CWWrITJujcFoDkTD9VUsDl3mwtQ+4wuY2FCEM1s0GAcjRE5I828sxw0MHa QEOtLbxgcW5snRYV+bTdoL6R6yI4W2ZFGJ1SJoWHPYVMMIsbqv4lDwdEOcMzK32EzaxM 6qI2Dip96iqTOgm8jHynESTyF3+Snp48xsQGdhUu+Jds4EJ6o+MKqlmZN5xlPTIYGQve 73tQ0LJSrtuwznv16AWqPa6ybT1jl4LlHwSSBHt2NdoiK+SGZ2+q0F/cG1UfJ1B9MH1M b4xA== 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=pPWWaNwMDzyikRTWDISy5sjjTX8UIPo1qSx4LUPLwxA=; b=Iu3VLOj4oYV493+kdisx78U4WqfLIjgPQKYkGZikaamvvL3CBbMfXdKIMGQWDlPz9w 5z9uJTraKhITM9lsxajLJUNDe0JbwKqYj1k4WkNZiY7kzFGMg9krx3JbqRiBgh9Sti39 CWf0NX54RUdw6l44NSNTrj63kCvnfgq7HQI5HPfzmRhg/lTrmH9MxrcD+3konhzydkCL kfMeYGtkunxK3+o520f8pmGBvC1rjmk9x776W5A3HHznU5DjdjooZyv8rN5ZGfiRtjLU QFZWM+z3G49FNpYNaWrvPX6UE1+lWIXG6s8bLXLhsnxGq/10t1SWJa1tFA6q1bcfuR21 8b3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=mxD6e0fu; 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 p4si439604ilc.75.2021.09.06.23.56.23; Mon, 06 Sep 2021 23:56:35 -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=mxD6e0fu; 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 S235463AbhIGG4m (ORCPT + 99 others); Tue, 7 Sep 2021 02:56:42 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:58136 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S235276AbhIGG4l (ORCPT ); Tue, 7 Sep 2021 02:56:41 -0400 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.1.2/8.16.0.43) with SMTP id 1872qDNW030676; Tue, 7 Sep 2021 08:55:18 +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=pPWWaNwMDzyikRTWDISy5sjjTX8UIPo1qSx4LUPLwxA=; b=mxD6e0fuEA913caHEUABA1NDOa6dqb+EnzE8ByiidNC5kiF0ZcpYnou85R0Y8H1sJbuU oionhz6yi3OMoprhgzrtNW6hzviBPJAhw5UmwUTH7BVNaE+Gh+7OyeKq1Iu4glQf84bI Y58qydwyqegXSDY4mG1O4yeZjzR3sDFzz5AU2eqXjROo3AGkmHNAPChNemk2MNF8+20V 8K1aY+kdrWdwZqHhOhdAm5pyyn7Cx35LcCyDQbArSr99BMzXfFdYbTei0icrtVc6lUJT aG4mMzeXWvIwfyvm6/yChPkPHjJyLtwQRlftfyHRMTW3yfzbt3yqZYxMJdpI2ucKboWK Hg== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 3awyp0rwwa-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 07 Sep 2021 08:55:18 +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 97DC910002A; Tue, 7 Sep 2021 08:55:15 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag1node3.st.com [10.75.127.3]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 64CE52122E8; Tue, 7 Sep 2021 08:55:15 +0200 (CEST) Received: from lmecxl0951.lme.st.com (10.75.127.45) by SFHDAG1NODE3.st.com (10.75.127.3) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Tue, 7 Sep 2021 08:55:14 +0200 Subject: Re: [PATCH] drm/stm: ltdc: add layer alpha support To: Raphael GALLAIS-POU - 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 References: <20210903085740.23108-1-raphael.gallais-pou@foss.st.com> From: yannick Fertre Message-ID: <19331273-3464-869e-8e62-a0c3e096ed70@foss.st.com> Date: Tue, 7 Sep 2021 08:55:14 +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: <20210903085740.23108-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.45] X-ClientProxiedBy: SFHDAG2NODE2.st.com (10.75.127.5) 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-07_02,2021-09-03_01,2020-04-07_01 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Raphael, thanks for the patch. Acked-by: Yannick Fertre Reviewed-by: Yannick Fertre On 9/3/21 10:58 AM, Raphael GALLAIS-POU - foss wrote: > Android Hardware Composer supports alpha values applied to layers. > Enabling non-opaque layers for the STM CRTC could help offload GPU > resources for screen composition. > > Signed-off-by: Raphael Gallais-Pou > --- > drivers/gpu/drm/stm/ltdc.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/stm/ltdc.c b/drivers/gpu/drm/stm/ltdc.c > index 195de30eb90c..e0fef8bacfa8 100644 > --- a/drivers/gpu/drm/stm/ltdc.c > +++ b/drivers/gpu/drm/stm/ltdc.c > @@ -845,7 +845,7 @@ static void ltdc_plane_atomic_update(struct drm_plane *plane, > LXCFBLR_CFBLL | LXCFBLR_CFBP, val); > > /* Specifies the constant alpha value */ > - val = CONSTA_MAX; > + val = newstate->alpha >> 8; > reg_update_bits(ldev->regs, LTDC_L1CACR + lofs, LXCACR_CONSTA, val); > > /* Specifies the blending factors */ > @@ -997,6 +997,8 @@ static struct drm_plane *ltdc_plane_create(struct drm_device *ddev, > > drm_plane_helper_add(plane, <dc_plane_helper_funcs); > > + drm_plane_create_alpha_property(plane); > + > DRM_DEBUG_DRIVER("plane:%d created\n", plane->base.id); > > return plane; >