Skip to content

media: venus: fix HFI parser payload size returns

Mohammed EL Kadiri linux-arm-msm linux-media lkml stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2media: venus: fix payload size returned by parse_caps() and parse_alloc_mode()drivers/media/platform/qcom/venus/hfi_parser.c+2 -21 reply
2/2media: venus: fix payload size calculation in parse_raw_formats()drivers/media/platform/qcom/venus/hfi_parser.c+2 -31 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchDmitry Baryshkov
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] media: venus: fix HFI parser payload size returns

Several parse functions return incorrect consumed sizes after the refactor in commit 9edaaa8e3e15. hfi_parser() uses these values to advance through the firmware response buffer, so incorrect sizes cause parser desynchronization.

parse_profile_level() has the correct pattern. These patches align the remaining functions to match it.

Compile-tested with arm64 cross-compiler (gcc 13.3).

Mohammed EL Kadiri (2):
media: venus: fix payload size returned by parse_caps() and
parse_alloc_mode()
media: venus: fix payload size calculation in parse_raw_formats()

 drivers/media/platform/qcom/venus/hfi_parser.c | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)
Signature · 1 line
2.43.0