Skip to contentSkip to conversation

media: iris: fix VPSS line buffer width and height order

PATCH In review Wangao Wang 4 participants 4 messages Sep 22

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 media: iris: fix VPSS line buffer width and height order

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")
---
 drivers/media/platform/qcom/iris/iris_vpu_buffer.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/media/platform/qcom/iris/iris_vpu_buffer.c +2 -2
index faebb54728660cc621f8822dabf2e44ce8c55c58..3bafdee7f23ba99d9cea4b809b953053275459d9 100644
@@ -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,

Signature · 1 line
Wangao Wang <[email protected]>
Reviewed-by on v1 1/1
#1 lore raw
Quoted 8 lines · 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")

---

Konrad

maintainer Reviewed-by on v1 1/1
#2 lore raw
In reply to Wangao Wang
Quoted 10 lines · 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")
---
  drivers/media/platform/qcom/iris/iris_vpu_buffer.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)