diff mbox series

[13/15] drm/mediatek: Add missing plane settings when async update

Message ID 20230823151332.28811-14-shawn.sung@mediatek.com (mailing list archive)
State New, archived
Headers show
Series Support IGT in display driver | expand

Commit Message

Shawn Sung (宋孝謙) Aug. 23, 2023, 3:13 p.m. UTC
Fix an issue that plane coordinate was not saved when
calling async update.

Signed-off-by: Hsiao Chien Sung <shawn.sung@mediatek.com>
---
 drivers/gpu/drm/mediatek/mtk_drm_plane.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

AngeloGioacchino Del Regno Sept. 7, 2023, 12:33 p.m. UTC | #1
Il 23/08/23 17:13, Hsiao Chien Sung ha scritto:
> Fix an issue that plane coordinate was not saved when
> calling async update.
> 
> Signed-off-by: Hsiao Chien Sung <shawn.sung@mediatek.com>

 From what I understand, this is a fix for an issue that was present before
your newly introduced code.

This means that you want to add a Fixes tag, and that you should also send
this commit separately from the IGT series. Please do that.

Thanks,
Angelo

> ---
>   drivers/gpu/drm/mediatek/mtk_drm_plane.c | 2 ++
>   1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/gpu/drm/mediatek/mtk_drm_plane.c b/drivers/gpu/drm/mediatek/mtk_drm_plane.c
> index ca22d02375d5..dc19827f6927 100644
> --- a/drivers/gpu/drm/mediatek/mtk_drm_plane.c
> +++ b/drivers/gpu/drm/mediatek/mtk_drm_plane.c
> @@ -210,6 +210,8 @@ static void mtk_plane_atomic_async_update(struct drm_plane *plane,
>   	plane->state->src_y = new_state->src_y;
>   	plane->state->src_h = new_state->src_h;
>   	plane->state->src_w = new_state->src_w;
> +	plane->state->dst.x1 = new_state->dst.x1;
> +	plane->state->dst.y1 = new_state->dst.y1;
>   	swap(plane->state->fb, new_state->fb);
>   
>   	mtk_plane_update_new_state(new_state, new_plane_state);
Shawn Sung (宋孝謙) Sept. 11, 2023, 1:45 p.m. UTC | #2
Hi Angelo,

On Thu, 2023-09-07 at 14:33 +0200, AngeloGioacchino Del Regno wrote:
> Il 23/08/23 17:13, Hsiao Chien Sung ha scritto:
> > Fix an issue that plane coordinate was not saved when
> > calling async update.
> > 
> > Signed-off-by: Hsiao Chien Sung <shawn.sung@mediatek.com>
> 
>  From what I understand, this is a fix for an issue that was present
> before
> your newly introduced code.
> 
> This means that you want to add a Fixes tag, and that you should also
> send
> this commit separately from the IGT series. Please do that.

Got it, will add a fix tag in the next version. But since without this
patch, IGT will fail at some test cases, could we still send them in
the same series so IGT can pass out-of-the-box?

Thanks,

Hsiao Chien Sung
AngeloGioacchino Del Regno Sept. 14, 2023, 1:18 p.m. UTC | #3
Il 11/09/23 15:45, Shawn Sung (宋孝謙) ha scritto:
> Hi Angelo,
> 
> On Thu, 2023-09-07 at 14:33 +0200, AngeloGioacchino Del Regno wrote:
>> Il 23/08/23 17:13, Hsiao Chien Sung ha scritto:
>>> Fix an issue that plane coordinate was not saved when
>>> calling async update.
>>>
>>> Signed-off-by: Hsiao Chien Sung <shawn.sung@mediatek.com>
>>
>>   From what I understand, this is a fix for an issue that was present
>> before
>> your newly introduced code.
>>
>> This means that you want to add a Fixes tag, and that you should also
>> send
>> this commit separately from the IGT series. Please do that.
> 
> Got it, will add a fix tag in the next version. But since without this
> patch, IGT will fail at some test cases, could we still send them in
> the same series so IGT can pass out-of-the-box?
> 

Fixes are applied before new features, so if you send this patch outside
of the IGT series, this will most likely be applied *before* that series.

When the IGT series will be applied, this patch will already be present,
so, please send this one separately.

Regards,
Angelo
Shawn Sung (宋孝謙) Sept. 18, 2023, 8:58 a.m. UTC | #4
Hi Angelo,

On Thu, 2023-09-14 at 15:18 +0200, AngeloGioacchino Del Regno wrote:
> Il 11/09/23 15:45, Shawn Sung (宋孝謙) ha scritto:
> > Hi Angelo,
> > 
> > On Thu, 2023-09-07 at 14:33 +0200, AngeloGioacchino Del Regno
> > wrote:
> > > Il 23/08/23 17:13, Hsiao Chien Sung ha scritto:
> > > > Fix an issue that plane coordinate was not saved when
> > > > calling async update.
> > > > 
> > > > Signed-off-by: Hsiao Chien Sung <shawn.sung@mediatek.com>
> > > 
> > >   From what I understand, this is a fix for an issue that was
> > > present
> > > before
> > > your newly introduced code.
> > > 
> > > This means that you want to add a Fixes tag, and that you should
> > > also
> > > send
> > > this commit separately from the IGT series. Please do that.
> > 
> > Got it, will add a fix tag in the next version. But since without
> > this
> > patch, IGT will fail at some test cases, could we still send them
> > in
> > the same series so IGT can pass out-of-the-box?
> > 
> 
> Fixes are applied before new features, so if you send this patch
> outside
> of the IGT series, this will most likely be applied *before* that
> series.
> 
> When the IGT series will be applied, this patch will already be
> present,
> so, please send this one separately.

Got it. Had sent two fixes that are found during IGT test separately.

Thanks,

Hsiao Chien Sung
diff mbox series

Patch

diff --git a/drivers/gpu/drm/mediatek/mtk_drm_plane.c b/drivers/gpu/drm/mediatek/mtk_drm_plane.c
index ca22d02375d5..dc19827f6927 100644
--- a/drivers/gpu/drm/mediatek/mtk_drm_plane.c
+++ b/drivers/gpu/drm/mediatek/mtk_drm_plane.c
@@ -210,6 +210,8 @@  static void mtk_plane_atomic_async_update(struct drm_plane *plane,
 	plane->state->src_y = new_state->src_y;
 	plane->state->src_h = new_state->src_h;
 	plane->state->src_w = new_state->src_w;
+	plane->state->dst.x1 = new_state->dst.x1;
+	plane->state->dst.y1 = new_state->dst.y1;
 	swap(plane->state->fb, new_state->fb);
 
 	mtk_plane_update_new_state(new_state, new_plane_state);