media: iris: fix VPSS line buffer width and height order
Subsystems (4)
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.
--- 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
@@ -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]>
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")Signed-off-by Wangao Wang <[email protected]>---
Konrad
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")Signed-off-by Wangao Wang<[email protected]>--- drivers/media/platform/qcom/iris/iris_vpu_buffer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Quoted 3 lines · Wangao Wang
Fixes df816dce1b01 ("media: iris: Introduce buffer size calculations for vpu4")Signed-off-by Wangao Wang<[email protected]>
For future reference
Drop the \n between the fixes and the Signed off
Add Cc: [email protected]
Please
---
bod