mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] media: iris: fix VPSS line buffer width and height order
@ 2026-09-22  3:24 ` Wangao Wang
  2026-09-22  8:56   ` Konrad Dybcio
                     ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Wangao Wang @ 2026-09-22  3:24 UTC (permalink / raw)
  To: Vikash Garodia, Dikshita Agarwal, Abhinav Kumar,
	Bryan O'Donoghue, Mauro Carvalho Chehab, Vishnu Reddy,
	Hans Verkuil
  Cc: linux-media, linux-arm-msm, linux-kernel, Wangao Wang

size_vpss_line_buf_vpu33() expects (num_pipes, height, width) but was
called with width and height swapped, miscalculating VPSS line buffer
size for non-square resolutions.

Fixes: df816dce1b01 ("media: iris: Introduce buffer size calculations for vpu4")

Signed-off-by: Wangao Wang <wangao.wang@oss.qualcomm.com>
---
 drivers/media/platform/qcom/iris/iris_vpu_buffer.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/media/platform/qcom/iris/iris_vpu_buffer.c b/drivers/media/platform/qcom/iris/iris_vpu_buffer.c
index faebb54728660cc621f8822dabf2e44ce8c55c58..3bafdee7f23ba99d9cea4b809b953053275459d9 100644
--- a/drivers/media/platform/qcom/iris/iris_vpu_buffer.c
+++ b/drivers/media/platform/qcom/iris/iris_vpu_buffer.c
@@ -2031,8 +2031,8 @@ static u32 hfi_vpu4x_buffer_line_enc(u32 frame_width, u32 frame_height,
 	u32 dma_opb_lb_size = size_dma_opb_lb(num_vpp_pipes_enc, frame_width_coded,
 					      frame_height_coded);
 	u32 dse_lb_size = ALIGN((256 + (16 * (frame_width_coded >> 4))), DMA_ALIGNMENT);
-	u32 size_vpss_lb_enc = size_vpss_line_buf_vpu33(num_vpp_pipes_enc, frame_width_coded,
-							frame_height_coded);
+	u32 size_vpss_lb_enc = size_vpss_line_buf_vpu33(num_vpp_pipes_enc, frame_height_coded,
+							frame_width_coded);
 
 	return se_lb_size + te_lb_size + fe_lb_size + md_lb_size + dma_opb_lb_size +
 		dse_lb_size + size_vpss_lb_enc;

---
base-commit: 5c4d4169604b335c38bbc79bc1fc03042981fc6f
change-id: 20260922-vpu4x_buffer_fix-80cb495f8f46

Best regards,
-- 
Wangao Wang <wangao.wang@oss.qualcomm.com>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] media: iris: fix VPSS line buffer width and height order
  2026-09-22  3:24 ` [PATCH] media: iris: fix VPSS line buffer width and height order Wangao Wang
@ 2026-09-22  8:56   ` Konrad Dybcio
  2026-09-22 18:13   ` Vikash Garodia
  2026-09-22 20:51   ` Bryan O'Donoghue
  2 siblings, 0 replies; 4+ messages in thread
From: Konrad Dybcio @ 2026-09-22  8:56 UTC (permalink / raw)
  To: Wangao Wang, Vikash Garodia, Dikshita Agarwal, Abhinav Kumar,
	Bryan O'Donoghue, Mauro Carvalho Chehab, Vishnu Reddy,
	Hans Verkuil
  Cc: linux-media, linux-arm-msm, linux-kernel

On 9/22/26 5:24 AM, Wangao Wang wrote:
> size_vpss_line_buf_vpu33() expects (num_pipes, height, width) but was
> called with width and height swapped, miscalculating VPSS line buffer
> size for non-square resolutions.
> 
> Fixes: df816dce1b01 ("media: iris: Introduce buffer size calculations for vpu4")
> 
> Signed-off-by: Wangao Wang <wangao.wang@oss.qualcomm.com>
> ---

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>

Konrad

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] media: iris: fix VPSS line buffer width and height order
  2026-09-22  3:24 ` [PATCH] media: iris: fix VPSS line buffer width and height order Wangao Wang
  2026-09-22  8:56   ` Konrad Dybcio
@ 2026-09-22 18:13   ` Vikash Garodia
  2026-09-22 20:51   ` Bryan O'Donoghue
  2 siblings, 0 replies; 4+ messages in thread
From: Vikash Garodia @ 2026-09-22 18:13 UTC (permalink / raw)
  To: Wangao Wang, Dikshita Agarwal, Abhinav Kumar,
	Bryan O'Donoghue, Mauro Carvalho Chehab, Vishnu Reddy,
	Hans Verkuil
  Cc: linux-media, linux-arm-msm, linux-kernel



On 9/22/2026 8:54 AM, Wangao Wang wrote:
> size_vpss_line_buf_vpu33() expects (num_pipes, height, width) but was
> called with width and height swapped, miscalculating VPSS line buffer
> size for non-square resolutions.
> 
> Fixes: df816dce1b01 ("media: iris: Introduce buffer size calculations for vpu4")
> 
> Signed-off-by: Wangao Wang<wangao.wang@oss.qualcomm.com>
> ---
>   drivers/media/platform/qcom/iris/iris_vpu_buffer.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)

Reviewed-by: Vikash Garodia <vikash.garodia@oss.qualcomm.com>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] media: iris: fix VPSS line buffer width and height order
  2026-09-22  3:24 ` [PATCH] media: iris: fix VPSS line buffer width and height order Wangao Wang
  2026-09-22  8:56   ` Konrad Dybcio
  2026-09-22 18:13   ` Vikash Garodia
@ 2026-09-22 20:51   ` Bryan O'Donoghue
  2 siblings, 0 replies; 4+ messages in thread
From: Bryan O'Donoghue @ 2026-09-22 20:51 UTC (permalink / raw)
  To: Wangao Wang, Vikash Garodia, Dikshita Agarwal, Abhinav Kumar,
	Mauro Carvalho Chehab, Vishnu Reddy, Hans Verkuil
  Cc: linux-media, linux-arm-msm, linux-kernel

On 22/09/2026 04:24, Wangao Wang wrote:
> Fixes: df816dce1b01 ("media: iris: Introduce buffer size calculations for vpu4")
> 
> Signed-off-by: Wangao Wang<wangao.wang@oss.qualcomm.com>

For future reference

Drop the \n between the fixes and the Signed off
Add Cc: stable@vger.kernel.org

Please

Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>

---
bod

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-09-22 20:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <xj8gcJD42EUlaYqevxWqTohqhMOfEkOw9HpA3v6Sz5tHhGNi-JzG49H7eV8bKDlC5PhXlgSllU9Vho0Ht-GW9w==@protonmail.internalid>
2026-09-22  3:24 ` [PATCH] media: iris: fix VPSS line buffer width and height order Wangao Wang
2026-09-22  8:56   ` Konrad Dybcio
2026-09-22 18:13   ` Vikash Garodia
2026-09-22 20:51   ` Bryan O'Donoghue

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®