Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5252162rwb; Mon, 21 Nov 2022 19:32:19 -0800 (PST) X-Google-Smtp-Source: AA0mqf7bfx0OWHD2v9xZyt5fh11ZEh8xqHG6MHV1n3nBcvrZh3NzwXKKCIn2hjvvpu/alq4NBdJd X-Received: by 2002:a17:906:cb90:b0:772:e95f:cdce with SMTP id mf16-20020a170906cb9000b00772e95fcdcemr18282903ejb.78.1669087938954; Mon, 21 Nov 2022 19:32:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669087938; cv=none; d=google.com; s=arc-20160816; b=z3+Zqw5JBSSAMb9AVXwp3o1E4dA7l7XtucA6eSRDiqdVBNQkhdWZ2gqTFk5nUz66Dd umlRNml56EOLr0NsAO9tDNTynVFpxFmF187of5SyZuzbo5Caq3WDNDpzA/6ctdMWYmGU cDhbWzyVx8Tnu7x/WwRHlI1wylt3D5J1SvV3tz3OEtJeJLSKX+E2wz3SDb3Xdkazvbim RzU7ob9dZGhQUeXVUDOMY0VRvtMKC8mOWkSI8qIbIUaYDi4LutdWotdkvX3gcirBL2C3 Jyf/50n1O/d5ynMq3cx3bqxoPZmsqUb+5upilqs1bDkYxy2gCoRtQC6rWOpn7cRbU2RE J0aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=u5rUQ+ylpO8x1C5y9I9UVE8RBm7ZShMdRWoFs3zuycw=; b=eWfswnm59dNdhmJEolFVB2U7sixNmNjfSUqDtX206l8zLwGFm0hcuRtVeqX4grkKc/ ueyTs68AqwZqB9cxk8AuQxhPEP4EQSCQK38CbmNmTIq1Vn8d9+9GXbtVNNxy6OtCKsCh ewxFc6GKXCV8GQ6iM6bqXoBiBEe6uC5nFw4aQEavGtK0SX5PANhy1O08raHU51b2OsQv O/ZOcrXm51wkpAnWdepn5NEZKT0EuaUCxTk6uPANDEZ2KPIViIaqo9Pb+zlt3mYmNisX iXZFXllpPwRXfFXHwNeyCioec0tFrHlvHBOZuaECkZVq1vCaDdHy2Ft82Hfy1v3gdxEd Q3JA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=ksEO7afw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cs6-20020a0564020c4600b004627d582888si5708452edb.24.2022.11.21.19.31.54; Mon, 21 Nov 2022 19:32:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=ksEO7afw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231929AbiKVDFl (ORCPT + 91 others); Mon, 21 Nov 2022 22:05:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229739AbiKVDFj (ORCPT ); Mon, 21 Nov 2022 22:05:39 -0500 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 477D21057D; Mon, 21 Nov 2022 19:05:38 -0800 (PST) Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 03279890; Tue, 22 Nov 2022 04:05:35 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1669086336; bh=OP7Y7hsHz9XtzH4OrAc1DG1nsm5BYY0TnHJs66LwpeA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ksEO7afwDfYQYLJcky9l5GiNb3FvnZiznXhKNyHfvPS+3j7Wy/APE98cIlCvCFA8G URnoxdxXbXbeqdZ9BqABrFKnQUNm0HiyvAd0CCFNt43PkZgDUcA5r9BqJzIlNbHewe /O5dUMsFzRHTQC3towY+Wt6Wty4luAbWXpoTk8aA= Date: Tue, 22 Nov 2022 05:05:20 +0200 From: Laurent Pinchart To: Kieran Bingham Cc: Geert Uytterhoeven , Krzysztof Kozlowski , Magnus Damm , Rob Herring , Tomi Valkeinen , devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Andrzej Hajda , Neil Armstrong , Robert Foss , Jonas Karlman , Jernej Skrabec , Tomi Valkeinen Subject: Re: [PATCH v1 6/8] drm: rcar-du: Add r8a779g0 support Message-ID: References: <20221117122547.809644-1-tomi.valkeinen@ideasonboard.com> <20221117122547.809644-7-tomi.valkeinen@ideasonboard.com> <166869771876.50677.1905794243575000038@Monstersaurus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <166869771876.50677.1905794243575000038@Monstersaurus> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 17, 2022 at 03:08:38PM +0000, Kieran Bingham wrote: > Quoting Tomi Valkeinen (2022-11-17 12:25:45) > > From: Tomi Valkeinen > > > > Add support for DU on r8a779g0, which is identical to DU on r8a779a0. > > > > Signed-off-by: Tomi Valkeinen > > --- > > drivers/gpu/drm/rcar-du/rcar_du_drv.c | 22 ++++++++++++++++++++++ > > 1 file changed, 22 insertions(+) > > > > diff --git a/drivers/gpu/drm/rcar-du/rcar_du_drv.c b/drivers/gpu/drm/rcar-du/rcar_du_drv.c > > index d003e8d9e7a2..b1761d4ec4e5 100644 > > --- a/drivers/gpu/drm/rcar-du/rcar_du_drv.c > > +++ b/drivers/gpu/drm/rcar-du/rcar_du_drv.c > > @@ -524,6 +524,27 @@ static const struct rcar_du_device_info rcar_du_r8a779a0_info = { > > .dsi_clk_mask = BIT(1) | BIT(0), > > }; > > > > +static const struct rcar_du_device_info rcar_du_r8a779g0_info = { > > + .gen = 3, > > Given that this is the V4H ... I wonder if this should be bumped > already. I guess that has knock on effects through the driver though... rcar_du_group_setup_didsr() would need to be fixed to test gen >= 3 instead of gen == 3. That seems to be the only problematic location. It could thus fairly easily be done in v2, but we can also delay it. > Aside from that, Which may need more work to handle correctly: > > Reviewed-by: Kieran Bingham Reviewed-by: Laurent Pinchart > > + .features = RCAR_DU_FEATURE_CRTC_IRQ > > + | RCAR_DU_FEATURE_VSP1_SOURCE > > + | RCAR_DU_FEATURE_NO_BLENDING, > > + .channels_mask = BIT(1) | BIT(0), > > + .routes = { > > + /* R8A779G0 has two MIPI DSI outputs. */ > > + [RCAR_DU_OUTPUT_DSI0] = { > > + .possible_crtcs = BIT(0), > > + .port = 0, > > + }, > > + [RCAR_DU_OUTPUT_DSI1] = { > > + .possible_crtcs = BIT(1), > > + .port = 1, > > + }, > > + }, > > + .num_rpf = 5, > > + .dsi_clk_mask = BIT(1) | BIT(0), > > +}; > > + > > static const struct of_device_id rcar_du_of_table[] = { > > { .compatible = "renesas,du-r8a7742", .data = &rcar_du_r8a7790_info }, > > { .compatible = "renesas,du-r8a7743", .data = &rzg1_du_r8a7743_info }, > > @@ -549,6 +570,7 @@ static const struct of_device_id rcar_du_of_table[] = { > > { .compatible = "renesas,du-r8a77990", .data = &rcar_du_r8a7799x_info }, > > { .compatible = "renesas,du-r8a77995", .data = &rcar_du_r8a7799x_info }, > > { .compatible = "renesas,du-r8a779a0", .data = &rcar_du_r8a779a0_info }, > > + { .compatible = "renesas,du-r8a779g0", .data = &rcar_du_r8a779g0_info }, > > { } > > }; > > -- Regards, Laurent Pinchart