From: "Andy Yan" <andyshrk@163.com>
To: "Heiko Stübner" <heiko@sntech.de>
Cc: hjc@rock-chips.com, krzk+dt@kernel.org,
devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org,
derek.foreman@collabora.com, detlev.casanova@collabora.com,
daniel@fooishbar.org, robh@kernel.org,
sebastian.reichel@collabora.com,
"Andy Yan" <andy.yan@rock-chips.com>,
"Michael Riesch" <michael.riesch@wolfvision.net>
Subject: Re:Re: [PATCH v15 07/13] drm/rockchip: vop2: Register the primary plane and overlay plane separately
Date: Mon, 3 Mar 2025 14:17:50 +0800 (CST) [thread overview]
Message-ID: <1c3ed06d.5e89.1955aa75521.Coremail.andyshrk@163.com> (raw)
In-Reply-To: <2759797.BddDVKsqQX@diego>
Hi Heiko,
At 2025-03-03 02:57:50, "Heiko Stübner" <heiko@sntech.de> wrote:
>Hi Andy,
>
>Am Dienstag, 18. Februar 2025, 12:27:34 MEZ schrieb Andy Yan:
>> From: Andy Yan <andy.yan@rock-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@rock-chips.com>
>> Tested-by: Michael Riesch <michael.riesch@wolfvision.net> # on RK3568
>> Tested-by: Detlev Casanova <detlev.casanova@collabora.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
Thank you.
I sent V16 with the remaining patches rebased on drm-misc-next, and fix the style issues.
>
>
>> - 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
>
>
_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip
next prev parent reply other threads:[~2025-03-03 6:20 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-18 11:27 [PATCH v15 00/13] VOP Support for rk3576 Andy Yan
2025-02-18 11:27 ` [PATCH v15 01/13] drm/rockchip: vop2: use devm_regmap_field_alloc for cluster-regs Andy Yan
2025-02-18 11:27 ` [PATCH v15 02/13] drm/rockchip: vop2: Remove AFBC from TRANSFORM_OFFSET register macro Andy Yan
2025-02-18 11:27 ` [PATCH v15 03/13] drm/rockchip: vop2: Add platform specific callback Andy Yan
2025-02-18 11:27 ` [PATCH v15 04/13] drm/rockchip: vop2: Merge vop2_cluster/esmart_init function Andy Yan
2025-02-18 11:27 ` [PATCH v15 05/13] drm/rockchip: vop2: Support for different layer select configuration between VPs Andy Yan
2025-02-18 11:27 ` [PATCH v15 06/13] drm/rockchip: vop2: Introduce vop hardware version Andy Yan
2025-02-18 11:27 ` [PATCH v15 07/13] drm/rockchip: vop2: Register the primary plane and overlay plane separately Andy Yan
2025-03-02 18:57 ` Heiko Stübner
2025-03-03 6:17 ` Andy Yan [this message]
2025-02-18 11:27 ` [PATCH v15 08/13] drm/rockchip: vop2: Set plane possible crtcs by possible vp mask Andy Yan
2025-02-18 11:27 ` [PATCH v15 09/13] drm/rockchip: vop2: Add uv swap for cluster window Andy Yan
2025-02-18 11:27 ` [PATCH v15 10/13] dt-bindings: display: vop2: describe constraint SoC by SoC Andy Yan
2025-02-18 11:28 ` [PATCH v15 11/13] dt-bindings: display: vop2: Add missing rockchip,grf property for rk3566/8 Andy Yan
2025-02-18 11:28 ` [PATCH v15 12/13] dt-bindings: display: vop2: Add rk3576 support Andy Yan
2025-02-18 11:28 ` [PATCH v15 13/13] drm/rockchip: vop2: Add support for rk3576 Andy Yan
2025-03-02 19:09 ` Heiko Stübner
2025-03-02 12:01 ` Re:[PATCH v15 00/13] VOP Support " Andy Yan
2025-03-02 18:34 ` (subset) [PATCH " Heiko Stuebner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1c3ed06d.5e89.1955aa75521.Coremail.andyshrk@163.com \
--to=andyshrk@163.com \
--cc=andy.yan@rock-chips.com \
--cc=daniel@fooishbar.org \
--cc=derek.foreman@collabora.com \
--cc=detlev.casanova@collabora.com \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=heiko@sntech.de \
--cc=hjc@rock-chips.com \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=michael.riesch@wolfvision.net \
--cc=robh@kernel.org \
--cc=sebastian.reichel@collabora.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox