Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1872511imm; Thu, 20 Sep 2018 04:23:22 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda0U+6zfrPjgaFXneYVfVmB5SNQ2FDqdydu6XCQe0F2BukcK0T8LWvBuHLRmoshCFK/SvTl X-Received: by 2002:a17:902:558f:: with SMTP id g15-v6mr39163489pli.38.1537442602929; Thu, 20 Sep 2018 04:23:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537442602; cv=none; d=google.com; s=arc-20160816; b=lupEyO+bWv310blg4L67RMrpE7nuRWmUhuTjkPPJXfdVPLLgdZW8+v/0ud/MzcCX9Y 981b9Y1heZdAm8ZzU/J6nxBiJN3nl+UvIYDlhOd1WyCbOX7nUmH7OR0pF8GouspJhcPb RjiLdslj2ffCvnjNFl7UH3eOCymRzu0+QuFD2i/AEBgWpJrrWQH5rl/gcQF4kVUwwR8p vJlEbUhm0iu0C80JbPtF/DhafJaKOwrqqxeVQnntzHV4Yn3gNHZaMo7PXZ0PYWI6SvMl j40/j1WKdOLyZq75M9mpVqEQioJSttEmaW+P9iW5FimbnDuIDxdZ9sifioXmVb3u+cZ+ oFbA== 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=CHTBl08HHzRtiyxo0IP4ECcIRBGo8+WVquIWfDojXMg=; b=kswO9Wj+CbxeBaY5yOG5JeL/V/bEiHiDsgBklkwOy6tU5AE38j3QeAk1yC/x9tLr14 CSxdXnwgJvosv7CWXAjTPJghTGiCX3uyxmzw0CKn47i1GbYajDWTIYZAIMEVRzqzGEYi ky0M6jKQR8Wdjp/hBuQ3Md7cMohWBOgpYSVGDATamevF96Gugq/kvwHhXmsYQS9atGI7 2CjWDVUokRCl+1xjOaW6IzKJFqGQ8+3bn96EAOtRGwch7/tJ5tYHJeEQU9lD1y46IeZm auGy2NRYfMiVFKDbtStIzt2Ht6X36q/9vKHfHUG56J39gBCBsPTzXPUgnsnEnP1aESvJ IvWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=JJId3ruC; 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 a8-v6si25151884pgm.201.2018.09.20.04.23.06; Thu, 20 Sep 2018 04:23:22 -0700 (PDT) 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=JJId3ruC; 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 S2387558AbeITRF2 (ORCPT + 99 others); Thu, 20 Sep 2018 13:05:28 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:50424 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387404AbeITRF1 (ORCPT ); Thu, 20 Sep 2018 13:05:27 -0400 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 6A3741A9C; Thu, 20 Sep 2018 13:22:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1537442545; bh=w7waZhxXDIPvFCB/7tk7b+hBROvy477pj9Mf8lZRuJ8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JJId3ruC/lk2VcNQkCWLu8hFGyRBsivEiDlKVrlWPBLFbluX/cPIXfLywO9eM9AU6 eN5QO3cWWwdyfSnqsKoLjDdXFHI5VjsHazs1ZL8wHfOlGX8YjDAaVQBu6Mc/z4XGJb sG+AMRpEob1mpQTBuDLmc89QZnliE/MT3SJagAU0= From: Laurent Pinchart To: Kieran Bingham Cc: 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: Thu, 20 Sep 2018 14:22:38 +0300 Message-ID: <1604918.OXgyMDt7RE@avalon> Organization: Ideas on Board Oy In-Reply-To: <20180919155700.10342-3-kieran.bingham+renesas@ideasonboard.com> References: <20180919155700.10342-1-kieran.bingham+renesas@ideasonboard.com> <20180919155700.10342-3-kieran.bingham+renesas@ideasonboard.com> 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, Thank you for the patch. 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 ? > 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