Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1829409imm; Sat, 29 Sep 2018 05:01:33 -0700 (PDT) X-Google-Smtp-Source: ACcGV62E+AevGvO/e96lDNxMJ9AQSahYctYFclr2V6XZ/cRYvc2uBA12F8xBrli4Ob8qQoWAt5dn X-Received: by 2002:a63:145f:: with SMTP id 31-v6mr2637384pgu.35.1538222493647; Sat, 29 Sep 2018 05:01:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538222493; cv=none; d=google.com; s=arc-20160816; b=NvHkqiArTSGvaemJLm818DdLpHa6NJJoaKmqqzghdlsmxuyATeKWufQiTrxfPTYOcT rxLtU4SxusTFjL71gZ0LzIRqVsmXIssOyUHXRSwjRXQhmMcz0jyY13uXyKyNOKQkYN8P HZbGgroxJkSX7MtqXzVCz6gzJEniandRc3TIsAqiSw2ZVJQZ3KzeOkmPTzGXEAx8ooH2 /S0/oXuO+VzQAZ56ZzcRinhUndqv2T3jFYVaC3pwpFWdZD5X9sCyuWVFXGFx8SDQb8eF abg9znBLoE9zEizrwXP+SWddyy7nNh+v0k9QrQFu2uMb2Fyzm2VwluswFu4JycMRoEM7 DZyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dmarc-filter:dkim-signature:dkim-signature; bh=vAAhX7xoC/kjAxRVXNX+Xf78SDJ96Q4+hCzOQIaIFqk=; b=YybUjn4+58tJnLc7mpMaLr2YmI1od31pvszAXM5+IUPq76NffqQWF5vQ83uJGsfLMq u6/gN56rR4ZT+UFLP5FWn+ApWhelNRNAASle8Vc7HNL2yKzku/Wg/VCORdL8ZcC9ribM qFNg3AWMRr/0iLFBOhIude9vxFCLdOo3LXrXM7bK+2qilp4LqP4Eour3D8kow4SCc9bJ 82WQZoslhm+GVs/EwHoIF5W7+oSedHMxTiGXhEiYcG99sXS0+A8nMnqlLfUIomAU3RJ1 c9ZiL9S3RGmdIuXWeUGe7VmXNm5HlNpvad9H8/oA/P/zGgTodqXsIr45XKv2Xm6FiTWB OjYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=PCQdV3Uv; dkim=pass header.i=@codeaurora.org header.s=default header.b=IdKP9Au9; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b11-v6si6900532pgt.44.2018.09.29.05.01.19; Sat, 29 Sep 2018 05:01:33 -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=@codeaurora.org header.s=default header.b=PCQdV3Uv; dkim=pass header.i=@codeaurora.org header.s=default header.b=IdKP9Au9; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728290AbeI2S3P (ORCPT + 99 others); Sat, 29 Sep 2018 14:29:15 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:53292 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727979AbeI2S3O (ORCPT ); Sat, 29 Sep 2018 14:29:14 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 3293160C4F; Sat, 29 Sep 2018 12:01:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1538222462; bh=lCfy+UF0ywb1ADOv4ZALgAaUmL0UY/E/F7ZjJErnBks=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PCQdV3Uv8PtTmqLKGT64kownTwOj6qU6trKJXjWkoVhPUlG/EA3oqxwrhQtxloqFh rfKtfABHw6RHLcRrccJQufcV5wXTL+omldqWD0rlJoe2yhDIGIbeiy+48yzeuWTng4 0Dw7Kz/HfVWVxL3YMIpDkqFHv2VMTlhRQeo8M0ZQ= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.0 Received: from sgorle-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: sgorle@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id C0DC760C4B; Sat, 29 Sep 2018 12:00:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1538222460; bh=lCfy+UF0ywb1ADOv4ZALgAaUmL0UY/E/F7ZjJErnBks=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IdKP9Au9WZ33DZWnJ7KCULSv/KWjMT7O0LmfqlFa/Q1I33hz/FuvOEZ4OvlvnGlhK h7m0e6r3YS9+RTkqpSubiB477w8jcqgbAokhO4KKbhF8UosAqnBRdAmd3Y+8vUY6kH sfxE2ln6B/gEkJN1MAP0+sWIl+bF/esUHXFmDjBU= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org C0DC760C4B Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=sgorle@codeaurora.org From: Srinu Gorle To: stanimir.varbanov@linaro.org, hverkuil@xs4all.nl, mchehab@kernel.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, sgorle@codeaurora.org Cc: acourbot@chromium.org, vgarodia@codeaurora.org Subject: [PATCH v1 4/5] media: venus: video decoder drop frames handling Date: Sat, 29 Sep 2018 17:30:31 +0530 Message-Id: <1538222432-25894-5-git-send-email-sgorle@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1538222432-25894-1-git-send-email-sgorle@codeaurora.org> References: <1538222432-25894-1-git-send-email-sgorle@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org - when drop frame flag received from venus h/w, reset buffer parameters and update v4l2 buffer flags as error buffer. Signed-off-by: Srinu Gorle --- drivers/media/platform/qcom/venus/vdec.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/media/platform/qcom/venus/vdec.c b/drivers/media/platform/qcom/venus/vdec.c index 0035cf2..311f209 100644 --- a/drivers/media/platform/qcom/venus/vdec.c +++ b/drivers/media/platform/qcom/venus/vdec.c @@ -991,6 +991,12 @@ static void vdec_buf_done(struct venus_inst *inst, unsigned int buf_type, if (hfi_flags & HFI_BUFFERFLAG_DATACORRUPT) state = VB2_BUF_STATE_ERROR; + if (hfi_flags & HFI_BUFFERFLAG_DROP_FRAME) { + vb->planes[0].bytesused = 0; + vb->timestamp = 0; + state = VB2_BUF_STATE_ERROR; + } + v4l2_m2m_buf_done(vbuf, state); } -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project