Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp1833666lqt; Sun, 21 Apr 2024 11:18:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUp5fhRL9jMR/6zZ5gahJgeYg3yxsOHpF0RZOCcSLNrLnih1tb44poW+7d7BLgz64PiKaqs7VJndOWMiVwObNuV4GD6jnd078RpGmDb2g== X-Google-Smtp-Source: AGHT+IEcYJed8G04WDM/o6K+xCPPw4JAEFVq2X5grbD1qdSvUKvqAdvlrSCAo5SOUE1kYylVsjiP X-Received: by 2002:a05:6a00:3a14:b0:6ec:ea14:b829 with SMTP id fj20-20020a056a003a1400b006ecea14b829mr9453553pfb.28.1713723534749; Sun, 21 Apr 2024 11:18:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713723534; cv=pass; d=google.com; s=arc-20160816; b=Y18w1UdxFCsNlGmnt3Iswd2cLtrvsqmW9+OnPXJjPKfPhWKPJ/65VWeUPm/+nQQbQs VSzI6e5SVmcjcR5qk/w6IsMD+JuE0irMRxuGCxVXGR08XLnW2BbfnodAUbRHYaCSZITJ EKNuJy0VamBesctLFhXHXv8GhPkjS+ejIvhf/iXHlp02A6mI0yXqyiksR3UM8Npt5KWR ZM/m0mNdLHDzcyENeK/eogSmLrEG4x1Ot6tOWouq0yTol73L359hzbmVshD6MOYSaZ1F S2uQfiwNsE90NGXn8E69uZQKbJSson7hlsveAJq82/+SVa7i68RhPVWZjrpZNSheIsHn 7xSg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=kGTvaXqfOO9FIjG6XNcvN3Rhrhq89n4tPuy0EipmS14=; fh=7negDdqUISyD5gt9r8fahRY89oN9KR5ddTUhkKAtwto=; b=orhH2ldgJVGhihvUN8TTOJ+WpILUWpvMeYnzEZXRycfIh6i7kVSFDtYvR207wR2l3u DjZILIsFkMYBQSALDGB4V52hZNRqjOaW7+f987kVE37jzyhYaElzH86QOalfFoEWYUB2 XKyhzDGqNiWKSPNW7LvZhsIfiqR2tPkGw+zzAaVzGSF14yDBN0ActnSqO6if07vkg3Y7 UDK6wLGawKQuk8YAynKLv8a4sL86xX8NKul51XIbcwNBX/zq3sWQhTG0ewXzOx6Tp22O /4gJN6rXeW9A9bLJ/msGEtSfDYa+i7J9PEQCO2MFHaH4rLysOi2YCTtkEWdrCku87dBw nL6g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=R4KMYwQ1; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-152578-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152578-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id ln8-20020a056a003cc800b006f0bf99e500si4836712pfb.274.2024.04.21.11.18.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Apr 2024 11:18:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-152578-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=R4KMYwQ1; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-152578-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152578-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 55333281561 for ; Sun, 21 Apr 2024 18:18:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D9C093C699; Sun, 21 Apr 2024 18:18:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="R4KMYwQ1" Received: from mail-ej1-f48.google.com (mail-ej1-f48.google.com [209.85.218.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 874F6286AC; Sun, 21 Apr 2024 18:18:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713723524; cv=none; b=npNXAmotQi6FdXsPTUs5Dznbf3/hP3qLwcg5t5f7oJHzlJe32N84mv3myOTFrK/Xxo+XSZMwIWdryFmXNBq8qYmTNOd1OiwlX3hQr51kE0CmLjGP2Me6LbXUg0yRsr6eLipLKE7bwrpIY0U/9KaRrapR6R+7O8gBSdq1whmUYsI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713723524; c=relaxed/simple; bh=6H1TIF/0XcXz6iEQrWrwLwyYZgPxQRBE8Doz/MbHlYc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=fB+xHXJO/mSZOl2T/vlWIOX2Ar61gZHKlSMuVR0rDEj8IHCZCmiwlhd4dcT4rGLq8o7zw4FPhWdffjuF45tGn9H8L6dmQvSeKW2ThX3f8jj1iWf/EV7PwxbIyjdIlNJca7ngHO/09bnAzLWQGhcetArLoVXR5VzRjQiGqxUFJSw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=R4KMYwQ1; arc=none smtp.client-ip=209.85.218.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-f48.google.com with SMTP id a640c23a62f3a-a52223e004dso340282566b.2; Sun, 21 Apr 2024 11:18:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713723521; x=1714328321; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=kGTvaXqfOO9FIjG6XNcvN3Rhrhq89n4tPuy0EipmS14=; b=R4KMYwQ1oZxqrFra+61GeVA96BEUeywvRtnzNooJBA8UluGc3XLdkUpMhn3ehUy+OS wjqR/wnXItP5iEoIW3L4EauRKDnI/0fpsWX/Ar/TiR5Kq6S+UxoGsPsJmPsAQFAQDgpR GXrGVWrF4iaz/hvJE0KTYKPA81FHnX1KbMXkKym83rP2wvJ0DMrUFVMGqgcd+oTdluIS H3Bn1aYjcC05J0A1xXjM/V3+ww0mBvGXORa+jpaW3sHPaw3eq6gK+vD+34I/L2p6pzKL 2Nppq5gw0BSRinIqAI5gxa8oBnG33cPWvpuOLmnecB6MVriIXweDFFZBpQDvumL2ZbgS Ie1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713723521; x=1714328321; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=kGTvaXqfOO9FIjG6XNcvN3Rhrhq89n4tPuy0EipmS14=; b=gszDhA/FdeYvzNf1kgM8VC7m4Cv+A3N1fyaA6ZnCY8qHwahIoRma0MfZb0W4sPTJz0 Fv55VgmQ8b3pxgymgpA8w58nJr/yYF2D343Sn7ged5Oiw6+aGP6H4Qu1/rVjgkiGGuUH omG6LR5wz2/7MzBNBOOAnJqSYQ83zzdXBPHeP/3fYdrSCJozl6mBo2PVtwQsloWvrlha XH9agULU5kmAyswHayIwuQB6a+CgzeG9WsE656mm7uC/AUiVWXR0mblYRV67gL7iuf8m Crj1+3sWkNwS+FTbJYE6G3I5ozhv19B87IEoDyq3mJjvuq7SEUynYKTrxpfhy04IKauA 0hIw== X-Forwarded-Encrypted: i=1; AJvYcCVQS9GAxGYPo29GR9Rh4Ha9vGER13OKWlTlRYodBN0zHKThksrrfqLtHAmZXr93+qa9YUAyAv5Lj5TfjmrfkrG8vVUWwj70OSdTch2bjHKBIrtIinz2PscFsc/TcNFumOIPlNC/mhZ/ZnmRRBoINEN5tV8p8BgtRaAfr36fCftGJxctPJOavHQH X-Gm-Message-State: AOJu0YyWR4Wvhg/n5jUQQGVeXgCAhShyYayl/ES0B2KYbQCxLldsH0U6 heS1OMQe+KGhe1sjJvXghLAm4AFysDYQWzDpgTecmRPtG9g3lKOV X-Received: by 2002:a17:906:394e:b0:a52:4246:92fe with SMTP id g14-20020a170906394e00b00a52424692femr7529330eje.48.1713723520561; Sun, 21 Apr 2024 11:18:40 -0700 (PDT) Received: from [192.168.1.19] (77-76-56-128.ip.btc-net.bg. [77.76.56.128]) by smtp.gmail.com with ESMTPSA id z13-20020a17090655cd00b00a4739efd7cesm4823285ejp.60.2024.04.21.11.18.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 21 Apr 2024 11:18:40 -0700 (PDT) Message-ID: Date: Sun, 21 Apr 2024 21:18:36 +0300 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] media: venus: flush all buffers in output plane streamoff To: Dikshita Agarwal , Vikash Garodia , Andy Gross , Bjorn Andersson , Konrad Dybcio , Mauro Carvalho Chehab Cc: Bryan O'Donoghue , Mauro Carvalho Chehab , Stanimir Varbanov , linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org References: <1704867134-5522-1-git-send-email-quic_dikshita@quicinc.com> Content-Language: en-US, bg-BG From: Stanimir Varbanov In-Reply-To: <1704867134-5522-1-git-send-email-quic_dikshita@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hello Dikshita, On 10.01.24 г. 8:12 ч., Dikshita Agarwal wrote: > For scenarios, when source change is followed by VIDIOC_STREAMOFF > on output plane, driver should discard any queued OUTPUT > buffers, which are not decoded or dequeued. > Flush with HFI_FLUSH_INPUT does not have any actual impact. > So, fix it, by invoking HFI_FLUSH_ALL, which will flush all > queued buffers. > > Fixes: 85872f861d4c ("media: venus: Mark last capture buffer") Cc: stable is missing with a kernel version. > Signed-off-by: Dikshita Agarwal > --- > Changes since v1: > - Added fixes tag (Bryan) > > drivers/media/platform/qcom/venus/vdec.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/media/platform/qcom/venus/vdec.c b/drivers/media/platform/qcom/venus/vdec.c > index 29130a9..0d2ab95 100644 > --- a/drivers/media/platform/qcom/venus/vdec.c > +++ b/drivers/media/platform/qcom/venus/vdec.c > @@ -1255,7 +1255,7 @@ static int vdec_stop_output(struct venus_inst *inst) > break; > case VENUS_DEC_STATE_INIT: > case VENUS_DEC_STATE_CAPTURE_SETUP: > - ret = hfi_session_flush(inst, HFI_FLUSH_INPUT, true); > + ret = hfi_session_flush(inst, HFI_FLUSH_ALL, true); Is it tested on msm8916? If I remember correctly FLUSH_ALL produces session error, could you confirm, please. -- regards, Stan