Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp161379rdb; Tue, 5 Dec 2023 01:31:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IGPp5rhTLcd1a82B4T2A4nTJWqDh7u+b9RzlmfwSYto2GX2F71C0hiqpZ2+vEA9YuevytFP X-Received: by 2002:a05:6870:80f:b0:1fb:75b:2ba0 with SMTP id fw15-20020a056870080f00b001fb075b2ba0mr3670939oab.92.1701768683972; Tue, 05 Dec 2023 01:31:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701768683; cv=none; d=google.com; s=arc-20160816; b=Rd9PSh8ad/dsotIikjPliQl1Gyk+kMbfC96UQMZpACSyH9fS46Xesql5U6Lt3h6fhZ whKmYDhFtBUyWqijW1Fmf9kZSOmdTN1fzJtPT6bQpiz/Fei/d3+Y0Ho2mSN4qqynS3MR EiboZBeNlD0eSXpXGRUNNpd2aMY6nDBZR+rRw4KBaiWPxdo5/8VOs2Wh9z0hHKN3+pj0 hV+yKTiYSVRYTKpZiN2MnBRYSr8grGa78Vf8CZG99N12LLCV9w9wr89HdOKEaXRLhxvl jea5ZSOiy3X6v87/PbZO2DlG1xIik9sohWykJD8KXxBn2BKqdBq5cluN0UwjIbRKQdXG ZmMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:from:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:date; bh=qvsR5CxSa2ZI0CzIUYxqGqklLyC2UhICraeHXk1+Oxc=; fh=g17TTV3IAh7upqWYUv7HGC34+Nx1v9H4Zz+OCPOH6/U=; b=JJzfaQYdr2aYfZNwwK6NLsjAjnTfyV9oGE3UdInmC1VSNbx3xOEnVKm5n7O9Z3pbpl 10fYa1a7tH5o5FCpSbuklceRHbcr5w7400sDAVD94ARXjs9g598oDTbxnVqLSbpW34CQ Q4j4AG9Kfi1UqaM2cdki4yF3EpcbG/XIIrGNsq2q1O2SArfy8BIoBReBPtwHhZqIqKln AK+z7hZvQ1YJOKt7u7mP/bDbw6o535v2jd91POV9lx0yIc3TagScgjasL59HXQaHM66H vMpSxbYhZdqEvugzaMZ4T5YHTQOqO8NZ8NAJrpasLig1L1xF3FquEF1WbXJ6+Pqtwzz7 UzsQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id y9-20020a656c09000000b005c6667e3ce3si5083843pgu.299.2023.12.05.01.31.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 01:31:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 327FF80A1E2D; Tue, 5 Dec 2023 01:31:21 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235632AbjLEJag (ORCPT + 99 others); Tue, 5 Dec 2023 04:30:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235635AbjLEJaV (ORCPT ); Tue, 5 Dec 2023 04:30:21 -0500 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [IPv6:2a0a:edc0:2:b01:1d::104]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 42FA42116 for ; Tue, 5 Dec 2023 01:29:48 -0800 (PST) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rARkJ-0000u2-RS; Tue, 05 Dec 2023 10:29:39 +0100 Received: from [2a0a:edc0:2:b01:1d::c0] (helo=ptx.whiteo.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rARkH-00DiAv-0a; Tue, 05 Dec 2023 10:29:37 +0100 Received: from sha by ptx.whiteo.stw.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1rARkG-005MUP-U7; Tue, 05 Dec 2023 10:29:36 +0100 Date: Tue, 5 Dec 2023 10:29:36 +0100 To: Andy Yan Cc: heiko@sntech.de, hjc@rock-chips.com, dri-devel@lists.freedesktop.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, krzysztof.kozlowski+dt@linaro.org, robh+dt@kernel.org, devicetree@vger.kernel.org, sebastian.reichel@collabora.com, kever.yang@rock-chips.com, chris.obbard@collabora.com, Andy Yan Subject: Re: [PATCH v3 11/14] drm/rockchip: vop2: Add support for rk3588 Message-ID: <20231205092936.GW1057032@pengutronix.de> References: <20231130122001.12474-1-andyshrk@163.com> <20231130122439.13374-1-andyshrk@163.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231130122439.13374-1-andyshrk@163.com> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-Accept-Language: de,en X-Accept-Content-Type: text/plain User-Agent: Mutt/1.10.1 (2018-07-13) From: Sascha Hauer X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: sha@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Tue, 05 Dec 2023 01:31:21 -0800 (PST) On Thu, Nov 30, 2023 at 08:24:39PM +0800, Andy Yan wrote: > From: Andy Yan > > VOP2 on rk3588: > > Four video ports: > VP0 Max 4096x2160 > VP1 Max 4096x2160 > VP2 Max 4096x2160 > VP3 Max 2048x1080 > > 4 4K Cluster windows with AFBC/line RGB and AFBC-only YUV support > 4 4K Esmart windows with line RGB/YUV support > > Signed-off-by: Andy Yan With the two nits below feel free to add my: Reviewed-by: Sascha Hauer Thanks for working on this. > diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop2.h b/drivers/gpu/drm/rockchip/rockchip_drm_vop2.h > index 8d7ff52523fb..8b16031eda52 100644 > --- a/drivers/gpu/drm/rockchip/rockchip_drm_vop2.h > +++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop2.h > @@ -13,9 +13,16 @@ > > #define VOP_FEATURE_OUTPUT_10BIT BIT(0) You could rename this to include "VP" for Video Port so it's not so easily mixed up with the defines below. > > +#define VOP2_FEATURE_HAS_SYS_GRF BIT(0) > +#define VOP2_FEATURE_HAS_VO0_GRF BIT(1) > +#define VOP2_FEATURE_HAS_VO1_GRF BIT(2) > +#define VOP2_FEATURE_HAS_VOP_GRF BIT(3) > +#define VOP2_FEATURE_HAS_SYS_PMU BIT(5) Should be BIT(4) Sascha -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |