public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] media: venus: fix NV12 buffer sizing and incorrect capability alignment
@ 2026-03-31  4:37 Renjiang Han
  2026-03-31  4:37 ` [PATCH 1/3] media: qcom: venus: drop extra padding in NV12 raw size calculation Renjiang Han
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Renjiang Han @ 2026-03-31  4:37 UTC (permalink / raw)
  To: Vikash Garodia, Dikshita Agarwal, Bryan O'Donoghue,
	Mauro Carvalho Chehab, Alexandre Courbot, Stanimir Varbanov,
	Tomasz Figa, Hans Verkuil
  Cc: Mauro Carvalho Chehab, linux-media, linux-arm-msm, linux-kernel,
	Mauro Carvalho Chehab, Renjiang Han

The NV12 frame size calculation adds unnecessary 4K/8K padding, leading
to buffer overallocation. The redundant padding is removed while keeping
final 4K alignment. In addition, HFI platform capabilities advertise an
overly strict 16-pixel alignment for frame and blur dimensions, which
can reject valid userspace configurations. The alignment step is relaxed
to 1 without changing min/max limits.

Signed-off-by: Renjiang Han <renjiang.han@oss.qualcomm.com>
---
Renjiang Han (3):
      media: qcom: venus: drop extra padding in NV12 raw size calculation
      media: qcom: venus: relax encoder frame/blur dimension steps on v4
      media: qcom: venus: relax encoder frame/blur step size on v6

 drivers/media/platform/qcom/venus/helpers.c         |  4 ++--
 drivers/media/platform/qcom/venus/hfi_platform_v4.c | 20 ++++++++++----------
 drivers/media/platform/qcom/venus/hfi_platform_v6.c | 16 ++++++++--------
 3 files changed, 20 insertions(+), 20 deletions(-)
---
base-commit: 3b058d1aeeeff27a7289529c4944291613b364e9
change-id: 20260331-fix_venus_bug_issue-e92badece1fe

Best regards,
-- 
Renjiang Han <renjiang.han@oss.qualcomm.com>


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

end of thread, other threads:[~2026-04-06  6:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-31  4:37 [PATCH 0/3] media: venus: fix NV12 buffer sizing and incorrect capability alignment Renjiang Han
2026-03-31  4:37 ` [PATCH 1/3] media: qcom: venus: drop extra padding in NV12 raw size calculation Renjiang Han
2026-04-06  6:00   ` Dikshita Agarwal
2026-03-31  4:37 ` [PATCH 2/3] media: qcom: venus: relax encoder frame/blur dimension steps on v4 Renjiang Han
2026-04-06  6:01   ` Dikshita Agarwal
2026-03-31  4:37 ` [PATCH 3/3] media: qcom: venus: relax encoder frame/blur step size on v6 Renjiang Han
2026-04-06  6:01   ` Dikshita Agarwal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox