Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp1565448rdb; Mon, 8 Jan 2024 03:32:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IE4Qc+GrzOFv+ehB4MclY2OD9IrXcNHm0NKAcTF6IVxaCY0WOqtpX1mouHCzS7uL8WAUkQ0 X-Received: by 2002:ac2:5e9d:0:b0:50e:3774:9db6 with SMTP id b29-20020ac25e9d000000b0050e37749db6mr604590lfq.196.1704713549277; Mon, 08 Jan 2024 03:32:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704713549; cv=none; d=google.com; s=arc-20160816; b=0lYDlHcuU2gEGHDJSRPs011QJnobA9N569FYbAmJ4eZ7xZbANS9iZAImtg6g1d159X 2OWSaz1iQRiJ+d3J2Ee5fb8MiYt7syYW7D7caP+A6e+WxwXkZTVZzu0jhhrnz89qkk9W wRrskxrAfsaxt778PRrVGqE3fPfG3Un4J0Y9OS1IE0WG7cf3ILw4b3WCaN7MMa4ULRsk hmf56t7DzwXa3yqjvvJI/bxbcfkgPLxZjoz206SQ5zkJo/5r9Yv6nCuKL4fYFlHJoPgH ZdMRLefaOXMG/NO/Uzqmvk/yVfuI4hqKpql4TX5dGUigCGbBwSplBISKPGjShQ7yHK66 rLCQ== 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:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=uimCBHCQHsez7psI7ZTry0K7+PAJVXBNStv3yV/6sIw=; fh=RlrsILYojSHbRuMs+k033iixySF2PxoLcwZr4U/N22g=; b=lBm31XTLPvcZ7Txo4dODPsChW0oCtFloshT073KETF8t9fmXndYGEBtBQtlw93a7fo KHmMvH6SGXAYxtU0a2q8dexJxrzKKXQ1nRPdqndTZoWrfUaoT99/B11VSfVU6jdZE+J6 L8ca4IHe1lqKm97S20pNGet+iCHDmeMYjgyq/yCb1uuxoNN3osP9lfgDJFe42GP0N63K aM51qIpG+/X8o1z+750oqcFBzDws864it3NAv+8jaQbLfDsOsbTDjwVxHykbMvLVZylN iJd8uB8ZzzZc9ywOjaNNbHaTGjE0UjQSb8h/WrDyIZJEOfGbrBWuIAzqQFGkDrZQqHXa oL0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TlAG+kqG; spf=pass (google.com: domain of linux-kernel+bounces-19434-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19434-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id bq13-20020a056402214d00b0055351ec4a2dsi3054700edb.386.2024.01.08.03.32.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 03:32:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-19434-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TlAG+kqG; spf=pass (google.com: domain of linux-kernel+bounces-19434-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19434-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 07E6D1F2283C for ; Mon, 8 Jan 2024 11:32:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 349E114AA8; Mon, 8 Jan 2024 11:32:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="TlAG+kqG" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) (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 1037B14AA2 for ; Mon, 8 Jan 2024 11:32:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wr1-f45.google.com with SMTP id ffacd0b85a97d-336dcebcdb9so1916203f8f.1 for ; Mon, 08 Jan 2024 03:32:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704713533; x=1705318333; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=uimCBHCQHsez7psI7ZTry0K7+PAJVXBNStv3yV/6sIw=; b=TlAG+kqGMKxASiEedLCpKJ02aM2sXwQp3F2ErYpQnkOf0PW42n640W5d2SkbF0pZK9 08soJip2AvGy2rUFADyffVWfGbdY/j9cEbjktRJ4N2H2amm2jaiwC58jJc0jk4tBkwew C47ms8jhVjLcwvlaEAz0oLb90PRHCj4ldXse4rCfVhTqyrs85UDskyIShZ2wBSaKiiZT jjO8j8pzujxznpthYT4ZPorOiaA1lwJeZwk440l3NhbfgAFF0JgmuO1+vX0pjjUctyIr BZLfsb1V6+ymbpz/AdgV0xnEQSqY00asX3h3eV1VWzVi5OjMCKYOp0XsdK78PlMZh3iM 7opQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704713533; x=1705318333; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=uimCBHCQHsez7psI7ZTry0K7+PAJVXBNStv3yV/6sIw=; b=JGFeuFG08b1o95SnSB4edH30Ldc3pjMOYot9hdCJUH90BtBpjec23zUM/UuL/Hv9FI fM1CUBN6kom5VgmaCMamYOR9xqEEHTdEHA2aVhrY3KwEXAbGKFxAX4EKzdLCDYna5mH9 a58T25NwnFVLDjRAneCB9ax78XLMEvPpD1OHtyBOoCCCfR0DRIi+0D7ZYGf+8rw/fDHS gmNRC1jQYo+oAcmJn9bbF/3gRpQLxYoJDGA9QKTRbWCGbN+QnCM8iL9EhV/kVtNXcgiK sHYdKS3pcd6PFlMacCw2nwlO1d/XdBua2wz4OO6wa6lRijS1cDgX5HKhj+SYcAv+IaEs ficA== X-Gm-Message-State: AOJu0YwR4Xir05Ub+VQAvpvzm17gUrMfqbsHyA41bML8L2dLXArd/85E 6yCgRV9x6NgK/IaTTXa8mQdl6Rux2VG4gA== X-Received: by 2002:a05:6000:4ec:b0:336:4b84:1e79 with SMTP id cr12-20020a05600004ec00b003364b841e79mr1063757wrb.194.1704713533299; Mon, 08 Jan 2024 03:32:13 -0800 (PST) Received: from [192.168.100.86] ([37.228.218.3]) by smtp.gmail.com with ESMTPSA id u3-20020a5d4343000000b003376d4248a9sm1349637wrr.71.2024.01.08.03.32.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 08 Jan 2024 03:32:12 -0800 (PST) Message-ID: <2ba3cef1-cdd3-4f38-b378-b91474c0ff5f@linaro.org> Date: Mon, 8 Jan 2024 11:32:11 +0000 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] media: venus: flush all buffers in output plane streamoff Content-Language: en-US To: Dikshita Agarwal , Stanimir Varbanov , Vikash Garodia , Andy Gross , Bjorn Andersson , Konrad Dybcio , Mauro Carvalho Chehab Cc: linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org References: <1704695615-1036-1-git-send-email-quic_dikshita@quicinc.com> From: Bryan O'Donoghue In-Reply-To: <1704695615-1036-1-git-send-email-quic_dikshita@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 08/01/2024 06:33, 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. > > Signed-off-by: Dikshita Agarwal > --- > 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; Missing Fixes: 85872f861d4c ("media: venus: Mark last capture buffer") Once fixed Reviewed-by: Bryan O'Donoghue --- bod