[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87831dc3-2554-4b53-a9f8-6b61cf67732e@rock-chips.com>
Date: Tue, 5 Dec 2023 17:44:03 +0800
From: Andy Yan <andy.yan@...k-chips.com>
To: Sascha Hauer <sha@...gutronix.de>, Andy Yan <andyshrk@....com>
Cc: heiko@...ech.de, hjc@...k-chips.com,
dri-devel@...ts.freedesktop.org,
linux-rockchip@...ts.infradead.org, linux-kernel@...r.kernel.org,
krzysztof.kozlowski+dt@...aro.org, robh+dt@...nel.org,
devicetree@...r.kernel.org, sebastian.reichel@...labora.com,
kever.yang@...k-chips.com, chris.obbard@...labora.com
Subject: Re: [PATCH v3 11/14] drm/rockchip: vop2: Add support for rk3588
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 <andy.yan@...k-chips.com>
>>
>> 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 <andy.yan@...k-chips.com>
>
> With the two nits below feel free to add my:
>
> Reviewed-by: Sascha Hauer <s.hauer@...gutronix.de>
>
> 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 ?
>
>>
>> +#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)
Thanks for catching this, will fix in next version.
>
> Sascha
>
Powered by blists - more mailing lists