Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3331065pxu; Sun, 29 Nov 2020 23:57:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJynasK9+RrKKHCl53Rxz/j2Hy/VQw42IUVa4EWWun2fayhvx0HdS9akGo3EnfqohL7AFvTE X-Received: by 2002:a17:906:74c1:: with SMTP id z1mr972492ejl.182.1606723076085; Sun, 29 Nov 2020 23:57:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606723076; cv=none; d=google.com; s=arc-20160816; b=qZArgFB1Nx1jlMLlka5OGHinBoN1lVOMgL4epn0rqtBtJnkO2Xsh62ud25l3s/Gl6v tJFusNoZCt1R2NskoDrnsVzP9+5LZxgyh5BmmgA7U8kQYFNN/7wHSRO9CsSSuold0zkJ vNV8N2oUURyEqUk9LxQiTRKZdn1SgHvAZg7kZlwKPte9XzwZyLOHNSfLACSpjIxAgtXF +NfoDram/gLYxiBRT1ft5Pbp0ecZ6ag+LTm2axuYp2LofbqbnAd2/ufTG9JjxEERjpYW lV9FjzmZMoDu/gRrivccHowFpaptmiax1YXImdnwaGMvdk+DBB7CJmyB55HUjjTTT6g1 QOIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=lLjwMaRlmFk8cdjb61byqEUPHvd5mHzz+PPVHsNni1U=; b=JJ0GFLSTdzSyCNJB5pR9+hl3XxbmILIZYraoK5vNXnc0gdt0+GfO8VyvHVYevZj/vy amuU6zBtFFDh8nkkhtpfuHO6K7CZvJHwqlpKaDCDm1zTJyvPWMKMSPT3IbLQzGVLvqaV JE2y7FCI5yFeeDeU1p+Za4BdMsIqarzN/VhW7XszOIKTwvHDjv5hHtPffD/9PqYk6WwN RwbSq6d1p7cVH+r62hDJuwWZlRjWvkRf4oYPapxMbgIxFrWzzjMcUaB3cpTV6wTqiDFE zPOwIoUnd+xHEjfdqDTzhEVdAG/oIFZ5HEFBh5S7IFjeiKZGlvV/bjtmmZQDScBOZya+ 2bSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UDyYpxcP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c7si5389988eje.347.2020.11.29.23.57.32; Sun, 29 Nov 2020 23:57:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UDyYpxcP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727055AbgK3H4K (ORCPT + 99 others); Mon, 30 Nov 2020 02:56:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726929AbgK3H4J (ORCPT ); Mon, 30 Nov 2020 02:56:09 -0500 Received: from mail-ej1-x643.google.com (mail-ej1-x643.google.com [IPv6:2a00:1450:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 86112C0613D2 for ; Sun, 29 Nov 2020 23:55:29 -0800 (PST) Received: by mail-ej1-x643.google.com with SMTP id jx16so19249650ejb.10 for ; Sun, 29 Nov 2020 23:55:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=lLjwMaRlmFk8cdjb61byqEUPHvd5mHzz+PPVHsNni1U=; b=UDyYpxcPlLMlL1aNJW1x9AbN37aqd+AIG23FKB/f+lnfQ0qFsXhz0n5R899QDDTucz eqvrGTDaiYSV4tw8hpzB/zmYFgfnqjn2I6NdydMxXrS2OsdAKAHzq5Gr5TOORlBV90zC T9Zkn07E+KbPQ0Jj6TLrIOqsCYuBxr1ZbCZX7hg8ofhCmMDpGupMr/fgKHtPvAat56Xq hpX86eryIGBvmVnPELmXSL2QS4yDMKcQrYtK0IfgB4tTYPnGuwbGxNusDuqRRYoIKqcJ gr03oLSxJLPuurAsGBO72Tzk/SUn7PyYz9e2HrSRLXClT+RtjGAlITc88ixzV3iBd4n0 WHfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=lLjwMaRlmFk8cdjb61byqEUPHvd5mHzz+PPVHsNni1U=; b=HNU6u4nmJB781nemvmjfkMNhSAQ3/XMMtE0RVc0ss1Sp+2GKcenjppItYSTXSjD8EU Gnm4Nq8d0ehpGsoIvIIe1s/o8crIG/2vUh+sX7dOWKdONHV0v9+3Eqyj1zKLj1fhNjnA RJbmpQX+tWzzBYwQE+nTa2JiQoCkpE0tTckeHz5dF+eFH1cx1ff3iSnKt4tHYWcNjTnV HDHnrdqgeQG5nRYFF/EndNr+EXRqNexWWXqKne829cmGKz8aVYDv01phyZ8nj10DmBLo v2D0X6WC/413DS2WHUVcKgVThHrm1xi002lqGOh9RgOXUQukbL5oPy3eNPb9ZXOBcxhH 66AQ== X-Gm-Message-State: AOAM5326WPkGZRbNx6ZYuSEw/F9kYadnBZSVoAoKI+BmIDveTJ11o+Hv ssqdJqboU8jlpE82O8vp/OMXPA== X-Received: by 2002:a17:906:af83:: with SMTP id mj3mr12580359ejb.243.1606722928131; Sun, 29 Nov 2020 23:55:28 -0800 (PST) Received: from [192.168.0.3] (hst-221-70.medicom.bg. [84.238.221.70]) by smtp.googlemail.com with ESMTPSA id b5sm549899edw.69.2020.11.29.23.55.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 29 Nov 2020 23:55:27 -0800 (PST) Subject: Re: [PATCH v2 0/8] Venus stateful encoder compliance To: Fritz Koenig Cc: linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Vikash Garodia , Alexandre Courbot References: <20201111143755.24541-1-stanimir.varbanov@linaro.org> From: Stanimir Varbanov Message-ID: Date: Mon, 30 Nov 2020 09:55:26 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Fritz, On 11/29/20 9:17 PM, Fritz Koenig wrote: > Since this patchset adds support for V4L2_ENC_CMD_STOP and > VENUS_ENC_STATE_ENCODING it should also add support for > VIDIOC_TRY_ENCODER_CMD so that those commands are discoverable. I've 6/8 is adding it: + .vidioc_try_encoder_cmd = v4l2_m2m_ioctl_try_encoder_cmd, > made an attempt at that here: > https://www.spinics.net/lists/linux-media/msg182319.html > > On Wed, Nov 11, 2020 at 6:38 AM Stanimir Varbanov > wrote: >> >> Hello, >> >> Here is v2 of the subject patchset. >> >> The patchset starts with few small preparation and fix patches, 1/8 to 5/8. >> 6/8 is redesigned Dikshita's patch and 7/8 add Reset encoder state handling. >> The last 8/8 just delete not needed helper function. >> >> The major changes are: >> * An attempt to reuse m2m helpers for drain and reset state in 6/8 and 7/8. >> * Use null encoder buffer to signal end-of-stream in 6/8. >> >> Comments are welcome! >> >> regards, >> Stan >> >> Dikshita Agarwal (1): >> venus: venc: add handling for VIDIOC_ENCODER_CMD >> >> Stanimir Varbanov (7): >> venus: hfi: Use correct state in unload resources >> venus: helpers: Add a new helper for buffer processing >> venus: hfi_cmds: Allow null buffer address on encoder input >> venus: helpers: Calculate properly compressed buffer size >> venus: pm_helpers: Check instance state when calculate instance >> frequency >> venus: venc: Handle reset encoder state >> venus: helpers: Delete unused stop streaming helper >> >> drivers/media/platform/qcom/venus/helpers.c | 65 ++--- >> 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/hfi_cmds.c | 2 +- >> .../media/platform/qcom/venus/pm_helpers.c | 3 + >> drivers/media/platform/qcom/venus/venc.c | 232 +++++++++++++++--- >> 7 files changed, 226 insertions(+), 81 deletions(-) >> >> -- >> 2.17.1 >> -- regards, Stan