Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp168009rdb; Tue, 5 Dec 2023 01:49:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IGBxGoG8TW62NWfhCGpRyMM/qnqLAOccEJj08PsY/sAM+N2xaMYuFe9Suo4H+RNtli9rGyd X-Received: by 2002:a17:902:6b44:b0:1d0:6ffd:6e65 with SMTP id g4-20020a1709026b4400b001d06ffd6e65mr2311977plt.93.1701769740787; Tue, 05 Dec 2023 01:49:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701769740; cv=none; d=google.com; s=arc-20160816; b=T4jvr9e4kX7+J2ZETy41Rf5f2UsHm8ZSANfgrY4NhcLuoAK82WqCS7P+4D7fUI90AA XCuwA6133gLXK7KPbHxakZwWPK5CdIhYU9ztdhBIqB+K6i6BuKDIVto/87xEUtMZmoyr 7S1cN0106NzlgSnaP/OIQL5pJ+XCaQXjZsvux29Ln2/sdriDqmaNYWqK0zDKmmDOQ8fX TrpZSNx2sASwD0YLET+napw7bBEbXxZhxcUD6Se529Crc6lQtYJlNaY9sQKImuRAd8VK ekwbjN/JTS9sszRulG7BqeKU9MP253KojNnGd8ptHLzTAsJIFs6Vq4K8mraBYuMZneXv O8YA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=+ZavgxZZfNQ3hkAmHnmFP2x3GcZ8Wzz2mfFyP0k8dEA=; fh=XQFg0SWwAuqFJ1ucPzyzcHdnkajPg2WZzF19M+/Btxg=; b=tYJThIJs4e32Mm/meHBv8BuSUZrVK/XfiddM9GD4CcOZmPh9cVNRU62dO7uLvvSfGH pztNdl7CvrZFmEeWo7r3jlbx1F9rtHZUXebjgVVMgJq6JK2f/VUWpvrSfgivBjrBf1Iv gVQ9oGmVAZb38fMdai0lTk24aeiQNkVTg4PqmmPFeRiv1IkaBzw2aQ/hRcadm/jPvdt3 bt3wYnXv8BFHDCA1sa54qUTPWwoeMYN7drwzRFS+35yeBxuwDTc60p8cV9eR39yqo61c FP6j77Afhb/rCXIfoVQjcVyTK+3Xbg83HcciglZy9FJE8AWRG1EtmbfSD12V2y/VriRN qlpQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id f15-20020a170902ff0f00b001cfd6baa008si7532694plj.511.2023.12.05.01.49.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 01:49:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id 125A280A414A; Tue, 5 Dec 2023 01:48:58 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234872AbjLEJsl (ORCPT + 99 others); Tue, 5 Dec 2023 04:48:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229596AbjLEJsj (ORCPT ); Tue, 5 Dec 2023 04:48:39 -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 24A79A9 for ; Tue, 5 Dec 2023 01:48:45 -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 1rAS2g-0004Kk-Us; Tue, 05 Dec 2023 10:48:38 +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 1rAS2e-00DiEw-H2; Tue, 05 Dec 2023 10:48:36 +0100 Received: from sha by ptx.whiteo.stw.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1rAS2e-005MaM-EC; Tue, 05 Dec 2023 10:48:36 +0100 Date: Tue, 5 Dec 2023 10:48:36 +0100 From: Sascha Hauer To: Andy Yan Cc: Andy Yan , 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 Subject: Re: [PATCH v3 11/14] drm/rockchip: vop2: Add support for rk3588 Message-ID: <20231205094836.GZ1057032@pengutronix.de> References: <20231130122001.12474-1-andyshrk@163.com> <20231130122439.13374-1-andyshrk@163.com> <20231205092936.GW1057032@pengutronix.de> <87831dc3-2554-4b53-a9f8-6b61cf67732e@rock-chips.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87831dc3-2554-4b53-a9f8-6b61cf67732e@rock-chips.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) 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 groat.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 (groat.vger.email [0.0.0.0]); Tue, 05 Dec 2023 01:48:58 -0800 (PST) On Tue, Dec 05, 2023 at 05:44:03PM +0800, Andy Yan wrote: > Hi Sascha: > > On 12/5/23 17:29, Sascha Hauer wrote: > > 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. > > Yes, I have the same idea, maybe it's better to do the rename in a separate ? Ah Yes, I didn't realize this is just a context line. I thought you had added it. 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 |