Hello, Đ¢his patchset is an attempt to make Venus encoder driver compliant with stateful encoder spec. There are still few details which need to be cleaned up so this can be treated as WIP. For example the usage of m2m helpers to update the states and handing of the LAST capture buffer for Drain state. Here mainly I re-designed the driver to able to handle capture/output queues independently and properly go in and out of Reset state. These patches depend on [1]. Comments are welcome! regards, Stan [1] https://lkml.org/lkml/2020/10/19/432 Stanimir Varbanov (4): venus: hfi: Use correct state in unload resources venus: helpers: Add a new helper for buffer processing venus: venc: Handle reset encoder state venus: helpers: Delete unused stop streaming helper drivers/media/platform/qcom/venus/core.h | 10 +- drivers/media/platform/qcom/venus/helpers.c | 63 ++--- drivers/media/platform/qcom/venus/helpers.h | 2 +- drivers/media/platform/qcom/venus/hfi.c | 2 +- drivers/media/platform/qcom/venus/hfi.h | 1 - drivers/media/platform/qcom/venus/venc.c | 242 ++++++++++++++++---- 6 files changed, 219 insertions(+), 101 deletions(-) -- 2.17.1