Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp430864imu; Wed, 21 Nov 2018 23:11:51 -0800 (PST) X-Google-Smtp-Source: AJdET5fVaw9M+QJVSZLzKForu+ZnOggzsoXzYrsJ8GZAzW5hq0hfyy7QPRKNMvsOzQg/ZHxxpwIn X-Received: by 2002:a62:3948:: with SMTP id g69mr10438199pfa.114.1542870711196; Wed, 21 Nov 2018 23:11:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542870711; cv=none; d=google.com; s=arc-20160816; b=ZfJjBC72PH4ql8SR4dCPrMHyh4fFU/s+Senjg9oEbDRN/PwdfYJ6pgwA4EzxwNy97O /OGh8oXWMQPitZRbjV64HSwG16iKIKXubl1Vve69CkzBdu9LKLJGkKNwBYadPKmfGZBC hfEZQkuPDXUZbMjG7ZWmSDm4ccxs9fQH7f5Ah3V7u6qDRpwz6caf8SwxWYc2wqjqN1xk F4bLeptfKLGKhRhNrbcjQFRLOOEvmRzPwCYtBiNCFlHy5cUwWNLnCz3AapWUP8nCalKm AqfpmCmzF45d/4QaQHjR8ahxMgjgNW59lUslfrKdwOlswa0XP1YcLr8BAjMrGRu6Esju PuOQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject:reply-to :dkim-signature; bh=HRvMFA+Gc5u/DBcbuaBKITBWbhJ58q+22hD55f0vMG0=; b=Ex9YeabwRnb6fD2r3q0o9Pq088Nu6rcboUUVDt7SnuC+MIWeS8haebgtDHz1IuQI1p dwtBWaXPRTr2OedMH9zwQKRwTlAOLeOQvdp7kbDKW/We1bSUx6tFdF93kbrHytUL4d6R Iy0KNqij6/EVh2xxI7se1bCWYbjqZYYhgTGtXRkfe14oD/hheK15st/6kNUUJpFrTPHx FA+HmsCcE8NThPTuPtStOkojic/k5fFgFsesdlrd8sL4CJCFvPsx3dWJPcetbHgiqrE7 AF6b3kgx5OmgXYgMI129ww1pkqjycYacvhuUOG42xRanOt3Mls0mt1AZ+fdSXk76ptza 4Glw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=XNOK+xxV; 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 e4si6592458pgd.256.2018.11.21.23.11.35; Wed, 21 Nov 2018 23:11:51 -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=XNOK+xxV; 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 S2389781AbeKVHqF (ORCPT + 99 others); Thu, 22 Nov 2018 02:46:05 -0500 Received: from perceval.ideasonboard.com ([213.167.242.64]:47984 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733229AbeKVHqF (ORCPT ); Thu, 22 Nov 2018 02:46:05 -0500 Received: from [192.168.0.21] (cpc89242-aztw30-2-0-cust488.18-1.cable.virginm.net [86.31.129.233]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 929A755E; Wed, 21 Nov 2018 22:10:02 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1542834602; bh=Y8tgesxlqNSodcmkp7zGFRPdIB+w4p4LsV9lElZGY5o=; h=Reply-To:Subject:To:Cc:References:From:Date:In-Reply-To:From; b=XNOK+xxVDsM9mzDEH8k2ok0jv8Pix99jVp0Uj/fjwTSyam7BplQs7yqwOlImD2lRt xOJoIAQsVqmsNNi5PTUBokxAAWfQnSJozWfAqGsreLAgKoAnyIhDcZf2/Q3W/eWJZB 8Lys83Rcm10G28/OPdB6iw2GOghdECkQPLn6p6r0= Reply-To: kieran.bingham+renesas@ideasonboard.com Subject: Re: [PATCH 2/2] drm: rcar-du: Enable alpha property on primary planes To: Laurent Pinchart Cc: linux-renesas-soc@vger.kernel.org, dri-devel@lists.freedesktop.org, Alexandru-Cosmin Gheorghe , David Airlie , open list References: <20180919155700.10342-1-kieran.bingham+renesas@ideasonboard.com> <20180919155700.10342-3-kieran.bingham+renesas@ideasonboard.com> <1604918.OXgyMDt7RE@avalon> <3478783.2iBfSyQcgT@avalon> From: Kieran Bingham Organization: Ideas on Board Message-ID: Date: Wed, 21 Nov 2018 21:10:00 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <3478783.2iBfSyQcgT@avalon> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Laurent, On 21/11/2018 18:29, Laurent Pinchart wrote: > 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 ? Aha - sorry this slipped my queue. > 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 Perfect, - That reads fine. Thank you. > > 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); >>> } >