Received: by 10.192.165.148 with SMTP id m20csp1515322imm; Thu, 3 May 2018 00:13:32 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqbWN7e4qAf9EDg7w3K2iAVvWDr7dki+vHLfXZwygbr6M+DwQbXKdjgO/I6EG+n4AhgF42X X-Received: by 2002:a63:ba05:: with SMTP id k5-v6mr18283569pgf.39.1525331612693; Thu, 03 May 2018 00:13:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525331612; cv=none; d=google.com; s=arc-20160816; b=yVHw7UMaFnVAEORBw2oStJNf3TRIuIouXJP7ZhtjgTB462yz2Dk84taAUz17pBNuil Uf30Y/6CO1O0vCf5gN7VLgrQ1V7tB4IZguvkcR0/lp11uaHCODury4yUm1Vkk8fTzq7a qq6MrVWgzwERXI0yMlFP9gS4wNak09KMDqK3x9vpBymDoHoemArVTu7tjqs7TCHmaBXo MP7jqtTBku3kx8fm0IsvFQUNc9xeJnmZsq3EwDonVQs1M7qom+kDpVI10k6guI0gSOiN efnVAjjr1a3iTlXu3l4WxnZua+nedgcXs67NnCS7ApY3ueHKzI2RtgLrTJihj8et1XwG Vi3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=SeAIem3K3zCkSiJEczVTewFxqfaH4UNUVKSLhlOFcKI=; b=lzriy2fQ4UCmxkpaH7dgDocuB14d3CWAf6YGJ4h7FMYgI0fTF4ObZ9elW6Bl8ClJIj RZSsNVsRPhofkBaQvfQW6V3VrKGloz0LpWEE5L1JOvbPhX3cn5Hz4rRV4WOb+iw5rbyA hrTyMFv5xOEGecXzCaVC2zQRfIv3nreK2+xtC1gFa/Ap2Nltr0DnjIA4jYyNUPIJ/u8E aTorSH9LbmIvwgN6ks93cNgpofVqI6k6RJWDZ0UUEzRFBRVF75phh5kz4LRSdXq1WKo+ 4F04Vyn9FmTkPcXwKU4R9A60/kaisrOLFa39ePNhYLGTYXFi4hfJjgXACSM2YK266yrH 7vlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TWtLzD4u; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id t76-v6si11032882pgc.627.2018.05.03.00.13.18; Thu, 03 May 2018 00:13:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TWtLzD4u; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1752158AbeECHMx (ORCPT + 99 others); Thu, 3 May 2018 03:12:53 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:50371 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752123AbeECHMr (ORCPT ); Thu, 3 May 2018 03:12:47 -0400 Received: by mail-wm0-f66.google.com with SMTP id t11so26584336wmt.0 for ; Thu, 03 May 2018 00:12:47 -0700 (PDT) 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=SeAIem3K3zCkSiJEczVTewFxqfaH4UNUVKSLhlOFcKI=; b=TWtLzD4u88tTEk4VBpmEoQeG+rgTE+iwbEbpoyrQthSkZg7XKCkRGreGASUf+x3Ymh gcJN5dz6NYG0mHULsOI5coMkHLuc/LKeHryWNUO3zFms07gi6qMIxNG+hWzKHjovdfw6 5qz4h8tjRcACSILYWFQMECFk0uKPLjvMf8I+A= 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=SeAIem3K3zCkSiJEczVTewFxqfaH4UNUVKSLhlOFcKI=; b=Ei9hAF/juy5oe5WgTPFrrnmVMUjr22kTMncuPwCPaQ+/31em0KpKXeKFzFF4gIFGwY Y3nA4uNGwwdJ7XigPtrvqRkJQjiazruvYq4014/qYfnEWBWArgG+5T/5ButVw1keoK7u WEhmr5e6KVJ0ze9AcckCoswsi/EiK22uB596vvHSk6KqDOhZroSwgRhdWxyR2lMejnsM k3fDWutPV/IjQszKLJ7wVSg8rh1sTEW7gJJAPjMvGfWhbe3Xavlv0UlExhDkczkyDM70 pXJgRZKkeQ3hb2GLaDUQJ++3s1dxulwVZtHiwH+R601rIpPS7nXmtQZS2ykE1sNxUEvA 171A== X-Gm-Message-State: ALQs6tC0kK6kDl+KdzdUC9QHBysp2QJ0nqFPhHO3FLIFj8RctxQrQLhB BvZ/979rFA3K88wVcgPIhHH8rA== X-Received: by 10.28.54.141 with SMTP id y13mr14118672wmh.126.1525331566650; Thu, 03 May 2018 00:12:46 -0700 (PDT) Received: from [192.168.43.218] (212-39-89-60.ip.btc-net.bg. [212.39.89.60]) by smtp.googlemail.com with ESMTPSA id g192sm2653198wmd.36.2018.05.03.00.12.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 May 2018 00:12:43 -0700 (PDT) Subject: Re: [PATCH 26/28] venus: implementing multi-stream support To: Vikash Garodia Cc: Mauro Carvalho Chehab , Hans Verkuil , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org References: <20180424124436.26955-1-stanimir.varbanov@linaro.org> <20180424124436.26955-27-stanimir.varbanov@linaro.org> From: Stanimir Varbanov Message-ID: <64b9d816-617a-0ecd-fc47-8676a595f972@linaro.org> Date: Thu, 3 May 2018 10:12:38 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Vikash, Please write the comments for the chunk of code for which they are refer to. On 2.05.2018 10:40, Vikash Garodia wrote: > Hello Stanimir, > > On 2018-04-24 18:14, Stanimir Varbanov wrote: >> This is implementing a multi-stream decoder support. The multi >> stream gives an option to use the secondary decoder output >> with different raw format (or the same in case of crop). >> >> Signed-off-by: Stanimir Varbanov >> --- >>  drivers/media/platform/qcom/venus/core.h    |   1 + >>  drivers/media/platform/qcom/venus/helpers.c | 204 >> +++++++++++++++++++++++++++- >>  drivers/media/platform/qcom/venus/helpers.h |   6 + >>  drivers/media/platform/qcom/venus/vdec.c    |  91 ++++++++++++- >>  drivers/media/platform/qcom/venus/venc.c    |   1 + >>  5 files changed, 299 insertions(+), 4 deletions(-) >> >> diff --git a/drivers/media/platform/qcom/venus/core.h >> b/drivers/media/platform/qcom/venus/core.h >> index 4d6c05f156c4..85e66e2dd672 100644 >> --- a/drivers/media/platform/qcom/venus/core.h >> +++ b/drivers/media/platform/qcom/venus/core.h >> @@ -259,6 +259,7 @@ struct venus_inst { >>      struct list_head list; >>      struct mutex lock; >>      struct venus_core *core; >> +    struct list_head dpbbufs; >>      struct list_head internalbufs; >>      struct list_head registeredbufs; >>      struct list_head delayed_process; > > The dpb buffers queued to hardware will be returned back to host either > during flush > or when the session is stopped. Host should not send these buffers to > client. That's correct. > vdec_buf_done should be handling in a way to drop dpb buffers from > sending to client. That is also correct, vdec_buf_done is trying to find the buffer by index from a list of queued buffers from v4l2 clients. See venus_helper_vb2_buf_queue where it is calling v4l2_m2m_buf_queue. So for the dpb buffers venus_helper_find_buf() will return NULL. regards, Stan