Received: by 10.192.165.148 with SMTP id m20csp4621126imm; Tue, 24 Apr 2018 05:57:03 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/M74eAmZoHL58F78REgKEa9Voq5MgneswmoLtIBG3JTvjXDyV/ttSlTEbW5wHa0Vw8NSaJ X-Received: by 10.99.143.22 with SMTP id n22mr19564294pgd.394.1524574623069; Tue, 24 Apr 2018 05:57:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524574622; cv=none; d=google.com; s=arc-20160816; b=dxsFHJt/mah11Loy6acWJmjKH2j5tBH47uZeQZU1qHjZzLyqdSrBjpIDc/xpF46blB DjV3oABV5G82wwceHfVyOPiojO3cdhO3IcC0uhWvbN4N5/5hjP+nRKxEnl9HlgV4HLuf SRoaMLHzZVyFxHbAI1seo3dw6G6Lm+UrUPZfQZTGRLKvLZP3J34lAclgSNwYNC/vYnwE oarFVPIN79gMDmPp/Qr02uqyTSUdHwaEI1HXcl8gU03M9tyVhxNVD9aAfwPKJ3ICmQjg veYsI8CDpyHSbu2gLvB2Y9viJAfzGGnHl/glUTjHTxwIcKshCCSUg21zjRxknD5FUUTb Izpg== 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:dkim-signature:arc-authentication-results; bh=qk30vsxFXw8OaVI7ewrkRlKK5nRwGCA970OKKcpSOck=; b=laTLiP0QP0Ny0vsjnntCQTYFoKzeMiBpKCuPCUPvKWcjq59IAfnnA2+GHjuztmgbYl nXZy/T7Ah3iFZUPFRkxtPHP/9mvbefBEIJsbIuUDMHE2G6LQsHkEchta5z/fOasDUJiU BlBROeRAHY7jfUzZFRMvBXvOQQMlLIUSHey5uqoemrQfsY/VXKF6OnEB+/FvUPeeiJ+U JcVeSiGkyPIxDG7An3nME/Dy59hQZAt5PgRRkFl+I7ajTz1XblEAdU89GxACo251rU3O dncULX4p6wmnMAAtzrsTw8EU80AlEU2xzoFHo+hjjvHFa26itUC8p8baEJmHGVYcTdOJ /MIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EN5C5MUi; 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 i73si1816492pfe.27.2018.04.24.05.56.48; Tue, 24 Apr 2018 05:57:02 -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=EN5C5MUi; 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 S933039AbeDXMxj (ORCPT + 99 others); Tue, 24 Apr 2018 08:53:39 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:34112 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757838AbeDXMpS (ORCPT ); Tue, 24 Apr 2018 08:45:18 -0400 Received: by mail-wr0-f194.google.com with SMTP id p18-v6so30612777wrm.1 for ; Tue, 24 Apr 2018 05:45:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=qk30vsxFXw8OaVI7ewrkRlKK5nRwGCA970OKKcpSOck=; b=EN5C5MUiAsf12wpgRSJuAqBAg/xSjoRXB4WQ7pmSvngAYQTVFScI2JsfS9wVOXN+O8 /DLlcSSBUgVWrVUQg769dk3Wo6yodHVrltd44JZ8w6e1Ya76cD6LQ+lweWtpq+b261VM 7IuH1UE7o5hCpRKUDo8fwiIODJNdP7wedC/Eg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=qk30vsxFXw8OaVI7ewrkRlKK5nRwGCA970OKKcpSOck=; b=PT1FOD28aT+fDttWPn5ycVp2vS5FvuxgBMxrMedKZZY7Pw5vV/E6XVEFuJKcxhLTPk h4eiKQb9yZw1cooXhq6YtcIqPoL2Np9a1t/eMpQSNQAbYvpl2uBEbbIzNDcaiK81513P N8S1MwPqG/yajkSHgeSLkMixZbn6tRKvR3S5gx3DSdvMCwnIKrCXBlyAUYx8eTQkAI58 23DWx2B52zLz0qrFAbJT1BHp7glMj/XwJfEOgg+IzWm77ylZc8Fd9CZ7+I4MjVMUsNC8 JGxyRUtdCFU5T6EANVB4ggmJ3C+BZKSCRLFy4T3OkG9QcEgFohZ0Aqy+3D23wy4pXWzV dhhQ== X-Gm-Message-State: ALQs6tDdnkh6dIkpCtLfBypzOcf7iJfmiKLWLba4pLuybvlz9ip94AUJ nrBanPm/eUD1jxtL8qHSVik80Q== X-Received: by 2002:adf:e791:: with SMTP id n17-v6mr17280376wrm.225.1524573917747; Tue, 24 Apr 2018 05:45:17 -0700 (PDT) Received: from localhost.localdomain ([37.157.136.206]) by smtp.gmail.com with ESMTPSA id n49-v6sm22666013wrn.50.2018.04.24.05.45.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 05:45:17 -0700 (PDT) From: Stanimir Varbanov To: Mauro Carvalho Chehab , Hans Verkuil Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Vikash Garodia , Stanimir Varbanov Subject: [PATCH 10/28] venus: vdec: call session_continue in insufficient event Date: Tue, 24 Apr 2018 15:44:18 +0300 Message-Id: <20180424124436.26955-11-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180424124436.26955-1-stanimir.varbanov@linaro.org> References: <20180424124436.26955-1-stanimir.varbanov@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Call session_continue for Venus 4xx version even when the event says that the buffer resources are not sufficient. Leaving a comment with more information about the workaround. Signed-off-by: Stanimir Varbanov --- drivers/media/platform/qcom/venus/vdec.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/media/platform/qcom/venus/vdec.c b/drivers/media/platform/qcom/venus/vdec.c index c45452634e7e..91c7384ff9c8 100644 --- a/drivers/media/platform/qcom/venus/vdec.c +++ b/drivers/media/platform/qcom/venus/vdec.c @@ -873,6 +873,14 @@ static void vdec_event_notify(struct venus_inst *inst, u32 event, dev_dbg(dev, "event not sufficient resources (%ux%u)\n", data->width, data->height); + /* + * Workaround: Even that the firmware send and event for + * insufficient buffer resources it is safe to call + * session_continue because actually the event says that + * the number of capture buffers is lower. + */ + if (IS_V4(core)) + hfi_session_continue(inst); break; case HFI_EVENT_RELEASE_BUFFER_REFERENCE: venus_helper_release_buf_ref(inst, data->tag); -- 2.14.1