Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2492022imu; Wed, 21 Nov 2018 12:30:20 -0800 (PST) X-Google-Smtp-Source: AFSGD/V04WrzzuSUU/BwpxUYxxsgfI1V9LLldKSPlmxfIbRKB7chJUZnAkt9BefWCiIln9uEDErp X-Received: by 2002:a63:1d59:: with SMTP id d25mr7479732pgm.180.1542832220497; Wed, 21 Nov 2018 12:30:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542832220; cv=none; d=google.com; s=arc-20160816; b=R6/ys9kbFFA+7jbu1+5QzfI+z7t+Fp5IjFKsjVe/QWZUfhwBeIb9dxOTSgtsyFosV+ zlaP22OQCM3mNOV9EvEU6S9ydnLXGH0uOCxpG+PkVaq5WPq0vPsm6CLVbeUdGWG/rrZO MROCWyF5ndDEqlcxRZ25VwdLRJo4R7m1ciRE+EeDXbr0hbiHjkbt5uV1XH85ZSlJs2rm N2Sk7oDPagpXDlAk8dyjlCnDZlSEdRw5kwdJz2AruS7BzXBHVHNreTTSoM25dAGQVdzN XE/6isyion/H83vLGevEkPOGPKSjJww+8EFBP+yUQh0AGZR3Onskc8hRVGO/PizVM2wo Pv/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:organization:message-id:date:subject:cc:to :from:dkim-signature; bh=XkXQQ8O3VrW1gfrm29SufIlLxKBC5JzgUyTp1lJkktk=; b=YGucZjKjbJIi65UF62MO9OyiRINNT7dNOkB+jl6lwIQU24BERSp8jcNgTIuWHGIM0T gIWSPBDIESAHV9u9Md3olns7ZdraQRW/RfYU0EhWkpFTQ8mA5V2XU85BX1/CBi1Cnm93 sGkipc51C6ujyjLssxrltH7d9dzIEGnbSlmdVyHPiisYLvJjL3r4MS7q9uzSc3npJjd0 yjk6D6AU6Wpx5XLdvtKhlYaOLgoim5i47xjNeOkjmuWKJBlUojLh+WgQsXOWGZxFUnCn QNneDd95KI29t2qDX5Iiy5iqFOK6k8oWpcl1cwkeQbV3fx+i0goIjlgptMEcGJ7OJQmN C66Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=ZthRe3dm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w5si24503709pfl.279.2018.11.21.12.30.05; Wed, 21 Nov 2018 12:30:20 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=ZthRe3dm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729489AbeKVFEe (ORCPT + 99 others); Thu, 22 Nov 2018 00:04:34 -0500 Received: from perceval.ideasonboard.com ([213.167.242.64]:45136 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726636AbeKVFEe (ORCPT ); Thu, 22 Nov 2018 00:04:34 -0500 Received: from avalon.localnet (dfj612ybrt5fhg77mgycy-3.rev.dnainternet.fi [IPv6:2001:14ba:21f5:5b00:2e86:4862:ef6a:2804]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 09E384F4; Wed, 21 Nov 2018 19:29:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1542824945; bh=lFjXwgOjb6VydrJDYrFpApDmbNmtBycUia6VWV34rw8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZthRe3dmFw0gYL5djDn/jZJhlllXO4Cuk/PpFcXNj6OKFzNacjrwrVBtyxV131ZNW DpKdLpxfV5Hm4laMjHFsqEIvYQ3iB4cQaFDBCxuggcYQ44h529tTxxV3Gu76AeIb/D qpA05IBc+m/16zcbc6kvfSIO/fcAgzbVeuGnvXp8= From: Laurent Pinchart To: Laurent Pinchart Cc: Kieran Bingham , linux-renesas-soc@vger.kernel.org, dri-devel@lists.freedesktop.org, Alexandru-Cosmin Gheorghe , David Airlie , open list Subject: Re: [PATCH 2/2] drm: rcar-du: Enable alpha property on primary planes Date: Wed, 21 Nov 2018 20:29:22 +0200 Message-ID: <3478783.2iBfSyQcgT@avalon> Organization: Ideas on Board Oy In-Reply-To: <1604918.OXgyMDt7RE@avalon> References: <20180919155700.10342-1-kieran.bingham+renesas@ideasonboard.com> <20180919155700.10342-3-kieran.bingham+renesas@ideasonboard.com> <1604918.OXgyMDt7RE@avalon> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Kieran, On Thursday, 20 September 2018 14:22:38 EET Laurent Pinchart wrote: > On Wednesday, 19 September 2018 18:56:59 EEST Kieran Bingham wrote: > > If the alpha property is not added to a plane, a default value will be > > used, which can result in a non-visible layer if the alpha is > > initialised as 0. > > > > Provide an alpha blend property on all planes. > > > > Fixes: 161ad653d6c9 ("drm: rcar-du: Use __drm_atomic_helper_plane_reset > > instead of copying the logic") > > > > Signed-off-by: Kieran Bingham > > --- > > > > drivers/gpu/drm/rcar-du/rcar_du_plane.c | 7 ++++++- > > 1 file changed, 6 insertions(+), 1 deletion(-) > > > > diff --git a/drivers/gpu/drm/rcar-du/rcar_du_plane.c > > b/drivers/gpu/drm/rcar-du/rcar_du_plane.c index 9e07758a755c..72399a19d8a6 > > 100644 > > --- a/drivers/gpu/drm/rcar-du/rcar_du_plane.c > > +++ b/drivers/gpu/drm/rcar-du/rcar_du_plane.c > > @@ -783,13 +783,18 @@ int rcar_du_planes_init(struct rcar_du_group *rgrp) > > > > drm_plane_helper_add(&plane->plane, > > > > &rcar_du_plane_helper_funcs); > > > > + /* > > + * The alpha property needs to be initialised on all planes > > + * to ensure the correct setting at the output. > > + */ > > + drm_plane_create_alpha_property(&plane->plane); > > + > > As mentioned in the cover letter, both patches in this series fix the issue > at hand. The first patch is more generic as it will fix it for all drivers, > while this patch is specific to the R-Car DU driver. It however makes sense > to merge it, as it adds alpha support to the primary plane, which can be > useful. > > Once the first patch gets merged, the above comment won't be correct > anymore. I wonder whether we shouldn't change the patch description and > comment to focus on usage of the alpha property for primary planes, and not > on the bug fix. What's your opinion ? I've removed the comment and changed the commit message to drm: rcar-du: Enable alpha property on primary planes The hardware supports alpha on all planes, and using it on the primary plane can be useful. Don't restrict the alpha property to overlay planes. With this, Reviewed-by: Laurent Pinchart and applied to my tree. > > if (type == DRM_PLANE_TYPE_PRIMARY) > > continue; > > > > drm_object_attach_property(&plane->plane.base, > > rcdu->props.colorkey, > > RCAR_DU_COLORKEY_NONE); > > > > - drm_plane_create_alpha_property(&plane->plane); > > drm_plane_create_zpos_property(&plane->plane, 1, 1, 7); > > } -- Regards, Laurent Pinchart