[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <2759797.BddDVKsqQX@diego>
Date: Sun, 02 Mar 2025 19:57:50 +0100
From: Heiko Stübner <heiko@...ech.de>
To: Andy Yan <andyshrk@....com>
Cc: hjc@...k-chips.com, krzk+dt@...nel.org, devicetree@...r.kernel.org,
dri-devel@...ts.freedesktop.org, linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org, linux-rockchip@...ts.infradead.org,
derek.foreman@...labora.com, detlev.casanova@...labora.com,
daniel@...ishbar.org, robh@...nel.org, sebastian.reichel@...labora.com,
Andy Yan <andy.yan@...k-chips.com>,
Michael Riesch <michael.riesch@...fvision.net>
Subject:
Re: [PATCH v15 07/13] drm/rockchip: vop2: Register the primary plane and
overlay plane separately
Hi Andy,
Am Dienstag, 18. Februar 2025, 12:27:34 MEZ schrieb Andy Yan:
> From: Andy Yan <andy.yan@...k-chips.com>
>
> In the upcoming VOP of rk3576, a Window cannot attach to all Video Ports,
> so make sure all VP find it's suitable primary plane, then register the
> remain windows as overlay plane will make code easier.
>
> Signed-off-by: Andy Yan <andy.yan@...k-chips.com>
> Tested-by: Michael Riesch <michael.riesch@...fvision.net> # on RK3568
> Tested-by: Detlev Casanova <detlev.casanova@...labora.com>
>
> ---
patches 7-9 look good to go, but ...
this needs a rebase to adapt to
"drm/rockchip: vop2: Consistently use dev_err_probe()" [0]
[0] https://gitlab.freedesktop.org/drm/misc/kernel/-/commit/b06d1ef3355571383cdb463cf0195b7a02efdfbf
> - if (win->type == DRM_PLANE_TYPE_PRIMARY) {
> - vp = find_vp_without_primary(vop2);
> - if (vp) {
> + if (vop2_is_mirror_win(win))
> + continue;
> +
> + if (win->type == DRM_PLANE_TYPE_PRIMARY) {
> possible_crtcs = BIT(nvp);
> vp->primary_plane = win;
> + ret = vop2_plane_init(vop2, win, possible_crtcs);
> + if (ret) {
> + drm_err(vop2->drm, "failed to init primary plane %s: %d\n",
> + win->data->name, ret);
should also use dev_err_probe
Heiko
Powered by blists - more mailing lists