Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp2120223rdd; Thu, 11 Jan 2024 22:51:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IGLHEBHuAPb2Cm0CqfPNIGBNMsAn9EDPdZiB6rWLpd4TY5kiCgF9Ra4pBqEpI4Ixf8VKh3X X-Received: by 2002:a17:902:e882:b0:1d4:910f:f85c with SMTP id w2-20020a170902e88200b001d4910ff85cmr606372plg.5.1705042304625; Thu, 11 Jan 2024 22:51:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705042304; cv=none; d=google.com; s=arc-20160816; b=EyBsXjMd8lNrtCB/BiulYRx6uhhoCl9YYYUiiIaivogtEViAJGZF1Sdn8Rml4hYWnc lBvux3IxZBBdHEm4RRkAwbgh4lcpg4rJ1WJ53+AzD2cUxSNT032GNextPG6kO77ueJCb 2MGcs5g40xaVZEITjRzL9YCT9tINhBX91zIKP1SLstDOPGWlWgKjurfFu0X9nLVkK34v WY/UGy6hDHPjLkeKovQEHO9/04FNVmBQdFzXeXFoDHxYjZ5VbT9pNZKLZwGRXmu4L+G8 9OEQLLf2K0AhVK3zK9GM1RTKcwHqNuXeQ2Qq8kspPcKFtgaubzyS2RrkXg+I5nNhw3l+ ewrw== ARC-Message-Signature: i=1; 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=2N4/PBv52utP6tUgzFaxxFCAiFD/OYFv5YNh9cACnVg=; fh=WG/UpIQr5tFEFwdvsq/QIRKeUALDOcZ/tZzMssOVFRw=; b=v6lvEj1Hvr5nY5USmQI1WRGWzs0kZJO0uWFxMLFlE/RbsR6VKGxtSt95LUpu2cGowI elN0Xrd6d+BhDrqekMHp+IUcI9I3ZAiHGrw1f15LuUf84+Vbe723sCwdKAQ1lzeKzA7w s3zf/CFpNxQtqVdWA6dtLPCEg8a0tl+IfHayv6eThj79NEH46ryv+m6an+HXDBW0ry/3 Wf3XL1Csn0J5DJna2nLoLbU0vKs/LDQapF6Ji03HLFQvauQftUqOH80Qp1N0o+9PaxCQ 1Vg23iISsNWLigv2I8+tLTxlPEAzUPCY7tw2+vZwaKzslfjTGNErvjJnZQkYW0qXkF7P MyKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=GPAgfvQD; spf=pass (google.com: domain of linux-kernel+bounces-24345-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24345-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id u1-20020a170902e80100b001d55bccfd18si2860630plg.381.2024.01.11.22.51.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 22:51:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-24345-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=@quicinc.com header.s=qcppdkim1 header.b=GPAgfvQD; spf=pass (google.com: domain of linux-kernel+bounces-24345-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24345-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.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 497BE288045 for ; Fri, 12 Jan 2024 06:51:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2AE3B5C8FF; Fri, 12 Jan 2024 06:51:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="GPAgfvQD" Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C6C4F45015; Fri, 12 Jan 2024 06:51:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 40C3uKnN020967; Fri, 12 Jan 2024 06:51:23 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=2N4/PBv52utP6tUgzFaxxFCAiFD/OYFv5YNh9cACnVg=; b=GP AgfvQD4/BUUVJTwzgLf7DhCmpt5fq2Wr87ldCafn060qAU8ypjUCgGFdRWE45Op/ 4OU1Fv/MZewVA0ZXDgi0rbvQeiUiomNKI5uB/CHPr4rYMgtIOh0tiR9NFeyiQ4G6 cd7lZ2aco36jWv6WD2jB9wjfBQM1Cl27GG+St3e/ij2plW6Nt6Y1BuEG9WeouXl5 HJMytfXo9VLLIO9mndQyshZZKWNTkFTohGHQKecRXbepYa/hKpep0pOor/aOcyGG kPe6G2yPfyDugLul35x6lQhMQcOSdqUtEYZSQEcBOE6fH+mp7e6pn1LbSgYk6e+x eiecUoM/qdeYGjWyz87g== Received: from nasanppmta04.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3vjjjj1uy2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 12 Jan 2024 06:51:23 +0000 (GMT) Received: from nasanex01a.na.qualcomm.com (nasanex01a.na.qualcomm.com [10.52.223.231]) by NASANPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 40C6pMtH024587 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 12 Jan 2024 06:51:22 GMT Received: from [10.216.55.240] (10.80.80.8) by nasanex01a.na.qualcomm.com (10.52.223.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Thu, 11 Jan 2024 22:51:18 -0800 Message-ID: Date: Fri, 12 Jan 2024 12:20:56 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH v2] media: venus: flush all buffers in output plane streamoff To: Bryan O'Donoghue CC: Bryan O'Donoghue , Mauro Carvalho Chehab , Stanimir Varbanov , , , , "Stanimir Varbanov" , Vikash Garodia , Andy Gross , Bjorn Andersson , Konrad Dybcio , "Mauro Carvalho Chehab" References: <1704867134-5522-1-git-send-email-quic_dikshita@quicinc.com> Content-Language: en-US From: Dikshita Agarwal In-Reply-To: <1704867134-5522-1-git-send-email-quic_dikshita@quicinc.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nasanex01a.na.qualcomm.com (10.52.223.231) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: QqmEl9B5QrZh9f-84xri1b9dDRg91LbI X-Proofpoint-GUID: QqmEl9B5QrZh9f-84xri1b9dDRg91LbI X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-09_02,2023-12-07_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 suspectscore=0 phishscore=0 mlxscore=0 spamscore=0 impostorscore=0 mlxlogscore=999 lowpriorityscore=0 priorityscore=1501 clxscore=1015 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2311290000 definitions=main-2401120050 Hi Bryan, I realized later that I missed to add your reviewed-by tag to this v2 patch, Sorry for this silly mistake, will be more careful in future. On 1/10/2024 11:42 AM, 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") > Signed-off-by: Dikshita Agarwal Reviewed-by: Bryan O'Donoghue > --- > 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); > break; > default: > break;