Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp2099747pxb; Sat, 22 Jan 2022 16:15:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJxOf2ObDSdy71fGpzgaFSyfhKxpcsq9mMzHy7uc622Nep0STCX2KARnLxmosShFuFAE4Igz X-Received: by 2002:a17:902:d2c8:b0:14a:55fb:cfe5 with SMTP id n8-20020a170902d2c800b0014a55fbcfe5mr9372765plc.51.1642896914520; Sat, 22 Jan 2022 16:15:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642896914; cv=none; d=google.com; s=arc-20160816; b=rQShpEG2+sk67XUBjbi5pQdtx09pEwIO65VvTapX+ucwlbFW5OhQGmJRhL7SFRdq0j BiPmXFrH09WvecdCl1fVoq95xJCpEPmAbkUvChIHE1fGpDbWPz/5+EhDxiMXFL+aP81R LmCZRMwNiZAc5v3jLQpErY02qJ7GeeeAYtjvjyywOe9R3TVyLWh2bArQC80VL8XjVkR4 tXgCFNgnabOAPgUK2ENWM5TvepZ/lre6YXfVW5Xqv/ZTBJ8kSs+X/+G+A2AQhOXRNV4Q XnoDxNs3lXku9E+ZJCchNc+ToVd+e3BnXPGmDV1ipYx5sMp0tlmrtRL1Uw46pyHX/CRc t/Dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=korc1uuYj2jCTcRVZ03/2vFRBg8xrrYRzL4WscCXh3s=; b=eym5F05ltJuYfKPzs7E1uUIlKNcltxo3Px3+pV1eq/r3jEitpbGRaFwSftSc53M+km eluoQwNhSwsPLivvfMuNln1w97DbwEqbsEdONiHednpSXvc0QDbBdTXDpvqUyZtbakSK BH40Kr4sn4oYobGq41np2YrGUzH5FdrA1O/AWjHSS7ouEhgAzfTW2IgSP5WG8q3gZapc QLvio6RgifEW5dETWoAaHDMfnZBvvziPRZvZdlMabOI3zfuH945w+jF+YXTuXU3SybEC 9eiTsdWQRKDX26FptbccUaBChkIVCEhGVq2atQr3Juw7+q6N1pzaJ4me+sPOjjaAmkQW QUxQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p1si16067020pjn.161.2022.01.22.16.15.02; Sat, 22 Jan 2022 16:15:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232549AbiAVDxj (ORCPT + 99 others); Fri, 21 Jan 2022 22:53:39 -0500 Received: from mailgw01.mediatek.com ([60.244.123.138]:57924 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S232381AbiAVDxa (ORCPT ); Fri, 21 Jan 2022 22:53:30 -0500 X-UUID: ea466989f3414101b587772439cfed01-20220122 X-UUID: ea466989f3414101b587772439cfed01-20220122 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 943338161; Sat, 22 Jan 2022 11:53:29 +0800 Received: from mtkexhb02.mediatek.inc (172.21.101.103) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 22 Jan 2022 11:53:27 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkexhb02.mediatek.inc (172.21.101.103) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 22 Jan 2022 11:53:27 +0800 Received: from localhost.localdomain (10.17.3.154) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sat, 22 Jan 2022 11:53:25 +0800 From: Yunfei Dong To: Yunfei Dong , Alexandre Courbot , Hans Verkuil , "Tzung-Bi Shih" , Tiffany Lin , Andrew-CT Chen , Mauro Carvalho Chehab , Rob Herring , Matthias Brugger , Tomasz Figa CC: George Sun , Xiaoyong Lu , Hsin-Yi Wang , Fritz Koenig , Dafna Hirschfeld , Benjamin Gaignard , Daniel Vetter , dri-devel , Irui Wang , AngeloGioacchino Del Regno , Steve Cho , , , , , , , Subject: [PATCH v6, 05/15] media: mtk-vcodec: Call v4l2_m2m_set_dst_buffered() set capture buffer buffered Date: Sat, 22 Jan 2022 11:53:06 +0800 Message-ID: <20220122035316.18179-6-yunfei.dong@mediatek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220122035316.18179-1-yunfei.dong@mediatek.com> References: <20220122035316.18179-1-yunfei.dong@mediatek.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org lat thread: output queue \ -> lat hardware -> lat trans buffer lat trans buffer / core thread: capture queue \ ->core hardware -> capture queue lat trans buffer / Lat and core work in different thread, setting capture buffer buffered. Signed-off-by: Yunfei Dong --- drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_stateless.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_stateless.c b/drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_stateless.c index 5aebf88f997b..23a154c4e321 100644 --- a/drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_stateless.c +++ b/drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_stateless.c @@ -314,6 +314,9 @@ static void mtk_init_vdec_params(struct mtk_vcodec_ctx *ctx) src_vq = v4l2_m2m_get_vq(ctx->m2m_ctx, V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE); + if (ctx->dev->vdec_pdata->hw_arch != MTK_VDEC_PURE_SINGLE_CORE) + v4l2_m2m_set_dst_buffered(ctx->m2m_ctx, 1); + /* Support request api for output plane */ src_vq->supports_requests = true; src_vq->requires_requests = true; -- 2.25.1