Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1756033lqm; Fri, 3 May 2024 05:57:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX25exd1GoznJPe1zRw3JJlgh2p1qqn83uFdjJuzXUybFiESXxaWrphTJVyELjgnTvpeNHq8qlMc4/340aXqk9Taq8b4aad74iMzJYNpA== X-Google-Smtp-Source: AGHT+IF3/snhsVPpJmRMxZJtOXaVcjPOp+c/o2yhw3i0VhN/gn2dTUIAsjcBgd8/G3df4xtIkzaT X-Received: by 2002:a05:6358:94a6:b0:18d:8fda:a5bf with SMTP id i38-20020a05635894a600b0018d8fdaa5bfmr2306943rwb.31.1714741038922; Fri, 03 May 2024 05:57:18 -0700 (PDT) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id m7-20020a655307000000b005dc15e82c4fsi2931657pgq.170.2024.05.03.05.57.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 05:57:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-167661-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@cherry.de header.s=selector1 header.b=aFcY9Du8; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-167661-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167661-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=cherry.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 7EDD5281CD4 for ; Fri, 3 May 2024 12:57:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F3468153579; Fri, 3 May 2024 12:57:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=cherry.de header.i=@cherry.de header.b="aFcY9Du8" Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on2112.outbound.protection.outlook.com [40.107.13.112]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3A06218C3D for ; Fri, 3 May 2024 12:57:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.13.112 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714741031; cv=fail; b=nV5geS0rKfxv3IkJHuHL++7o65hfZdQYU7tF+Q6dorIWFCzlpFwnUdqUOfRsFbn6uHY5eYAZrGP8DKFwn0matMcaBrycxXOcu9hRVzRx8JwqvQnZxzP26SZW79Jo/qfKPzZ2PjzLUZLrNxQpy0sC3lK2KS5j/EJCMfBQN0KbgH4= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714741031; c=relaxed/simple; bh=+M6/HZUkak7Jp4X9S2lRkayc0vK8kSOJheMg+1KKojc=; h=Message-ID:Date:Subject:To:Cc:References:From:In-Reply-To: Content-Type:MIME-Version; b=meEFeFycvkd5djeTae5Sy4wuWfqo0KQmAJ+noVO17cb3yKdox0b0m4EHJvgeXp15PegGTsGNk2ovBbkQca1Sj31NMoBq03wFjN2qefOozVU2Yy6pqmNkIzdJJvwi3Bz2tKlLZQdyCZ8wd1v6b3i1Xoq4mX4qmr5szvh8tL5pkH0= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=cherry.de; spf=pass smtp.mailfrom=cherry.de; dkim=pass (1024-bit key) header.d=cherry.de header.i=@cherry.de header.b=aFcY9Du8; arc=fail smtp.client-ip=40.107.13.112 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=cherry.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=cherry.de ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TxfwZt0pbIP0B9NGWu2AADglBzVaQd6Yu0ls4rKF5wg4fR6Fez8jBQAlitZXaNxsepz+2rr5Is9XCZ1SZn92/qBbxelXmEcy9K45R3lGBRZZ/g+7cxxev3xkdZOMoYk2aPmtn7Ws6sbZKbVJNvS8iwdgCjQAr+28S7SP8ZlTXv6hDf0MKsmv+Bj5iJjjuceqnpPWbySbPra9Vb6lkvTEpHdLmCUcFWzuoNZmVvWnAYiTHrUl4z/TLadjVZxbWV7MZJybFcDz0hgTfMQotXMn+Io3wHEmj0+UUo91fD7P5LsZwFRjc2/x5YfvMax7ekW5T5II0nDme2wC4U+Cko5KKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=/k0fgC3Lsv+04nI5OpO/B8yZWyhx77vobRALgeXRhrw=; b=XnSjnFARSfAwaYuJwEGR3JsgmS9PDNmbiF85HD36CF7HqQ1JQC30X6feYu7BeiNd2+ZCiOXUQ6kMv1qA6tyPmuYJukfLuT50zosXlnC/l7wZyS8yOMGLhCrSddtSFtNBw9b12gCPNaYzzwu8IO+H6gjsP65YSVy44msDwrZ3oMdjdlrnH7wEJ8TLJB90cfmFckOIpmNau9UObuBSGKyGoiXq3KFHS3jnlhc93d5QzQKpYfrirOtXnncPRQBlQzx5pey6maj2YZ9sZNHFPVqpD9MQ1SlpFOeNe4gyofM0fHpVbq3FXvhjVoije6qaPhCUS9THVToJEfp9Oubnbnfy7g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cherry.de; dmarc=pass action=none header.from=cherry.de; dkim=pass header.d=cherry.de; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cherry.de; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/k0fgC3Lsv+04nI5OpO/B8yZWyhx77vobRALgeXRhrw=; b=aFcY9Du8KEFV/NkPIzcRiS9MOYbHgW40cnvha7fmq2BM8tcTLcYqMiRw5bKmWeSoYqYSgMXOXoMgAR+p01tSnqBq7HApaYle3A+c0o0H2wmgQsYAhZgIJ57hrlabfZFjyY5SApXtBi2VdkB3U1pz6DeHRZY7QW7AbHWwmdqFcws= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=cherry.de; Received: from DB7PR04MB4842.eurprd04.prod.outlook.com (2603:10a6:10:1b::13) by PAXPR04MB8352.eurprd04.prod.outlook.com (2603:10a6:102:1cd::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.30; Fri, 3 May 2024 12:57:05 +0000 Received: from DB7PR04MB4842.eurprd04.prod.outlook.com ([fe80::ac08:df46:97bd:4ae6]) by DB7PR04MB4842.eurprd04.prod.outlook.com ([fe80::ac08:df46:97bd:4ae6%6]) with mapi id 15.20.7544.029; Fri, 3 May 2024 12:57:05 +0000 Message-ID: <062d86ab-1518-4160-870c-3cd36228d055@cherry.de> Date: Fri, 3 May 2024 14:57:03 +0200 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/2] drm/rockchip: vop2: configure layers for vp3 on rk3588 To: Heiko Stuebner Cc: hjc@rock-chips.com, andy.yan@rock-chips.com, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Heiko Stuebner References: <20240425195506.2935955-1-heiko@sntech.de> <20240425195506.2935955-3-heiko@sntech.de> Content-Language: en-US From: Quentin Schulz In-Reply-To: <20240425195506.2935955-3-heiko@sntech.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: WA1P291CA0013.POLP291.PROD.OUTLOOK.COM (2603:10a6:1d0:19::16) To DB7PR04MB4842.eurprd04.prod.outlook.com (2603:10a6:10:1b::13) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB7PR04MB4842:EE_|PAXPR04MB8352:EE_ X-MS-Office365-Filtering-Correlation-Id: 79bf0adb-8e86-43b5-a4ef-08dc6b7088af X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|376005|1800799015|366007; X-Microsoft-Antispam-Message-Info: =?utf-8?B?czlXL0xCZzVGQmxsRStZSGlOcDdTb0lvU3h4NklhcTNaZkFzNGdkalJFQzhM?= =?utf-8?B?ek5vd08xYlhCQ242T2FiczNaVjVxN2tPNmJIYlZ2Y29CcjFVWWUyRndhSkta?= =?utf-8?B?Qkk5eWdWdEtRamRhS1RFSzRHeHBTWThYUVZTclhreWZwS056NENXV3pEZ21W?= =?utf-8?B?SkJoSGozbVpkYUg4M1puOUdVMVBpbjNLaldpcEJGcENETlFxckVlT08rRURt?= =?utf-8?B?QlZxUkQ3YytZQnZIeEZOY2IzZjc4MU4vWDFZSEVBS0EvYlAxekpuVzRVaDdB?= =?utf-8?B?QW1ENkUrbFpLZnBtZ3E2eDdPSi9jS1VGemExekM2Y3pIbm52ZjVKcTdSZEox?= =?utf-8?B?UVJZaENMVC8yYzE0QnU5NEY3bnA2WWcvT2g5YmRtQzZkMFhNWEV4eEZsQVZz?= =?utf-8?B?RVQ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SZ0tlTXd4OU05ZER3?= =?utf-8?B?eXNhUnpaZjhTZmJKYVhvcWRWREJ0Q3ExMDdaeVJhTi9TVUplUWViNHo4UVJn?= =?utf-8?B?M01wN3BaeVFDb1VETWJyendvL2Z3NmJaRUhKbVRYS2lNMUVjRWl6WGhpb1ZO?= =?utf-8?B?VzM3M293c1RDcnVqd2doL3F5b3BGS2NMam9WNFc5eGRGZG4veUJlNUVPK3dN?= =?utf-8?B?aGgvUnJzck1sY1VZc25YZDNyU0FKQzQ1bmo4MEdzTVdBVTRtQnBtQUxpcFJM?= =?utf-8?B?WW5NVkZadklkUEZQWGR5QWJmTm1zM3NoeW90bTlWTzBjdlVMMVFEZjFIU0xL?= =?utf-8?B?cTlYOUkxbTYyUStpRTZKY1ZRZ25YQndxS21Rc01oZm1mUGZ5R0Q2cU80MTE4?= =?utf-8?B?VEdWc08rYzZUbzB0cm1JbnJGR1JyVTVsTDA4YUlocTk0RUNObm5uaytBPT0=?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB7PR04MB4842.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(1800799015)(366007);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?aVNjVEp4d08rS0hnRS9CSU1JTEZobStEbm5veVRtYTI0UDFwdzBxVThTSTVJ?= =?utf-8?B?WHBvMWROMUpyUWowMzg4M3M3S1Mzd0RNaHZmOWVKdm9YalNFbHZkaGtGdVdk?= =?utf-8?B?ckhxT1dxcmxpdEZjWnRZTGgvTEo0ZlYySzIwQThOamdEbGZUUHE1YlFoMkk0?= =?utf-8?B?a3o2M1FpTU9vbHNpbmNHdzNwU25tRXY3TlZOMTB1STFack44TkxFV2xPSDFq?= =?utf-8?B?d01BZHVTeDdoelBSZ25lTHNSSnZPZmhLbmZ3RkJ3OWh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ditEVmxISFBpWkRTVEoyczlsYXNDVDVEdksx?= =?utf-8?B?TFBDYVpwNWR1OSswOW9LZDk2b3kvVGJHRlJJSDlEblZUYzJsNHUrT091dlpN?= =?utf-8?B?S1E9PQ==?= X-OriginatorOrg: cherry.de X-MS-Exchange-CrossTenant-Network-Message-Id: 79bf0adb-8e86-43b5-a4ef-08dc6b7088af X-MS-Exchange-CrossTenant-AuthSource: DB7PR04MB4842.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 May 2024 12:57:05.4937 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 5e0e1b52-21b5-4e7b-83bb-514ec460677e X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: TcmikpbHMykAYstIDM9k8MDten0EaXXKdvqdFG28XEobvxLMp7aA/gnZdxk1EEpdk/jQ81kccHgpxtgHTHsoA7kPTS+auksb3PFQa9e6bPA= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8352 Hi Heiko, On 4/25/24 9:55 PM, Heiko Stuebner wrote: > From: Heiko Stuebner > > The rk3588 VOP2 has 4 video-ports, yet the driver currently only > configures the first 3, as used on the rk3568. > I'm wondering whether we should update the drawing at the top of the driver then? > Add another block to configure the vp3 as well, if applicable. > > Fixes: 5a028e8f062f ("drm/rockchip: vop2: Add support for rk3588") > Signed-off-by: Heiko Stuebner > --- > drivers/gpu/drm/rockchip/rockchip_drm_vop2.c | 12 ++++++++++++ > drivers/gpu/drm/rockchip/rockchip_drm_vop2.h | 1 + > 2 files changed, 13 insertions(+) > > diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop2.c b/drivers/gpu/drm/rockchip/rockchip_drm_vop2.c > index 523880a4e8e74..1a327a9ed7ee4 100644 > --- a/drivers/gpu/drm/rockchip/rockchip_drm_vop2.c > +++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop2.c > @@ -2303,6 +2303,7 @@ static void vop2_setup_alpha(struct vop2_video_port *vp) > static void vop2_setup_layer_mixer(struct vop2_video_port *vp) > { > struct vop2 *vop2 = vp->vop2; > + const struct vop2_data *vop2_data = vop2->data; > struct drm_plane *plane; > u32 layer_sel = 0; > u32 port_sel; > @@ -2344,6 +2345,17 @@ static void vop2_setup_layer_mixer(struct vop2_video_port *vp) > else > port_sel |= FIELD_PREP(RK3568_OVL_PORT_SET__PORT2_MUX, 8); > > + /* configure vp3 */ > + if (vop2_data->soc_id == 3588) { I think it'd be smarter to check against vop2->data->nr_vps >= 4; so that we don't need to maintain a list of SoCs that support a specific number of video ports. > + struct vop2_video_port *vp3 = &vop2->vps[3]; This is always possible because vps is statically allocated for 4 items, c.f. struct vop2_video_port vps[ROCKCHIP_MAX_CRTC]; so we don't necessarily need it in this specific location and can group it with the others. Cosmetic suggestion though. Otherwise, the change itself makes sense to me, so: Reviewed-by: Quentin Schulz Thanks! Quentin