* [PATCH drm-misc-next] drm: verisilicon: fix build failure of cursor plane code
@ 2026-05-25 15:36 Icenowy Zheng
2026-05-26 7:44 ` Jani Nikula
2026-05-26 7:52 ` Thomas Zimmermann
0 siblings, 2 replies; 6+ messages in thread
From: Icenowy Zheng @ 2026-05-25 15:36 UTC (permalink / raw)
To: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann,
David Airlie, Simona Vetter, Dmitry Baryshkov, Mark Brown
Cc: dri-devel, linux-kernel, Icenowy Zheng, Icenowy Zheng
The cursor plane patch was stalled for a too long time that the
struct drm_atomic_state parameter of atomic modeset hooks has been
changed to struct drm_atomic_commit.
Fix this by replacing the parameter's type. All helpers that retrieve
information from this struct are also changed so simply replacing the
type works.
Fixes: 8c4ae2189125 ("drm: verisilicon: add support for cursor planes")
Signed-off-by: Icenowy Zheng <zhengxingda@iscas.ac.cn>
---
drivers/gpu/drm/verisilicon/vs_cursor_plane.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/verisilicon/vs_cursor_plane.c b/drivers/gpu/drm/verisilicon/vs_cursor_plane.c
index acb9854fa67ed..fa4f601dd0c87 100644
--- a/drivers/gpu/drm/verisilicon/vs_cursor_plane.c
+++ b/drivers/gpu/drm/verisilicon/vs_cursor_plane.c
@@ -40,7 +40,7 @@ static bool vs_cursor_plane_check_coord(int32_t coord)
}
static int vs_cursor_plane_atomic_check(struct drm_plane *plane,
- struct drm_atomic_state *state)
+ struct drm_atomic_commit *state)
{
struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state,
plane);
@@ -98,7 +98,7 @@ static void vs_cursor_plane_commit(struct vs_dc *dc, unsigned int output)
}
static void vs_cursor_plane_atomic_enable(struct drm_plane *plane,
- struct drm_atomic_state *atomic_state)
+ struct drm_atomic_commit *atomic_state)
{
struct drm_plane_state *state = drm_atomic_get_new_plane_state(atomic_state,
plane);
@@ -115,7 +115,7 @@ static void vs_cursor_plane_atomic_enable(struct drm_plane *plane,
}
static void vs_cursor_plane_atomic_disable(struct drm_plane *plane,
- struct drm_atomic_state *atomic_state)
+ struct drm_atomic_commit *atomic_state)
{
struct drm_plane_state *state = drm_atomic_get_old_plane_state(atomic_state,
plane);
@@ -132,7 +132,7 @@ static void vs_cursor_plane_atomic_disable(struct drm_plane *plane,
}
static void vs_cursor_plane_atomic_update(struct drm_plane *plane,
- struct drm_atomic_state *atomic_state)
+ struct drm_atomic_commit *atomic_state)
{
struct drm_plane_state *state = drm_atomic_get_new_plane_state(atomic_state,
plane);
--
2.52.0
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [PATCH drm-misc-next] drm: verisilicon: fix build failure of cursor plane code
2026-05-25 15:36 [PATCH drm-misc-next] drm: verisilicon: fix build failure of cursor plane code Icenowy Zheng
@ 2026-05-26 7:44 ` Jani Nikula
2026-05-26 7:45 ` Icenowy Zheng
2026-05-26 7:55 ` Icenowy Zheng
2026-05-26 7:52 ` Thomas Zimmermann
1 sibling, 2 replies; 6+ messages in thread
From: Jani Nikula @ 2026-05-26 7:44 UTC (permalink / raw)
To: Icenowy Zheng, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, David Airlie, Simona Vetter, Dmitry Baryshkov,
Mark Brown
Cc: dri-devel, linux-kernel, Icenowy Zheng, Icenowy Zheng
On Mon, 25 May 2026, Icenowy Zheng <zhengxingda@iscas.ac.cn> wrote:
> The cursor plane patch was stalled for a too long time that the
> struct drm_atomic_state parameter of atomic modeset hooks has been
> changed to struct drm_atomic_commit.
Yeah, but that was merged in the same branch three weeks ago. Did you
not build the changes before pushing?
BR,
Jani.
> Fix this by replacing the parameter's type. All helpers that retrieve
> information from this struct are also changed so simply replacing the
> type works.
>
> Fixes: 8c4ae2189125 ("drm: verisilicon: add support for cursor planes")
> Signed-off-by: Icenowy Zheng <zhengxingda@iscas.ac.cn>
> ---
> drivers/gpu/drm/verisilicon/vs_cursor_plane.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/gpu/drm/verisilicon/vs_cursor_plane.c b/drivers/gpu/drm/verisilicon/vs_cursor_plane.c
> index acb9854fa67ed..fa4f601dd0c87 100644
> --- a/drivers/gpu/drm/verisilicon/vs_cursor_plane.c
> +++ b/drivers/gpu/drm/verisilicon/vs_cursor_plane.c
> @@ -40,7 +40,7 @@ static bool vs_cursor_plane_check_coord(int32_t coord)
> }
>
> static int vs_cursor_plane_atomic_check(struct drm_plane *plane,
> - struct drm_atomic_state *state)
> + struct drm_atomic_commit *state)
> {
> struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state,
> plane);
> @@ -98,7 +98,7 @@ static void vs_cursor_plane_commit(struct vs_dc *dc, unsigned int output)
> }
>
> static void vs_cursor_plane_atomic_enable(struct drm_plane *plane,
> - struct drm_atomic_state *atomic_state)
> + struct drm_atomic_commit *atomic_state)
> {
> struct drm_plane_state *state = drm_atomic_get_new_plane_state(atomic_state,
> plane);
> @@ -115,7 +115,7 @@ static void vs_cursor_plane_atomic_enable(struct drm_plane *plane,
> }
>
> static void vs_cursor_plane_atomic_disable(struct drm_plane *plane,
> - struct drm_atomic_state *atomic_state)
> + struct drm_atomic_commit *atomic_state)
> {
> struct drm_plane_state *state = drm_atomic_get_old_plane_state(atomic_state,
> plane);
> @@ -132,7 +132,7 @@ static void vs_cursor_plane_atomic_disable(struct drm_plane *plane,
> }
>
> static void vs_cursor_plane_atomic_update(struct drm_plane *plane,
> - struct drm_atomic_state *atomic_state)
> + struct drm_atomic_commit *atomic_state)
> {
> struct drm_plane_state *state = drm_atomic_get_new_plane_state(atomic_state,
> plane);
--
Jani Nikula, Intel
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [PATCH drm-misc-next] drm: verisilicon: fix build failure of cursor plane code
2026-05-26 7:44 ` Jani Nikula
@ 2026-05-26 7:45 ` Icenowy Zheng
2026-05-26 8:31 ` Jani Nikula
2026-05-26 7:55 ` Icenowy Zheng
1 sibling, 1 reply; 6+ messages in thread
From: Icenowy Zheng @ 2026-05-26 7:45 UTC (permalink / raw)
To: Jani Nikula, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann,
David Airlie, Simona Vetter, Dmitry Baryshkov, Mark Brown
Cc: dri-devel, linux-kernel
在 2026-05-26二的 10:44 +0300,Jani Nikula写道:
> On Mon, 25 May 2026, Icenowy Zheng <zhengxingda@iscas.ac.cn> wrote:
> > The cursor plane patch was stalled for a too long time that the
> > struct drm_atomic_state parameter of atomic modeset hooks has been
> > changed to struct drm_atomic_commit.
>
> Yeah, but that was merged in the same branch three weeks ago. Did you
> not build the changes before pushing?
Oops, I thought I built the changes before sending the patch, so I
didn't do a build before pushing.
Sorry for this.
Thanks,
Icenowy
>
> BR,
> Jani.
>
> > Fix this by replacing the parameter's type. All helpers that
> > retrieve
> > information from this struct are also changed so simply replacing
> > the
> > type works.
> >
> > Fixes: 8c4ae2189125 ("drm: verisilicon: add support for cursor
> > planes")
> > Signed-off-by: Icenowy Zheng <zhengxingda@iscas.ac.cn>
> > ---
> > drivers/gpu/drm/verisilicon/vs_cursor_plane.c | 8 ++++----
> > 1 file changed, 4 insertions(+), 4 deletions(-)
> >
> > diff --git a/drivers/gpu/drm/verisilicon/vs_cursor_plane.c
> > b/drivers/gpu/drm/verisilicon/vs_cursor_plane.c
> > index acb9854fa67ed..fa4f601dd0c87 100644
> > --- a/drivers/gpu/drm/verisilicon/vs_cursor_plane.c
> > +++ b/drivers/gpu/drm/verisilicon/vs_cursor_plane.c
> > @@ -40,7 +40,7 @@ static bool vs_cursor_plane_check_coord(int32_t
> > coord)
> > }
> >
> > static int vs_cursor_plane_atomic_check(struct drm_plane *plane,
> > - struct drm_atomic_state
> > *state)
> > + struct drm_atomic_commit
> > *state)
> > {
> > struct drm_plane_state *new_plane_state =
> > drm_atomic_get_new_plane_state(state,
> >
> > plane);
> > @@ -98,7 +98,7 @@ static void vs_cursor_plane_commit(struct vs_dc
> > *dc, unsigned int output)
> > }
> >
> > static void vs_cursor_plane_atomic_enable(struct drm_plane *plane,
> > - struct drm_atomic_state
> > *atomic_state)
> > + struct
> > drm_atomic_commit *atomic_state)
> > {
> > struct drm_plane_state *state =
> > drm_atomic_get_new_plane_state(atomic_state,
> >
> > plane);
> > @@ -115,7 +115,7 @@ static void
> > vs_cursor_plane_atomic_enable(struct drm_plane *plane,
> > }
> >
> > static void vs_cursor_plane_atomic_disable(struct drm_plane
> > *plane,
> > - struct
> > drm_atomic_state *atomic_state)
> > + struct
> > drm_atomic_commit *atomic_state)
> > {
> > struct drm_plane_state *state =
> > drm_atomic_get_old_plane_state(atomic_state,
> >
> > plane);
> > @@ -132,7 +132,7 @@ static void
> > vs_cursor_plane_atomic_disable(struct drm_plane *plane,
> > }
> >
> > static void vs_cursor_plane_atomic_update(struct drm_plane *plane,
> > - struct drm_atomic_state
> > *atomic_state)
> > + struct
> > drm_atomic_commit *atomic_state)
> > {
> > struct drm_plane_state *state =
> > drm_atomic_get_new_plane_state(atomic_state,
> >
> > plane);
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [PATCH drm-misc-next] drm: verisilicon: fix build failure of cursor plane code
2026-05-26 7:45 ` Icenowy Zheng
@ 2026-05-26 8:31 ` Jani Nikula
0 siblings, 0 replies; 6+ messages in thread
From: Jani Nikula @ 2026-05-26 8:31 UTC (permalink / raw)
To: Icenowy Zheng, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, David Airlie, Simona Vetter, Dmitry Baryshkov,
Mark Brown
Cc: dri-devel, linux-kernel
On Tue, 26 May 2026, Icenowy Zheng <uwu@icenowy.me> wrote:
> 在 2026-05-26二的 10:44 +0300,Jani Nikula写道:
>> On Mon, 25 May 2026, Icenowy Zheng <zhengxingda@iscas.ac.cn> wrote:
>> > The cursor plane patch was stalled for a too long time that the
>> > struct drm_atomic_state parameter of atomic modeset hooks has been
>> > changed to struct drm_atomic_commit.
>>
>> Yeah, but that was merged in the same branch three weeks ago. Did you
>> not build the changes before pushing?
>
> Oops, I thought I built the changes before sending the patch, so I
> didn't do a build before pushing.
There's so much change going on that you always need to build right
before pushing. If someone beat you to it, and you need to pull and
rebase, you basically need to build again. You never know what and how
much changed.
BR,
Jani.
--
Jani Nikula, Intel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH drm-misc-next] drm: verisilicon: fix build failure of cursor plane code
2026-05-26 7:44 ` Jani Nikula
2026-05-26 7:45 ` Icenowy Zheng
@ 2026-05-26 7:55 ` Icenowy Zheng
1 sibling, 0 replies; 6+ messages in thread
From: Icenowy Zheng @ 2026-05-26 7:55 UTC (permalink / raw)
To: Jani Nikula, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann,
David Airlie, Simona Vetter, Dmitry Baryshkov, Mark Brown
Cc: dri-devel, linux-kernel
在 2026-05-26二的 10:44 +0300,Jani Nikula写道:
> On Mon, 25 May 2026, Icenowy Zheng <zhengxingda@iscas.ac.cn> wrote:
> > The cursor plane patch was stalled for a too long time that the
> > struct drm_atomic_state parameter of atomic modeset hooks has been
> > changed to struct drm_atomic_commit.
>
> Yeah, but that was merged in the same branch three weeks ago. Did you
> not build the changes before pushing?
Oops this driver is not yet compiled with rerere configs on x86/arm*
(maybe because currently only some RISC-V SoC is supported -- Nuvoton
people is adding support for their MA35D1 SoC to it).
Thanks,
Icenowy
>
> BR,
> Jani.
>
> > Fix this by replacing the parameter's type. All helpers that
> > retrieve
> > information from this struct are also changed so simply replacing
> > the
> > type works.
> >
> > Fixes: 8c4ae2189125 ("drm: verisilicon: add support for cursor
> > planes")
> > Signed-off-by: Icenowy Zheng <zhengxingda@iscas.ac.cn>
> > ---
> > drivers/gpu/drm/verisilicon/vs_cursor_plane.c | 8 ++++----
> > 1 file changed, 4 insertions(+), 4 deletions(-)
> >
> > diff --git a/drivers/gpu/drm/verisilicon/vs_cursor_plane.c
> > b/drivers/gpu/drm/verisilicon/vs_cursor_plane.c
> > index acb9854fa67ed..fa4f601dd0c87 100644
> > --- a/drivers/gpu/drm/verisilicon/vs_cursor_plane.c
> > +++ b/drivers/gpu/drm/verisilicon/vs_cursor_plane.c
> > @@ -40,7 +40,7 @@ static bool vs_cursor_plane_check_coord(int32_t
> > coord)
> > }
> >
> > static int vs_cursor_plane_atomic_check(struct drm_plane *plane,
> > - struct drm_atomic_state
> > *state)
> > + struct drm_atomic_commit
> > *state)
> > {
> > struct drm_plane_state *new_plane_state =
> > drm_atomic_get_new_plane_state(state,
> >
> > plane);
> > @@ -98,7 +98,7 @@ static void vs_cursor_plane_commit(struct vs_dc
> > *dc, unsigned int output)
> > }
> >
> > static void vs_cursor_plane_atomic_enable(struct drm_plane *plane,
> > - struct drm_atomic_state
> > *atomic_state)
> > + struct
> > drm_atomic_commit *atomic_state)
> > {
> > struct drm_plane_state *state =
> > drm_atomic_get_new_plane_state(atomic_state,
> >
> > plane);
> > @@ -115,7 +115,7 @@ static void
> > vs_cursor_plane_atomic_enable(struct drm_plane *plane,
> > }
> >
> > static void vs_cursor_plane_atomic_disable(struct drm_plane
> > *plane,
> > - struct
> > drm_atomic_state *atomic_state)
> > + struct
> > drm_atomic_commit *atomic_state)
> > {
> > struct drm_plane_state *state =
> > drm_atomic_get_old_plane_state(atomic_state,
> >
> > plane);
> > @@ -132,7 +132,7 @@ static void
> > vs_cursor_plane_atomic_disable(struct drm_plane *plane,
> > }
> >
> > static void vs_cursor_plane_atomic_update(struct drm_plane *plane,
> > - struct drm_atomic_state
> > *atomic_state)
> > + struct
> > drm_atomic_commit *atomic_state)
> > {
> > struct drm_plane_state *state =
> > drm_atomic_get_new_plane_state(atomic_state,
> >
> > plane);
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH drm-misc-next] drm: verisilicon: fix build failure of cursor plane code
2026-05-25 15:36 [PATCH drm-misc-next] drm: verisilicon: fix build failure of cursor plane code Icenowy Zheng
2026-05-26 7:44 ` Jani Nikula
@ 2026-05-26 7:52 ` Thomas Zimmermann
1 sibling, 0 replies; 6+ messages in thread
From: Thomas Zimmermann @ 2026-05-26 7:52 UTC (permalink / raw)
To: Icenowy Zheng, Maarten Lankhorst, Maxime Ripard, David Airlie,
Simona Vetter, Dmitry Baryshkov, Mark Brown
Cc: dri-devel, linux-kernel, Icenowy Zheng
Am 25.05.26 um 17:36 schrieb Icenowy Zheng:
> The cursor plane patch was stalled for a too long time that the
> struct drm_atomic_state parameter of atomic modeset hooks has been
> changed to struct drm_atomic_commit.
>
> Fix this by replacing the parameter's type. All helpers that retrieve
> information from this struct are also changed so simply replacing the
> type works.
>
> Fixes: 8c4ae2189125 ("drm: verisilicon: add support for cursor planes")
> Signed-off-by: Icenowy Zheng <zhengxingda@iscas.ac.cn>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
> ---
> drivers/gpu/drm/verisilicon/vs_cursor_plane.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/gpu/drm/verisilicon/vs_cursor_plane.c b/drivers/gpu/drm/verisilicon/vs_cursor_plane.c
> index acb9854fa67ed..fa4f601dd0c87 100644
> --- a/drivers/gpu/drm/verisilicon/vs_cursor_plane.c
> +++ b/drivers/gpu/drm/verisilicon/vs_cursor_plane.c
> @@ -40,7 +40,7 @@ static bool vs_cursor_plane_check_coord(int32_t coord)
> }
>
> static int vs_cursor_plane_atomic_check(struct drm_plane *plane,
> - struct drm_atomic_state *state)
> + struct drm_atomic_commit *state)
> {
> struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state,
> plane);
> @@ -98,7 +98,7 @@ static void vs_cursor_plane_commit(struct vs_dc *dc, unsigned int output)
> }
>
> static void vs_cursor_plane_atomic_enable(struct drm_plane *plane,
> - struct drm_atomic_state *atomic_state)
> + struct drm_atomic_commit *atomic_state)
> {
> struct drm_plane_state *state = drm_atomic_get_new_plane_state(atomic_state,
> plane);
> @@ -115,7 +115,7 @@ static void vs_cursor_plane_atomic_enable(struct drm_plane *plane,
> }
>
> static void vs_cursor_plane_atomic_disable(struct drm_plane *plane,
> - struct drm_atomic_state *atomic_state)
> + struct drm_atomic_commit *atomic_state)
> {
> struct drm_plane_state *state = drm_atomic_get_old_plane_state(atomic_state,
> plane);
> @@ -132,7 +132,7 @@ static void vs_cursor_plane_atomic_disable(struct drm_plane *plane,
> }
>
> static void vs_cursor_plane_atomic_update(struct drm_plane *plane,
> - struct drm_atomic_state *atomic_state)
> + struct drm_atomic_commit *atomic_state)
> {
> struct drm_plane_state *state = drm_atomic_get_new_plane_state(atomic_state,
> plane);
--
--
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Frankenstr. 146, 90461 Nürnberg, Germany, www.suse.com
GF: Jochen Jaser, Andrew McDonald, Werner Knoblich, (HRB 36809, AG Nürnberg)
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2026-05-26 8:32 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-05-25 15:36 [PATCH drm-misc-next] drm: verisilicon: fix build failure of cursor plane code Icenowy Zheng
2026-05-26 7:44 ` Jani Nikula
2026-05-26 7:45 ` Icenowy Zheng
2026-05-26 8:31 ` Jani Nikula
2026-05-26 7:55 ` Icenowy Zheng
2026-05-26 7:52 ` Thomas Zimmermann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®